29
29
class pgDialog : public wxDialog
32
pgDialog() { statusBar = 0; }
33
void RestorePosition(int defaultX=-1, int defaultY=-1, int defaultW=-1, int defaultH=-1, int minW=-1, int minH=-1);
35
void LoadResource(wxWindow *parent, const wxChar *name=0);
36
void RestorePosition(int defaultX = -1, int defaultY = -1, int defaultW = -1, int defaultH = -1, int minW = -1, int minH = -1);
38
void LoadResource(wxWindow *parent, const wxChar *name = 0);
38
void OnCancel(wxCommandEvent& ev);
39
void OnClose(wxCloseEvent& event);
44
wxStatusBar *statusBar;
41
void OnCancel(wxCommandEvent &ev);
42
void OnClose(wxCloseEvent &event);
47
wxStatusBar *statusBar;
52
55
class pgFrame : public wxFrame
55
pgFrame(wxFrame *parent, const wxString &title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long flags=wxDEFAULT_FRAME_STYLE) ;
57
void RemoveFrame(wxWindow *frame);
58
void AddFrame(wxWindow *wnd) { frames.Append(wnd); }
59
void RestorePosition(int defaultX=-1, int defaultY=-1, int defaultW=-1, int defaultH=-1, int minW=100, int minH=70);
61
void OnAction(wxCommandEvent& event);
63
void UpdateRecentFiles(bool updatefile=true);
65
menuFactoryList *GetMenuFactories() { return menuFactories; }
58
pgFrame(wxFrame *parent, const wxString &title, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long flags = wxDEFAULT_FRAME_STYLE) ;
60
void RemoveFrame(wxWindow *frame);
61
void AddFrame(wxWindow *wnd)
65
void RestorePosition(int defaultX = -1, int defaultY = -1, int defaultW = -1, int defaultH = -1, int minW = 100, int minH = 70);
67
void OnAction(wxCommandEvent &event);
69
void UpdateRecentFiles(bool updatefile = true);
71
menuFactoryList *GetMenuFactories()
69
void OnKeyDown(wxKeyEvent& event);
70
void OnExit(wxCommandEvent& event);
71
void OnRecent(wxCommandEvent& event);
72
void OnHelp(wxCommandEvent& event);
74
virtual void OpenLastFile() {}
75
virtual bool CheckChanged(bool canVeto) { return false; }
76
virtual wxString GetHelpPage() const { return wxEmptyString; }
79
menuFactoryList *menuFactories;
81
wxString lastFilename, lastDir, lastPath;
83
wxMenu *fileMenu, *editMenu, *viewMenu, *recentFileMenu, *helpMenu;
84
wxStatusBar *statusBar;
86
ctlMenuToolbar *toolBar;
78
void OnKeyDown(wxKeyEvent &event);
79
void OnExit(wxCommandEvent &event);
80
void OnRecent(wxCommandEvent &event);
81
void OnHelp(wxCommandEvent &event);
83
virtual void OpenLastFile() {}
84
virtual bool CheckChanged(bool canVeto)
88
virtual wxString GetHelpPage() const
94
menuFactoryList *menuFactories;
96
wxString lastFilename, lastDir, lastPath;
98
wxMenu *fileMenu, *editMenu, *viewMenu, *recentFileMenu, *helpMenu;
99
wxStatusBar *statusBar;
101
ctlMenuToolbar *toolBar;
104
DECLARE_EVENT_TABLE()
93
108
class DialogWithHelp : public pgDialog
96
DialogWithHelp(frmMain *frame);
111
DialogWithHelp(frmMain *frame);
100
void OnHelp(wxCommandEvent& ev);
115
void OnHelp(wxCommandEvent &ev);
103
virtual wxString GetHelpPage() const = 0;
104
DECLARE_EVENT_TABLE()
118
virtual wxString GetHelpPage() const = 0;
119
DECLARE_EVENT_TABLE()
107
122
class ExecutionDialog : public DialogWithHelp
110
ExecutionDialog(frmMain *frame, pgObject *_object);
111
virtual wxString GetSql()=0;
113
void OnOK(wxCommandEvent& ev);
114
void OnCancel(wxCommandEvent& ev);
115
void OnClose(wxCloseEvent& event);
125
ExecutionDialog(frmMain *frame, pgObject *_object);
126
virtual wxString GetSql() = 0;
128
void OnOK(wxCommandEvent &ev);
129
void OnCancel(wxCommandEvent &ev);
130
void OnClose(wxCloseEvent &event);
121
void EnableOK(const bool enable);
136
void EnableOK(const bool enable);
125
pgQueryThread *thread;
126
wxTextCtrl *txtMessages;
140
pgQueryThread *thread;
141
wxTextCtrl *txtMessages;
129
DECLARE_EVENT_TABLE()
144
DECLARE_EVENT_TABLE()
138
153
class ExternProcessDialog : public DialogWithHelp
141
ExternProcessDialog(frmMain *frame);
142
~ExternProcessDialog();
143
virtual wxString GetDisplayCmd(int version)=0;
144
virtual wxString GetCmd(int step)=0;
145
bool Execute(int step=0, bool finalStep=true);
156
ExternProcessDialog(frmMain *frame);
157
~ExternProcessDialog();
158
virtual wxString GetDisplayCmd(int version) = 0;
159
virtual wxString GetCmd(int step) = 0;
160
bool Execute(int step = 0, bool finalStep = true);
149
wxTextCtrl *txtMessages;
152
wxArrayString environment;
164
wxTextCtrl *txtMessages;
167
wxArrayString environment;
154
169
#if __GNUC__ >= 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
157
void OnOK(wxCommandEvent& ev);
158
void OnCancel(wxCommandEvent& ev);
159
void OnClose(wxCloseEvent& event);
172
void OnOK(wxCommandEvent &ev);
173
void OnCancel(wxCommandEvent &ev);
174
void OnClose(wxCloseEvent &event);
162
void OnEndProcess(wxProcessEvent& event);
163
void OnPollProcess(wxTimerEvent& event);
177
void OnEndProcess(wxProcessEvent &event);
178
void OnPollProcess(wxTimerEvent &event);
167
DECLARE_EVENT_TABLE()
182
DECLARE_EVENT_TABLE()