DefaultSimSubpanel::DefaultSimSubpanel(): PluginSimPanel(), left(new DefaultSimSubpanelLeftWidget), right(new DefaultSimSubpanelRightWidget), sim_process(0), thread(0), mvpm(0), mpkg(0),mLog(0), portsToPlot() { QObject::connect(left->ui->runButton, SIGNAL(pressed()), this, SLOT(onRunPressed())); QObject::connect(right->ui->butSimColor, SIGNAL(clicked()), this, SLOT(onToolColor())); QObject::connect(right->ui->treeSimViews, SIGNAL(itemChanged(QTreeWidgetItem *, int)), this, SLOT(onTreeItemChanged(QTreeWidgetItem *, int))); QObject::connect(right->ui->treeSimViews, SIGNAL(itemSelectionChanged()), this, SLOT(onTreeItemSelected())); }
PlanSimSubpanel::PlanSimSubpanel() : PluginSimPanel() , debug(false) , nbthreads(0) , blockSize(8) , left(new PlanSimSubpanelLeftWidget) , right(new PlanSimSubpanelRightWidget) , sim_process(0) , thread(0) , mvpz(0) , mpkg(0) , mLog(0) , timer(this) , portsToPlot() , log_messages() , index_message(0) { QObject::connect( left->ui->runButton, SIGNAL(pressed()), this, SLOT(onRunPressed())); QObject::connect(left->ui->debugCombo, SIGNAL(currentTextChanged(QString)), this, SLOT(onDebugChanged(QString))); QObject::connect(left->ui->threadsSpinBox, SIGNAL(valueChanged(int)), this, SLOT(onThreadsChanged(int))); QObject::connect(left->ui->blockSizeSpinBox, SIGNAL(valueChanged(int)), this, SLOT(onBlockSizeChanged(int))); QObject::connect( right->ui->butSimColor, SIGNAL(clicked()), this, SLOT(onToolColor())); QObject::connect(right->ui->treeSimViews, SIGNAL(itemChanged(QTreeWidgetItem*, int)), this, SLOT(onTreeItemChanged(QTreeWidgetItem*, int))); QObject::connect(right->ui->treeSimViews, SIGNAL(itemSelectionChanged()), this, SLOT(onTreeItemSelected())); QObject::connect(&timer, SIGNAL(timeout()), this, SLOT(onTimeout())); }