#include <wxMaracasIRMViewPanel.h>

Public Member Functions | |
| wxMaracasIRMViewPanel (wxWindow *parent, int propid) | |
| virtual void | createPanel () |
| virtual void | addControl (wxWindow *win) |
| virtual void | addControl (wxSizer *sizer) |
| virtual void | onActionButtonPressedHide (wxCommandEvent &event) |
| virtual void | createControls ()=0 |
| int | getPropId () |
Protected Attributes | |
| int | _propid |
Private Attributes | |
| wxBoxSizer * | sizercontrols |
| bool | show |
Definition at line 6 of file wxMaracasIRMViewPanel.h.
| wxMaracasIRMViewPanel::wxMaracasIRMViewPanel | ( | wxWindow * | parent, | |
| int | propid | |||
| ) | [inline] |
Definition at line 8 of file wxMaracasIRMViewPanel.h.
References _propid, and createPanel().
00009 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize){ 00010 createPanel(); 00011 _propid = propid; 00012 }

| virtual void wxMaracasIRMViewPanel::createPanel | ( | ) | [inline, virtual] |
Definition at line 14 of file wxMaracasIRMViewPanel.h.
References show, and sizercontrols.
Referenced by wxMaracasIRMViewPanel().
00014 { 00015 show = false; 00016 /*wxBoxSizer* sizerButtons = new wxBoxSizer(wxVERTICAL); 00017 00018 wxButton* b = new wxButton(this, -1, wxString(_T("-")), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, 00019 wxDefaultValidator, wxString(_T("-"))); 00020 Connect(b->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&wxMaracasIRMViewPanel::onActionButtonPressedHide); 00021 wxButton* b1 = new wxButton(this, -1, wxString(_T("-")), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, 00022 wxDefaultValidator, wxString(_T("x"))); 00023 Connect(b1->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&wxMaracasIRMViewPanel::onActionButtonPressedEliminate); 00024 00025 sizerButtons->Add(b, wxFIXED_MINSIZE); 00026 sizerButtons->Add(b1, wxFIXED_MINSIZE);*/ 00027 00028 sizercontrols = new wxBoxSizer(wxVERTICAL); 00029 00030 wxBoxSizer* sizerpanel = new wxBoxSizer(wxHORIZONTAL); 00031 00032 //sizerpanel->Add(sizerButtons,wxGROW); 00033 sizerpanel->Add(sizercontrols,wxGROW); 00034 00035 this->SetSizer(sizerpanel, true); 00036 this->SetAutoLayout( true ); 00037 }

| virtual void wxMaracasIRMViewPanel::addControl | ( | wxWindow * | win | ) | [inline, virtual] |
Adds a new control to the panel (sizer, radiob, etc)
Definition at line 42 of file wxMaracasIRMViewPanel.h.
References sizercontrols.
Referenced by wxMaracasIRMViewProp3DMHD::createControls(), and wxMaracasIRMViewProp3D::createControls().
00042 { 00043 if(sizercontrols!=NULL){ 00044 sizercontrols->Add(win, wxGROW); 00045 } 00046 }

| virtual void wxMaracasIRMViewPanel::addControl | ( | wxSizer * | sizer | ) | [inline, virtual] |
Adds a new control to the panel (sizer, radiob, etc)
Definition at line 50 of file wxMaracasIRMViewPanel.h.
References sizercontrols.
00050 { 00051 if(sizercontrols!=NULL){ 00052 sizercontrols->Add(sizer, wxGROW); 00053 } 00054 }
| virtual void wxMaracasIRMViewPanel::onActionButtonPressedHide | ( | wxCommandEvent & | event | ) | [inline, virtual] |
Hides or show the controls in the panel
Definition at line 59 of file wxMaracasIRMViewPanel.h.
References show, and sizercontrols.
00059 { 00060 wxList list = sizercontrols->GetChildren(); 00061 int i; 00062 for(i=0; i<list.size();i++){ 00063 sizercontrols->Show(i,show); 00064 } 00065 show = !show; 00066 sizercontrols->Layout(); 00067 this->Layout(); 00068 }
| virtual void wxMaracasIRMViewPanel::createControls | ( | ) | [pure virtual] |
The user must implement this function to remove the panel from the The user must implement this function to add the necessary controls to the panel
Implemented in wxMaracasIRMViewProp3D.
| int wxMaracasIRMViewPanel::getPropId | ( | ) | [inline] |
returns the id of the panel
Definition at line 82 of file wxMaracasIRMViewPanel.h.
References _propid.
00082 { 00083 return _propid; 00084 }
wxBoxSizer* wxMaracasIRMViewPanel::sizercontrols [private] |
Definition at line 87 of file wxMaracasIRMViewPanel.h.
Referenced by addControl(), createPanel(), and onActionButtonPressedHide().
bool wxMaracasIRMViewPanel::show [private] |
Definition at line 88 of file wxMaracasIRMViewPanel.h.
Referenced by createPanel(), and onActionButtonPressedHide().
int wxMaracasIRMViewPanel::_propid [protected] |
Reimplemented in wxMaracasIRMViewProp3DMHD.
Definition at line 90 of file wxMaracasIRMViewPanel.h.
Referenced by getPropId(), wxMaracasIRMViewPanel(), and wxMaracasIRMViewProp3D::~wxMaracasIRMViewProp3D().
1.5.3