]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/wxManualPaintPanel.h
8b377ada38b9ecd9d00a012b979c60106be38fd8
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / wxManualPaintPanel.h
1 #ifndef _WX_MANUAL_PAINT_PANEL_H_
2 #define _WX_MANUAL_PAINT_PANEL_H_
3
4 #include "ManualPaintPanel.h"
5
6 #include "mBarRange.h" //DFCH
7 #include "creaWx.h" //DFCH
8 #include <wx/wx.h>
9 #include <wx/panel.h>
10 #include <wx/spinctrl.h>
11 #include <wx/string.h>
12
13 class wxManualPaintPanel: public wxPanel, public ManualPaintPanel
14 {
15 public:
16         wxManualPaintPanel( wxWindow * parent );
17         virtual ~wxManualPaintPanel( );
18         //Panel Config
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( );
28         //Events
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 );
55
56 private:
57         wxStaticText *_txtBrushSize;
58         wxSlider *_sldBrushSize;
59         wxSpinCtrl *_BrushSizeCtrl;
60
61         wxStaticText *_txtGrayLevel;
62         wxSlider *_sldGrayLevel;
63         wxSpinCtrl *_graylevelCtrl;
64         wxRadioBox *_rbBrushForm;
65         wxRadioBox *_rb2D3D;
66         wxRadioBox *_rbBrushTool;
67
68         wxStaticText *_txtToleranceFill;
69         wxSlider *_sldToleranceFill;
70         wxSpinCtrl *_tolerancefillCtrl;
71
72         wxStaticText *_txtDistanceFill;
73         wxSlider *_sldDistanceFill;
74         wxSpinCtrl *_distancefillCtrl;
75
76         mBarRange * _mBarSlices; //DFCH
77         wxButton *_btnCopy; //DFCH
78         wxButton *_btnUndo; //DFCH
79         wxButton *_btnRedo; //DFCH
80
81         wxFlexGridSizer *_buttonsSizer; //DFCH
82         wxFlexGridSizer *_FillSizer; //DFCH
83         wxFlexGridSizer *_gConfigSizer; //DFCH
84         wxFlexGridSizer *_brushSizer; //DFCH
85
86 protected:
87
88 };
89
90 #endif // _WX_MANUAL_PAINT_PANEL_H_