BlockIPPlatform
 All Classes Files Functions Variables
MainFrame.h
Go to the documentation of this file.
1 #ifndef __MainFrame__
2 #define __MainFrame__
3 
10 #include "GUIBlockIP.h"
11 #include <string>
12 #include <wx/event.h>
13 #include "MyProcess.h"
14 
16 
19 {
20  enum timertype { wakeupidle=5000 };
21 
22  public:
24  MainFrame( wxWindow* parent );
25  ~MainFrame();
26  void OnProcessCompletion();
27 
28  protected:
29  // Handlers for MainFrameBlockIP events.
30  void actionClick( wxCommandEvent& event );
31  void inputClick( wxCommandEvent& event );
32  void convertClick( wxCommandEvent& event );
33  void modOver( wxMouseEvent& event );
34  void leaveOver( wxMouseEvent& event );
35  void datOver( wxMouseEvent& event );
36  void mpsOver( wxMouseEvent& event );
37  void outMpsOver( wxMouseEvent& event );
38  void outputOver( wxMouseEvent& event );
39  void standarizeOver( wxMouseEvent& event );
40  void solverOver( wxMouseEvent& event );
41  void solverClick( wxCommandEvent& event );
42  void timeOver( wxMouseEvent& event );
43  void threadsOver( wxMouseEvent& event );
44  void advancedClick( wxMouseEvent& event );
45  void typeDirectionOver( wxMouseEvent& event );
46  void typeCompDyOver( wxMouseEvent& event );
47  void mPwPrecOver( wxMouseEvent& event );
48  void deactivateLnkOver( wxMouseEvent& event );
49  void typeRegOver( wxMouseEvent& event );
50  void factorRegOver( wxMouseEvent& event );
51  void infOver( wxMouseEvent& event );
52  void sigmaOver( wxMouseEvent& event );
53  void gapOver( wxMouseEvent& event );
54  void rhoOver( wxMouseEvent& event );
55  void pfeasOver( wxMouseEvent& event );
56  void outFreqOver( wxMouseEvent& event );
57  void dfeasOver( wxMouseEvent& event );
58  void initPcgtolOver( wxMouseEvent& event );
59  void iterOver( wxMouseEvent& event );
60  void minPcgtolOver( wxMouseEvent& event );
61  void iterPcgOver( wxMouseEvent& event );
62  void redPcgtolOver( wxMouseEvent& event );
63  void specradOver( wxMouseEvent& event );
64  void interactiveOver( wxMouseEvent& event );
65  void optionsClick( wxCommandEvent& event );
66  void logClick( wxCommandEvent& event );
67  void solClick( wxCommandEvent& event );
68  void clearClick( wxCommandEvent& event );
69  void startClick( wxCommandEvent& event );
71 
72  void inputEnter( wxCommandEvent& event );
73 
74  void OnProcessTimer(wxTimerEvent& WXUNUSED(event));
75  void OnIdle(wxIdleEvent& event);
76 
77  private:
78  int argc;
79  char **argv;
80  std::streambuf *sbCout;
81  std::streambuf *sbCerr;
82  MyProcess *process;
83  wxTimer timerIdleWakeUp;
84  wxString inputString;
85  char *filename;
86  std::string outDir;
87  bool toSolve;
88  wxDECLARE_EVENT_TABLE();
89 };
90 
91 #endif // __MainFrame__