unsigned int s7 = bbGetInputIn7().size();
unsigned int s8 = bbGetInputIn8().size();
unsigned int s9 = bbGetInputIn9().size();
-
-
+
if (s0>0) { jSize++; }
if (s1>0) { jSize++; }
if (s2>0) { jSize++; }
if (s7>0) { jSize++; }
if (s8>0) { jSize++; }
if (s9>0) { jSize++; }
-
-
for (j=0;j<jSize;j++)
{
-
if (j==0){ tmpVec = bbGetInputIn0(); }
if (j==1){ tmpVec = bbGetInputIn1(); }
if (j==2){ tmpVec = bbGetInputIn2(); }
{
if (tmpVec.size()<=s0 )
{
- if (i==0){ out0.push_back( tmpVec[i] ); }
+ if (i==0){ out0.push_back( tmpVec[i] ); }
if (i==1){ out1.push_back( tmpVec[i] ); }
if (i==2){ out2.push_back( tmpVec[i] ); }
if (i==3){ out3.push_back( tmpVec[i] ); }
std::vector<wxString> lstIn );
~RadioButtonWidget();
-
int GetValue();
void OnRadioButton(wxEvent& event);
void AddElements(std::vector<wxString> lstIn, int In, wxString title);
-
private:
RadioButton *mBox;
int MAX_RADIOBUTTON;
- wxRadioButton *mwxRadioButton[10];
-
+ wxRadioButton *mwxRadioButton[25];
wxFlexGridSizer *sizer;
};
{
AddElements( lstIn , In,title);
mBox->bbSetOutputOut( GetValue() );
- mBox->bbSetInputIn( GetValue() );
+// mBox->bbSetInputIn( GetValue() );
}
//-------------------------------------------------------------------------
if (mwxRadioButton[i]->GetValue()==true)
{
result=i;
- }
- } // if GetValue
- } // if mwxRadioButton
+ } // if Value
+ } // if NULL
+ } // for i
+
return result;
}
// Any top level sub-widget must have the panel returned by panel
// for parent
mwxRadioButton[i] = new wxRadioButton( panel, -1, lstIn[i],wxDefaultPosition, wxDefaultSize, style);
- style=0;
- if (In==i)
+ style = 0;
+ if (i==In)
{
mwxRadioButton[i]->SetValue(true);
} else {
&RadioButtonWidget::OnRadioButton );
} else {
mwxRadioButton[i]=NULL;
- } // if
- } // for
+ } // if not =_T("")
+ } // for i
//---------------------------------------------------------------------
// 2) Insertion of the components in the window