From 666793bff255b00ba0ea33bc0b6adb93bf06a1e8 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 24 Jun 2011 17:15:12 +0200 Subject: [PATCH] remove zoom level --- plasma.cpp | 18 ------------------ plasma.h | 26 +------------------------- 2 files changed, 1 insertion(+), 43 deletions(-) diff --git a/plasma.cpp b/plasma.cpp index b9d14e928..aeb3823c1 100644 --- a/plasma.cpp +++ b/plasma.cpp @@ -30,24 +30,6 @@ namespace Plasma { -qreal scalingFactor(ZoomLevel level) -{ - switch (level) { - case DesktopZoom: - return 1; - break; - case GroupZoom: - return 0.5; - break; - case OverviewZoom: - return 0.2; - break; - } - - // to make odd compilers not warn like silly beasts - return 1; -} - Direction locationToDirection(Location location) { switch (location) { diff --git a/plasma.h b/plasma.h index 700c41448..cb71787a6 100644 --- a/plasma.h +++ b/plasma.h @@ -97,14 +97,6 @@ enum Direction { Right /**< Display to the right */ }; -/** - * The direction of a zoom action. - */ -enum ZoomDirection { - ZoomIn = 0, /**< Zoom in one step */ - ZoomOut = 1 /**< Zoom out one step */ -}; - /** * The Location enumeration describes where on screen an element, such as an * Applet or its managing container, is positioned on the screen. @@ -168,17 +160,6 @@ enum FlipDirection { }; Q_DECLARE_FLAGS(Flip, FlipDirection) -/** - * Zoom levels that Plasma is aware of... - **/ -enum ZoomLevel { - DesktopZoom = 0, /**< Normal desktop usage, plasmoids are painted normally - and have full interaction */ - GroupZoom, /**< Plasmoids are shown as icons in visual groups; drag - and drop and limited context menu interaction only */ - OverviewZoom /**< Groups become icons themselves */ -}; - /** * Possible timing alignments **/ @@ -207,7 +188,7 @@ enum ImmutabilityType { }; /** - * Defines the aspect ratio used when scaling an applet + * Defines the aspect ratio used when resizing an applet */ enum AspectRatioMode { InvalidAspectRatioMode = -1, /**< Unset mode used for dev convenience @@ -295,11 +276,6 @@ enum BackgroundHints { }; Q_ENUMS(BackgroundHints) -/** - * @return the scaling factor (0..1) for a ZoomLevel - **/ -PLASMA_EXPORT qreal scalingFactor(ZoomLevel level); - /** * Converts a location to a direction. Handy for figuring out which way to send a popup based on * location or to point arrows and other directional items.