1 #ifndef _WX_MANUAL_PAINT_PANEL_H_
2 #define _WX_MANUAL_PAINT_PANEL_H_
4 #include "ManualPaintPanel.h"
6 #include "mBarRange.h" //DFCH
7 #include "creaWx.h" //DFCH
10 #include <wx/spinctrl.h>
11 #include <wx/string.h>
13 class wxManualPaintPanel: public wxPanel, public ManualPaintPanel
16 wxManualPaintPanel( wxWindow * parent );
17 virtual ~wxManualPaintPanel( );
19 void ConfigureBrushToolRadioButton( );
20 void Configure2D3DRadioButton( );
21 void ConfigureBrushFormRadioButton( );
22 void ConfigureRangeBar( );
23 void ConfigureGrayLevelSld( );
24 void ConfigureBrushSizeSld( );
25 void ConfigureDistanceFillSld( );
26 void ConfigureTolFillSld( );
27 void ConfigureEditButtons( );
29 void ConnectComponents( ); //DFCH
30 void OnBrushSize( wxScrollEvent& event );
31 void OnSldGrayLevel( wxScrollEvent& event );
32 void OnCtrTxtGrayLevel( wxCommandEvent &event );
33 void On2D3D( wxCommandEvent &event );
34 void OnBrushForm( wxCommandEvent &event );
35 void OnBrushTool( wxCommandEvent &event );
36 void OnCopy( wxCommandEvent &event );
37 void OnUndo( wxCommandEvent &event );
38 void OnRedo( wxCommandEvent &event );
39 void DisableControls( );
40 void OnSldToleranceFill( wxScrollEvent& event );
41 void OnCtrTxtToleranceFill( wxCommandEvent &event );
42 void OnSldDistanceFill( wxScrollEvent& event );
43 void OnCtrTxtDistanceFill( wxCommandEvent &event );
44 void OnCtrBrushSize( wxCommandEvent &event );
45 //This method changes the min/max in the Selected Range Widget
46 //--------------------------------------------------------------------------------------------------------------------------------
47 // Min-Max Barrange received events
48 //--------------------------------------------------------------------------------------------------------------------------------
49 void onBarrange( wxCommandEvent& event );
50 void onActualChange_Bar( wxCommandEvent& event );
51 void onStartChange_Bar( wxCommandEvent& event );
52 void onEndChange_Bar( wxCommandEvent& event );
53 void onSelectionEnd( wxCommandEvent& event );
54 void onMovedBar( wxCommandEvent& event );
57 wxStaticText *_txtBrushSize;
58 wxSlider *_sldBrushSize;
59 wxSpinCtrl *_BrushSizeCtrl;
61 wxStaticText *_txtGrayLevel;
62 wxSlider *_sldGrayLevel;
63 wxSpinCtrl *_graylevelCtrl;
64 wxRadioBox *_rbBrushForm;
66 wxRadioBox *_rbBrushTool;
68 wxStaticText *_txtToleranceFill;
69 wxSlider *_sldToleranceFill;
70 wxSpinCtrl *_tolerancefillCtrl;
72 wxStaticText *_txtDistanceFill;
73 wxSlider *_sldDistanceFill;
74 wxSpinCtrl *_distancefillCtrl;
76 mBarRange * _mBarSlices; //DFCH
77 wxButton *_btnCopy; //DFCH
78 wxButton *_btnUndo; //DFCH
79 wxButton *_btnRedo; //DFCH
81 wxFlexGridSizer *_buttonsSizer; //DFCH
82 wxFlexGridSizer *_FillSizer; //DFCH
83 wxFlexGridSizer *_gConfigSizer; //DFCH
84 wxFlexGridSizer *_brushSizer; //DFCH
90 #endif // _WX_MANUAL_PAINT_PANEL_H_