CompDlg.h
gehe zur Dokumentation dieser Datei
00001 // -*- C++ -*-
00041 #ifndef _COMPDLG_H_
00042 #define _COMPDLG_H_
00043 
00044 /*
00045 #if defined(__GNUG__) && !defined(__APPLE__)
00046 #pragma interface "CompDlg.cpp"
00047 #endif
00048 */
00053 #include "wx/wx.h"
00054 #include "wx/statline.h"
00055 #include "wx/filepicker.h"
00056 #include "wx/xrc/xmlres.h"
00057 #include "wx/html/htmlwin.h"
00058 #include "resourceload.h"
00061 
00066 
00067 
00068 
00073 
00074 
00075 
00076 
00081 class CompDlg: public CompileDlg
00082 {
00083         //DECLARE_DYNAMIC_CLASS( CompDlg )
00084         //DECLARE_EVENT_TABLE()
00085 
00086 public:
00088         //  CompDlg():CompileDlg() {}
00089         CompDlg(wxWindow * parent = NULL): CompileDlg(parent)
00090         {}
00091 
00092         ~CompDlg()
00093         {}
00094 
00095         wxStaticText * GetLine()
00096         {
00097                 return line;
00098         }
00099 
00100         void SetStatus(wxString l, wxString to, wxString tu,
00101                        wxString ts, wxString i, wxString ch)
00102         {
00103                 if (logic)
00104                         logic->SetLabel(l);
00105 
00106                 if (tones)
00107                         tones->SetLabel(to);
00108 
00109                 if (tunes)
00110                         tunes->SetLabel(tu);
00111 
00112                 if (tone_system)
00113                         tone_system->SetLabel(ts);
00114 
00115                 if (intervals)
00116                         intervals->SetLabel(i);
00117 
00118                 if (chars)
00119                         chars->SetLabel(ch);
00120 
00121                 Layout();
00122         }
00123 
00124         void SetFileName(wxString s)
00125         {
00126                 if (filename)
00127                         filename->SetLabel(s);
00128         }
00129 
00130         void SetButtonText(wxString s)
00131         {
00132                 if (wxID_OK)
00133                         wxID_OK->SetLabel(s);
00134         }
00135 
00136         void SetMessage(wxString s)
00137         {
00138                 if (message)
00139                         message->SetLabel(s);
00140         }
00141 
00142         void EnableButton(bool enable = true)
00143         {
00144                 if (wxID_OK)
00145                         wxID_OK->Enable(enable);
00146         }
00147 
00148         /*
00149           CompDlg( wxWindow* parent, wxWindowID id = SYMBOL_COMPDLG_IDNAME, const wxString& caption = SYMBOL_COMPDLG_TITLE, const wxPoint& pos = SYMBOL_COMPDLG_POSITION, const wxSize& size = SYMBOL_COMPDLG_SIZE, long style = SYMBOL_COMPDLG_STYLE );
00150 
00152           bool Create( wxWindow* parent, wxWindowID id = SYMBOL_COMPDLG_IDNAME, const wxString& caption = SYMBOL_COMPDLG_TITLE, const wxPoint& pos = SYMBOL_COMPDLG_POSITION, const wxSize& size = SYMBOL_COMPDLG_SIZE, long style = SYMBOL_COMPDLG_STYLE );
00153 
00155           void CreateControls();
00156 
00158 
00160 
00162 
00164           wxBitmap GetBitmapResource( const wxString& name );
00165 
00167           wxIcon GetIconResource( const wxString& name );
00169         void SetText(wxWindowID id1, const wxString& s) { 
00170         this->FindWindow(id1)->SetLabel(s);
00171         wxSafeYield(this);
00172         }
00173 
00174         void SetNumber(wxWindowID id1, int n) {
00175         SetText(id1, wxString::Format(_T("%d"), n));
00176         }
00177 
00179           static bool ShowToolTips();
00180 
00183         */
00184 };
00185 
00186 #endif
00187 // _COMPDLG_H_
00188 

Erzeugt am Sun Aug 21 2011 10:51:54 für Mutabor von doxygen 1.7.4