diff options
Diffstat (limited to 'include/m_gui.h')
-rw-r--r-- | include/m_gui.h | 33 |
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) \
|