summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgs.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-24 20:49:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-09-24 20:50:01 +0300
commit308aa7c5fbd0a6d8f5fadd9a85b1bfe39fbdb08b (patch)
treed846377c38184f74e1edd32b724377d824b789c3 /plugins/TabSRMM/src/msgs.h
parent87688568055a37961b1fa9cfe31cfaef064d3e1c (diff)
tabSRMM: death of proprietary option tree
Diffstat (limited to 'plugins/TabSRMM/src/msgs.h')
-rw-r--r--plugins/TabSRMM/src/msgs.h44
1 files changed, 20 insertions, 24 deletions
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h
index 1bcc55a762..693f5aa08c 100644
--- a/plugins/TabSRMM/src/msgs.h
+++ b/plugins/TabSRMM/src/msgs.h
@@ -682,7 +682,7 @@ public:
bool FormatTitleBar(const wchar_t *szFormat, CMStringW &dest);
bool GetAvatarVisibility(void);
void GetClientIcon(void);
- HICON GetMyContactIcon(LPCSTR szSetting);
+ HICON GetMyContactIcon(const CMOption<bool> *opt);
void GetMyNick(void);
HICON IconFromAvatar(void) const;
void KbdState(bool &isShift, bool &isControl, bool &isAlt);
@@ -814,10 +814,6 @@ struct TIconDescW
#define LOADHISTORY_COUNT 1
#define LOADHISTORY_TIME 2
-#define SRMSGSET_AUTOPOPUP "AutoPopup"
-#define SRMSGDEFSET_AUTOPOPUP false
-#define SRMSGSET_AUTOMIN "AutoMin"
-#define SRMSGDEFSET_AUTOMIN 0
#define SRMSGSET_MSGTIMEOUT "MessageTimeout"
#define SRMSGDEFSET_MSGTIMEOUT 30000
#define SRMSGSET_MSGTIMEOUT_MIN 5000 // minimum value (5 seconds)
@@ -892,25 +888,6 @@ struct TCpTable {
wchar_t *cpName;
};
-#define LOI_TYPE_FLAG 1
-#define LOI_TYPE_SETTING 2
-
-struct TOptionListGroup
-{
- HTREEITEM handle;
- wchar_t *szName;
-};
-
-struct TOptionListItem
-{
- HTREEITEM handle;
- wchar_t *szName;
- UINT id;
- UINT uType;
- UINT_PTR lParam;
- UINT uGroup;
-};
-
// sidebar button flags
#define SBI_TOP 1
@@ -1070,9 +1047,28 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
HANDLE hLogger;
+ // window settings
+ CMOption<bool> bAutoMin, bAutoClose, bFlashOnClist, bDeleteTemp;
+ CMOption<bool> bPasteAndSend, bSendFormat, bAutoSplit, bUseSameSplitSize, bAutoCopy;
+ CMOption<bool> bStatusOnTabs, bUseXStatus, bDetailedTooltips, bAllowOfflineMultisend;
+ CMOption<bool> bAutoPopup, bAutoTabs, bAutoSwitchTabs, bAutoContainer, bPopupContainer, bHideOnClose, bAllowTab;
+
+ // advanced options
+ CMOption<bool> bCloseSend, bShowDesc, bMetaTab, bMetaBar, bErrorPopup;
+
+ // chat settings
+ CMOption<bool> bOpenInDefault, bCreateWindowOnHighlight, bBBCodeInPopups;
+ CMOption<bool> bLogClassicIndicators, bAlternativeSorting, bAnnoyingHighlight;
+ CMOption<bool> bLogSymbols, bClassicIndicators, bClickableNicks, bColorizeNicks, bColorizeNicksInLog;
+ CMOption<bool> bScaleIcons, bNewLineAfterNames;
+
+ // typing settings
CMOption<bool> bPopups;
CMOption<bool> bTypingNew, bTypingUnknown;
+ // log settings
+ CMOption<bool> bLogStatusChanges, bUseDividers, bDividersUsePopupConfig;
+
CMPlugin();
int Load() override;