void ModeWidget::initUi() { /* ensure that only one button is selected at a time */ modeGroup = new QButtonGroup(); modeGroup->addButton(zoomButton); modeGroup->addButton(pickButton); modeGroup->addButton(labelButton); cursorGroup = new QButtonGroup(); cursorGroup->addButton(smallCurButton); cursorGroup->addButton(mediumCurButton); cursorGroup->addButton(bigCurButton); cursorGroup->addButton(hugeCurButton); setCursorButtonsVisible(false); zoomButton->setAction(actionZoom); connect(actionZoom, SIGNAL(triggered()), this, SLOT(zoomMode())); labelButton->setAction(actionLabel); connect(actionLabel, SIGNAL(triggered()), this, SLOT(labelMode())); pickButton->setAction(actionPick); connect(actionZoom, SIGNAL(triggered()), this, SLOT(pickMode())); rubberButton->setAction(actionRubber); overrideButton->setAction(actionOverride); }
KPrView::~KPrView() { saveZoomConfig(zoomMode(), zoom()); delete m_presentationMode; delete m_notesMode; delete m_slidesSorterMode; }