void CXTPCalendarWeekView::ShowDay(const COleDateTime& date, BOOL bSelect) { CXTPCalendarControl::CUpdateContext updateContext(m_pControl, xtpCalendarUpdateRedrawIfNeed); CXTPCalendarControl::CViewChangedContext viewChanged(this); CXTPCalendarControl::CUpdateContext updateContext2(m_pControl, xtpCalendarUpdateAll); SetBeginDate(date); Populate(); if (bSelect) SelectDay(CXTPCalendarUtils::ResetTime(date)); }
/*! Sets the camera parameters to \a value. The camera defines the projection to apply to convert eye co-ordinates into window co-ordinates, and the position and orientation of the viewer's eye. If \a value is null, then the default camera object will be used. This function will call queueUpdate() to force the view to update with the new camera parameters upon the next event loop. \sa camera() */ void QGLView::setCamera(QGLCamera *value) { if (!value) value = d->defaultCamera; if (d->camera == value) return; disconnect(d->camera, SIGNAL(projectionChanged()), this, SLOT(cameraChanged())); disconnect(d->camera, SIGNAL(viewChanged()), this, SLOT(cameraChanged())); d->camera = value; connect(d->camera, SIGNAL(projectionChanged()), this, SLOT(cameraChanged())); connect(d->camera, SIGNAL(viewChanged()), this, SLOT(cameraChanged())); cameraChanged(); }
void QgsLayoutView::setVerticalRuler( QgsLayoutRuler *ruler ) { mVerticalRuler = ruler; ruler->setLayoutView( this ); if ( QgsLayout *layout = currentLayout() ) { connect( &layout->guides(), &QAbstractItemModel::dataChanged, ruler, [ = ] { mVerticalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::rowsInserted, ruler, [ = ] { mVerticalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::rowsRemoved, ruler, [ = ] { mVerticalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::modelReset, ruler, [ = ] { mVerticalRuler->update(); } ); } viewChanged(); }
NavFichiers::NavFichiers(QWidget *parent) : QMainWindow(parent) { QSettings settings(Multiuso::appDirPath() + "/ini/nav_fichiers.ini", QSettings::IniFormat); if (settings.value("view_type").toString().isEmpty()) settings.setValue("view_type", "Tableau"); selectView = new QComboBox; selectView->addItems(QStringList() << "Tableau" << "Liste"); selectView->setCurrentIndex(selectView->findText(settings.value("view_type").toString())); connect(selectView, SIGNAL(currentIndexChanged(QString)), this, SLOT(viewChanged(QString))); status = statusBar(); status->addPermanentWidget(new QLabel("Vue : ")); status->addPermanentWidget(selectView); creerActions(); QToolButton *buttonNewTab = new QToolButton; buttonNewTab->setDefaultAction(actionNouvelOnglet); buttonNewTab->setAutoRaise(true); QToolButton *buttonCloseTab = new QToolButton; buttonCloseTab->setDefaultAction(actionFermerOnglet); buttonCloseTab->setAutoRaise(true); onglets = new QTabWidget; onglets->setMovable(true); onglets->setDocumentMode(true); onglets->setCornerWidget(buttonNewTab, Qt::BottomLeftCorner); onglets->setCornerWidget(buttonCloseTab, Qt::BottomRightCorner); connect(onglets, SIGNAL(tabCloseRequested(int)), this, SLOT(slotFermerOnglet(int))); connect(onglets, SIGNAL(currentChanged(int)), this, SLOT(slotOngletChange(int))); ajouterOnglet(); onglets->setTabsClosable(false); setCentralWidget(onglets); QSettings reglages(Multiuso::appDirPath() + "/ini/nav_fichiers.ini", QSettings::IniFormat); restoreState(reglages.value("etat_fenetre").toByteArray()); QShortcut *shortcutSwitchTab = new QShortcut(QKeySequence("Ctrl+Tab"), this); connect(shortcutSwitchTab, SIGNAL(activated()), this, SLOT(slotSwitchTab())); p_fenPrincipale = parent; p_navigateurWeb = NULL; m_copyCutObject = new CopyCutObject; }
void MzGlutApp::mouse(int button, int state, int x, int y) { if (state == GLUT_DOWN) { mmode = btn2cam(button); camera.mousePress(x,y,mmode); } else { camera.mouseRelease(x,y,mmode); mmode = GlCamera::MOUSE_NONE; } viewChanged(state == GLUT_DOWN); }
bool amaroK::PluginConfig::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: viewChanged(); break; case 1: settingsSaved(); break; default: return QObject::qt_emit(_id,_o); } return TRUE; }
void QmlMapControl::setZoom(int zoomlevel) { if ( currentZoom() == zoomlevel || zoomlevel < 0 || zoomlevel > 17 ) { return; } layermanager->setZoom(zoomlevel); updateView(); emit viewChanged(currentCoordinate(), currentZoom()); refresh(); }
void djvImageView::setData(const djvPixelData * data) { if (data == _p->data) return; //DJV_DEBUG("djvImageView::setData"); _p->data = data; update(); Q_EMIT dataChanged(_p->data); Q_EMIT viewChanged(); }
void ModelViewer::setView(QAbstractItemView *view) { QAbstractItemView *oldView = m_view; if(m_view) { removeWidget(m_view); } m_view = view; if(m_view) { m_view->setModel(m_model); addWidget(m_view, 0, 0); } emit viewChanged(oldView, m_view); }
void MzGlutApp::reshape(int w, int h) { glClearColor(1,1,1,1); width = w; height = h; glViewport(0, 0, width, height); camera.setViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); camera.loadMatrix(GlCamera::MATRIX_PROJECTION); viewChanged(true); }
void HistoryConfig::styleSelected(int n) { if (n == m_cur) return; if (m_styles.size() == 0) return; if (m_bDirty && (m_cur >= 0)) m_styles[m_cur].text = unquoteText(edtStyle->text()); m_cur = n; bool bCustom = m_styles[n].bCustom; btnRename->setEnabled(bCustom); btnDelete->setEnabled(bCustom); edtStyle->setReadOnly(!bCustom); fillPreview(); if (tabStyle->currentPage() == source) viewChanged(source); }
void KateViewManager::closeViews(KTextEditor::Document *doc) { QList<KTextEditor::View*> closeList; for ( QList<KTextEditor::View*>::const_iterator it = m_viewList.constBegin(); it != m_viewList.constEnd(); ++it) { if ( (*it)->document() == doc ) closeList.append( *it ); } while ( !closeList.isEmpty() ) deleteView( closeList.takeFirst(), true ); if (m_blockViewCreationAndActivation) return; QTimer::singleShot(0, this, SIGNAL(viewChanged())); }
//BEGIN KateFileList KateFileList::KateFileList (KateMainWindow *main, KateViewManager *_viewManager, QWidget * parent, const char * name ) : KListView (parent, name) , m_sort( KateFileList::sortByID ) { m_main = main; m_tooltip = new ToolTip( viewport(), this ); // default colors m_viewShade = QColor( 51, 204, 255 ); m_editShade = QColor( 255, 102, 153 ); m_enableBgShading = false; setFocusPolicy ( QWidget::NoFocus ); viewManager = _viewManager; header()->hide(); addColumn("Document Name"); setSelectionMode( QListView::Single ); setSorting( 0, true ); setShowToolTips( false ); setupActions (); for (uint i = 0; i < KateDocManager::self()->documents(); i++) { slotDocumentCreated (KateDocManager::self()->document(i)); slotModChanged (KateDocManager::self()->document(i)); } connect(KateDocManager::self(),SIGNAL(documentCreated(Kate::Document *)), this,SLOT(slotDocumentCreated(Kate::Document *))); connect(KateDocManager::self(),SIGNAL(documentDeleted(uint)), this,SLOT(slotDocumentDeleted(uint))); // don't Honour KDE single/double click setting, this files are already open, // no need for hassle of considering double-click connect(this,SIGNAL(selectionChanged(QListViewItem *)), this,SLOT(slotActivateView(QListViewItem *))); connect(viewManager,SIGNAL(viewChanged()), this,SLOT(slotViewChanged())); connect(this,SIGNAL(contextMenuRequested( QListViewItem *, const QPoint &, int )), this,SLOT(slotMenu ( QListViewItem *, const QPoint &, int ))); }
void GLWidget::PMRReleaseEvent(int action, double /*xScene*/, double /*yScene*/) { // DOESN'T WORK FOR TABLETS //if(action == GLAction::Zoom && cameraZoomIsEnabled_) //{ // mouse_HideCursor_ = false; // QCursor::setPos(mapToGlobal(QPoint(mouse_PressEvent_X_,mouse_PressEvent_Y_))); // emit viewChanged(); //} if(action == GLAction::Dolly || action == GLAction::Travelling || action == GLAction::Zoom) { emit viewChanged(mouse_Event_X_, mouse_Event_Y_); } }
void ViewManager::scale(float scaleValue) { if( scaleValue < mMinScale ) { scaleValue = mMinScale; } else if( scaleValue > mMaxScale) { scaleValue = mMaxScale; } else if( scaleValue == mMinScale || scaleValue == mMaxScale ) { return; } mScale = scaleValue; mView = createViewTransform(); Q_EMIT viewChanged(); }
void KisSketchView::documentAboutToBeDeleted() { if (d->undoAction) d->undoAction->disconnect(this); if (d->redoAction) d->redoAction->disconnect(this); KisView2 *oldView = d->view; disconnect(d->view, SIGNAL(floatingMessageRequested(QString,QString)), this, SIGNAL(floatingMessageRequested(QString,QString))); d->view = 0; emit viewChanged(); delete oldView; d->canvas = 0; d->canvasWidget = 0; }
void VulkanExampleBase::windowResize() { if (!prepared) { return; } prepared = false; // Recreate swap chain width = destWidth; height = destHeight; createSetupCommandBuffer(); setupSwapChain(); // Recreate the frame buffers vkDestroyImageView(device, depthStencil.view, nullptr); vkDestroyImage(device, depthStencil.image, nullptr); vkFreeMemory(device, depthStencil.mem, nullptr); setupDepthStencil(); for (uint32_t i = 0; i < frameBuffers.size(); i++) { vkDestroyFramebuffer(device, frameBuffers[i], nullptr); } setupFrameBuffer(); flushSetupCommandBuffer(); // Command buffers need to be recreated as they may store // references to the recreated frame buffer destroyCommandBuffers(); createCommandBuffers(); buildCommandBuffers(); vkQueueWaitIdle(queue); vkDeviceWaitIdle(device); // Notify derived class windowResized(); viewChanged(); prepared = true; }
void KateViewManager::restoreViewConfiguration (const KConfigGroup& config) { // remove all views and viewspaces + remove their xml gui clients for (int i = 0; i < m_viewList.count(); ++i) mainWindow()->guiFactory ()->removeClient (m_viewList.at(i)); qDeleteAll( m_viewList ); m_viewList.clear(); qDeleteAll( m_viewSpaceList ); m_viewSpaceList.clear(); m_activeStates.clear(); // start recursion for the root splitter (Splitter 0) restoreSplitter( config.config(), config.name() + "-Splitter 0", this, config.name() ); // finally, make the correct view from the last session active int lastViewSpace = config.readEntry("Active ViewSpace", 0); if( lastViewSpace > m_viewSpaceList.size() ) lastViewSpace = 0; if( lastViewSpace >= 0 && lastViewSpace < m_viewSpaceList.size()) { setActiveSpace( m_viewSpaceList.at( lastViewSpace ) ); setActiveView( m_viewSpaceList.at( lastViewSpace )->currentView() ); m_viewSpaceList.at( lastViewSpace )->currentView()->setFocus(); } // emergency if (m_viewSpaceList.empty()) { // kill bad children while (count()) delete widget (0); KateViewSpace* vs = new KateViewSpace( this, 0 ); addWidget (vs); vs->setActive( true ); m_viewSpaceList.append(vs); } updateViewSpaceActions(); // the view has (maybe) changed - promote it to the world emit viewChanged(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { setupUi(this); // The DisplayArea's view needs to be connected to the viewLabel. connect(displayArea, SIGNAL(viewChanged()), this, SLOT(updateViewLabel())); // Give us a nice default view. displayArea->view = Rect(-2.75, 1.5, 4.5, 3); displayArea->maxIterations = 200; displayArea->colorMethod = Phase; // The maxIterationsTextbox should only accept integers in a certain range. QIntValidator *maxIterationsValidator = new QIntValidator(1, INT_MAX, maxIterationsTextbox); maxIterationsTextbox->setValidator(maxIterationsValidator); maxIterationsTextbox->setText("200"); updateViewLabel(); updateSizeLabel(); }
void GLWidget::zoomOut() { if(isBusy()) return; if(cameraZoomIsEnabled_) { // 3D double ratio = 1/0.8; camera_.setR( camera_.r() * ratio ); // 2D ratio = 1/ratio; camera2D_.setZoom( camera2D_.zoom() * ratio ); camera2D_.setX( mouse_Event_X_ + ratio * ( camera2D_.x() - mouse_Event_X_ ) ); camera2D_.setY( mouse_Event_Y_ + ratio * ( camera2D_.y() - mouse_Event_Y_ ) ); emit viewChanged(mouse_Event_X_, mouse_Event_Y_); } }
void QgsLayoutView::setZoomLevel( double level ) { if ( currentLayout()->units() == QgsUnitTypes::LayoutPixels ) { setTransform( QTransform::fromScale( level, level ) ); } else { double dpi = QgsApplication::desktop()->logicalDpiX(); //monitor dpi is not always correct - so make sure the value is sane if ( ( dpi < 60 ) || ( dpi > 1200 ) ) dpi = 72; //desired pixel width for 1mm on screen level = qBound( MIN_VIEW_SCALE, level, MAX_VIEW_SCALE ); double mmLevel = currentLayout()->convertFromLayoutUnits( level, QgsUnitTypes::LayoutMillimeters ).length() * dpi / 25.4; setTransform( QTransform::fromScale( mmLevel, mmLevel ) ); } emit zoomLevelChanged(); viewChanged(); }
void QgsLayoutView::zoomWidth() { //get current visible part of scene QRect viewportRect( 0, 0, viewport()->width(), viewport()->height() ); QRectF visibleRect = mapToScene( viewportRect ).boundingRect(); double verticalCenter = ( visibleRect.top() + visibleRect.bottom() ) / 2.0; // expand out visible rect to include left/right edges of scene // centered on current visible vertical center // note that we can't have a 0 height rect - fitInView doesn't handle that // so we just set a very small height instead. const double tinyHeight = 0.01; QRectF targetRect( scene()->sceneRect().left(), verticalCenter - tinyHeight, scene()->sceneRect().width(), tinyHeight * 2 ); fitInView( targetRect, Qt::KeepAspectRatio ); emit zoomLevelChanged(); viewChanged(); }
void Canvas::mouseMoveEvent(QMouseEvent *event) { QGraphicsView::mouseMoveEvent(event); if (scene->mouseGrabberItem() == NULL) { if (event->buttons() == Qt::LeftButton) { pan(_click_pos_world - sceneToWorld(mapToScene(event->pos()))); } else if (event->buttons() == Qt::RightButton) { QPointF d = _click_pos - event->pos(); pitch = fmin(0, fmax(-M_PI, pitch - 0.01 * d.y())); yaw = fmod(yaw + M_PI - 0.01 * d.x(), M_PI*2) - M_PI; _click_pos = event->pos(); update(); emit(viewChanged()); } } }
AMDemodGUI::AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent) : RollupWidget(parent), ui(new Ui::AMDemodGUI), m_pluginAPI(pluginAPI), m_deviceAPI(deviceAPI), m_channelMarker(this), m_basicSettingsShown(false), m_doApplySettings(true), m_squelchOpen(false) { ui->setupUi(this); setAttribute(Qt::WA_DeleteOnClose, true); connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool))); connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked())); m_amDemod = new AMDemod(); m_channelizer = new DownChannelizer(m_amDemod); m_threadedChannelizer = new ThreadedBasebandSampleSink(m_channelizer, this); //m_pluginAPI->addThreadedSink(m_threadedChannelizer); m_deviceAPI->addThreadedSink(m_threadedChannelizer); connect(&m_pluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); // 50 ms ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold)); ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenAndBlue); //m_channelMarker = new ChannelMarker(this); m_channelMarker.setColor(Qt::yellow); m_channelMarker.setBandwidth(5000); m_channelMarker.setCenterFrequency(0); m_channelMarker.setVisible(true); connect(&m_channelMarker, SIGNAL(changed()), this, SLOT(viewChanged())); m_deviceAPI->registerChannelInstance(m_channelID, this); m_deviceAPI->addChannelMarker(&m_channelMarker); m_deviceAPI->addRollupWidget(this); applySettings(); }
QGLViewPrivate(QGLView *parent) : view(parent), mainSurface(parent) { options = QGLView::CameraNavigation; fbo = 0; leftSurface = 0; rightSurface = 0; if (parent->format().stereo()) stereoType = QGLView::Hardware; else stereoType = QGLView::RedCyanAnaglyph; pickBufferForceUpdate = true; pickBufferMaybeInvalid = true; updateQueued = false; pressedObject = 0; pressedButton = Qt::NoButton; enteredObject = 0; defaultCamera = new QGLCamera(parent); camera = defaultCamera; panning = false; startPan = QPoint(-1, -1); lastPan = QPoint(-1, -1); panModifiers = Qt::NoModifier; QObject::connect(defaultCamera, SIGNAL(projectionChanged()), parent, SLOT(cameraChanged())); QObject::connect(defaultCamera, SIGNAL(viewChanged()), parent, SLOT(cameraChanged())); logTime.start(); lastFrameTime.start(); QByteArray env = qgetenv("Quick3D_LOG_EVENTS"); if (env == "1") options |= QGLView::PaintingLog; }
void QgsLayoutView::setCurrentLayout( QgsLayout *layout ) { setScene( layout ); connect( layout->pageCollection(), &QgsLayoutPageCollection::changed, this, &QgsLayoutView::viewChanged ); connect( layout, &QgsLayout::selectedItemChanged, this, &QgsLayoutView::itemFocused ); viewChanged(); mSnapMarker.reset( new QgsLayoutViewSnapMarker() ); mSnapMarker->hide(); layout->addItem( mSnapMarker.get() ); mHorizontalSnapLine.reset( createSnapLine() ); mHorizontalSnapLine->hide(); layout->addItem( mHorizontalSnapLine.get() ); mVerticalSnapLine.reset( createSnapLine() ); mVerticalSnapLine->hide(); layout->addItem( mVerticalSnapLine.get() ); if ( mHorizontalRuler ) { connect( &layout->guides(), &QAbstractItemModel::dataChanged, mHorizontalRuler, [ = ] { mHorizontalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::rowsInserted, mHorizontalRuler, [ = ] { mHorizontalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::rowsRemoved, mHorizontalRuler, [ = ] { mHorizontalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::modelReset, mHorizontalRuler, [ = ] { mHorizontalRuler->update(); } ); } if ( mVerticalRuler ) { connect( &layout->guides(), &QAbstractItemModel::dataChanged, mVerticalRuler, [ = ] { mVerticalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::rowsInserted, mVerticalRuler, [ = ] { mVerticalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::rowsRemoved, mVerticalRuler, [ = ] { mVerticalRuler->update(); } ); connect( &layout->guides(), &QAbstractItemModel::modelReset, mVerticalRuler, [ = ] { mVerticalRuler->update(); } ); } //emit layoutSet, so that designer dialogs can update for the new layout emit layoutSet( layout ); }
NFMDemodGUI::NFMDemodGUI(PluginAPI* pluginAPI, QWidget* parent) : RollupWidget(parent), ui(new Ui::NFMDemodGUI), m_pluginAPI(pluginAPI), m_basicSettingsShown(false) { ui->setupUi(this); setAttribute(Qt::WA_DeleteOnClose, true); connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool))); connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked())); m_audioFifo = new AudioFifo(4, 48000 / 4); m_spectrumVis = new SpectrumVis(ui->glSpectrum); m_nfmDemod = new NFMDemod(m_audioFifo, m_spectrumVis); m_channelizer = new Channelizer(m_nfmDemod); m_threadedSampleSink = new ThreadedSampleSink(m_channelizer); m_pluginAPI->addAudioSource(m_audioFifo); m_pluginAPI->addSampleSink(m_threadedSampleSink); ui->glSpectrum->setCenterFrequency(6000); ui->glSpectrum->setSampleRate(12000); ui->glSpectrum->setDisplayWaterfall(true); ui->glSpectrum->setDisplayMaxHold(true); m_spectrumVis->configure(m_threadedSampleSink->getMessageQueue(), 64, 10, FFTWindow::BlackmanHarris); m_channelMarker = new ChannelMarker(this); m_channelMarker->setColor(Qt::red); m_channelMarker->setBandwidth(12500); m_channelMarker->setCenterFrequency(0); m_channelMarker->setVisible(true); connect(m_channelMarker, SIGNAL(changed()), this, SLOT(viewChanged())); m_pluginAPI->addChannelMarker(m_channelMarker); ui->spectrumGUI->setBuddies(m_threadedSampleSink->getMessageQueue(), m_spectrumVis, ui->glSpectrum); applySettings(); }
void SimApp::setView(SimCommandView *w) { // View for other than DisplayText received. Cancel sustainedDisplay if ( !qobject_cast<SimText*>(w) && hasSustainedDisplayText ) hasSustainedDisplayText = false; #ifndef QTOPIA_TEST waitDlg->hide(); #endif hideNotification(); stack->addWidget(w); if (view) { view->removeEventFilter(this); removeView(view); } view = w; view->installEventFilter(this); stack->setCurrentWidget(w); if (!isVisible() && (!view->inherits("SimMenu") || !((SimMenu*)view)->isMainMenu())) { commandOutsideMenu = true; showMaximized(); } emit viewChanged(w); }
SkillWindow::SkillWindow(QWidget *parent_widget) : QWidget(parent_widget) { mSkillView = new SkillView; mSkillList = new SkillList(mSkillView); QSplitter *mainSplitter = new QSplitter; mainSplitter->addWidget(mSkillList); mainSplitter->addWidget(mSkillView); QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addWidget(mainSplitter); connect(mSkillList, SIGNAL(itemClicked(int)), mSkillView, SLOT(view(int))); connect(mSkillView, SIGNAL(viewChanged()), mSkillList, SLOT(refresh())); connect(mSkillList, SIGNAL(addItemRequested()), mSkillView, SLOT(add())); connect(Options::getSingletonPtr(), SIGNAL(optionsChanged()), this, SLOT(refresh())); setLayout(mainLayout); setWindowTitle( tr("%1 - Skill List").arg( tr("Shin Megami Tensei IMAGINE DB") ) ); resize(800, 600); }
void medViewContainer::setView(medAbstractView *view) { if(d->view) { d->view->viewWidget()->hide(); this->removeInternView(); } if(view) { d->view = view; connect(d->view, SIGNAL(destroyed()), this, SLOT(removeInternView())); connect(d->view, SIGNAL(selectedRequest(bool)), this, SLOT(setSelected(bool))); if(medAbstractLayeredView* layeredView = dynamic_cast<medAbstractLayeredView*>(view)) { connect(layeredView, SIGNAL(currentLayerChanged()), this, SIGNAL(currentLayerChanged())); connect(layeredView, SIGNAL(currentLayerChanged()), this, SLOT(updateToolBar())); connect(layeredView, SIGNAL(layerAdded(uint)), this, SIGNAL(viewContentChanged())); connect(layeredView, SIGNAL(layerRemoved(uint)), this, SIGNAL(viewContentChanged())); } if (medAbstractImageView* imageView = dynamic_cast <medAbstractImageView*> (view)) { if (!d->userSplittable) imageView->fourViewsParameter()->hide(); } d->maximizedAction->setEnabled(true); d->defaultWidget->hide(); d->mainLayout->addWidget(d->view->viewWidget(), 2, 0, 1, 1); d->view->viewWidget()->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::MinimumExpanding); d->view->viewWidget()->show(); emit viewChanged(); } }