• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

extendergroup.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2009 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00017  * Boston, MA  02110-1301  USA
00018  */
00019 
00020 #ifndef PLASMA_EXTENDERGROUP_H
00021 #define PLASMA_EXTENDERGROUP_H
00022 
00023 #include <QtGui/QGraphicsWidget>
00024 #include <QtCore/QList>
00025 
00026 #include "extenderitem.h"
00027 
00028 #include "plasma/plasma_export.h"
00029 
00030 namespace Plasma
00031 {
00032 
00033 class ExtenderGroupPrivate;
00034 class ExtenderItem;
00035 class Applet;
00036 
00050 class PLASMA_EXPORT ExtenderGroup : public ExtenderItem
00051 {
00052     Q_OBJECT
00053     Q_PROPERTY(bool autoHide READ autoHide WRITE setAutoHide)
00054 
00055     public:
00060         explicit ExtenderGroup(Extender *parent, uint groupId = 0);
00061 
00062         ~ExtenderGroup();
00063 
00067         QList<ExtenderItem*> items() const;
00068 
00072         bool autoHide() const;
00073 
00077         void setAutoHide(bool autoHide);
00078 
00079     public Q_SLOTS:
00083         void expandGroup();
00084 
00089         void collapseGroup();
00090 
00091     private:
00092         ExtenderGroupPrivate * const d;
00093 
00094         Q_PRIVATE_SLOT(d, void addItemToGroup(Plasma::ExtenderItem *item))
00095         Q_PRIVATE_SLOT(d, void removeItemFromGroup(Plasma::ExtenderItem *item))
00096         Q_PRIVATE_SLOT(d, void themeChanged())
00097 
00098         friend class ExtenderItem;
00099 };
00100 } // Plasma namespace
00101 
00102 #endif //PLASMA_EXTENDER_H
00103 

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal