Changeset View
Changeset View
Standalone View
Standalone View
part.cpp
Show First 20 Lines • Show All 617 Lines • ▼ Show 20 Line(s) | 606 | #endif | |||
---|---|---|---|---|---|
618 | } | 618 | } | ||
619 | 619 | | |||
620 | m_pageView->setupBaseActions( actionCollection() ); | 620 | m_pageView->setupBaseActions( actionCollection() ); | ||
621 | 621 | | |||
622 | m_sidebar->setSidebarVisibility( false ); | 622 | m_sidebar->setSidebarVisibility( false ); | ||
623 | if ( m_embedMode != PrintPreviewMode ) | 623 | if ( m_embedMode != PrintPreviewMode ) | ||
624 | { | 624 | { | ||
625 | // now set up actions that are required for all remaining modes | 625 | // now set up actions that are required for all remaining modes | ||
626 | m_pageView->setupViewerActions( actionCollection() ); | 626 | m_pageView->setupViewerActions( actionCollection(), this ); | ||
627 | // and if we are not in viewer mode, we want the full GUI | 627 | // and if we are not in viewer mode, we want the full GUI | ||
628 | if ( m_embedMode != ViewerWidgetMode ) | 628 | if ( m_embedMode != ViewerWidgetMode ) | ||
629 | { | 629 | { | ||
630 | unsetDummyMode(); | 630 | unsetDummyMode(); | ||
631 | } | 631 | } | ||
632 | } | 632 | } | ||
633 | 633 | | |||
634 | // ensure history actions are in the correct state | 634 | // ensure history actions are in the correct state | ||
▲ Show 20 Lines • Show All 2305 Lines • ▼ Show 20 Line(s) | 2939 | { | |||
2940 | m_pageView->slotToggleChangeColors(); | 2940 | m_pageView->slotToggleChangeColors(); | ||
2941 | } | 2941 | } | ||
2942 | 2942 | | |||
2943 | void Part::slotSetChangeColors(bool active) | 2943 | void Part::slotSetChangeColors(bool active) | ||
2944 | { | 2944 | { | ||
2945 | m_pageView->slotSetChangeColors(active); | 2945 | m_pageView->slotSetChangeColors(active); | ||
2946 | } | 2946 | } | ||
2947 | 2947 | | |||
2948 | void Part::slotAccessibilityPreferences() | ||||
2949 | { | ||||
2950 | // Create dialog | ||||
2951 | PreferencesDialog * dialog = new PreferencesDialog( m_pageView, Okular::Settings::self(), m_embedMode ); | ||||
2952 | dialog->setAttribute( Qt::WA_DeleteOnClose ); | ||||
2953 | | ||||
2954 | // Show it | ||||
2955 | dialog->switchToAccessibilityPage(); | ||||
2956 | dialog->show(); | ||||
2957 | } | ||||
2958 | | ||||
2948 | void Part::slotAnnotationPreferences() | 2959 | void Part::slotAnnotationPreferences() | ||
2949 | { | 2960 | { | ||
2950 | // Create dialog | 2961 | // Create dialog | ||
2951 | PreferencesDialog * dialog = new PreferencesDialog( m_pageView, Okular::Settings::self(), m_embedMode ); | 2962 | PreferencesDialog * dialog = new PreferencesDialog( m_pageView, Okular::Settings::self(), m_embedMode ); | ||
2952 | dialog->setAttribute( Qt::WA_DeleteOnClose ); | 2963 | dialog->setAttribute( Qt::WA_DeleteOnClose ); | ||
2953 | 2964 | | |||
2954 | // Show it | 2965 | // Show it | ||
2955 | dialog->switchToAnnotationsPage(); | 2966 | dialog->switchToAnnotationsPage(); | ||
▲ Show 20 Lines • Show All 750 Lines • Show Last 20 Lines |