KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
libkvitrayicon.cpp File Reference
#include "libkvitrayicon.h"
#include "kvi_settings.h"
#include "KviApplication.h"
#include "KviModule.h"
#include "KviLocale.h"
#include "KviMemory.h"
#include "KviWindowListBase.h"
#include "KviWindow.h"
#include "KviDynamicToolTip.h"
#include "KviIconManager.h"
#include "KviInternalCommand.h"
#include "KviConsoleWindow.h"
#include "KviIrcConnection.h"
#include "KviIrcConnectionUserInfo.h"
#include "KviOptions.h"
#include "KviIrcView.h"
#include <QPixmap>
#include <QPainter>
#include <QTimer>
#include <QEvent>
#include <QRegExp>
#include <QWidgetAction>
#include <QMenu>
#include <stdlib.h>
#include <time.h>

Macros

#define ICON_INFIX   "normal"
 
#define ICON_SIZE   48
 
#define NIDLEMSGS   18
 

Functions

static bool trayicon_kvs_cmd_hide (KviKvsModuleCommandCall *)
 
static bool trayicon_kvs_cmd_hidewindow (KviKvsModuleCommandCall *)
 
static bool trayicon_kvs_cmd_show (KviKvsModuleCommandCall *)
 
static bool trayicon_kvs_fnc_isvisible (KviKvsModuleFunctionCall *c)
 
static bool trayicon_module_can_unload (KviModule *)
 
static bool trayicon_module_cleanup (KviModule *)
 
static bool trayicon_module_init (KviModule *m)
 

Variables

static QPixmap * g_pDock1 = nullptr
 
static QPixmap * g_pDock2 = nullptr
 
static QPixmap * g_pDock3 = nullptr
 
KVIRC_API KviPointerHashTable
< QString, KviWindow > * 
g_pGlobalWindowDict
 
static KviTrayIconWidgetg_pTrayIcon = nullptr
 
static const char * idlemsgs [NIDLEMSGS]
 

Macro Definition Documentation

#define ICON_INFIX   "normal"

Referenced by trayicon_module_init().

#define ICON_SIZE   48
#define NIDLEMSGS   18

Function Documentation

static bool trayicon_kvs_cmd_hide ( KviKvsModuleCommandCall )
static

References g_pMainWindow, and g_pTrayIcon.

Referenced by trayicon_module_init().

static bool trayicon_kvs_cmd_hidewindow ( KviKvsModuleCommandCall )
static

References g_pMainWindow.

Referenced by trayicon_module_init().

static bool trayicon_kvs_cmd_show ( KviKvsModuleCommandCall )
static

References w.

Referenced by trayicon_module_init().

static bool trayicon_kvs_fnc_isvisible ( KviKvsModuleFunctionCall c)
static
static bool trayicon_module_can_unload ( KviModule )
static
static bool trayicon_module_cleanup ( KviModule )
static

References g_pDock1, g_pDock2, g_pDock3, and g_pTrayIcon.

static bool trayicon_module_init ( KviModule m)
static

Variable Documentation

QPixmap* g_pDock1 = nullptr
static
QPixmap* g_pDock2 = nullptr
static
QPixmap* g_pDock3 = nullptr
static
KVIRC_API KviPointerHashTable<QString, KviWindow>* g_pGlobalWindowDict
KviTrayIconWidget* g_pTrayIcon = nullptr
static
const char* idlemsgs[NIDLEMSGS]
static
Initial value:
= {
__tr("Nothing is happening..."),
__tr("Just idling..."),
__tr("Dum de dum de dum..."),
__tr("Hey man... Do something!"),
__tr("Umpf!"),
__tr("Silence speaking"),
__tr("Are ya here?"),
__tr("The world has stopped?"),
__tr("Everything is all right"),
__tr("idle()"),
__tr("It's so cold here..."),
__tr("Do not disturb... Watching TV"),
__tr("Just vegetating"),
__tr("Hey... Are ya sure that your network is up?"),
__tr("Seems like the world has stopped spinning"),
__tr("This silence is freaking me out!"),
__tr("Mieeeeeowww!"),
__tr("idle idle idle idle!")
}
#define __tr(__text__)
Definition: KviLocale.h:221

Referenced by KviTrayIconWidget::event().