]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfToolsSpreadPanel.h
32606c23dcff172ab5fb4d4f380e036213ae5630
[creaContours.git] / lib / Interface_Icons_NDimensions / interfToolsSpreadPanel.h
1 #ifndef __interfToolsSpreadPanelH__
2 #define __interfToolsSpreadPanelH__
3
4 #include <wx/wx.h>
5 #include <wx/radiobox.h>
6 #include <wx/sizer.h>
7 #include <wx/stattext.h>
8 #include <wx/scrolwin.h>
9 #include <wx/list.h>
10
11
12 #include "interfMenuBar.h"
13
14 class interfToolsSpreadPanel 
15         : public wxPanel
16 {
17 public:
18         interfToolsSpreadPanel(wxWindow * parent, int sizex, int sizey,wxEvtHandler* evtHandler);               
19         ~interfToolsSpreadPanel();
20
21         /**
22         **      Adds a new checkbox to the scrolledwindow using the checkboxsizer
23         **      @Params id of contour
24         **      
25         **/
26         void addContourCheckBox(std::string id);
27
28         /**
29         **      Removes a checkbox from the list of checkboxes in the flexsizer (checkboxsizer)
30         **      @Params id of contour
31         **      
32         **/
33         void removeContourCheckBox(std::string id);
34
35 private:
36         wxPanel* resetbuttxt;
37         wxPanel* gobuttxt;
38         wxPanel* radiobox;
39         wxPanel* addremovecont;
40 //Atributes for managing the events of adding and removing the checkbox
41         wxScrolledWindow* scrollwin;
42         wxFlexGridSizer* checkboxsizer;
43         std::vector<std::string> checkvect;
44         
45
46
47         /**
48         **      initializes the radio box to display the options of the spread method.
49         **/
50         wxPanel* initializeRadioBox();
51
52         /**
53         **      initializes the button and the text to be displayed
54         **      it returns a panel with both components
55         **      @param Path of the image to be used in the button
56         **      @param nom      text to be displayed at right of the button
57         **/
58         wxPanel* initializeButton(std::string path, std::string nom);
59
60         /**
61         **      initializes the panel that has all the contours that exist in the interface
62         **      every time a contour is added into the scene, it must be added into this panel
63         **      for all the contours it must exist a check box beside the contour.
64         **      This checkbox controls the contours that are going to be used in the spread function.
65         **/
66
67         wxPanel* initializeAddRemoveContour();
68
69         
70
71
72 };
73
74 #endif
75