#include <NotifierWindow.h>
NotifierWindow::NotifierWindow |
( |
| ) |
|
References NotifierWindowBorder::bodyRect(), connect(), g_pApp, Hidden, m_bBlinkOn, m_bCloseDown, m_bDiagonalResizing, m_bDisableHideOnMainWindowGotAttention, m_bDragging, m_bLeftButtonIsPressed, m_bNextDown, m_bPrevDown, m_bResizing, m_bWriteDown, m_dOpacity, m_eState, m_pAutoHideTimer, m_pBlinkTimer, m_pContextPopup, m_pDisablePopup, m_pLineEdit, m_pProgressBar, m_pShowHideTimer, m_pWndBorder, m_pWndTabs, m_tAutoHideAt, m_tStartedAt, m_wndRect, r, returnPressed(), slotTabCloseRequested(), SPACING, updateGui(), WDG_MIN_HEIGHT, and WDG_MIN_WIDTH.
NotifierWindow::~NotifierWindow |
( |
| ) |
|
void NotifierWindow::addMessage |
( |
KviWindow * |
pWnd, |
|
|
const QString & |
szImageId, |
|
|
const QString & |
szText, |
|
|
unsigned int |
uMessageTime |
|
) |
| |
References NotifierWindowTab::appendMessage(), g_pIconManager, KviIconManager::getImage(), KviWindow::hasAttention(), i, kvi_time_t, kvi_unixTime, m_bDisableHideOnMainWindowGotAttention, m_eState, m_pWndTabs, m_tAutoHideAt, KviWindow::MainWindowIsVisible, startAutoHideTimer(), startBlinking(), stopAutoHideTimer(), and Visible.
Referenced by notifier_kvs_cmd_message(), notifier_module_ctrl(), and returnPressed().
void NotifierWindow::blink |
( |
| ) |
|
|
protectedslot |
bool NotifierWindow::checkResizing |
( |
QPoint |
e | ) |
|
|
private |
References m_bLeftButtonIsPressed, m_bResizing, m_whereResizing, setCursor(), WDG_BORDER_THICKNESS, WDG_DWN, WDG_DWNDX, WDG_DWNSX, WDG_DX, WDG_SX, WDG_UP, WDG_UPDX, and WDG_UPSX.
Referenced by mouseMoveEvent(), and mousePressEvent().
void NotifierWindow::contextPopup |
( |
const QPoint & |
pos | ) |
|
|
private |
int NotifierWindow::countTabs |
( |
| ) |
const |
|
inline |
void NotifierWindow::disableFor15Minutes |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::disableFor1Minute |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::disableFor30Minutes |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::disableFor5Minutes |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::disableFor60Minutes |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::disablePermanently |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::disableUntilKVIrcRestarted |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::doHide |
( |
bool |
bDoAnimate | ) |
|
References connect(), heartbeat(), Hidden, hideNow(), Hiding, m_dOpacity, m_eState, m_pShowHideTimer, m_pWndBorder, OPACITY_STEP, Showing, stopAutoHideTimer(), stopBlinkTimer(), stopShowHideTimer(), Visible, x, NotifierWindowBorder::x(), y, and NotifierWindowBorder::y().
Referenced by blink(), notifier_kvs_cmd_hide(), and progressUpdate().
void NotifierWindow::doShow |
( |
bool |
bDoAnimate | ) |
|
References connect(), g_tNotifierDisabledUntil, heartbeat(), Hidden, Hiding, KVI_OPTION_BOOL, kvi_time_t, kvi_unixTime, KviOption_boolDontShowNotifierIfActiveWindowIsFullScreen, KviOption_boolEnableNotifier, m_bBlinkOn, m_bCloseDown, m_bCrashShowWorkAround, m_bDragging, m_bNextDown, m_bPrevDown, m_bWriteDown, m_dOpacity, m_eState, m_pShowHideTimer, OPACITY_STEP, Showing, startAutoHideTimer(), startBlinking(), stopBlinkTimer(), stopShowHideTimer(), and Visible.
Referenced by notifier_kvs_cmd_message(), notifier_kvs_cmd_show(), and notifier_module_ctrl().
void NotifierWindow::enterEvent |
( |
QEvent * |
e | ) |
|
|
protectedvirtual |
bool NotifierWindow::eventFilter |
( |
QObject * |
pEdit, |
|
|
QEvent * |
e |
|
) |
| |
|
protectedvirtual |
void NotifierWindow::fillContextPopup |
( |
| ) |
|
|
protectedslot |
References __tr2qs_ctx(), KviIconManager::Close, disableFor15Minutes(), disableFor1Minute(), disableFor30Minutes(), disableFor5Minutes(), disableFor60Minutes(), disablePermanently(), disableUntilKVIrcRestarted(), KviIconManager::Editor, g_pIconManager, KviIconManager::getSmallIcon(), hideNow(), m_pContextPopup, m_pDisablePopup, KviIconManager::Quit, KviIconManager::Time, and toggleLineEdit().
Referenced by contextPopup().
void NotifierWindow::heartbeat |
( |
| ) |
|
|
protectedslot |
References FocusingOff, FocusingOn, Hidden, hideNow(), Hiding, KVI_OPTION_UINT, KviOption_uintNotifierActiveTransparency, KviOption_uintNotifierInactiveTransparency, m_dOpacity, m_eState, OPACITY_STEP, shouldHideIfMainWindowGotAttention(), Showing, startAutoHideTimer(), startBlinking(), stopShowHideTimer(), and Visible.
Referenced by doHide(), doShow(), enterEvent(), and leaveEvent().
void NotifierWindow::hideEvent |
( |
QHideEvent * |
e | ) |
|
|
protectedvirtual |
void NotifierWindow::hideNow |
( |
| ) |
|
|
slot |
References Hidden, m_dOpacity, m_eState, m_tAutoHideAt, stopAutoHideTimer(), stopBlinkTimer(), and stopShowHideTimer().
Referenced by disableFor15Minutes(), disableFor1Minute(), disableFor30Minutes(), disableFor5Minutes(), disableFor60Minutes(), disablePermanently(), disableUntilKVIrcRestarted(), doHide(), eventFilter(), fillContextPopup(), heartbeat(), keyPressEvent(), NotifierWindowTab::mouseDoubleClickEvent(), mouseReleaseEvent(), and slotTabCloseRequested().
void NotifierWindow::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
void NotifierWindow::leaveEvent |
( |
QEvent * |
e | ) |
|
|
protectedvirtual |
void NotifierWindow::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
References NotifierWindowBorder::captionRect(), checkResizing(), NotifierWindowBorder::closeRect(), m_bDragging, m_bLeftButtonIsPressed, m_bResizing, m_pntDrag, m_pntPos, m_pWndBorder, m_wndRect, resize(), NotifierWindowBorder::setCloseIcon(), setCursor(), WDG_ICON_OUT, and WDG_ICON_OVER.
void NotifierWindow::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
References NotifierWindowBorder::captionRect(), checkResizing(), NotifierWindowBorder::closeRect(), contextPopup(), m_bBlinkOn, m_bCloseDown, m_bDragging, m_bLeftButtonIsPressed, m_bResizing, m_pLineEdit, m_pntClick, m_pntDrag, m_pntPos, m_pWndBorder, m_tAutoHideAt, NotifierWindowBorder::rect(), NotifierWindowBorder::setCloseIcon(), stopAutoHideTimer(), stopBlinkTimer(), and WDG_ICON_CLICKED.
void NotifierWindow::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
References NotifierWindowBorder::captionRect(), NotifierWindowBorder::closeRect(), hideNow(), m_bCloseDown, m_bDragging, m_bLeftButtonIsPressed, m_bNextDown, m_bPrevDown, m_bResizing, m_bWriteDown, m_pWndBorder, and setCursor().
void NotifierWindow::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
protectedvirtual |
References NotifierWindowBorder::draw(), NotifierWindowBorder::height(), KVI_OPTION_COLOR, KVI_OPTION_FONT, KviOption_colorNotifierTitleForeground, KviOption_fontNotifierTitle, m_bBlinkOn, m_pWndBorder, m_pWndTabs, KviWindow::plainTextCaption(), NotifierWindowBorder::resize(), NotifierWindowBorder::titleRect(), NotifierWindowBorder::width(), and NotifierWindowTab::wnd().
void NotifierWindow::progressUpdate |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::redrawText |
( |
| ) |
|
|
private |
void NotifierWindow::resize |
( |
QPoint |
p, |
|
|
bool |
= true |
|
) |
| |
|
private |
References m_pLineEdit, m_whereResizing, m_wndRect, showLineEdit(), WDG_DWN, WDG_DWNDX, WDG_DWNSX, WDG_DX, WDG_MIN_HEIGHT, WDG_MIN_WIDTH, WDG_SX, WDG_UP, WDG_UPDX, WDG_UPSX, x, and y.
Referenced by mouseMoveEvent().
void NotifierWindow::returnPressed |
( |
| ) |
|
|
protectedslot |
void NotifierWindow::setCursor |
( |
int |
iCur | ) |
|
|
inlineprivate |
void NotifierWindow::setDisableHideOnMainWindowGotAttention |
( |
bool |
b | ) |
|
|
inline |
bool NotifierWindow::shouldHideIfMainWindowGotAttention |
( |
| ) |
|
|
private |
void NotifierWindow::showEvent |
( |
QShowEvent * |
e | ) |
|
|
protectedvirtual |
void NotifierWindow::showLineEdit |
( |
bool |
bShow | ) |
|
void NotifierWindow::slotTabCloseRequested |
( |
int |
index | ) |
|
|
slot |
void NotifierWindow::startAutoHideTimer |
( |
| ) |
|
|
private |
void NotifierWindow::startBlinking |
( |
| ) |
|
|
private |
State NotifierWindow::state |
( |
| ) |
const |
|
inline |
void NotifierWindow::stopAutoHideTimer |
( |
| ) |
|
|
private |
void NotifierWindow::stopBlinkTimer |
( |
| ) |
|
|
private |
void NotifierWindow::stopShowHideTimer |
( |
| ) |
|
|
private |
int NotifierWindow::textWidth |
( |
| ) |
|
void NotifierWindow::toggleLineEdit |
( |
| ) |
|
|
slot |
void NotifierWindow::updateGui |
( |
| ) |
|
|
protectedslot |
bool NotifierWindow::m_bBlinkOn |
|
protected |
bool NotifierWindow::m_bCloseDown |
|
protected |
bool NotifierWindow::m_bCrashShowWorkAround |
|
protected |
bool NotifierWindow::m_bDiagonalResizing |
|
protected |
bool NotifierWindow::m_bDisableHideOnMainWindowGotAttention |
|
protected |
bool NotifierWindow::m_bDragging |
|
protected |
bool NotifierWindow::m_bLeftButtonIsPressed |
|
protected |
bool NotifierWindow::m_bNextDown |
|
protected |
bool NotifierWindow::m_bPrevDown |
|
protected |
bool NotifierWindow::m_bResizing |
|
protected |
bool NotifierWindow::m_bWriteDown |
|
protected |
QCursor NotifierWindow::m_cursor |
|
protected |
double NotifierWindow::m_dOpacity |
|
protected |
State NotifierWindow::m_eState |
|
protected |
int NotifierWindow::m_iBlinkCount |
|
protected |
QTimer* NotifierWindow::m_pAutoHideTimer |
|
protected |
QTimer* NotifierWindow::m_pBlinkTimer |
|
protected |
QMenu* NotifierWindow::m_pContextPopup |
|
protected |
QMenu* NotifierWindow::m_pDisablePopup |
|
protected |
QPoint NotifierWindow::m_pntClick |
|
protected |
QPoint NotifierWindow::m_pntDrag |
|
protected |
QPoint NotifierWindow::m_pntPos |
|
protected |
QProgressBar* NotifierWindow::m_pProgressBar |
|
protected |
QTimer* NotifierWindow::m_pShowHideTimer |
|
protected |
QTabWidget* NotifierWindow::m_pWndTabs |
|
protected |
QTime NotifierWindow::m_qtStartedAt |
|
protected |
int NotifierWindow::m_whereResizing |
|
protected |
QRect NotifierWindow::m_wndRect |
|
protected |
The documentation for this class was generated from the following files: