2009-03-25 14:03:04 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2009 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLASMA_EXTENDERGROUPPRIVATE_H
|
|
|
|
#define PLASMA_EXTENDERGROUPPRIVATE_H
|
|
|
|
|
2011-01-18 20:03:33 +01:00
|
|
|
class QTimer;
|
|
|
|
|
2009-03-25 14:03:04 +01:00
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
|
2010-04-01 13:43:51 +02:00
|
|
|
class ScrollWidget;
|
2009-03-25 14:03:04 +01:00
|
|
|
class ExtenderGroup;
|
|
|
|
class ExtenderItem;
|
2009-04-30 02:46:57 +02:00
|
|
|
class Svg;
|
2010-04-10 18:43:56 +02:00
|
|
|
class Spacer;
|
2009-03-25 14:03:04 +01:00
|
|
|
|
|
|
|
class ExtenderGroupPrivate
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ExtenderGroupPrivate(ExtenderGroup *group);
|
|
|
|
~ExtenderGroupPrivate();
|
|
|
|
|
2010-04-10 18:43:56 +02:00
|
|
|
void addItemToGroup(Plasma::ExtenderItem *item, const QPointF &pos = QPointF(-1, -1));
|
2009-03-25 14:03:04 +01:00
|
|
|
void removeItemFromGroup(Plasma::ExtenderItem *item);
|
2009-04-02 18:40:28 +02:00
|
|
|
void themeChanged();
|
2010-04-10 18:43:56 +02:00
|
|
|
int insertIndexFromPos(const QPointF &pos) const;
|
2009-03-25 14:03:04 +01:00
|
|
|
|
|
|
|
Plasma::ExtenderGroup *q;
|
2010-04-10 18:43:56 +02:00
|
|
|
Spacer *spacerWidget;
|
2009-04-30 02:46:57 +02:00
|
|
|
Plasma::Svg *svg;
|
2010-04-01 13:43:51 +02:00
|
|
|
QGraphicsWidget *childsWidget;
|
|
|
|
QGraphicsLinearLayout *layout;
|
2011-01-18 20:03:33 +01:00
|
|
|
QTimer *resizeTimer;
|
2009-03-25 14:03:04 +01:00
|
|
|
bool collapsed;
|
2009-04-17 19:58:49 +02:00
|
|
|
bool autoHide;
|
2009-12-26 14:02:53 +01:00
|
|
|
bool autoCollapse;
|
2009-03-25 14:03:04 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|