void
PanelButtonContainer::Process( )
{
+ ButtonContainerSettings* settings = new ButtonContainerSettings( );
+ printf("EED PanelButtonContainer::Process %d\n", bbGetInputIn( ).size() );
+ settings->AddButtons( bbGetInputIn( ) );
+
+ PBContainer* panel = new PBContainer( myPanel, settings );
+ wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
+ sizer->Add( panel, 1, wxEXPAND, 0 );
+ this->myPanel->SetSizer(sizer);
+
+ this->myPanel->SetAutoLayout(true);
+ this->myPanel->Layout();
+
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
-void
-PanelButtonContainer::CreateWidget( wxWindow* parent )
+void PanelButtonContainer::CreateWidget( wxWindow* parent )
{
this->myPanel = new wxPanel( parent, -1 );
wxWindow* ww = bbCreateWidgetOfInput( "In", this->myPanel );
- ButtonContainerSettings* settings = new ButtonContainerSettings( );
- settings->AddButtons( bbGetInputIn( ) );
- PBContainer* panel = new PBContainer( myPanel,
- settings );
- wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
- sizer->Add( panel, 1, wxEXPAND, 0 );
- this->myPanel->SetSizer(sizer);
bbSetOutputWidget( myPanel);
}
PanelButtonContainerSettings::Process( )
{
- // std::string msg;
- // if (bbGetInputTitle()!="")
- // {
- // msg = bbGetInputTitle()+": " + bbGetInputIn();
- // }
- // else
- // {
- // msg = bbGetInputIn();
- // }
- // ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
-
- this->m_BSettings->groupName = bbGetInputGroupName( );
- this->m_BSettings->buttonName = bbGetInputButtonName( );
- this->m_BSettings->buttonDescription = bbGetInputButtonDescription( );
- this->m_BSettings->iconpath = bbGetInputIconpath( );
- this->m_BSettings->panel = this->myPanel;
- this->m_BCSettingsVector = bbGetInputIn();
+ this->m_BSettings->groupName = bbGetInputGroupName( );
+ this->m_BSettings->buttonName = bbGetInputButtonName( );
+ this->m_BSettings->buttonDescription = bbGetInputButtonDescription( );
+ this->m_BSettings->iconpath = bbGetInputIconpath( );
+ this->m_BSettings->panel = this->myPanel;
+ this->m_BCSettingsVector = bbGetInputIn();
this->m_BCSettingsVector.push_back( this->m_BSettings );
- bbSetOutputOut( bbGetInputIn() );
-
+ bbSetOutputOut( this->m_BCSettingsVector );
+
+ printf("EED PanelButtonContainerSettings::Process In %d\n", bbGetInputIn( ).size() );
+ printf("EED PanelButtonContainerSettings::Process tmpVec %d\n", this->m_BCSettingsVector.size() );
+ printf("EED PanelButtonContainerSettings::Process Out %d\n", bbGetOutputOut( ).size() );
+
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
sizer->Add(w,1,wxEXPAND, 0);
this->myPanel->SetSizer(sizer);
bbSetOutputWidget( myPanel );
+
+
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
void SliderMinMax::Process()
{
if (mwxwidget!=NULL){
+ if (firsttime==true)
+ {
+ firsttime=false;
+ mwxwidget -> setRepresentedValues( bbGetInputInMin(), bbGetInputInMax() );
+ mwxwidget -> SetStart(bbGetInputInMinShow());
+ mwxwidget -> SetEnd(bbGetInputInMaxShow());
+ }
bbSetOutputOutStart(mwxwidget->GetStart());
bbSetOutputOutEnd(mwxwidget->GetEnd());
bbSetOutputOutActual(mwxwidget->GetActual());
mwxwidget -> setActiveStateTo(true);
mwxwidget -> setVisibleLabels( bbGetInputShowLabels()==1 );
mwxwidget -> setDeviceEndMargin(10);
- mwxwidget -> setRepresentedValues(bbGetInputInMin(), bbGetInputInMax());
+// mwxwidget -> setRepresentedValues(bbGetInputInMin(), bbGetInputInMax());
mwxwidget -> setDeviceBlitStart(10,10);
mwxwidget -> setIfWithActualDrawed(bbGetInputShowActual());
- mwxwidget -> SetStart(bbGetInputInMinShow());
- mwxwidget -> SetEnd(bbGetInputInMaxShow());
+// mwxwidget -> SetStart(bbGetInputInMinShow());
+// mwxwidget -> SetEnd(bbGetInputInMaxShow());
//wxWidgetSliderMinMax * eventHandler = new wxWidgetSliderMinMax(this, mwxwidget); //JPRx
bbtkDebugDecTab("Core",9);
//------------------------------------------------------
void SliderMinMax::bbUserSetDefaultValues()
{
- mwxwidget = NULL;
+ firsttime = true;
+ mwxwidget = NULL;
bbSetInputOrientation(1);
bbSetInputInW(200);
bbSetInputInH(65);
//--------------------------------------------------------------------------------------------------------------------------------
// Attributes
//--------------------------------------------------------------------------------------------------------------------------------
- SliderMinMax * mbbtkSliderMinMax;
- mBarRange * modBarRange;
+ SliderMinMax *mbbtkSliderMinMax;
+ mBarRange *modBarRange;
};
void CreateWidget(wxWindow*);
private:
- mBarRange* mwxwidget;
+ bool firsttime;
+ mBarRange *mwxwidget;
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(SliderMinMax,bbtk::WxBlackBox);