ViMainCorrectionWidget::ViMainCorrectionWidget(QWidget *parent) : ViWidget(parent) { mUi = new Ui::ViMainCorrectionWidget(); mUi->setupUi(this); clear(); mUi->projectLoader->setTypeMode(ViProjectLoader::NoTypes); QObject::connect(mUi->projectLoader, SIGNAL(finished()), this, SLOT(showContainer())); QObject::connect(mUi->projectLoader, SIGNAL(projectChanged()), this, SLOT(showContainer())); QObject::connect(mUi->projectLoader, SIGNAL(projectModeChanged()), this, SLOT(showContainer())); //Button QObject::connect(mUi->button, SIGNAL(clicked()), this, SLOT(correct())); mUi->button->setIcon(ViThemeManager::icon("startprocess"), 40); mUi->button->setText("Process"); mUi->button->setSize(140, 60); //Label width QString style = "QLabel { width: 140px; min-width: 140px; }"; mUi->projectLoader->setStyleSheet(style); mUi->container->setStyleSheet(style); // Correctors mUi->correctorComboBox->addItems(mUi->correctionWidget->correctors()); QObject::connect(mUi->correctorComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeCorrector())); changeCorrector(); // Mode mUi->modeComboBox->addItems(ViCorrectionMode::modes()); mUi->modeComboBox->setCurrentText(ViCorrectionMode::defaultMode()); QObject::connect(mUi->modeComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeMode())); changeMode(); }
void DockingManager::showContainer(HWND hCont, BOOL view) { for (size_t iCont = 0, len = _vContainer.size(); iCont < len; ++iCont) { if (_vContainer[iCont]->getHSelf() == hCont) showContainer(iCont, view); } }