diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2018-12-25 17:09:32 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2018-12-25 17:09:32 +0300 |
commit | 17715ed627a2c5bf2e20e358d9bedb2cbd83e846 (patch) | |
tree | 70828b06a4637cb14cc3a80b183c86cf3f2b2310 /plugins/Folders/src/stdafx.h | |
parent | a475a1ad46ab81048272419c368365c147242b44 (diff) |
Folders: moved to m_gui
Diffstat (limited to 'plugins/Folders/src/stdafx.h')
-rw-r--r-- | plugins/Folders/src/stdafx.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/plugins/Folders/src/stdafx.h b/plugins/Folders/src/stdafx.h index 778d44d73a..d728034d9e 100644 --- a/plugins/Folders/src/stdafx.h +++ b/plugins/Folders/src/stdafx.h @@ -36,6 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <m_options.h>
#include <m_string.h>
#include <m_langpack.h>
+#include <m_gui.h>
#include <m_variables.h>
#include <m_folders.h>
@@ -64,4 +65,53 @@ struct CMPlugin : public PLUGIN<CMPlugin> extern OBJLIST<CFolderItem> lstRegisteredFolders;
+class COptDialog : public CDlgBase
+{
+private:
+ CCtrlListBox m_lbSections, m_lbItems;
+ CCtrlEdit m_edtPreview, m_edtEdit;
+ CCtrlButton m_btnRefresh, m_btnHelp;
+
+protected:
+ bool OnInitDialog() override;
+ bool OnApply() override;
+
+ void OnEditChange(CCtrlBase*);
+ void OnRefreshClick(CCtrlBase*);
+ void OnHelpClick(CCtrlBase*);
+ void OnSectionsSelChange(CCtrlBase*);
+ void OnItemsSelChange(CCtrlBase*);
+
+ PFolderItem GetSelectedItem();
+ void GetEditText(wchar_t *buffer, int size);
+ void SetEditText(const wchar_t *buffer);
+ int ContainsSection(const wchar_t *section);
+ void LoadRegisteredFolderSections();
+ void LoadRegisteredFolderItems();
+ void RefreshPreview();
+ void LoadItem(PFolderItem item);
+ void SaveItem(PFolderItem item, int bEnableApply);
+ int ChangesNotSaved(PFolderItem item);
+ void CheckForChanges(int bNeedConfirmation);
+
+public:
+ COptDialog();
+};
+
+class CHelpDialog : public CDlgBase
+{
+private:
+ CCtrlButton m_btnClose;
+ CCtrlRichEdit m_redtHelp;
+
+protected:
+ bool OnInitDialog() override;
+ bool OnClose() override;
+
+ void OnCloseClick(CCtrlBase*);
+
+public:
+ CHelpDialog();
+};
+
#endif //FOLDERS_COMMONHEADERS_H
\ No newline at end of file |