KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
KvsObject_label.cpp File Reference
#include "KviError.h"
#include "kvi_debug.h"
#include "KvsObject_label.h"
#include "KviLocale.h"
#include "KviIconManager.h"
#include <QFont>
#include <QPixmap>
#include <QMessageBox>
#include <QLabel>

Macros

#define align_num   (sizeof(align_tbl) / sizeof(align_tbl[0]))
 
#define frame_num   (sizeof(frame_tbl) / sizeof(frame_tbl[0]))
 

Functions

 KVSO_CLASS_FUNCTION (label, setText)
 
 KVSO_CLASS_FUNCTION (label, text)
 
 KVSO_CLASS_FUNCTION (label, setMargin)
 
 KVSO_CLASS_FUNCTION (label, margin)
 
 KVSO_CLASS_FUNCTION (label, setAlignment)
 
 KVSO_CLASS_FUNCTION (label, alignment)
 
 KVSO_CLASS_FUNCTION (label, clear)
 
 KVSO_CLASS_FUNCTION (label, setFrameStyle)
 
 KVSO_CLASS_FUNCTION (label, frameStyle)
 
 KVSO_CLASS_FUNCTION (label, setImage)
 

Variables

const int align_cod []
 
const char *const align_tbl []
 
const int frame_cod []
 
const char *const frame_tbl []
 

Macro Definition Documentation

#define align_num   (sizeof(align_tbl) / sizeof(align_tbl[0]))

Referenced by KVSO_CLASS_FUNCTION().

#define frame_num   (sizeof(frame_tbl) / sizeof(frame_tbl[0]))

Referenced by KVSO_CLASS_FUNCTION().

Function Documentation

KVSO_CLASS_FUNCTION ( label  ,
setText   
)
KVSO_CLASS_FUNCTION ( label  ,
text   
)

References c, and CHECK_INTERNAL_POINTER.

KVSO_CLASS_FUNCTION ( label  ,
setMargin   
)
KVSO_CLASS_FUNCTION ( label  ,
margin   
)

References c, and CHECK_INTERNAL_POINTER.

KVSO_CLASS_FUNCTION ( label  ,
setAlignment   
)
KVSO_CLASS_FUNCTION ( label  ,
alignment   
)
KVSO_CLASS_FUNCTION ( label  ,
clear   
)

References CHECK_INTERNAL_POINTER, and clear().

KVSO_CLASS_FUNCTION ( label  ,
setFrameStyle   
)
KVSO_CLASS_FUNCTION ( label  ,
frameStyle   
)
KVSO_CLASS_FUNCTION ( label  ,
setImage   
)

Variable Documentation

const int align_cod[]
Initial value:
= {
Qt::AlignLeft,
Qt::AlignRight,
Qt::AlignHCenter,
Qt::AlignVCenter,
Qt::AlignCenter,
Qt::AlignTop,
Qt::AlignBottom,
Qt::AlignJustify,
}

Referenced by KVSO_CLASS_FUNCTION().

const char* const align_tbl[]
Initial value:
= {
"Left",
"Right",
"HCenter",
"VCenter",
"Center",
"Top",
"Bottom",
"Justify"
}

Referenced by KVSO_CLASS_FUNCTION().

const int frame_cod[]
Initial value:
= {
QFrame::NoFrame,
QFrame::Box,
QFrame::Panel,
QFrame::WinPanel,
QFrame::HLine,
QFrame::Plain,
QFrame::Raised,
QFrame::Sunken
}

Referenced by KVSO_CLASS_FUNCTION().

const char* const frame_tbl[]
Initial value:
= {
"NoFrame",
"Box",
"Panel",
"WinPanel",
"Hline",
"Plain",
"Raised",
"Sunken"
}

Referenced by KVSO_CLASS_FUNCTION().