MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

DlgOpzioni.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------
00002 //
00003 // Name:        DlgOpzioni.h
00004 // Author:      Administrator
00005 // Created:     07/04/2005 18.31.06
00006 //
00007 //---------------------------------------------------------------------------
00008 #ifndef __DLGOPZIONI_HPP_
00009 #define __DLGOPZIONI_HPP_
00010 
00011 
00012 #include "../../StrutturaGrafici/OpzGrafico.h"
00013 #include <wx/msgdlg.h>
00014 
00015 
00016 // For compilers that support precompilation, includes "wx.h".
00017 #include <wx/wxprec.h>
00018 #include "../../Parser/TParserScomponi.h"
00019 
00020 #ifdef __BORLANDC__
00021 #pragma hdrstop
00022 #endif
00023 
00024 #ifndef WX_PRECOMP
00025 // Include your minimal set of headers here, or wx.h
00026 #include <wx/wx.h>
00027 #endif
00028 
00029 
00030 //Do not add custom headers.
00031 //wx-dvcpp designer will remove them
00033 #include <wx/colordlg.h>
00034 #include <wx/combobox.h>
00035 #include <wx/checklst.h>
00036 #include <wx/textctrl.h>
00037 #include <wx/checkbox.h>
00038 #include <wx/statbox.h>
00039 #include <wx/button.h>
00040 #include <wx/stattext.h>
00041 #include <wx/panel.h>
00042 #include <wx/notebook.h>
00044 
00045 #include <wx/dialog.h>
00046 //Compatibility for 2.4.x code
00047 #ifndef wxCLOSE_BOX
00048 #define wxCLOSE_BOX 0x1000
00049 #endif
00050 #ifndef wxFIXED_MINSIZE
00051 #define wxFIXED_MINSIZE 0
00052 #endif
00053 #include <string.h>
00055         #define THIS_DIALOG_STYLE wxCAPTION | wxSYSTEM_MENU | wxSTAY_ON_TOP | wxDIALOG_NO_PARENT | wxMINIMIZE_BOX |  wxCLOSE_BOX
00056 
00057 
00058 class DlgOpzioni : public wxDialog
00059 {
00060 public:
00061     DlgOpzioni( wxWindow *parent, OpzGrafico* opzioni, wxWindowID id = 1, const wxString &title = _T("Opzioni Grafico"),
00062         const wxPoint& pos = wxDefaultPosition,
00063         const wxSize& size = wxDefaultSize,
00064         long style = THIS_DIALOG_STYLE);
00065     virtual ~DlgOpzioni();
00066 
00067 public:
00068 
00069   //Do not add custom Control Declarations here.
00070   //wx-devcpp will remove them. Try adding the custom code
00071   //after the block.
00073         wxColourDialog *ClrDlgGrafico;
00074         wxButton *BtnOk;
00075         wxButton *BtnAnnulla;
00076         wxButton *BtnModifica;
00077         wxButton *BtnInserisci;
00078         wxComboBox *CmbSpessore;
00079         wxStaticText *WxStaticText8;
00080         wxStaticText *WxStaticText1;
00081         wxButton *BtnClrGrafico;
00082         wxTextCtrl *LblClrGrafico;
00083         wxStaticText *WxStaticText9;
00084         wxTextCtrl *EdtNuovaFx;
00085         wxStaticBox *WxStaticBox2;
00086         wxCheckListBox *LstFunzioni;
00087         wxButton *BtnRimuovi;
00088         wxStaticText *LblFunzione;
00089         wxPanel *WxNoteBookPage2;
00090         wxCheckBox *ChkVisTaccheX;
00091         wxCheckBox *ChkVisTaccheY;
00092         wxTextCtrl *EdtNTacX;
00093         wxStaticText *LblXMin;
00094         wxTextCtrl *EdtXMin;
00095         wxTextCtrl *EdtXMax;
00096         wxStaticText *LblXMax;
00097         wxCheckBox *ChkXVis;
00098         wxCheckBox *ChkXGrid;
00099         wxStaticText *LblXTacche;
00100         wxStaticBox *WxStaticBox1;
00101         wxTextCtrl *EdtLarghezza;
00102         wxTextCtrl *EdtAltezza;
00103         wxStaticText *WxStaticText7;
00104         wxStaticText *WxStaticText6;
00105         wxStaticText *WxStaticText5;
00106         wxTextCtrl *EdtNTacY;
00107         wxTextCtrl *EdtYMax;
00108         wxTextCtrl *EdtYMin;
00109         wxStaticText *LblYMax;
00110         wxStaticText *LblYMin;
00111         wxStaticText *WxStaticText2;
00112         wxCheckBox *ChkYVis;
00113         wxCheckBox *ChkYGrid;
00114         wxStaticBox *WxYBox;
00115         wxButton *BtnClrSfondo;
00116         wxTextCtrl *LblClrSfondo;
00117         wxPanel *WxNoteBookPage1;
00118         wxNotebook *WxNotebook1;
00120 
00121 private:
00122     DECLARE_EVENT_TABLE()
00123 
00124     OpzGrafico* OpzioniPadre;
00125     wxPanel* Padre;
00126 
00127     void AggiornaList();
00128 public:
00129     //Note: if you receive any error with these enums, then you need to
00130     //change your old form code that are based on the #define control ids.
00131     //#defines may replace a numeric value for the enums names.
00132     //Try copy pasting the below block in your old Form header Files.
00133         enum {
00135 ID_EDTLARGHEZZA = 1397 ,
00136 ID_WXSTATICBOX2= 1401,
00137 ID_CMBSPESSORE= 1402,
00138 ID_WXSTATICTEXT7 = 1395 ,
00139 ID_WXSTATICTEXT6 = 1394 ,
00140 ID_BTNOK = 1340 ,
00141 ID_BTNANNULLA = 1339 ,
00142 ID_EDTMODIFICA = 1341 ,
00143 ID_WXSTATICTEXT1 = 1338 ,
00144 ID_LBLCLRGRAFICO = 1328 ,
00145 ID_BTNCLRGRAFICO = 1337 ,
00146 ID_BTNMODIFICA = 1336 ,
00147 ID_LSTFUNZIONI = 1335 ,
00148 ID_EDTNUOVAFX = 1334 ,
00149 ID_BTNRIMUOVI = 1333 ,
00150 ID_BTNINSERISCI = 1332 ,
00151 ID_LBLFUNZIONE = 1331 ,
00152 ID_WXNOTEBOOKPAGE2 = 1282 ,
00153 ID_WXSTATICTEXT4 = 1392 ,
00154 ID_EDTRISY = 1393 ,
00155 ID_WXSTATICTEXT5 = 1390 ,
00156 ID_EDTZMIN = 1388 ,
00157 ID_WXEDIT2= 1400,
00158 ID_LBLZMIN = 1385 ,
00159 ID_LBLZMAX = 1386 ,
00160 ID_WXSTATICBOX1 = 1383 ,
00161 ID_EDTRISX = 1378 ,
00162 ID_WXSTATICTEXT3 = 1377 ,
00163 ID_EDTNTACY = 1375 ,
00164 ID_EDTNTACX = 1374 ,
00165 ID_EDTYMAX = 1372 ,
00166 ID_EDTYMIN = 1371 ,
00167 ID_EDTXMAX = 1370 ,
00168 ID_EDTXMIN = 1369 ,
00169 ID_WXSTATICTEXT9 = 1368 ,
00170 ID_WXSTATICTEXT8 = 1367 ,
00171 ID_LBLXMIN = 1359 ,
00172 ID_LBLXMAX = 1358 ,
00173 ID_WXSTATICTEXT2 = 1352 ,
00174 ID_LBLXTACCHE = 1351 ,
00175 ID_CHKYVIS = 1349 ,
00176 ID_CHKXVIS = 1348 ,
00177 ID_CHKYNUM = 1347 ,
00178 ID_CHKXNUM = 1346 ,
00179 ID_CHKXGRID = 1345 ,
00180 ID_CHKYGRID = 1344 ,
00181 ID_WXYBOX = 1343 ,
00182 ID_WXXBOX = 1342 ,
00183 ID_BTNCLRSFONDO = 1279 ,
00184 ID_LBLCLRSFONDO = 1277 ,
00185 ID_WXNOTEBOOKPAGE1 = 1260 ,
00186 ID_WXNOTEBOOK1 = 1259 ,
00187 ID_CHKVISTACCHEY= 1408,
00188 ID_CHKVISTACCHEX=1409,
00190    ID_DUMMY_VALUE_ //Dont Delete this DummyValue
00191    }; //End of Enum
00192 
00193 public:
00194     void DlgOpzioniClose(wxCloseEvent& event);
00195     void CreateGUIControls(void);
00196         void BtnOkClick(wxCommandEvent& event);
00197         void BtnClrGraficoClick(wxCommandEvent& event);
00198         void BtnClrAssiClick(wxCommandEvent& event);
00199         void BtnClrSfondoClick(wxCommandEvent& event);
00200         void BtnOkClick1(wxCommandEvent& event);
00201         void BtnInserisciClick(wxCommandEvent& event);
00202         void BtnRimuoviClick(wxCommandEvent& event);
00203         void BtnModificaClick(wxCommandEvent& event);
00204         void LstFunzioniEnter(wxCommandEvent& event);
00205         void BtnAnnullaClick(wxCommandEvent& event);
00206 };
00207 
00208 
00209 #endif
00210 
00211 
00212 
00213 

 

SourceForge Logo