|
creaContours_lib
|
#include <interfIOMenu.h>


Public Member Functions | |
| interfIOMenu (wxWindow *parent, int sizex, int sizey, wxEvtHandler *evtHandler, std::string datdir="data/Icons") | |
| ~interfIOMenu () | |
| virtual void | initButtons (wxEvtHandler *evtHandler) |
| void | onActionButtonPressed (wxCommandEvent &event) |
| void | onLoad (wxCommandEvent &event) |
| void | onSave (wxCommandEvent &event) |
| void | onImport (wxCommandEvent &event) |
| void | onTest (wxCommandEvent &event) |
| virtual void | addButtons (std::vector< std::string > vpath, std::vector< std::string > vnom) |
| virtual wxBitmapButton * | getButton (std::string imgpath, int sizex, int sizey) |
| virtual wxStaticText * | getText (std::string nom, int sizex, int sizey) |
| virtual void | setVectorFunction (std::vector< wxObjectEventFunction > vectf) |
| virtual void | connectEvents (wxEvtHandler *evtHandler) |
| virtual void | connectEvents () |
| virtual void | setButtonName (int i, const char c) |
| virtual void | setEventHandlers (std::vector< wxEvtHandler * > hand) |
Protected Attributes | |
| std::string | datadir |
Definition at line 33 of file interfIOMenu.h.
| interfIOMenu::interfIOMenu | ( | wxWindow * | parent, |
| int | sizex, | ||
| int | sizey, | ||
| wxEvtHandler * | evtHandler, | ||
| std::string | datdir = "data/Icons" |
||
| ) |
Definition at line 29 of file interfIOMenu.cxx.
References interfMenuBar::datadir, and initButtons().

| interfIOMenu::~interfIOMenu | ( | ) |
Definition at line 85 of file interfIOMenu.cxx.
|
inlinevirtualinherited |
This method add a series of button in a line, it uses the method getbutton to create the button and static text to create the text, it also initialice the flexgridsizer to add the buttons and the text into the panel
| vector | path, this parameter contains the path of the images to include in the path |
| vector | nom, this parameter contains the names corresponding to each path of image given |
Definition at line 64 of file interfMenuBar.h.
References interfMenuBar::flexsizer, interfMenuBar::getButton(), and interfMenuBar::vectbutton.
Referenced by interfDeleteMenu::initButtons(), interfEditMenu::initButtons(), initButtons(), interfImageToolsMenu::initButtons(), interfSegmentationMenu::initButtons(), interfToolsMenu::initButtons(), and interfNewContourMenu::initButtons().


|
inlinevirtualinherited |
This method connect the events seted in the vector vectfunct each function must have a button to relate with, see function setVectorFunction()
Definition at line 143 of file interfMenuBar.h.
References interfMenuBar::vectbutton, and interfMenuBar::vectfunct.
|
inlinevirtualinherited |
This method connect the events seted in the vector vectfunct each function must have a button to relate with, see function setVectorFunction()
Definition at line 154 of file interfMenuBar.h.
References interfMenuBar::vectbutton, interfMenuBar::vectfunct, and interfMenuBar::vecthand.
Referenced by interfDeleteMenu::initButtons(), interfEditMenu::initButtons(), initButtons(), interfImageToolsMenu::initButtons(), interfSegmentationMenu::initButtons(), interfToolsMenu::initButtons(), and interfNewContourMenu::initButtons().

|
inlinevirtualinherited |
This method creates the button with the given image and returns it
| string | imgpath is the string containing the path to the image of the button being created |
| int | x indicates the x coordinate where the button should be located |
| int | y indicates the y coordinate where the button should be located |
Definition at line 102 of file interfMenuBar.h.
References interfMenuBar::vectbutton, and interfMenuBar::vectimgpath.
Referenced by interfMenuBar::addButtons().

|
inlinevirtualinherited |
This method create the static text with the given string and returns it, it also push it back into the vector nom
| string | nom text wich will be added to the statictext |
| int | sizex size of the text |
| int | sizey size of the text |
Definition at line 123 of file interfMenuBar.h.
References interfMenuBar::vectnom.
|
virtual |
Implements interfMenuBar.
Definition at line 37 of file interfIOMenu.cxx.
References interfMenuBar::addButtons(), interfMenuBar::connectEvents(), interfMenuBar::datadir, onImport(), onLoad(), onSave(), onTest(), and interfMenuBar::setVectorFunction().
Referenced by interfIOMenu().


| void interfIOMenu::onActionButtonPressed | ( | wxCommandEvent & | event | ) |
| void interfIOMenu::onImport | ( | wxCommandEvent & | event | ) |
Definition at line 77 of file interfIOMenu.cxx.
References interfMainPanel::getInstance(), and interfMainPanel::onImport().
Referenced by initButtons().


| void interfIOMenu::onLoad | ( | wxCommandEvent & | event | ) |
Definition at line 70 of file interfIOMenu.cxx.
References interfMainPanel::getInstance(), and interfMainPanel::onLoad().
Referenced by initButtons().


| void interfIOMenu::onSave | ( | wxCommandEvent & | event | ) |
Definition at line 73 of file interfIOMenu.cxx.
References interfMainPanel::getInstance(), and interfMainPanel::onSave().
Referenced by initButtons().


| void interfIOMenu::onTest | ( | wxCommandEvent & | event | ) |
Definition at line 81 of file interfIOMenu.cxx.
References interfMainPanel::getInstance(), and interfMainPanel::onTest().
Referenced by initButtons().


|
inlinevirtualinherited |
Sets the name of the button, this is used to relate the name of the button to a specific command int i index in the array of buttons use fuction setVectorFuncion(<vect>) to set the vector first const char name of the button see wxContour_ActionCommandsID.h to view the commands
Definition at line 167 of file interfMenuBar.h.
References interfMenuBar::vectbutton.
Referenced by interfEditMenu::initButtons().

|
inlinevirtualinherited |
Definition at line 193 of file interfMenuBar.h.
References interfMenuBar::vecthand.
Referenced by interfNewContourMenu::initButtons().

|
inlinevirtualinherited |
Sets the vector funcion, this vector must contain a function for each button created they must be ordered in the same way as the vector that contains the image path and name of the button. See addButton(<vect>, <vect>)
Definition at line 133 of file interfMenuBar.h.
References interfMenuBar::vectfunct.
Referenced by interfDeleteMenu::initButtons(), interfEditMenu::initButtons(), initButtons(), interfImageToolsMenu::initButtons(), interfSegmentationMenu::initButtons(), interfToolsMenu::initButtons(), and interfNewContourMenu::initButtons().

|
protectedinherited |
Definition at line 212 of file interfMenuBar.h.
Referenced by interfDeleteMenu::initButtons(), interfEditMenu::initButtons(), initButtons(), interfImageToolsMenu::initButtons(), interfSegmentationMenu::initButtons(), interfToolsMenu::initButtons(), interfNewContourMenu::initButtons(), interfDeleteMenu::interfDeleteMenu(), interfEditMenu::interfEditMenu(), interfImageToolsMenu::interfImageToolsMenu(), interfIOMenu(), interfNewContourMenu::interfNewContourMenu(), interfSegmentationMenu::interfSegmentationMenu(), and interfToolsMenu::interfToolsMenu().