remove zoom level

This commit is contained in:
Aaron Seigo 2011-06-24 17:15:12 +02:00
parent bf17cc308a
commit 666793bff2
2 changed files with 1 additions and 43 deletions

View File

@ -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) {

View File

@ -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.