/users/dtb26/GITROOT/vetsim/vs-cpr/src/wxcpr.h

Go to the documentation of this file.
00001 
00005 /*
00006 * AUTHOR    : David Brooks (dtb26@cornell.edu)
00007 * PLATFORM  : non-specific
00008 * DATE      : 10/26/2012 11:18:42 AM
00009 * COPYRIGHT : TBD
00010 *
00011 * File      : $Source:$
00012 * Revision  : $Revision:$
00013 * Author    : $Author:$
00014 * Date      : $Date:$
00015 * Tag name  : $Name:$
00016 * Locker    : $Locker:$
00017 * State     : $State: Exp $
00018 */
00019 
00020 #ifndef WX_VETSIM_CPR_GUI_H
00021 #define WX_VETSIM_CPR_GUI_H
00022 
00023 #ifdef _WIN32
00024 #define _CRT_SECURE_NO_DEPRECATE        // it appears that something in wxwidgets is linking against string.h
00025 #define _CRT_SECURE_NO_WARNINGS         // and making use of old-school strcpy() and other insecure routines
00026 #endif                                                          // I cant do anything about it; these defines just remove the warning spam
00027 
00028 #define WIN32_LEAN_AND_MEAN
00029 #define WX_LEAN_AND_MEAN
00030 
00031 // for the app
00032 #include <boost/bind.hpp>
00033 #include <boost/thread.hpp>
00034 #include <boost/lexical_cast.hpp>
00035 #include <boost/date_time/posix_time/posix_time_types.hpp>
00036 
00037 // for wxWidgets
00038 #include <wx/wx.h>
00039 #include <wx/aui/aui.h>         // not part of wx.h
00040 
00041 // for cpr
00042 #include "dialogs.h"
00043 #include "serialcfg.h"
00044 #include "prefscfg.h"
00045 
00047 
00048 namespace cornelluniversity {
00049 namespace vetcpr {
00050 
00064 class VetSimApp : public wxApp {
00065         public:
00066         virtual bool OnInit();
00067 };//eoc VetSimApp{...}
00068 
00069 
00070 
00077 class MainFrame : public wxFrame 
00078 {
00079         public:
00080         
00081         MainFrame( wxWindow* parent, wxWindowID id = ID_FRAME_MAIN, const wxString& title = _("VetSim: CPR"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 776,497 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_FRAME_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxSYSTEM_MENU|wxTAB_TRAVERSAL, const wxString& name = wxT("FRAME_MAIN") );
00082         ~MainFrame();
00083         
00084         wxAuiManager m_mgr;
00085 
00086         protected:
00090         enum {
00091                 ID_FRAME_MAIN = 1000,                           
00092                 ID_TEXT_EXAMPLE,                                        
00093                 ID_STATUSBAR_MAIN,                                      
00094                 ID_MENUBAR_MAIN,                                        
00095                 ID_MENUITEM_FILE_SERIAL_CONNECT,        
00096                 ID_MENUITEM_FILE_SERIAL_DISCONNECT,     
00097                 ID_MENUITEM_FILE_QUIT,                          
00098                 ID_MENUITEM_TOOLS_SERIAL,                       
00099                 ID_MENUITEM_TOOLS_PREFERENCES,          
00100                 ID_MENUITEM_HELP_ABOUT,                         
00101                 ID_MENUITEM_HELP_HELP,                          
00102         };
00103 
00108         virtual void doApplicationAbout( wxCommandEvent& event );
00113         virtual void doApplicationCfg( wxCommandEvent& event );
00119         virtual void doApplicationHelp( wxCommandEvent& event );
00124         virtual void doApplicationQuit( wxCommandEvent& event );
00129         virtual void doSerialCfg( wxCommandEvent& event );
00134         virtual void doSerialConnect( wxCommandEvent& event );
00139         virtual void doSerialQuit( wxCommandEvent& event );
00140 
00141         wxTextCtrl*  m_text_example;                    
00142         wxStatusBar* m_status_main;                             
00143         wxMenuBar*   m_menubar_main;                    
00144         wxMenu*      m_menu_file;                               
00145         wxMenu*      m_menuitem_file_serial;    
00146         wxMenu*      m_menu_tools;                              
00147         wxMenu*      m_menu_help;                               
00149 }; //eoc MainFrame{...}
00150         
00151 } // namespace vetcpr
00152 } // namespace cornelluniversity
00153 
00154 #endif // WX_VETSIM_CPR_GUI_H

Generated on Wed Nov 14 12:01:01 2012 for VetSim Applications by  doxygen 1.4.7