From b929f2e6f6210eccc0ccd35f66104e16578159ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 12 Aug 2012 02:52:29 +0200 Subject: Added next preset scales and shortcuts for zoom This partially resolves Bug 1032 --- src/kmplayer_part.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/kmplayer_part.cpp') diff --git a/src/kmplayer_part.cpp b/src/kmplayer_part.cpp index 4fb7800..fbdc632 100644 --- a/src/kmplayer_part.cpp +++ b/src/kmplayer_part.cpp @@ -316,6 +316,10 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char * this, TQT_SLOT (setMenuZoom (int))); panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150, this, TQT_SLOT (setMenuZoom (int))); + panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200, + this, TQT_SLOT (setMenuZoom (int))); + panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300, + this, TQT_SLOT (setMenuZoom (int))); m_view->setNoInfoMessages (m_features != Feat_InfoPanel); if (m_features == Feat_InfoPanel) @@ -619,7 +623,13 @@ KDE_NO_EXPORT void KMPlayerPart::setMenuZoom (int id) { m_liveconnectextension->setSize (w, h); return; } - float scale = 1.5; + float scale = 1; + if (id == KMPlayer::ControlPanel::menu_zoom300) + scale = 3.0; + if (id == KMPlayer::ControlPanel::menu_zoom200) + scale = 2.0; + if (id == KMPlayer::ControlPanel::menu_zoom150) + scale = 1.5; if (id == KMPlayer::ControlPanel::menu_zoom50) scale = 0.5; if (m_view->viewer ()) -- cgit v1.2.1