diff options
author | Slávek Banko <[email protected]> | 2012-08-12 02:52:29 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-08-12 02:56:41 +0200 |
commit | ab7a4fc222b18eadf1eeeef8d870ac3f2b33276f (patch) | |
tree | c81fe26511d674954ea8d5baa3dc3b67555cf836 /src/kmplayerapp.cpp | |
parent | 4a70f9ee1c6339957664811c67a9232a908138fb (diff) | |
download | kmplayer-ab7a4fc222b18eadf1eeeef8d870ac3f2b33276f.tar.gz kmplayer-ab7a4fc222b18eadf1eeeef8d870ac3f2b33276f.zip |
Added next preset scales and shortcuts for zoom
This partially resolves Bug 1032
(cherry picked from commit b929f2e6f6210eccc0ccd35f66104e16578159ff)
Diffstat (limited to 'src/kmplayerapp.cpp')
-rw-r--r-- | src/kmplayerapp.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp index 50b49b4..0ad21c7 100644 --- a/src/kmplayerapp.cpp +++ b/src/kmplayerapp.cpp @@ -596,6 +596,8 @@ KDE_NO_EXPORT void KMPlayerApp::initActions () { new KAction (i18n ("50%"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (zoom50 ()), ac, "view_zoom_50"); new KAction (i18n ("100%"), TQString ("viewmagfit"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom100 ()), ac, "view_zoom_100"); new KAction (i18n ("150%"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (zoom150 ()), ac, "view_zoom_150"); + new KAction (i18n ("200%"), 0, KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom200 ()), ac, "view_zoom_200"); + new KAction (i18n ("300%"), 0, KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom300 ()), ac, "view_zoom_300"); viewEditMode = new KToggleAction (i18n ("&Edit mode"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (editMode ()), ac, "edit_mode"); viewSyncEditMode = new KAction (i18n ("Sync &with playlist"), TQString ("reload"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (syncEditMode ()), ac, "sync_edit_mode"); viewSyncEditMode->setEnabled (false); @@ -681,6 +683,10 @@ KDE_NO_EXPORT void KMPlayerApp::initView () { TQT_TQOBJECT(this), TQT_SLOT (zoom100 ())); m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150, TQT_TQOBJECT(this), TQT_SLOT (zoom150 ())); + m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200, + TQT_TQOBJECT(this), TQT_SLOT (zoom200 ())); + m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300, + TQT_TQOBJECT(this), TQT_SLOT (zoom300 ())); connect (m_view->controlPanel()->broadcastButton (), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (broadcastClicked ())); m_auto_resize = m_player->settings ()->autoresize; @@ -1075,6 +1081,14 @@ KDE_NO_EXPORT void KMPlayerApp::zoom150 () { resizePlayer (150); } +KDE_NO_EXPORT void KMPlayerApp::zoom200 () { + resizePlayer (200); +} + +KDE_NO_EXPORT void KMPlayerApp::zoom300 () { + resizePlayer (300); +} + KDE_NO_EXPORT void KMPlayerApp::editMode () { m_view->docArea ()->hide (); bool editmode = !m_view->editMode (); |