void zoomcontroller_test::testApi() { KoZoomHandler zoomHandler; KoZoomController zoomController(new KoCanvasControllerWidget(), &zoomHandler, new KActionCollection(this), KoZoomAction::AspectMode); Q_UNUSED(zoomController); }
KPrView::KPrView(KPrPart *part, KPrDocument *document, QWidget *parent) : KoPAView(part, document, KoPAView::ModeBox, parent) , m_part(part) , m_presentationMode( new KPrViewModePresentation( this, kopaCanvas() )) , m_normalMode( viewMode() ) , m_notesMode( new KPrViewModeNotes( this, kopaCanvas() )) , m_slidesSorterMode(new KPrViewModeSlidesSorter(this, kopaCanvas())) #ifndef CALLIGRA_DISABLE_DBUS , m_dbus(new KPrViewAdaptor( this ) ) #else , m_dbus(0) #endif { m_normalMode->setName(i18n("Normal")); initGUI(); initActions(); // Change strings because in KPresenter it's called slides and not pages actionCollection()->action("view_masterpages")->setText(i18n("Show Master Slides")); actionCollection()->action("import_document")->setText(i18n("Import Slideshow...")); actionCollection()->action("page_insertpage")->setText(i18n( "Insert Slide")); actionCollection()->action("page_insertpage")->setToolTip(i18n("Insert a new slide after the current one")); actionCollection()->action("page_insertpage")->setWhatsThis(i18n("Insert a new slide after the current one")); actionCollection()->action("page_copypage")->setText(i18n("Copy Slide")); actionCollection()->action("page_copypage")->setToolTip(i18n("Copy the current slide")); actionCollection()->action("page_copypage")->setWhatsThis(i18n("Copy the current slide")); actionCollection()->action("page_deletepage")->setText(i18n("Delete Slide")); actionCollection()->action("page_deletepage")->setToolTip(i18n("Delete the current slide")); actionCollection()->action("page_deletepage")->setWhatsThis(i18n("Delete the current slide")); actionCollection()->action("format_masterpage")->setText(i18n("Master Slide...")); actionCollection()->action("page_previous")->setText(i18n("Previous Slide")); actionCollection()->action("page_previous")->setToolTip(i18n("Go to previous slide")); actionCollection()->action("page_previous")->setWhatsThis(i18n("Go to previous slide")); actionCollection()->action("page_next")->setText(i18n("Next Slide")); actionCollection()->action("page_next")->setToolTip(i18n("Go to next slide")); actionCollection()->action("page_next")->setWhatsThis(i18n("Go to next slide")); actionCollection()->action("page_first")->setText(i18n("First Slide")); actionCollection()->action("page_first")->setToolTip(i18n("Go to first slide")); actionCollection()->action("page_first")->setWhatsThis(i18n("Go to first slide")); actionCollection()->action("page_last")->setText(i18n("Last Slide")); actionCollection()->action("page_last")->setToolTip(i18n("Go to last slide")); actionCollection()->action("page_last")->setWhatsThis(i18n("Go to last slide")); actionCollection()->action("configure")->setText(i18n("Configure Stage...")); masterShapeManager()->setPaintingStrategy( new KPrShapeManagerDisplayMasterStrategy( masterShapeManager(), new KPrPageSelectStrategyActive( kopaCanvas() ) ) ); connect(zoomController(), SIGNAL(zoomChanged(KoZoomMode::Mode,qreal)), this, SLOT(zoomChanged(KoZoomMode::Mode,qreal))); setAcceptDrops(true); }