diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-02 23:48:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-02 23:48:48 +0300 |
commit | 2714df91a4aaf00d3a05b1675769d2fdb4350287 (patch) | |
tree | 88d7f1bb5d1ab2220eb877ac3477609cab06b129 /plugins/TabSRMM/src/msgs.h | |
parent | ebdfc32619b48385a2012ccec72c5239579b6c41 (diff) |
fixes #967 (Broken templates preview in TabSRMM native templates editor)
Diffstat (limited to 'plugins/TabSRMM/src/msgs.h')
-rw-r--r-- | plugins/TabSRMM/src/msgs.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index 8e70c0ae7e..397e5aba17 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -555,6 +555,47 @@ public: void UpdateWindowState(UINT msg);
};
+class CTemplateEditDlg : public CTabBaseDlg
+{
+ typedef CTabBaseDlg CSuper;
+
+ BOOL rtl;
+ BOOL changed; // template in edit field is changed
+ BOOL selchanging;
+ int inEdit; // template currently in editor
+ BOOL updateInfo[TMPL_ERRMSG + 1]; // item states...
+
+ TTemplateSet *tSet;
+
+ CCtrlEdit edtText;
+ CCtrlButton btnResetAll, btnHelp, btnSave, btnForget, btnRevert, btnPreview;
+ CCtrlListBox listTemplates;
+
+ virtual CThumbBase* tabCreateThumb(CProxyWindow*) const override { return nullptr; }
+ virtual void tabClearLog() override {}
+ virtual void UpdateTitle() override {};
+
+public:
+ CTemplateEditDlg(BOOL rtl, HWND hwndParent);
+
+ virtual void OnInitDialog() override;
+ virtual void OnDestroy() override;
+
+ virtual INT_PTR DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
+
+ void onChange_Text(CCtrlEdit*);
+
+ void onClick_Forget(CCtrlButton*);
+ void onClick_Help(CCtrlButton*);
+ void onClick_Preview(CCtrlButton*);
+ void onClick_Reset(CCtrlButton*);
+ void onClick_Revert(CCtrlButton*);
+ void onClick_Save(CCtrlButton*);
+
+ void onDblClick_List(CCtrlListBox*);
+ void onSelChange_List(CCtrlListBox*);
+};
+
#define MESSAGE_WINDOW_DATA_SIZE offsetof(_MessageWindowData, hdbEventFirst);
struct RECENTINFO
|