Mercurial > hg > easaier-soundaccess
comparison widgets/ExpandWidget.h @ 7:a5175615d153
add easaier tab widgets, style and pass the layer characteristics in the main window (remove from panestack)
author | lbajardsilogic |
---|---|
date | Fri, 11 May 2007 14:11:19 +0000 |
parents | |
children | bc5b79e7b1d8 |
comparison
equal
deleted
inserted
replaced
6:028faa201f0e | 7:a5175615d153 |
---|---|
1 | |
2 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
3 | |
4 /* | |
5 Sound Access | |
6 EASAIER client application. | |
7 Silogic 2007. Benoit Rigolleau. | |
8 | |
9 This program is free software; you can redistribute it and/or | |
10 modify it under the terms of the GNU General Public License as | |
11 published by the Free Software Foundation; either version 2 of the | |
12 License, or (at your option) any later version. See the file | |
13 COPYING included with this distribution for more information. | |
14 */ | |
15 | |
16 #ifndef _EXPAND_WIDGET_H | |
17 #define _EXPAND_WIDGET_H | |
18 | |
19 #include <QApplication> | |
20 #include <QPushButton> | |
21 #include <QHBoxLayout> | |
22 #include <QVBoxLayout> | |
23 #include <QLayout> | |
24 #include <QSplitter> | |
25 #include <QWidget> | |
26 | |
27 class QPushButton; | |
28 class QSplitter; | |
29 | |
30 class ExpandWidget : public QSplitter{ | |
31 Q_OBJECT | |
32 | |
33 public: | |
34 enum Location { | |
35 Location_Top=0, | |
36 Location_Right=1, | |
37 Location_Bottom=2, | |
38 Location_Left=3 | |
39 }; | |
40 | |
41 ExpandWidget(QWidget *parent=0); | |
42 void setPanes(QWidget *newCenterPane, QWidget *newOtherPane); | |
43 void setWidgetLocation(ExpandWidget::Location newWidgetLocation); | |
44 | |
45 //signals: | |
46 | |
47 private slots: | |
48 void changePaneSate(); | |
49 | |
50 private: | |
51 void refreshButtonIcone(); | |
52 | |
53 QPushButton *m_button; | |
54 QWidget *m_centerPane; | |
55 QWidget *m_otherPane; | |
56 QLayout *m_layout; | |
57 ExpandWidget::Location m_widgetLocation; | |
58 | |
59 bool m_paneClosed; | |
60 | |
61 }; | |
62 #endif | |
63 | |
64 |