CompDlg.cpp
gehe zur Dokumentation dieser Datei
00001 
00028 
00029 #if 0
00030 #if defined(__GNUG__) && !defined(__APPLE__)
00031 #pragma implementation "CompDlg.h"
00032 #endif
00033 
00034 // For compilers that support precompilation, includes "wx/wx.h".
00035 #include "wx/wxprec.h"
00036 
00037 #ifdef __BORLANDC__
00038 #pragma hdrstop
00039 #endif
00040 
00041 #ifndef WX_PRECOMP
00042 #include "wx/wx.h"
00043 #endif
00044 
00045 #include "CompDlg.h"
00046 
00049 
00050 
00053 
00058 IMPLEMENT_DYNAMIC_CLASS( CompDlg, wxDialog )
00059 
00060 
00064 BEGIN_EVENT_TABLE( CompDlg, wxDialog )
00065 
00068 
00069 END_EVENT_TABLE()
00070 
00075 CompDlg::CompDlg( )
00076 {}
00077 
00078 CompDlg::CompDlg( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
00079 {
00080         Create(parent, id, caption, pos, size, style);
00081 }
00082 
00087 bool CompDlg::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
00088 {
00091 
00093         SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
00094         wxDialog::Create( parent, id, caption, pos, size, style );
00095 
00096         CreateControls();
00097         GetSizer()->Fit(this);
00098         GetSizer()->SetSizeHints(this);
00099         Centre();
00101         return TRUE;
00102 }
00103 
00108 void CompDlg::CreateControls()
00109 {
00111         CompDlg* itemDialog1 = this;
00112 
00113         wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
00114         itemDialog1->SetSizer(itemBoxSizer2);
00115 
00116         wxStaticBox* itemStaticBoxSizer3Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Source"));
00117         wxStaticBoxSizer* itemStaticBoxSizer3 = new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxHORIZONTAL);
00118         itemBoxSizer2->Add(itemStaticBoxSizer3, 0, wxGROW|wxALL, 5);
00119 
00120         wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxVERTICAL);
00121         itemStaticBoxSizer3->Add(itemBoxSizer4, 0, wxALIGN_CENTER_VERTICAL, 5);
00122 
00123         wxStaticText* itemStaticText5 = new wxStaticText( itemDialog1, wxID_STATIC, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
00124         itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_LEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
00125 
00126         wxStaticText* itemStaticText6 = new wxStaticText( itemDialog1, wxID_STATIC, _("Line:"), wxDefaultPosition, wxDefaultSize, 0 );
00127         itemBoxSizer4->Add(itemStaticText6, 0, wxALIGN_LEFT|wxRIGHT|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
00128 
00129         wxBoxSizer* itemBoxSizer7 = new wxBoxSizer(wxVERTICAL);
00130         itemStaticBoxSizer3->Add(itemBoxSizer7, 1, wxALIGN_CENTER_VERTICAL, 5);
00131 
00132         wxStaticText* itemStaticText8 = new wxStaticText( itemDialog1, IDC_COMP_FILENAME, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
00133         itemBoxSizer7->Add(itemStaticText8, 1, wxGROW|wxLEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
00134 
00135         wxStaticText* itemStaticText9 = new wxStaticText( itemDialog1, IDC_COMP_LINE, _("..."), wxDefaultPosition, wxDefaultSize, 0 );
00136         itemBoxSizer7->Add(itemStaticText9, 0, wxGROW|wxALL|wxADJUST_MINSIZE, 5);
00137 
00138         wxStaticBox* itemStaticBoxSizer10Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Statistics"));
00139         wxStaticBoxSizer* itemStaticBoxSizer10 = new wxStaticBoxSizer(itemStaticBoxSizer10Static, wxHORIZONTAL);
00140         itemBoxSizer2->Add(itemStaticBoxSizer10, 0, wxALIGN_CENTER_HORIZONTAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
00141 
00142         wxBoxSizer* itemBoxSizer11 = new wxBoxSizer(wxVERTICAL);
00143         itemStaticBoxSizer10->Add(itemBoxSizer11, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxBOTTOM, 5);
00144 
00145         wxStaticText* itemStaticText12 = new wxStaticText( itemDialog1, wxID_STATIC, _("Logics:"), wxDefaultPosition, wxDefaultSize, 0 );
00146         itemBoxSizer11->Add(itemStaticText12, 0, wxALIGN_LEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
00147 
00148         wxStaticText* itemStaticText13 = new wxStaticText( itemDialog1, wxID_STATIC, _("Tones:"), wxDefaultPosition, wxDefaultSize, 0 );
00149         itemBoxSizer11->Add(itemStaticText13, 0, wxALIGN_LEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
00150 
00151         wxStaticText* itemStaticText14 = new wxStaticText( itemDialog1, wxID_STATIC, _("Tunes:"), wxDefaultPosition, wxDefaultSize, 0 );
00152         itemBoxSizer11->Add(itemStaticText14, 0, wxALIGN_LEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
00153 
00154         wxBoxSizer* itemBoxSizer15 = new wxBoxSizer(wxVERTICAL);
00155         itemStaticBoxSizer10->Add(itemBoxSizer15, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxBOTTOM, 5);
00156 
00157         wxStaticText* itemStaticText16 = new wxStaticText( itemDialog1, IDC_COMP_LOGICS, _("000000"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
00158         itemBoxSizer15->Add(itemStaticText16, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
00159 
00160         wxStaticText* itemStaticText17 = new wxStaticText( itemDialog1, IDC_COMP_TONES, _("000000"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
00161         itemBoxSizer15->Add(itemStaticText17, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
00162 
00163         wxStaticText* itemStaticText18 = new wxStaticText( itemDialog1, IDC_COMP_TUNES, _("000000"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
00164         itemBoxSizer15->Add(itemStaticText18, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
00165 
00166         wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxVERTICAL);
00167         itemStaticBoxSizer10->Add(itemBoxSizer19, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxBOTTOM, 5);
00168 
00169         wxStaticText* itemStaticText20 = new wxStaticText( itemDialog1, wxID_STATIC, _("Tone syst.:"), wxDefaultPosition, wxDefaultSize, 0 );
00170         itemBoxSizer19->Add(itemStaticText20, 0, wxALIGN_LEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
00171 
00172         wxStaticText* itemStaticText21 = new wxStaticText( itemDialog1, wxID_STATIC, _("Intervals:"), wxDefaultPosition, wxDefaultSize, 0 );
00173         itemBoxSizer19->Add(itemStaticText21, 0, wxALIGN_LEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
00174 
00175         wxStaticText* itemStaticText22 = new wxStaticText( itemDialog1, wxID_STATIC, _("Read chars:"), wxDefaultPosition, wxDefaultSize, 0 );
00176         itemBoxSizer19->Add(itemStaticText22, 0, wxALIGN_LEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
00177 
00178         wxBoxSizer* itemBoxSizer23 = new wxBoxSizer(wxVERTICAL);
00179         itemStaticBoxSizer10->Add(itemBoxSizer23, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxBOTTOM, 5);
00180 
00181         wxStaticText* itemStaticText24 = new wxStaticText( itemDialog1, IDC_COMP_TONESYST, _("000000"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
00182         itemBoxSizer23->Add(itemStaticText24, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
00183 
00184         wxStaticText* itemStaticText25 = new wxStaticText( itemDialog1, IDC_COMP_INTERVALS, _("000000"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
00185         itemBoxSizer23->Add(itemStaticText25, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
00186 
00187         wxStaticText* itemStaticText26 = new wxStaticText( itemDialog1, IDC_COMP_READCHARS, _("000000"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
00188         itemBoxSizer23->Add(itemStaticText26, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
00189 
00190         wxStaticBox* itemStaticBoxSizer27Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Message"));
00191         wxStaticBoxSizer* itemStaticBoxSizer27 = new wxStaticBoxSizer(itemStaticBoxSizer27Static, wxHORIZONTAL);
00192         itemBoxSizer2->Add(itemStaticBoxSizer27, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
00193 
00194         wxStaticText* itemStaticText28 = new wxStaticText( itemDialog1, IDC_COMP_MESSAGE, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
00195         itemStaticBoxSizer27->Add(itemStaticText28, 1, wxGROW|wxALL|wxADJUST_MINSIZE, 5);
00196 
00197         wxButton* itemButton29 = new wxButton( itemDialog1, wxID_OK, _("Reading Source ..."), wxDefaultPosition, wxDefaultSize, 0 );
00198         itemBoxSizer2->Add(itemButton29, 1, wxGROW|wxALL, 5);
00199 
00201 }
00202 
00207 bool CompDlg::ShowToolTips()
00208 {
00209         return TRUE;
00210 }
00211 
00216 wxBitmap CompDlg::GetBitmapResource( const wxString& name )
00217 {
00218         // Bitmap retrieval
00220         return wxNullBitmap;
00222 }
00223 
00228 wxIcon CompDlg::GetIconResource( const wxString& name )
00229 {
00230         // Icon retrieval
00232         return wxNullIcon;
00234 }
00235 
00236 #endif
00237 

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