PresenterConsoleViewImpl::PresenterConsoleViewImpl(QWidget * parent) : QWidget(parent) { this->controlBarWrapper = new QWidget(this); this->controlBarWrapper->setStyleSheet("background: none;"); this->controlBarUi = new Ui::ControlBar(); this->controlBarUi->setupUi(this->controlBarWrapper); connect(this->controlBarUi->nextButtonLabel, SIGNAL(clicked()), this, SLOT(onNextButtonClick())); connect(this->controlBarUi->prevButtonLabel, SIGNAL(clicked()), this, SLOT(onPrevButtonClick())); connect(this->controlBarUi->slideGridButton, SIGNAL(clicked()), this, SLOT(onSlideGridButtonClick())); connect(this->controlBarUi->notesButton, SIGNAL(clicked()), this, SLOT(onNotesButtonClick())); this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); this->innerLayout = new QVBoxLayout(); this->outerLayout = new QVBoxLayout(); this->outerLayout->setSpacing(0); this->outerLayout->setMargin(0); this->innerLayout->setSpacing(0); this->innerLayout->setMargin(0); this->setLayout(this->outerLayout); this->content = new QWidget(this); this->content->setLayout(this->innerLayout); this->outerLayout->addWidget(this->content); this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); this->confirmExit = new QLabel(this); this->confirmExit->setText("Really exit?\n\n(Again to confirm, other key to cancel)"); this->confirmExit->setVisible(false); this->confirmExit->setStyleSheet("color: #FFFFFF; font-weight: bold; font-size: 32px;"); this->confirmExit->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding); this->confirmExit->setAlignment(Qt::AlignCenter); this->outerLayout->addWidget(this->confirmExit); this->outerLayout->addWidget(this->controlBarWrapper); this->outerLayout->setAlignment(this->controlBarWrapper,Qt::AlignHCenter | Qt::AlignBottom); }
DataInspectionDialog::DataInspectionDialog(QWidget *parent) : QDialog(parent) { setupUi(this); CoronalLabel->installEventFilter(this); SagittalLabel->installEventFilter(this); AxialLabel->installEventFilter(this); // connect signals and slots connect(ImagesBox,SIGNAL(activated(int)),this,SLOT(onImageBoxChange(int))); connect(PreviousButton,SIGNAL(clicked()),this,SLOT(onPreviousButtonClick())); connect(NextButton,SIGNAL(clicked()),this,SLOT(onNextButtonClick())); connect(SubjectsTree,SIGNAL(itemPressed(QTreeWidgetItem*,int)), this,SLOT(onTreeItemPressed(QTreeWidgetItem*,int))); connect(ButtonBox, SIGNAL(accepted()), this, SLOT(checkBeforeExit())); }