KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
libkviwindow.cpp File Reference
#include "UserWindow.h"
#include "KviModule.h"
#include "KviConsoleWindow.h"
#include "KviOptions.h"
#include "KviIrcSocket.h"
#include "KviMainWindow.h"
#include "KviLocale.h"
#include "KviApplication.h"
#include "KviError.h"
#include "KviIrcView.h"
#include "KviInput.h"
#include "KviIconManager.h"
#include "KviModuleManager.h"
#include "KviMemory.h"
#include "KviChannelWindow.h"
#include "KviPointerHashTable.h"
#include <QTimer>

Macros

#define GET_KVS_FNC_WINDOW_ID
 
#define GET_KVS_WINDOW_ID
 

Functions

static bool window_kvs_cmd_activate (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_clearOutput (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_close (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_demandAttention (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_dock (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_fake (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_highlight (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_insertInInputText (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_listtypes (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_savePropertiesAsDefault (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_setBackground (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_setCryptEngine (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_setInputText (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_setWindowTitle (KviKvsModuleCommandCall *c)
 
static bool window_kvs_cmd_undock (KviKvsModuleCommandCall *c)
 
static bool window_kvs_fnc_activityLevel (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_activityTemperature (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_caption (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_console (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_context (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_cryptEngine (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_exists (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_fake (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_hasInput (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_hasOutput (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_hasUserFocus (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_highlightLevel (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_inputText (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_isDocked (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_list (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_open (KviKvsModuleFunctionCall *c)
 
static bool window_kvs_fnc_type (KviKvsModuleFunctionCall *c)
 
static bool window_module_can_unload (KviModule *)
 
static bool window_module_cleanup (KviModule *)
 
static bool window_module_init (KviModule *m)
 

Variables

KVIRC_API KviPointerHashTable
< QString, KviWindow > * 
g_pGlobalWindowDict
 
KviPointerList< UserWindow > * g_pUserWindowList = nullptr
 

Macro Definition Documentation

#define GET_KVS_FNC_WINDOW_ID
Value:
QString szWnd; \
KviWindow * pWnd; \
if(c->parameterList()->count() == 0) \
{ \
pWnd = c->window(); \
} \
else \
{ \
pWnd = g_pApp->findWindow(szWnd.toUtf8().data()); \
if(!pWnd) \
return true; \
}
Definition: KviKvsParameterProcessor.h:42
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
#define KVSM_PARAMETERS_BEGIN(pCall)
Definition: KviKvsModuleInterface.h:236
if(m_pFile) delete m_pFile
KVIRC_API KviApplication * g_pApp
Definition: KviApplication.cpp:151
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
#define KVS_PF_OPTIONAL
Definition: KviKvsParameterProcessor.h:142
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233
KviWindow * findWindow(const QString &windowId)
Definition: KviApplication.cpp:1807

Referenced by window_kvs_fnc_activityLevel(), window_kvs_fnc_activityTemperature(), window_kvs_fnc_caption(), window_kvs_fnc_console(), window_kvs_fnc_context(), window_kvs_fnc_cryptEngine(), window_kvs_fnc_exists(), window_kvs_fnc_hasInput(), window_kvs_fnc_hasOutput(), window_kvs_fnc_hasUserFocus(), window_kvs_fnc_highlightLevel(), window_kvs_fnc_inputText(), window_kvs_fnc_isDocked(), and window_kvs_fnc_type().

#define GET_KVS_WINDOW_ID
Value:
QString szWnd; \
KviWindow * pWnd; \
if(c->parameterList()->count() == 0) \
{ \
pWnd = c->window(); \
} \
else \
{ \
pWnd = g_pApp->findWindow(szWnd.toUtf8().data()); \
if(!pWnd) \
{ \
if(!c->hasSwitch('q', "quiet")) \
c->warning(__tr2qs("The window with ID '%s' doesn't exist"), szWnd.toUtf8().data()); \
return true; \
} \
}
#define __tr2qs(__text__)
Definition: KviLocale.h:224
Definition: KviKvsParameterProcessor.h:42
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
#define KVSM_PARAMETERS_BEGIN(pCall)
Definition: KviKvsModuleInterface.h:236
if(m_pFile) delete m_pFile
KVIRC_API KviApplication * g_pApp
Definition: KviApplication.cpp:151
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
#define KVS_PF_OPTIONAL
Definition: KviKvsParameterProcessor.h:142
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233
KviWindow * findWindow(const QString &windowId)
Definition: KviApplication.cpp:1807

Referenced by window_kvs_cmd_activate(), window_kvs_cmd_clearOutput(), window_kvs_cmd_close(), window_kvs_cmd_demandAttention(), window_kvs_cmd_dock(), window_kvs_cmd_savePropertiesAsDefault(), and window_kvs_cmd_undock().

Function Documentation

static bool window_kvs_cmd_activate ( KviKvsModuleCommandCall c)
static

References GET_KVS_WINDOW_ID.

Referenced by window_module_init().

static bool window_kvs_cmd_clearOutput ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_close ( KviKvsModuleCommandCall c)
static

References GET_KVS_WINDOW_ID.

Referenced by window_module_init().

static bool window_kvs_cmd_demandAttention ( KviKvsModuleCommandCall c)
static

References GET_KVS_WINDOW_ID.

Referenced by window_module_init().

static bool window_kvs_cmd_dock ( KviKvsModuleCommandCall c)
static

References GET_KVS_WINDOW_ID.

Referenced by window_module_init().

static bool window_kvs_cmd_fake ( KviKvsModuleCommandCall c)
static

Referenced by window_module_init().

static bool window_kvs_cmd_highlight ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_insertInInputText ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_listtypes ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_savePropertiesAsDefault ( KviKvsModuleCommandCall c)
static

References GET_KVS_WINDOW_ID.

Referenced by window_module_init().

static bool window_kvs_cmd_setBackground ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_setCryptEngine ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_setInputText ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_setWindowTitle ( KviKvsModuleCommandCall c)
static
static bool window_kvs_cmd_undock ( KviKvsModuleCommandCall c)
static

References GET_KVS_WINDOW_ID.

Referenced by window_module_init().

static bool window_kvs_fnc_activityLevel ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_activityTemperature ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_caption ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_console ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_context ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_cryptEngine ( KviKvsModuleFunctionCall c)
static

COMPILE_CRYPT_SUPPORT

COMPILE_CRYPT_SUPPORT

References GET_KVS_FNC_WINDOW_ID, KviKvsModuleFunctionCall::returnValue(), and KviKvsVariant::setString().

Referenced by window_module_init().

static bool window_kvs_fnc_exists ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_fake ( KviKvsModuleFunctionCall c)
static

Referenced by window_module_init().

static bool window_kvs_fnc_hasInput ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_hasOutput ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_hasUserFocus ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_highlightLevel ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_inputText ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_isDocked ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_list ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_open ( KviKvsModuleFunctionCall c)
static
static bool window_kvs_fnc_type ( KviKvsModuleFunctionCall c)
static
static bool window_module_can_unload ( KviModule )
static
static bool window_module_cleanup ( KviModule )
static
static bool window_module_init ( KviModule m)
static

Variable Documentation

KVIRC_API KviPointerHashTable<QString, KviWindow>* g_pGlobalWindowDict
KviPointerList<UserWindow>* g_pUserWindowList = nullptr

Referenced by window_module_cleanup().