NIREP
|
00001 00002 // Name: GaugeNotification.h 00003 // Purpose: Currently not using. We found a better way to let the user know 00004 // that the data is currently loading. Might want to think about 00005 // getting rid of this class. 00006 // Author: Jeffrey Hawley 00007 // Modified by: 00008 // Created: 19/01/2010 17:13:40 00009 // RCS-ID: 00010 // Copyright: 00011 // Licence: 00013 00014 #ifndef _GAUGENOTIFICATION_H_ 00015 #define _GAUGENOTIFICATION_H_ 00016 00017 00022 00023 #include "wx/frame.h" 00025 00030 00031 00032 00037 00038 #define ID_GAUGENOTIFICATION 10018 00039 #define ID_PANEL3 10019 00040 #define ID_GAUGE1 10020 00041 #define ID_TEXTCTRL1 10021 00042 #define TIMER_ID 10022 00043 #define SYMBOL_GAUGENOTIFICATION_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX 00044 #define SYMBOL_GAUGENOTIFICATION_TITLE _("Status: Loading Widgets") 00045 #define SYMBOL_GAUGENOTIFICATION_IDNAME ID_GAUGENOTIFICATION 00046 #define SYMBOL_GAUGENOTIFICATION_SIZE wxSize(400, 300) 00047 #define SYMBOL_GAUGENOTIFICATION_POSITION wxDefaultPosition 00048 00049 00050 00055 class GaugeNotification: public wxFrame 00056 { 00057 DECLARE_CLASS( GaugeNotification ) 00058 DECLARE_EVENT_TABLE() 00059 00060 public: 00062 GaugeNotification(); 00063 GaugeNotification( wxWindow* parent, wxWindowID id = SYMBOL_GAUGENOTIFICATION_IDNAME, const wxString& caption = SYMBOL_GAUGENOTIFICATION_TITLE, const wxPoint& pos = SYMBOL_GAUGENOTIFICATION_POSITION, const wxSize& size = SYMBOL_GAUGENOTIFICATION_SIZE, long style = SYMBOL_GAUGENOTIFICATION_STYLE ); 00064 00065 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_GAUGENOTIFICATION_IDNAME, const wxString& caption = SYMBOL_GAUGENOTIFICATION_TITLE, const wxPoint& pos = SYMBOL_GAUGENOTIFICATION_POSITION, const wxSize& size = SYMBOL_GAUGENOTIFICATION_SIZE, long style = SYMBOL_GAUGENOTIFICATION_STYLE ); 00066 00068 ~GaugeNotification(); 00069 00071 void Init(); 00072 00074 void CreateControls(); 00075 00077 00079 00081 00083 wxBitmap GetBitmapResource( const wxString& name ); 00084 00086 wxIcon GetIconResource( const wxString& name ); 00088 00090 static bool ShowToolTips(); 00091 00092 void AddItem( std::string item ); 00093 00094 void OnTimer(wxTimerEvent& event); 00095 00098 private: 00099 wxTextCtrl* itemTextCtrl6; 00100 wxTimer *my_timer; 00101 wxGauge* itemGauge5; 00102 }; 00103 00104 #endif 00105 // _GAUGENOTIFICATION_H_