class wxMaracasSurfaceRenderingPanel : public wxPanel{
public:
- wxMaracasSurfaceRenderingPanel(wxWindow* parent, int propid)
+ wxMaracasSurfaceRenderingPanel(wxWindow* parent, int propid, bool _isComplexBox, int _panID)
: wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize){
createPanel();
+ isComplexBox = _isComplexBox;
+ panID = _panID;
_propid = propid;
}
//virtual ~wxMaracasSurfaceRenderingPanel();
virtual void onActionButtonPressedHide( wxCommandEvent& event ){
wxList list = sizercontrols->GetChildren();
int i;
- for(i=0; i<list.size();i++){
+ for(i=0; i<(int)list.size();i++){
sizercontrols->Show(i,show);
}
show = !show;
return _propid;
}
+ /**
+ ** Returns the papnel id
+ **/
+ int getPanId(){
+ return panID;
+ }
+
+ /**
+ ** Tells if the panel is used for a complex box
+ **/
+ bool isComplex(){
+ return isComplexBox;
+ }
+
private:
wxBoxSizer* sizercontrols;
bool show;
protected:
int _propid;
-
+
+ //-- Atributes added for complex box --//
+ bool isComplexBox;
+ int panID;
};
#endif /*WXMARACASSURFACERENDERINGPANEL_H_*/