summaryrefslogtreecommitdiff
path: root/libopie/big-screen/osplitter.h
Unidiff
Diffstat (limited to 'libopie/big-screen/osplitter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/big-screen/osplitter.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/libopie/big-screen/osplitter.h b/libopie/big-screen/osplitter.h
index 05849af..bc4f80b 100644
--- a/libopie/big-screen/osplitter.h
+++ b/libopie/big-screen/osplitter.h
@@ -28,21 +28,21 @@
28 28
29#ifndef OPIE_SPLITTER_H 29#ifndef OPIE_SPLITTER_H
30#define OPIE_SPLITTER_H 30#define OPIE_SPLITTER_H
31 31
32#include <qstring.h> 32#include <qstring.h>
33 33
34#include <qwidget.h> 34#include <qframe.h>
35#include <qvaluelist.h> 35#include <qvaluelist.h>
36 36
37#include "obigscreen_p.h"
37 38
38/* forward declarations */ 39/* forward declarations */
39class OTabWidget; 40class OTabWidget;
40class QHBox; 41class QHBox;
41struct OSplitterContainer; 42//template class QValueList<Opie::OSplitterContainer>;
42template class QValueList<OSplitterContainer>;
43 43
44 44
45/** 45/**
46 * 46 *
47 * If you've widgets that could be placed side by side but you think 47 * If you've widgets that could be placed side by side but you think
48 * on small resolutions is not enough place but it would really make sense 48 * on small resolutions is not enough place but it would really make sense
@@ -56,16 +56,16 @@ template class QValueList<OSplitterContainer>;
56 * @since 1.2 56 * @since 1.2
57 * 57 *
58 * @short a small dynamically changing its layout to store two or more widgets side by side 58 * @short a small dynamically changing its layout to store two or more widgets side by side
59 * @version 0.1 59 * @version 0.1
60 * @author zecke 60 * @author zecke
61 */ 61 */
62class OSplitter : public QWidget{ 62class OSplitter : public QFrame{
63 Q_OBJECT 63 Q_OBJECT
64public: 64public:
65 typedef QValueList<OSplitterContainer> ContainerList; 65 typedef QValueList<Opie::OSplitterContainer> ContainerList;
66 OSplitter( Qt::Orientation = Horizontal, QWidget *parent = 0, 66 OSplitter( Qt::Orientation = Horizontal, QWidget *parent = 0,
67 const char* name = 0, WFlags fl = 0 ); 67 const char* name = 0, WFlags fl = 0 );
68 ~OSplitter(); 68 ~OSplitter();
69 69
70 void setSizeChange( int width_height ); 70 void setSizeChange( int width_height );
71 71
@@ -73,23 +73,25 @@ public:
73 void removeWidget( QWidget* ); 73 void removeWidget( QWidget* );
74 74
75 void setCurrentWidget( QWidget* ); 75 void setCurrentWidget( QWidget* );
76 void setCurrentWidget( const QString& label ); 76 void setCurrentWidget( const QString& label );
77 QWidget* currentWidget(); 77 QWidget* currentWidget();
78 78
79 QSize sizeHint()const; 79// QSize sizeHint()const;
80 80
81protected: 81protected:
82 void resizeEvent( QResizeEvent* ); 82 void resizeEvent( QResizeEvent* );
83 83
84private: 84private:
85 void relayout(); 85 void addToTab( const Opie::OSplitterContainer& );
86 void addToTab( const OSplitterContainer& ); 86 void addToBox( const Opie::OSplitterContainer& );
87 void addToBox( const OSplitterContainer& );
88 void removeFromTab( QWidget* ); 87 void removeFromTab( QWidget* );
89 void removeFromBox( QWidget* ); 88 void changeTab();
89 void changeHBox();
90 void changeVBox();
91 void commonChangeBox();
90 QHBox *m_hbox; 92 QHBox *m_hbox;
91 OTabWidget *m_tabWidget; 93 OTabWidget *m_tabWidget;
92 Orientation m_orient; 94 Orientation m_orient;
93 int m_size_policy; 95 int m_size_policy;
94 96
95 ContainerList m_container; 97 ContainerList m_container;