OutputDevDlg.h
gehe zur Dokumentation dieser Datei
00001 
00025 #ifndef _OUTPUTDEVDLG_H_
00026 #define _OUTPUTDEVDLG_H_
00027 
00028 #if defined(__GNUG__) && !defined(__APPLE__)
00029 #pragma interface "OutputDevDlg.cpp"
00030 #endif
00031 
00036 
00037 #include "wx/valgen.h"
00038 #include "wx/valtext.h"
00040 
00045 
00046 
00047 class wxBoxSizer;
00049 
00054 
00055 #define ID_MYDIALOG 10017
00056 #define SYMBOL_OUTPUTDEVDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00057 #define SYMBOL_OUTPUTDEVDLG_TITLE _("Output Device")
00058 #define SYMBOL_OUTPUTDEVDLG_IDNAME ID_MYDIALOG
00059 #define SYMBOL_OUTPUTDEVDLG_SIZE wxSize(400, 300)
00060 #define SYMBOL_OUTPUTDEVDLG_POSITION wxDefaultPosition
00061 #define ID_CHOICE2 10018
00062 #define ID_CHOICE3 10019
00063 #define ID_TEXTCTRL4 10024
00064 #define ID_TEXTCTRL2 10020
00065 #define ID_BUTTON2 10022
00066 #define ID_TEXTCTRL5 10025
00067 #define ID_TEXTCTRL3 10021
00068 #define ID_BUTTON3 10023
00069 
00070 
00075 #ifndef wxCLOSE_BOX
00076 #define wxCLOSE_BOX 0x1000
00077 #endif
00078 #ifndef wxFIXED_MINSIZE
00079 #define wxFIXED_MINSIZE 0
00080 #endif
00081 
00086 class OutputDevDlg: public wxDialog
00087 {
00088         DECLARE_DYNAMIC_CLASS( OutputDevDlg )
00089         DECLARE_EVENT_TABLE()
00090 
00091 public:
00093         OutputDevDlg( );
00094 
00095         OutputDevDlg( wxWindow* parent, wxWindowID id = SYMBOL_OUTPUTDEVDLG_IDNAME, const wxString& caption = SYMBOL_OUTPUTDEVDLG_TITLE, const wxPoint& pos = SYMBOL_OUTPUTDEVDLG_POSITION, const wxSize& size = SYMBOL_OUTPUTDEVDLG_SIZE, long style = SYMBOL_OUTPUTDEVDLG_STYLE );
00096 
00098         bool Create( wxWindow* parent, wxWindowID id = SYMBOL_OUTPUTDEVDLG_IDNAME, const wxString& caption = SYMBOL_OUTPUTDEVDLG_TITLE, const wxPoint& pos = SYMBOL_OUTPUTDEVDLG_POSITION, const wxSize& size = SYMBOL_OUTPUTDEVDLG_SIZE, long style = SYMBOL_OUTPUTDEVDLG_STYLE );
00099 
00101         void CreateControls();
00102 
00104 
00106         void OnChoice2Selected( wxCommandEvent& event );
00107 
00109         void OnButton2Click( wxCommandEvent& event );
00110 
00112         void OnButton3Click( wxCommandEvent& event );
00113 
00115         void OnRemoveClick( wxCommandEvent& event );
00116 
00117         void UpdateLayout(int type);
00118 
00120 
00122 
00123         int GetType() const
00124         {
00125                 return Type ;
00126         }
00127 
00128         void SetType(int value)
00129 
00130         {
00131                 Type = value ;
00132         }
00133 
00134         int GetMidiDevice() const
00135         {
00136                 return MidiDevice ;
00137         }
00138 
00139         void SetMidiDevice(int value)
00140 
00141         {
00142                 MidiDevice = value ;
00143         }
00144 
00145         wxString GetMidiFile() const
00146         {
00147                 return MidiFile ;
00148         }
00149 
00150         void SetMidiFile(wxString value)
00151 
00152         {
00153                 MidiFile = value ;
00154         }
00155 
00156         wxString GetGUIDOFile() const
00157         {
00158                 return GUIDOFile ;
00159         }
00160 
00161         void SetGUIDOFile(wxString value)
00162 
00163         {
00164                 GUIDOFile = value ;
00165         }
00166 
00167         long GetMidiDeviceBending() const
00168         {
00169                 return MidiDeviceBending ;
00170         }
00171 
00172         void SetMidiDeviceBending(long value)
00173 
00174         {
00175                 MidiDeviceBending = value ;
00176         }
00177 
00178         long GetMidiFileBending() const
00179         {
00180                 return MidiFileBending ;
00181         }
00182 
00183         void SetMidiFileBending(long value)
00184 
00185         {
00186                 MidiFileBending = value ;
00187         }
00188 
00190 
00191         wxBitmap GetBitmapResource( const wxString& name );
00192 
00194         wxIcon GetIconResource( const wxString& name );
00195 
00197 
00199         static bool ShowToolTips();
00200 
00202         wxBoxSizer* ctrlPanel;
00203 
00204         wxChoice* ctrlType;
00205 
00206         wxStaticBoxSizer* ctrlMidiDevicePanel;
00207 
00208         wxChoice* ctrlMidiDevice;
00209 
00210         wxStaticBoxSizer* ctrlMidiFilePanel;
00211 
00212         wxTextCtrl* ctrlMidiFile;
00213 
00214         wxStaticBoxSizer* ctrlGUIDOFilePanel;
00215 
00216         wxTextCtrl* ctrlGUIDOFile;
00217 
00218         int Type;
00219 
00220         int MidiDevice;
00221 
00222         wxString MidiFile;
00223 
00224         wxString GUIDOFile;
00225 
00226         long MidiDeviceBending;
00227 
00228         long MidiFileBending;
00229 
00231 };
00232 
00233 #endif
00234 // _OUTPUTDEVDLG_H_
00235 
00236 

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