00001
00002
00003
00004
00005
00006
00007
00008
00010
00011 #ifndef _GUI_H
00012 #define _GUI_H
00013
00014 #include <wx/wx.h>
00015
00017
00019
00020 class NGuiApp: public wxApp
00021 {
00022 public:
00023 virtual bool OnInit();
00024 };
00025
00026
00028
00030
00031 {
00032 public:
00033 mainFrame(const wxString &title, const wxPoint &pos, const wxSize &size,
00034 long style);
00035 void OnQuit(wxCommandEvent &event);
00036 void OnNewPerceptron(wxCommandEvent &event);
00037 void OnNewMultiPercp(wxCommandEvent &event);
00038
00039 private:
00040
00041 DECLARE_EVENT_TABLE()
00042 };
00043
00045
00047
00048 {
00049 public:
00050 netDialog(wxWindow *parent, wxWindowID id, const wxString &title,
00051 const wxPoint& pos = wxDefaultPosition,
00052 const wxSize& size = wxDefaultSize,
00053 long style = wxDEFAULT_DIALOG_STYLE);
00054 wxButton *btn_newinput;
00055 wxButton *btn_delinput;
00056 wxButton *btn_setwghts;
00057 wxButton *btn_train;
00058 wxButton *btn_run;
00059 wxButton *btn_setdesrd;
00060 wxButton *btn_showdiag;
00061 wxButton *btn_quit;
00062 wxTextCtrl *txt_bias;
00063 wxTextCtrl *txt_squashval;
00064 wxStaticText *stc_bias;
00065 wxStaticText *stc_squashval;
00066 private:
00067 void OnNewInput(wxCommandEvent &event);
00068 void OnDelInput(wxCommandEvent &event);
00069 void OnSetWghts(wxCommandEvent &event);
00070 void OnSetDesrd(wxCommandEvent &event);
00071 void OnTrain(wxCommandEvent &event);
00072 void OnRun(wxCommandEvent &event);
00073 void OnShowDiag(wxCommandEvent &event);
00074 void OnQuit(wxCommandEvent &event);
00075 DECLARE_EVENT_TABLE()
00076 };
00077
00079
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095 enum
00096 {
00097 mainFrame_Quit,
00098 mainFrame_NewPerceptron,
00099 mainFrame_NewMultiPercp,
00100 netDialog_NEWINPUT_BTN,
00101 netDialog_DELINPUT_BTN,
00102 netDialog_SETWGHTS_BTN,
00103 netDialog_SETDESRD_BTN,
00104 netDialog_TRAIN_BTN,
00105 netDialog_RUN_BTN,
00106 netDialog_SHOWDIAG_BTN,
00107 netDialog_QUIT_BTN,
00108 netDialog_BIAS_TXT,
00109 netDialog_SQUASHVAL_TXT
00110 };
00111
00112 DECLARE_APP(NGuiApp)
00113
00114 #endif // _GUI_H