From 4c1e5b8e9df4223b1be4927f7b983a504cf972fc Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 1 May 2008 09:58:36 +0000 Subject: [PATCH] New class called PanelController: is a new QWidget shown when the user clicks on the panel toolbox, it's a thing that will eventually replace the panel configuration dialog. at the moment it has an add aplet and remove panel buttons. it is possible to resize the panel by dragging the upper edge of the panel controller and in the future will be provided a way to resize the panel width and changing the position. at the moment there is the known problem that the resize handle doesn't work for vertical panel for now. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802932 --- containment.cpp | 2 ++ containment.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/containment.cpp b/containment.cpp index 8ed7ff6b0..2cbcf1a27 100644 --- a/containment.cpp +++ b/containment.cpp @@ -837,6 +837,8 @@ Toolbox* Containment::Private::createToolBox() break; } positionToolBox(); + + connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled())); } return toolBox; diff --git a/containment.h b/containment.h index e6ec271ca..763261cbd 100644 --- a/containment.h +++ b/containment.h @@ -276,6 +276,11 @@ class PLASMA_EXPORT Containment : public Applet */ void zoomRequested(Plasma::Containment * containment, Plasma::ZoomDirection direction); + /** + * Emitted when the user clicks on the toolbox + */ + void toolBoxToggled(); + /** * Emitted when the containment wants a new containment to be created. * Usually only used for desktop containments.