1 #ifndef __interfToolsSpreadPanelH__
2 #define __interfToolsSpreadPanelH__
5 #include <wx/radiobox.h>
7 #include <wx/stattext.h>
8 #include <wx/scrolwin.h>
12 #include "interfMenuBar.h"
14 class interfToolsSpreadPanel
18 interfToolsSpreadPanel(wxWindow * parent, int sizex, int sizey,wxEvtHandler* evtHandler);
19 ~interfToolsSpreadPanel();
22 ** Adds a new checkbox to the scrolledwindow using the checkboxsizer
23 ** @Params id of contour
26 void addContourCheckBox(std::string id);
29 ** Removes a checkbox from the list of checkboxes in the flexsizer (checkboxsizer)
30 ** @Params id of contour
33 void removeContourCheckBox(std::string id);
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;
48 ** initializes the radio box to display the options of the spread method.
50 wxPanel* initializeRadioBox();
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
58 wxPanel* initializeButton(std::string path, std::string nom);
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.
67 wxPanel* initializeAddRemoveContour();