Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

gui.h

Go to the documentation of this file.
00001 
00002 // Name:        gui.h
00003 // Purpose:     Header for gui code
00004 // Author:      Chad Rempp
00005 // Modified by: Chad Rempp
00006 // Created:     05-20-03
00007 // Copyright:   (c) 2003 Chad Rempp
00008 // Licence:     GNU Public License (hey it's what all my friends are doing)
00010 
00011 #ifndef _GUI_H
00012 #define _GUI_H
00013 
00014 #include <wx/wx.h>
00015 
00017 // wxApp Class          NGuiApp
00019 
00020 class NGuiApp: public wxApp
00021 {
00022   public:
00023       virtual bool OnInit();
00024 };
00025 
00026 
00028 // wxFrame Class        mainFrame
00030 class mainFrame: public wxFrame
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       // Any class wishing to process wxWindows events must use this macro
00041       DECLARE_EVENT_TABLE()
00042 };
00043 
00045 // wxDialog Class        netDialog
00047 class netDialog: public wxDialog
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 // wxGLCanvas Class        netGLCanvas
00081 //class netGLCanvas: public wxGLCanvas
00082 //{
00083 //    friend class mainFrame;
00084 //    public:
00085 //        netGLCanvas(wxWindow *parent, const wxWindowID id = -1,
00086 //            const wxPoint& pos = wxDefaultPosition, const wxSize& = wxDefaultSize,
00087 //            long style = 0,const wxString& name = "Net Diagram");
00088 //        void Render(void);
00089 //        void InitGL(void);
00090 //    private:
00091 //        DECLARE_EVENT_TABLE()
00092 //};
00093 
00094 // IDs for the menu command
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

Generated on Mon Jun 9 19:13:21 2003 for NeReK Documentation by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002