-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlipTemplateEditor.h
41 lines (35 loc) · 1.13 KB
/
FlipTemplateEditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __FlipTemplateEditor__
#define __FlipTemplateEditor__
/**
@file
Subclass of TemplateEditor, which is generated by wxFormBuilder.
*/
#include "FlipMain.h"
#include <wx/timer.h>
//// end generated include
/** Implementing TemplateEditor */
class FlipTemplateEditor : public TemplateEditor
{
public:
/** Constructor */
FlipTemplateEditor(FlipMain *parent);
//// end generated class members
void OnFilePickerTextCtrlFocus(wxEvent &event);
void OnBtnAddTemplate(wxCommandEvent &event);
void OnBtnRemoveTemplate(wxCommandEvent &event);
void OnClose(wxCloseEvent &event);
void OnTemplateChoiceChanged(wxCommandEvent &event);
void OnTemplateEditorAutoSaveTimeout(wxTimerEvent &event);
void OnTemplateEditorTextChanged(wxCommandEvent &event);
void OnTemplateListUpdated(wxCommandEvent &event);
wxChoice *m_wxChoicePtr_Templates; // ptr to mainFrame's wxChoice for available and currently selected templates
private:
bool
m_templateFileWasDeleted = false,
m_templateFileWasLoaded = false;
FlipMain *m_mainFrame;
int m_teAutoSaveDelay = 2500;
wxString m_teCurrentTemplate;
wxTimer m_teAutoSaveTimer;
};
#endif // __FlipTemplateEditor__