![]() |
KVIrc 5.2.0
Developer APIs
|
A single message in a notifier window. More...
#include <NotifierMessage.h>
Public Member Functions | |
NotifierMessage (QPixmap *pPixmap, QString szText) | |
Constructs the NotifierMessage object. | |
QPixmap * | pixmap () const |
Returns the message icon. | |
const QString & | text () const |
Returns the original irc message. | |
void | updateGui () |
Updates the aspect of this message. | |
~NotifierMessage () | |
Destroys the NotifierMessage object. | |
Private Attributes | |
QHBoxLayout * | m_pHBox = nullptr |
Layout for the labels. | |
QLabel * | m_pLabel0 = nullptr |
Label for the message icon. | |
QLabel * | m_pLabel1 = nullptr |
Label for the message text. | |
QPixmap * | m_pPixmap = nullptr |
The message icon (can be null) | |
QString | m_szText |
The message text. | |
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, |
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, 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 updateGui(), and ~NotifierMessage().
|
private |
Label for the message text.
Referenced by updateGui(), and ~NotifierMessage().
|
private |
The message icon (can be null)
Referenced by pixmap(), and updateGui().
|
private |
The message text.
Referenced by text(), and updateGui().