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

ngui.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 _NGUI_H
00012 #define _NGUI_H
00013 
00014 #include <wx/wx.h>
00015 #include "nviz3d/nviz3d.h"
00016 
00018 // NguiApp class Declaration
00020 
00021 class NguiApp: public wxApp
00022 {
00023 public:
00024     virtual bool OnInit();
00025 };
00026 
00027 
00029 // NguiFrame class Declaration
00031 class NguiFrame: public wxFrame
00032 {
00033 public:
00034     NguiFrame(const wxString &title, const wxPoint &pos, const wxSize &size,
00035               long style);
00036     void OnAbout(wxCommandEvent &event);
00037     void OnLoadNetwork(wxCommandEvent &event);
00038     void OnNewNetwork(wxCommandEvent &event);
00039     void OnOpenLog(wxCommandEvent &event);
00040     void OnQuit(wxCommandEvent &event);
00041     void OnSaveNetwork(wxCommandEvent &event);
00042     void Log(wxString str){txt_log << str};
00043 
00044 private:
00045     wxDialog *dlg_log;
00046     wxTextCtrl *txt_log;
00047     DECLARE_EVENT_TABLE()
00048 };
00049 
00051 // NetDialog class Declaration
00053 class NetDialog: public wxDialog
00054 {
00055 public:
00056     NetDialog(wxWindow *parent, wxWindowID id, const wxString &title,
00057               const wxPoint& pos = wxDefaultPosition,
00058               const wxSize& size = wxDefaultSize,
00059               long style = wxDEFAULT_DIALOG_STYLE);
00060     wxButton *btn_newinput;
00061     wxButton *btn_delinput;
00062     wxButton *btn_setwghts;
00063     wxButton *btn_train;
00064     wxButton *btn_run;
00065     wxButton *btn_setdesrd;
00066     wxButton *btn_showdiag;
00067     wxButton *btn_quit;
00068     wxTextCtrl *txt_bias;
00069     wxTextCtrl *txt_squashval;
00070     wxStaticText *stc_bias;
00071     wxStaticText *stc_squashval;
00072 private:
00073     void OnNewInput(wxCommandEvent &event);
00074     void OnDelInput(wxCommandEvent &event);
00075     void OnSetWghts(wxCommandEvent &event);
00076     void OnSetDesrd(wxCommandEvent &event);
00077     void OnTrain(wxCommandEvent &event);
00078     void OnRun(wxCommandEvent &event);
00079     void OnShowDiag(wxCommandEvent &event);
00080     void OnQuit(wxCommandEvent &event);
00081     DECLARE_EVENT_TABLE()
00082 };
00083 
00084 // IDs for the menu command
00085 enum
00086 {
00087     NguiFrame_About,
00088     NguiFrame_LoadNetwork,
00089     NguiFrame_NewNetwork,
00090     NguiFrame_Quit,
00091     NguiFrame_SaveNetwork,
00092     NguiFrame_OpenLog,
00093     NetDialog_NEWINPUT_BTN,
00094     NetDialog_DELINPUT_BTN,
00095     NetDialog_SETWGHTS_BTN,
00096     NetDialog_SETDESRD_BTN,
00097     NetDialog_TRAIN_BTN,
00098     NetDialog_RUN_BTN,
00099     NetDialog_SHOWDIAG_BTN,
00100     NetDialog_QUIT_BTN,
00101     NetDialog_BIAS_TXT,
00102     NetDialog_SQUASHVAL_TXT
00103 };
00104 
00105 DECLARE_APP(NguiApp)
00106 
00107 #endif   // _GUI_H

Generated on Mon Jun 23 23:09:51 2003 for NeReK Documentation by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002