summaryrefslogtreecommitdiff
path: root/include/m_gui.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-01 15:46:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-01 15:46:26 +0300
commit5687e029d151d4590693c66da8440acb0fca1910 (patch)
tree2bc1c22693e9f0da2aae6cd74075a58dcd20a6d7 /include/m_gui.h
parent03b421197a6af2c626b87830f7309b7110ce5561 (diff)
CPluginDlgBase: this class became useless because CMPlugin already has module setting
Diffstat (limited to 'include/m_gui.h')
-rw-r--r--include/m_gui.h33
1 files changed, 10 insertions, 23 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index 2f0a05baf3..d6ed08a7c6 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -461,6 +461,16 @@ protected:
void AddControl(CCtrlBase *ctrl);
void AddTimer(CTimer *timer);
+ // options support
+ void CreateLink(CCtrlData& ctrl, const char *szSetting, BYTE type, DWORD iValue);
+ void CreateLink(CCtrlData& ctrl, const char *szSetting, wchar_t *szValue);
+
+ template<class T>
+ __inline void CreateLink(CCtrlData& ctrl, CMOption<T> &option)
+ {
+ ctrl.CreateDbLink(new CMOptionLink<T>(option));
+ }
+
// win32 stuff
void ThemeDialogBackground(BOOL tabbed);
@@ -1492,29 +1502,6 @@ protected:
TProto* m_proto;
};
-class CPluginDlgBase : public CDlgBase
-{
- const char *m_szModule;
-public:
- CPluginDlgBase(CMPluginBase &pPlug, int idDialog, const char *module) :
- CDlgBase(pPlug, idDialog), m_szModule(module)
- {};
-
- void CreateLink(CCtrlData& ctrl, const char *szSetting, BYTE type, DWORD iValue)
- {
- ctrl.CreateDbLink(m_szModule, szSetting, type, iValue);
- }
- void CreateLink(CCtrlData& ctrl, const char *szSetting, wchar_t *szValue)
- {
- ctrl.CreateDbLink(m_szModule, szSetting, szValue);
- }
- template<class T>
- __inline void CreateLink(CCtrlData& ctrl, CMOption<T> &option)
- {
- ctrl.CreateDbLink(new CMOptionLink<T>(option));
- }
-};
-
/////////////////////////////////////////////////////////////////////////////////////////
// Safe open/close dialogs
#define UI_SAFE_OPEN(dlgClass, dlgPtr) \