-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwxsEditorMain.h
More file actions
98 lines (82 loc) · 2.6 KB
/
wxsEditorMain.h
File metadata and controls
98 lines (82 loc) · 2.6 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/***************************************************************
* Name: wxsEditorMain.h
* Purpose: Defines Application Frame
* Author: ImprobabilityCast
* Created: 2016-11-20
* Copyright: ImprobabilityCast
* License:
**************************************************************/
#define MAJOR_VERSION 1
#define MINOR_VERSION 2
#define RELEASE_NUMBER 1
#define SUBRELEASE_NUMBER 35
#define VERSION_STRING wxT("wxsEditor v1.2.1")
#ifndef WXSEDITORMAIN_H
#define WXSEDITORMAIN_H
#include <wx/msgdlg.h>
#include <wx/filename.h>
#include <fstream>
#include <sys/stat.h>
//(*Headers(wxsEditorFrame)
#include <wx/sizer.h>
#include <wx/menu.h>
#include <wx/textctrl.h>
#include <wx/panel.h>
#include <wx/bmpbuttn.h>
#include <wx/gbsizer.h>
#include <wx/frame.h>
#include <wx/statusbr.h>
//*)
class wxsEditorFrame: public wxFrame
{
public:
wxsEditorFrame(wxWindow* parent,wxWindowID id = -1);
virtual ~wxsEditorFrame();
//added my function
void CheckCmdParamaters(wxString& cmdParam);
private:
//my added variables
wxString path;
//wxString fileName;
bool isTextChanged;
//define file types
const wxChar* FILETYPES;
//added my functions
int AskSave();
void Save(bool showDialog);
//(*Handlers(wxsEditorFrame)
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnOpen(wxCommandEvent& event);
void OnRefresh(wxCommandEvent& event);
void OnSave(wxCommandEvent& event);
void OnSaveAs(wxCommandEvent& event);
void OnTextCtrl1Text(wxCommandEvent& event);
void OnClose(wxCloseEvent& event);
void OnResize(wxSizeEvent& event);
void OnCloseCurrentFile(wxCommandEvent& event);
//*)
//(*Identifiers(wxsEditorFrame)
static const long ID_TEXTCTRL1;
static const long ID_BITMAPBUTTON1;
static const long ID_BITMAPBUTTON2;
static const long ID_PANEL1;
static const long idMenuOpen;
static const long idMenuRefresh;
static const long idMenuSave;
static const long idMenuSaveAs;
static const long idMenuClose;
static const long idMenuQuit;
static const long idMenuAbout;
static const long ID_STATUSBAR1;
//*)
//(*Declarations(wxsEditorFrame)
wxPanel* Panel1;
wxBitmapButton* BitmapButton2;
wxBitmapButton* BitmapButton1;
wxStatusBar* StatusBar1;
wxTextCtrl* TextCtrl1;
//*)
DECLARE_EVENT_TABLE()
};
#endif // WXSEDITORMAIN_H