KVIrc
4.9.2
DeveloperAPIs
|
A single message in a notifier window. More...
#include <NotifierMessage.h>
Public Member Functions | |
NotifierMessage (QPixmap *pPixmap, const QString &szText) | |
Constructs the NotifierMessage object. More... | |
QPixmap * | pixmap () const |
Returns the message icon. More... | |
QString | text () const |
Returns the original irc message. More... | |
void | updateGui () |
Updates the aspect of this message. More... | |
~NotifierMessage () | |
Destroys the NotifierMessage object. More... | |
Private Attributes | |
QHBoxLayout * | m_pHBox |
Layout for the labels. More... | |
QLabel * | m_pLabel0 |
Label for the message icon. More... | |
QLabel * | m_pLabel1 |
Label for the message text. More... | |
QPixmap * | m_pPixmap |
The message icon (can be null) More... | |
QString | m_szText |
The message text. More... | |
Friends | |
class | NotifierWindow |
A single message in a notifier window.
This is basically a single message that can appear in a notifier window It's made up of an icon and a rich text content This class is basically a QLabel with a method that translates a raw irc message to html code.
NotifierMessage::NotifierMessage | ( | QPixmap * | pPixmap, |
const QString & | szText | ||
) |
Constructs the NotifierMessage object.
pPixmap | pointer to a message icon, can be null |
szText | const reference to message text in irc format |
References m_pHBox, m_pLabel0, m_pLabel1, m_pPixmap, m_szText, SPACING, and updateGui().
NotifierMessage::~NotifierMessage | ( | ) |
Destroys the NotifierMessage object.
|
inline |
|
inline |
void NotifierMessage::updateGui | ( | ) |
Updates the aspect of this message.
References KviHtmlGenerator::convertToHtml(), KVI_OPTION_BOOL, KVI_OPTION_COLOR, KVI_OPTION_FONT, KviOption_boolIrcViewShowImages, KviOption_colorNotifierForeground, KviOption_fontNotifier, m_pHBox, m_pLabel0, m_pLabel1, m_pPixmap, and m_szText.
Referenced by NotifierMessage(), and NotifierWindowTab::updateGui().
|
friend |
|
private |
Layout for the labels.
Referenced by NotifierMessage(), updateGui(), and ~NotifierMessage().
|
private |
Label for the message icon.
Referenced by NotifierMessage(), updateGui(), and ~NotifierMessage().
|
private |
Label for the message text.
Referenced by NotifierMessage(), updateGui(), and ~NotifierMessage().
|
private |
The message icon (can be null)
Referenced by NotifierMessage(), pixmap(), and updateGui().
|
private |
The message text.
Referenced by NotifierMessage(), text(), and updateGui().