2007-09-18 23:16:17 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2007 by Aaron Seigo <aseigo@kde.org>
|
2008-04-14 11:36:55 +02:00
|
|
|
* Copyright 2008 by Ménard Alexis <darktears31@gmail.com>
|
2007-09-18 23:16:17 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this program; if not, write to the
|
|
|
|
* Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLASMA_CONTAINMENT_H
|
|
|
|
#define PLASMA_CONTAINMENT_H
|
|
|
|
|
|
|
|
#include <QtGui/QGraphicsItem>
|
|
|
|
#include <QtGui/QWidget>
|
2008-02-23 00:41:44 +01:00
|
|
|
#include <QtGui/QStyleOptionGraphicsItem>
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
#include <kplugininfo.h>
|
|
|
|
#include <ksharedconfig.h>
|
|
|
|
#include <kgenericfactory.h>
|
|
|
|
|
|
|
|
#include <plasma/applet.h>
|
2008-04-25 05:23:31 +02:00
|
|
|
#include <plasma/animator.h>
|
2007-09-18 23:16:17 +02:00
|
|
|
|
2008-01-01 20:57:40 +01:00
|
|
|
#include "widgets/icon.h"
|
|
|
|
|
2007-09-18 23:16:17 +02:00
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
|
2007-11-12 20:27:21 +01:00
|
|
|
class AppletHandle;
|
2007-09-18 23:16:17 +02:00
|
|
|
class DataEngine;
|
|
|
|
class Package;
|
2007-11-09 01:44:35 +01:00
|
|
|
class Corona;
|
2008-04-07 05:27:10 +02:00
|
|
|
class View;
|
2008-07-01 20:56:43 +02:00
|
|
|
class ContainmentPrivate;
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @short The base class for plugins that provide backgrounds and applet grouping containers
|
|
|
|
*
|
|
|
|
* Containment objects provide the means to group applets into functional sets.
|
|
|
|
* They also provide the following:
|
|
|
|
*
|
2008-05-24 14:25:56 +02:00
|
|
|
* creation of focussing event
|
2007-09-18 23:16:17 +02:00
|
|
|
* - drawing of the background image (which can be interactive)
|
|
|
|
* - form factors (e.g. panel, desktop, full screen, etc)
|
|
|
|
* - applet layout management
|
|
|
|
*
|
|
|
|
* Since containment is actually just a Plasma::Applet, all the techniques used
|
|
|
|
* for writing the visual presentation of Applets is applicable to Containtments.
|
|
|
|
* Containments are differentiated from Applets by being marked with the ServiceType
|
|
|
|
* of Plasma/Containment. Plugins registered with both the Applet and the Containment
|
|
|
|
* ServiceTypes can be loaded for us in either situation.
|
|
|
|
*
|
|
|
|
* See techbase.kde.org for a tutorial on writing Containments using this class.
|
|
|
|
*/
|
|
|
|
class PLASMA_EXPORT Containment : public Applet
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2008-02-23 00:41:44 +01:00
|
|
|
class StyleOption : public QStyleOptionGraphicsItem
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit StyleOption();
|
|
|
|
explicit StyleOption(const StyleOption &other);
|
|
|
|
explicit StyleOption(const QStyleOptionGraphicsItem &other);
|
|
|
|
|
2008-07-04 21:24:45 +02:00
|
|
|
enum StyleOptionType { Type = SO_CustomBase + 1 };
|
2008-07-03 17:58:37 +02:00
|
|
|
enum StyleOptionVersion { Version = QStyleOptionGraphicsItem::Version + 1 };
|
|
|
|
|
2008-04-07 05:27:10 +02:00
|
|
|
/**
|
|
|
|
* The View, if any, that this containment is currently
|
|
|
|
* being rendered into. Note: this may be NULL, so be
|
|
|
|
* sure to check it before using it!
|
|
|
|
*/
|
|
|
|
Plasma::View *view;
|
2008-02-23 00:41:44 +01:00
|
|
|
};
|
|
|
|
|
2007-11-29 01:20:37 +01:00
|
|
|
enum Type { NoContainmentType = -1 /**< @internal */,
|
|
|
|
DesktopContainment = 0 /**< A desktop containment */,
|
2007-11-19 02:19:58 +01:00
|
|
|
PanelContainment /**< A desktop panel */,
|
2008-04-24 18:15:30 +02:00
|
|
|
CustomContainment = 127 /**< A containment that is neither a desktop nor a panel,
|
2008-07-06 11:49:23 +02:00
|
|
|
but something application specific */,
|
|
|
|
CustomPanelContainment = 128 /**< A customized desktop panel */
|
2007-10-09 18:33:52 +02:00
|
|
|
};
|
|
|
|
|
2007-09-18 23:16:17 +02:00
|
|
|
/**
|
2008-03-28 08:36:36 +01:00
|
|
|
* @param parent the QGraphicsItem this applet is parented to
|
|
|
|
* @param serviceId the name of the .desktop file containing the
|
2007-09-18 23:16:17 +02:00
|
|
|
* information about the widget
|
2008-03-28 08:36:36 +01:00
|
|
|
* @param containmentId a unique id used to differentiate between multiple
|
2007-09-18 23:16:17 +02:00
|
|
|
* instances of the same Applet type
|
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
explicit Containment(QGraphicsItem *parent = 0,
|
|
|
|
const QString &serviceId = QString(),
|
2007-09-18 23:16:17 +02:00
|
|
|
uint containmentId = 0);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This constructor is to be used with the plugin loading systems
|
|
|
|
* found in KPluginInfo and KService. The argument list is expected
|
|
|
|
* to have two elements: the KService service ID for the desktop entry
|
|
|
|
* and an applet ID which must be a base 10 number.
|
|
|
|
*
|
2008-03-28 08:36:36 +01:00
|
|
|
* @param parent a QObject parent; you probably want to pass in 0
|
|
|
|
* @param args a list of strings containing two entries: the service id
|
2007-09-18 23:16:17 +02:00
|
|
|
* and the applet id
|
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
Containment(QObject *parent, const QVariantList &args);
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
~Containment();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reimplemented from Applet
|
|
|
|
*/
|
|
|
|
void init();
|
|
|
|
|
2007-10-09 18:33:52 +02:00
|
|
|
/**
|
|
|
|
* Returns the type of containment
|
|
|
|
*/
|
2007-11-28 22:46:17 +01:00
|
|
|
Type containmentType() const;
|
|
|
|
|
2008-03-18 00:49:01 +01:00
|
|
|
/**
|
|
|
|
* Returns the Corona (if any) that this Containment is hosted by
|
|
|
|
*/
|
|
|
|
Corona* corona() const;
|
|
|
|
|
2007-09-18 23:16:17 +02:00
|
|
|
/**
|
|
|
|
* Returns a list of all known containments.
|
|
|
|
*
|
|
|
|
* @param category Only applets matchin this category will be returned.
|
|
|
|
* Useful in conjunction with knownCategories.
|
2007-10-03 17:46:40 +02:00
|
|
|
* If "Misc" is passed in, then applets without a
|
2007-09-18 23:16:17 +02:00
|
|
|
* Categories= entry are also returned.
|
|
|
|
* If an empty string is passed in, all applets are
|
|
|
|
* returned.
|
2007-10-03 17:46:40 +02:00
|
|
|
* @param parentApp the application to filter applets on. Uses the
|
2007-09-18 23:16:17 +02:00
|
|
|
* X-KDE-ParentApp entry (if any) in the plugin info.
|
|
|
|
* The default value of QString() will result in a
|
|
|
|
* list containing only applets not specifically
|
|
|
|
* registered to an application.
|
|
|
|
* @return list of applets
|
|
|
|
**/
|
2008-04-24 23:33:16 +02:00
|
|
|
static KPluginInfo::List listContainments(const QString &category = QString(),
|
|
|
|
const QString &parentApp = QString());
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a list of all known applets associated with a certain mimetype
|
|
|
|
*
|
|
|
|
* @return list of applets
|
|
|
|
**/
|
2008-04-24 23:33:16 +02:00
|
|
|
static KPluginInfo::List listContainmentsForMimetype(const QString &mimetype);
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds an applet to this Containment
|
|
|
|
*
|
|
|
|
* @param name the plugin name for the applet, as given by
|
|
|
|
* KPluginInfo::pluginName()
|
|
|
|
* @param args argument list to pass to the plasmoid
|
|
|
|
* @param geometry where to place the applet, or to auto-place it if an invalid
|
|
|
|
* is provided
|
|
|
|
*
|
|
|
|
* @return a pointer to the applet on success, or 0 on failure
|
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
Applet* addApplet(const QString &name, const QVariantList &args = QVariantList(),
|
2008-04-25 00:18:07 +02:00
|
|
|
const QRectF &geometry = QRectF(-1, -1, -1, -1));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* add existing applet to this containment at pos
|
|
|
|
* @param applet the applet that should be added
|
|
|
|
* @param pos the containment-relative position
|
|
|
|
* @param dontInit if true, init() will not be called on the applet
|
|
|
|
*/
|
|
|
|
void addApplet(Applet *applet, const QPointF &pos = QPointF(-1, -1), bool dontInit = true);
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the applets currently in this Containment
|
|
|
|
*/
|
|
|
|
Applet::List applets() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes all applets from this Containment
|
|
|
|
*/
|
|
|
|
void clearApplets();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the physical screen this Containment is associated with.
|
|
|
|
*
|
|
|
|
* @param screen the screen number this containment is the desktop for, or -1
|
|
|
|
* if it is not serving as the desktop for any screen
|
|
|
|
*/
|
|
|
|
void setScreen(int screen);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the screen number this containment is serving as the desktop for
|
|
|
|
* or -1 if none
|
|
|
|
*/
|
|
|
|
int screen() const;
|
|
|
|
|
2008-03-14 18:05:37 +01:00
|
|
|
/**
|
|
|
|
* @return where top left corner of the containment maps to for the currently
|
|
|
|
* set screen. If no screen is associated, it will return QPoint()
|
|
|
|
*/
|
|
|
|
QPoint effectiveScreenPos() const;
|
|
|
|
|
2007-09-18 23:16:17 +02:00
|
|
|
/**
|
2008-05-22 17:53:48 +02:00
|
|
|
* @reimplemented from Applet
|
2007-09-18 23:16:17 +02:00
|
|
|
*/
|
2008-05-22 17:53:48 +02:00
|
|
|
void save(KConfigGroup &group) const;
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
/**
|
2008-05-22 17:53:48 +02:00
|
|
|
* @reimplemented from Applet
|
2007-09-18 23:16:17 +02:00
|
|
|
*/
|
2008-05-22 17:53:48 +02:00
|
|
|
void restore(KConfigGroup &group);
|
2007-09-18 23:16:17 +02:00
|
|
|
|
2007-11-19 02:19:58 +01:00
|
|
|
/**
|
2008-05-24 03:48:36 +02:00
|
|
|
* convenience function - enables or disables an action by name
|
2008-01-01 20:57:40 +01:00
|
|
|
*
|
2008-05-24 03:48:36 +02:00
|
|
|
* @param name the name of the action in our collection
|
|
|
|
* @param enable true to enable, false to disable
|
2007-11-19 02:19:58 +01:00
|
|
|
*/
|
2008-05-24 03:48:36 +02:00
|
|
|
void enableAction(const QString &name, bool enable);
|
2007-11-19 02:19:58 +01:00
|
|
|
|
2007-12-14 07:34:26 +01:00
|
|
|
/**
|
2008-05-24 03:48:36 +02:00
|
|
|
* Add an action to the toolbox
|
2007-12-14 07:34:26 +01:00
|
|
|
*/
|
2008-05-24 14:25:56 +02:00
|
|
|
void addToolBoxTool(QAction *action);
|
2007-12-14 07:34:26 +01:00
|
|
|
|
2007-12-19 03:41:45 +01:00
|
|
|
/**
|
2008-05-24 03:48:36 +02:00
|
|
|
* Remove an action from the toolbox
|
2007-12-19 03:41:45 +01:00
|
|
|
*/
|
2008-05-24 14:25:56 +02:00
|
|
|
void removeToolBoxTool(QAction *action);
|
2007-12-19 03:41:45 +01:00
|
|
|
|
2008-01-21 16:10:19 +01:00
|
|
|
/**
|
2008-04-25 20:49:27 +02:00
|
|
|
* Sets the open or closed state of the Containment's toolbox
|
|
|
|
*
|
2008-05-24 14:25:56 +02:00
|
|
|
* @arg open true to open the ToolBox, false to close it
|
2008-04-25 20:49:27 +02:00
|
|
|
*/
|
2008-05-24 14:25:56 +02:00
|
|
|
void setToolBoxOpen(bool open);
|
2008-04-25 20:49:27 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Open the Containment's toolbox
|
2008-01-21 16:10:19 +01:00
|
|
|
*/
|
2008-05-24 14:25:56 +02:00
|
|
|
void openToolBox();
|
2008-01-21 16:10:19 +01:00
|
|
|
|
|
|
|
/**
|
2008-04-25 20:49:27 +02:00
|
|
|
* Closes Containment's toolbox
|
2008-01-21 16:10:19 +01:00
|
|
|
*/
|
2008-05-24 14:25:56 +02:00
|
|
|
void closeToolBox();
|
2008-01-21 16:10:19 +01:00
|
|
|
|
2008-05-17 05:39:24 +02:00
|
|
|
/**
|
|
|
|
* associate actions with this widget, including ones added after this call.
|
|
|
|
* needed to make keyboard shortcuts work.
|
|
|
|
*/
|
|
|
|
void addAssociatedWidget(QWidget *widget);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* un-associate actions from this widget, including ones added after this call.
|
|
|
|
* needed to make keyboard shortcuts work.
|
|
|
|
*/
|
|
|
|
void removeAssociatedWidget(QWidget *widget);
|
|
|
|
|
2007-11-09 19:47:35 +01:00
|
|
|
Q_SIGNALS:
|
|
|
|
/**
|
|
|
|
* This signal is emitted when a new applet is created by the containment
|
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
void appletAdded(Plasma::Applet *applet, const QPointF &pos);
|
2007-11-09 19:47:35 +01:00
|
|
|
|
2007-12-11 03:59:02 +01:00
|
|
|
/**
|
|
|
|
* This signal is emitted when an applet is destroyed
|
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
void appletRemoved(Plasma::Applet *applet);
|
2007-12-11 03:59:02 +01:00
|
|
|
|
2007-11-19 02:19:58 +01:00
|
|
|
/**
|
2008-04-25 21:08:49 +02:00
|
|
|
* Emitted when the containment requests zooming in or out one step.
|
2007-11-19 02:19:58 +01:00
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
void zoomRequested(Plasma::Containment *containment, Plasma::ZoomDirection direction);
|
2007-11-19 03:14:18 +01:00
|
|
|
|
2008-05-01 11:58:36 +02:00
|
|
|
/**
|
|
|
|
* Emitted when the user clicks on the toolbox
|
|
|
|
*/
|
2008-05-24 14:25:56 +02:00
|
|
|
void toolBoxToggled();
|
2008-05-01 11:58:36 +02:00
|
|
|
|
2008-04-14 11:23:35 +02:00
|
|
|
/**
|
|
|
|
* Emitted when the containment wants a new containment to be created.
|
|
|
|
* Usually only used for desktop containments.
|
|
|
|
*/
|
|
|
|
void addSiblingContainment(Plasma::Containment *);
|
|
|
|
|
2007-11-19 02:19:58 +01:00
|
|
|
/**
|
|
|
|
* Emitted when the containment requests an add widgets dialog is shown.
|
|
|
|
* Usually only used for desktop containments.
|
2008-04-25 04:53:35 +02:00
|
|
|
*
|
|
|
|
* @param pos where in the containment this request was made from, or
|
|
|
|
* an invalid position (QPointF()) is not location specific
|
2007-11-19 02:19:58 +01:00
|
|
|
*/
|
2008-04-25 04:53:35 +02:00
|
|
|
void showAddWidgetsInterface(const QPointF &pos);
|
2007-11-19 03:14:18 +01:00
|
|
|
|
2008-03-12 21:41:03 +01:00
|
|
|
/**
|
|
|
|
* This signal indicates that a containment has been newly
|
|
|
|
* associated (or dissociated) with a physical screen.
|
|
|
|
*
|
|
|
|
* @param wasScreen the screen it was associated with
|
|
|
|
* @param isScreen the screen it is now associated with
|
|
|
|
* @param containment the containment switching screens
|
|
|
|
*/
|
|
|
|
void screenChanged(int wasScreen, int isScreen, Plasma::Containment *containment);
|
|
|
|
|
2008-05-21 08:16:45 +02:00
|
|
|
/**
|
|
|
|
* Emitted when the containment wants to become active.
|
|
|
|
* Usually only used for desktop containments.
|
|
|
|
*/
|
|
|
|
void focusRequested(Plasma::Containment *containment);
|
|
|
|
|
2007-09-18 23:16:17 +02:00
|
|
|
public Q_SLOTS:
|
|
|
|
/**
|
|
|
|
* Informs the Corona as to what position it is in. This is informational
|
|
|
|
* only, as the Corona doesn't change it's actual location. This is,
|
|
|
|
* however, passed on to Applets that may be managed by this Corona.
|
|
|
|
*
|
|
|
|
* @param location the new location of this Corona
|
|
|
|
*/
|
|
|
|
void setLocation(Plasma::Location location);
|
|
|
|
|
|
|
|
/**
|
2008-06-08 23:40:53 +02:00
|
|
|
* Sets the form factor for this Containment. This may cause changes in both
|
2007-09-18 23:16:17 +02:00
|
|
|
* the arrangement of Applets as well as the display choices of individual
|
|
|
|
* Applets.
|
|
|
|
*/
|
|
|
|
void setFormFactor(Plasma::FormFactor formFactor);
|
|
|
|
|
2008-04-14 11:23:35 +02:00
|
|
|
/**
|
|
|
|
* Tells the corona to create a new desktop containment
|
|
|
|
*/
|
|
|
|
void addSiblingContainment();
|
|
|
|
|
2008-05-17 05:39:24 +02:00
|
|
|
/**
|
|
|
|
* switch keyboard focus to the next of our applets
|
|
|
|
*/
|
|
|
|
void focusNextApplet();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* switch keyboard focus to the previous one of our applets
|
|
|
|
*/
|
|
|
|
void focusPreviousApplet();
|
|
|
|
|
2008-05-20 06:02:36 +02:00
|
|
|
/**
|
|
|
|
* Destroys this containment and all its applets (after a confirmation dialog);
|
|
|
|
* it will be removed nicely and deleted.
|
|
|
|
* Its configuration will also be deleted.
|
|
|
|
*/
|
|
|
|
void destroy();
|
|
|
|
|
2008-04-25 04:19:17 +02:00
|
|
|
protected:
|
2008-04-24 18:29:23 +02:00
|
|
|
/**
|
|
|
|
* Sets the type of this containment.
|
|
|
|
*/
|
|
|
|
void setContainmentType(Containment::Type type);
|
|
|
|
|
2008-05-22 17:53:48 +02:00
|
|
|
/**
|
|
|
|
* Called when the contents of the containment should be saved. By default this saves
|
|
|
|
* all loaded Applets
|
|
|
|
*
|
|
|
|
* @param group the KConfigGroup to save settings under
|
|
|
|
*/
|
|
|
|
virtual void saveContents(KConfigGroup &group) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the contents of the containment should be loaded. By default this loads
|
|
|
|
* all previously saved Applets
|
|
|
|
*
|
|
|
|
* @param group the KConfigGroup to save settings under
|
|
|
|
*/
|
|
|
|
virtual void restoreContents(KConfigGroup &group);
|
|
|
|
|
|
|
|
|
2008-05-21 06:37:10 +02:00
|
|
|
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
|
2007-11-05 19:40:45 +01:00
|
|
|
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
|
|
|
|
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
|
2008-04-14 23:50:41 +02:00
|
|
|
void keyPressEvent(QKeyEvent *event);
|
2007-11-12 20:27:21 +01:00
|
|
|
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event);
|
2008-03-12 16:23:33 +01:00
|
|
|
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
/**
|
2008-06-13 18:21:59 +02:00
|
|
|
* @reimplemented from QGraphicsItem
|
|
|
|
*/
|
|
|
|
void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
|
|
|
|
|
2008-06-23 02:13:03 +02:00
|
|
|
/**
|
|
|
|
* @reimplemented from QGraphicsItem
|
|
|
|
*/
|
|
|
|
void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
|
|
|
|
|
2008-06-13 18:21:59 +02:00
|
|
|
/**
|
|
|
|
* @reimplemented from QGraphicsItem
|
2007-09-18 23:16:17 +02:00
|
|
|
*/
|
2008-05-21 06:37:10 +02:00
|
|
|
void dropEvent(QGraphicsSceneDragDropEvent *event);
|
2007-09-18 23:16:17 +02:00
|
|
|
|
|
|
|
private:
|
2008-04-25 08:59:55 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void appletDestroyed(QObject*))
|
2008-05-24 19:13:19 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void containmentAppletAnimationComplete(QGraphicsItem *item, Plasma::Animator::Animation anim))
|
2008-04-25 04:53:35 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void triggerShowAddWidgets())
|
2008-04-25 08:59:55 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void handleDisappeared(AppletHandle *handle))
|
2008-05-24 14:25:56 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void positionToolBox())
|
2008-04-25 21:08:49 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void zoomIn())
|
|
|
|
Q_PRIVATE_SLOT(d, void zoomOut())
|
2008-04-26 02:12:31 +02:00
|
|
|
Q_PRIVATE_SLOT(d, void toggleDesktopImmutability())
|
2007-09-18 23:16:17 +02:00
|
|
|
|
2008-04-24 18:29:23 +02:00
|
|
|
friend class Applet;
|
2008-07-01 20:56:43 +02:00
|
|
|
friend class ContainmentPrivate;
|
|
|
|
ContainmentPrivate* const d;
|
2007-09-18 23:16:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // Plasma namespace
|
|
|
|
|
|
|
|
|
|
|
|
#endif // multiple inclusion guard
|