KVIrc  4.9.2
DeveloperAPIs
Macros | Variables
KviToolBar.cpp File Reference
#include "KviToolBar.h"
#include "KviMainWindow.h"
#include "KviLocale.h"
#include "KviApplication.h"
#include "KviOptions.h"
#include <QCursor>
#include <QEvent>
#include <QMouseEvent>
#include <QMenu>

Macros

#define VALID_BUTTONSTYLES_NUM   5
 
#define VALID_ICONSIZES_NUM   2
 

Variables

static QMenu * g_pToolBarButtonStylePopup = nullptr
 
static QMenu * g_pToolBarContextPopup = nullptr
 
static QMenu * g_pToolBarIconSizesPopup = nullptr
 
static QMenu * g_pToolBarWindowsPopup = nullptr
 
static uint uToolBarInstances = 0
 
static KviToolBar::ButtonStyles valid_buttonstyles [VALID_BUTTONSTYLES_NUM]
 
static KviToolBar::IconSizes valid_iconsizes [VALID_ICONSIZES_NUM]
 

Macro Definition Documentation

#define VALID_BUTTONSTYLES_NUM   5
#define VALID_ICONSIZES_NUM   2

Variable Documentation

QMenu* g_pToolBarButtonStylePopup = nullptr
static
QMenu* g_pToolBarContextPopup = nullptr
static
QMenu* g_pToolBarIconSizesPopup = nullptr
static
QMenu* g_pToolBarWindowsPopup = nullptr
static
uint uToolBarInstances = 0
static
Initial value:
= {
{ Qt::ToolButtonIconOnly, "Icon Only" },
{ Qt::ToolButtonTextOnly, "Text Only" },
{ Qt::ToolButtonTextBesideIcon, "Text Beside Icon" },
{ Qt::ToolButtonTextUnderIcon, "Text Under Icon" },
{ Qt::ToolButtonFollowStyle, "Use System Style" }
}
KviToolBar::IconSizes valid_iconsizes[VALID_ICONSIZES_NUM]
static
Initial value:
= {
{ 16, "Small (16x16)" },
{ 32, "Large (32x32)" },
}