42 DEFINE_EVENT_TYPE( wxEVT_CONCEPT_RELEASE )
49 :wxPanel(parent, -1, wxDefaultPosition, parent->GetSize(), wxTAB_TRAVERSAL)
58 wxFlexGridSizer* sizer =
new wxFlexGridSizer (1, 3, 15, 15);
60 conceptName =
new wxStaticText(
this, -1, wxString(aConceptName.c_str(),wxConvUTF8), wxDefaultPosition, wxSize(90,20), wxALIGN_CENTRE );
61 sizer->Add( conceptName, 0, wxALIGN_CENTRE |wxALIGN_CENTER_HORIZONTAL);
65 sizer->AddGrowableCol(1);
66 conceptSlider =
new wxSlider(
this, -1, actualV, minV, maxV, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL| wxSL_AUTOTICKS | wxSL_LABELS, wxDefaultValidator, wxString(aConceptName.c_str(),wxConvUTF8));
70 sizer->AddGrowableRow(1);
71 conceptSlider =
new wxSlider(
this, -1, actualV, minV, maxV, wxDefaultPosition, wxDefaultSize, wxSL_LEFT| wxSL_AUTOTICKS | wxSL_LABELS, wxDefaultValidator, wxString(aConceptName.c_str(),wxConvUTF8) );
73 sizer->Add(conceptSlider, 0, wxGROW |wxALL );
74 createElements( sizer, elementsDef );
80 this->SetAutoLayout(
true );
96 lastUpdate = (wxCheckBox * ) event.GetEventObject();
97 std::string groupId = std::string(
lastUpdate->GetName().ToAscii());
98 event.SetClientData( (
void *) atoi(groupId.c_str()) );
99 event.SetId( GetId() );
100 event.SetEventObject(
this );
101 GetEventHandler()->ProcessEvent( event );
124 wxCommandEvent cevent( theEventType, GetId() );
125 cevent.SetEventObject(
this );
126 GetEventHandler()->ProcessEvent( cevent );
135 return std::string(
conceptName->GetLabel().ToAscii());
212 else if( actual>maxShow )
221 for(i=0; i<size; i++)
226 for ( i =0; i<size; i++)
237 const char * elements = elementsDef.c_str();
238 int elementsNum = elementsDef.size();
239 wxFlexGridSizer* checkSizer =
new wxFlexGridSizer (1, elementsNum, 5, 5);
241 for( i = 0;*elements!= 0; elements++)
244 if( a == 67 || a == 99 )
254 else if ( a == 84 || a==116 )
261 sizer->Add(checkSizer, 0, wxGROW |wxALL );
281 char temp = k % 10 + 48;
283 buffer = temp + buffer;
288 wxCheckBox *checkbox =
new wxCheckBox(
this, -1, wxString( label.c_str(), wxConvUTF8), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, wxString( buffer.c_str(), wxConvUTF8) );
289 sizer->Add(checkbox, 0, wxLEFT | wxRIGHT, 5);
290 sizer->Add(0, 2, 0, wxGROW);