2
This file is part of Rocs.
3
Copyright 2012 Andreas Cord-Landwehr <cola@uni-paderborn.de>
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef SIDEDOCKWIDGET_H
21
#define SIDEDOCKWIDGET_H
23
#include <QDockWidget>
24
#include <QToolButton>
32
* \class SideToolButton
34
* Used for vertical tool button bars.
36
class SideToolButton: public QToolButton
41
explicit SideToolButton(QWidget* parent = 0);
42
Qt::Orientation orientation() const;
43
virtual QSize sizeHint() const;
46
virtual void paintEvent(QPaintEvent *event);
50
* \class SideDockWidget
52
* Docking widget for side panel.
54
class SideDockWidget: public QWidget
59
explicit SideDockWidget(QWidget* parent);
60
QToolBar * toolbar() const;
61
void addDock(QWidget* dock, const QString& title, const KIcon& icon);
62
void showDock(bool show, QWidget* widget);
65
void buttonToggled(bool state);
68
void visibilityChanged(bool visible);
72
QHash<SideToolButton*, QWidget*> _widgets;
77
#endif // SIDEDOCKWIDGET_H