KVIrc
4.9.2
DeveloperAPIs
|
#include "KviOptions.h"
#include "kvi_defaults.h"
#include "KviConfigurationFile.h"
#include "KviApplication.h"
#include "KviIconManager.h"
#include "KviControlCodes.h"
#include "KviLocale.h"
#include "kvi_confignames.h"
#include "KviWindow.h"
#include "kvi_out.h"
#include "KviStringConversion.h"
#include "kvi_settings.h"
#include "KviMainWindow.h"
#include "KviInternalCommand.h"
#include "KviTheme.h"
#include "KviFileUtils.h"
#include <QMessageBox>
#include <QDir>
#include <QStringList>
Namespaces | |
KviTheme | |
Macros | |
#define | _KVI_OPTIONS_CPP_ |
#define | BOOL_OPTION(_txt, _val, _flags) KviBoolOption(KVI_BOOL_OPTIONS_PREFIX _txt, _val, _flags) |
#define | COLOR_OPTION(_name, _red, _green, _blue, _alpha, _flags) |
#define | FONT_OPTION(_name, _face, _size, _flags) |
#define | GET_OPTION_STRING(__numOpt, __table, __prefix, __prefixLen) |
#define | IC_COLOR_OPTION(_num, _red, _green, _blue) |
#define | LIST_OPTIONS(__txt, __num, __table) |
#define | MIRC_COLOR_OPTION(_num, _red, _green, _blue) |
#define | MSGTYPE_OPTION(_name, _text, _icon, _levl) |
#define | MSGTYPE_OPTION_SPEC(_name, _text, _icon, _fore, _back, _levl) |
#define | PIXMAP_OPTION(_name, _flags) |
#define | READ_ALL_OPTIONS(_num, _table, _readFnc) |
#define | READ_OPTIONS(_num, _table, _readFnc) |
#define | READ_OPTIONS(_num, _table, _readFnc) |
#define | RECT_OPTION(_txt, _val, _flags) KviRectOption(KVI_RECT_OPTIONS_PREFIX _txt, _val, _flags) |
#define | RUN_THE_BROWSER "run xdg-open $0" |
#define | SET_OPTION_VALUE(__numOpt, __table, __prefix, __prefixLen) |
#define | STRING_OPTION(_txt, _val, _flags) KviStringOption(KVI_STRING_OPTIONS_PREFIX _txt, _val, _flags) |
#define | STRINGLIST_OPTION(_txt, _flags) KviStringListOption(KVI_STRINGLIST_OPTIONS_PREFIX _txt, QStringList(), _flags) |
#define | STRINGLIST_OPTION_WITHDEFAULT(_txt, _flags, _def) KviStringListOption(KVI_STRINGLIST_OPTIONS_PREFIX _txt, QStringList(_def), _flags) |
#define | UINT_OPTION(_name, _value, _flags) |
#define | WRITE_OPTIONS(_num, _table) |
#define | WRITE_OPTIONS(_num, _table) |
Functions | |
bool | KviTheme::apply (const QString &szThemeDir, KviThemeInfo::Location eLocation, KviThemeInfo &buffer) |
static void | config_set_section (int flag, KviConfigurationFile *cfg) |
bool | KviTheme::save (KviThemeInfo &options, bool bSaveIcons) |
Variables | |
KviBoolOption | g_boolOptionsTable [KVI_NUM_BOOL_OPTIONS] |
KviColorOption | g_colorOptionsTable [KVI_NUM_COLOR_OPTIONS] |
KviFontOption | g_fontOptionsTable [KVI_NUM_FONT_OPTIONS] |
KviColorOption | g_iccolorOptionsTable [KVI_NUM_ICCOLOR_OPTIONS] |
KVIRC_API int | g_iIdentDaemonRunningUsers |
KviColorOption | g_mirccolorOptionsTable [KVI_NUM_MIRCCOLOR_OPTIONS] |
KviMessageTypeSettingsOption | g_msgtypeOptionsTable [KVI_NUM_MSGTYPE_OPTIONS] |
KviPixmapOption | g_pixmapOptionsTable [KVI_NUM_PIXMAP_OPTIONS] |
KviRectOption | g_rectOptionsTable [KVI_NUM_RECT_OPTIONS] |
KviStringListOption | g_stringlistOptionsTable [KVI_NUM_STRINGLIST_OPTIONS] |
KviStringOption | g_stringOptionsTable [KVI_NUM_STRING_OPTIONS] |
KviUIntOption | g_uintOptionsTable [KVI_NUM_UINT_OPTIONS] |
static const char * | options_section_table [KVI_NUM_OPTION_SECT_FLAGS] |
#define _KVI_OPTIONS_CPP_ |
#define BOOL_OPTION | ( | _txt, | |
_val, | |||
_flags | |||
) | KviBoolOption(KVI_BOOL_OPTIONS_PREFIX _txt, _val, _flags) |
#define COLOR_OPTION | ( | _name, | |
_red, | |||
_green, | |||
_blue, | |||
_alpha, | |||
_flags | |||
) |
#define FONT_OPTION | ( | _name, | |
_face, | |||
_size, | |||
_flags | |||
) |
#define GET_OPTION_STRING | ( | __numOpt, | |
__table, | |||
__prefix, | |||
__prefixLen | |||
) |
Referenced by KviApplication::getOptionString().
#define IC_COLOR_OPTION | ( | _num, | |
_red, | |||
_green, | |||
_blue | |||
) |
#define LIST_OPTIONS | ( | __txt, | |
__num, | |||
__table | |||
) |
Referenced by KviApplication::listAvailableOptions().
#define MIRC_COLOR_OPTION | ( | _num, | |
_red, | |||
_green, | |||
_blue | |||
) |
#define MSGTYPE_OPTION | ( | _name, | |
_text, | |||
_icon, | |||
_levl | |||
) |
#define MSGTYPE_OPTION_SPEC | ( | _name, | |
_text, | |||
_icon, | |||
_fore, | |||
_back, | |||
_levl | |||
) |
#define PIXMAP_OPTION | ( | _name, | |
_flags | |||
) |
#define READ_ALL_OPTIONS | ( | _num, | |
_table, | |||
_readFnc | |||
) |
Referenced by KviTheme::apply().
#define READ_OPTIONS | ( | _num, | |
_table, | |||
_readFnc | |||
) |
Referenced by KviTheme::apply(), and KviApplication::loadOptions().
#define READ_OPTIONS | ( | _num, | |
_table, | |||
_readFnc | |||
) |
#define RECT_OPTION | ( | _txt, | |
_val, | |||
_flags | |||
) | KviRectOption(KVI_RECT_OPTIONS_PREFIX _txt, _val, _flags) |
#define RUN_THE_BROWSER "run xdg-open $0" |
#define SET_OPTION_VALUE | ( | __numOpt, | |
__table, | |||
__prefix, | |||
__prefixLen | |||
) |
Referenced by KviApplication::setCommonOptionValue().
#define STRING_OPTION | ( | _txt, | |
_val, | |||
_flags | |||
) | KviStringOption(KVI_STRING_OPTIONS_PREFIX _txt, _val, _flags) |
#define STRINGLIST_OPTION | ( | _txt, | |
_flags | |||
) | KviStringListOption(KVI_STRINGLIST_OPTIONS_PREFIX _txt, QStringList(), _flags) |
#define STRINGLIST_OPTION_WITHDEFAULT | ( | _txt, | |
_flags, | |||
_def | |||
) | KviStringListOption(KVI_STRINGLIST_OPTIONS_PREFIX _txt, QStringList(_def), _flags) |
#define UINT_OPTION | ( | _name, | |
_value, | |||
_flags | |||
) |
#define WRITE_OPTIONS | ( | _num, | |
_table | |||
) |
Referenced by KviTheme::save(), and KviApplication::saveOptions().
#define WRITE_OPTIONS | ( | _num, | |
_table | |||
) |
|
static |
References options_section_table, and KviConfigurationFile::setGroup().
KviBoolOption g_boolOptionsTable[KVI_NUM_BOOL_OPTIONS] |
KviColorOption g_colorOptionsTable[KVI_NUM_COLOR_OPTIONS] |
KviFontOption g_fontOptionsTable[KVI_NUM_FONT_OPTIONS] |
KviColorOption g_iccolorOptionsTable[KVI_NUM_ICCOLOR_OPTIONS] |
Referenced by KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
KVIRC_API int g_iIdentDaemonRunningUsers |
Referenced by KviApplication::optionResetUpdate().
KviColorOption g_mirccolorOptionsTable[KVI_NUM_MIRCCOLOR_OPTIONS] |
Referenced by KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
KviMessageTypeSettingsOption g_msgtypeOptionsTable[KVI_NUM_MSGTYPE_OPTIONS] |
Referenced by KviTheme::apply(), KviApplication::getOptionString(), KviKvsCoreFunctions::KVSCF(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), MessageListWidgetItem::MessageListWidgetItem(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
KviPixmapOption g_pixmapOptionsTable[KVI_NUM_PIXMAP_OPTIONS] |
Referenced by KviOptionsWidget::addPixmapSelector(), KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setOptionValue().
KviRectOption g_rectOptionsTable[KVI_NUM_RECT_OPTIONS] |
Referenced by KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
KviStringListOption g_stringlistOptionsTable[KVI_NUM_STRINGLIST_OPTIONS] |
Referenced by KviOptionsWidget::addStringListSelector(), KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
KviStringOption g_stringOptionsTable[KVI_NUM_STRING_OPTIONS] |
Referenced by KviOptionsWidget::addDirectorySelector(), KviOptionsWidget::addFileSelector(), KviOptionsWidget::addPasswordSelector(), KviOptionsWidget::addSoundSelector(), KviOptionsWidget::addStringSelector(), KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
KviUIntOption g_uintOptionsTable[KVI_NUM_UINT_OPTIONS] |
Referenced by KviOptionsWidget::addMircTextColorSelector(), KviOptionsWidget::addUIntSelector(), KviTheme::apply(), KviApplication::getOptionString(), KviApplication::listAvailableOptions(), KviApplication::loadOptions(), KviTheme::save(), KviApplication::saveOptions(), and KviApplication::setCommonOptionValue().
|
static |
Referenced by config_set_section().