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.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/libopie/big-screen/osplitter.h b/libopie/big-screen/osplitter.h
index db69fc6..2bcde57 100644
--- a/libopie/big-screen/osplitter.h
+++ b/libopie/big-screen/osplitter.h
@@ -34,4 +34,5 @@
34#include <qframe.h> 34#include <qframe.h>
35#include <qvaluelist.h> 35#include <qvaluelist.h>
36#include <qlist.h>
36 37
37#include "obigscreen_p.h" 38#include "obigscreen_p.h"
@@ -68,13 +69,20 @@ public:
68 ~OSplitter(); 69 ~OSplitter();
69 70
71 void setLabel( const QString& name );
72 void setIconName( const QString& name );
73 QString label()const;
74 QString iconName()const;
75
70 void setSizeChange( int width_height ); 76 void setSizeChange( int width_height );
71 77
78 void addWidget( OSplitter* splitter );
72 void addWidget( QWidget* wid, const QString& icon, const QString& label ); 79 void addWidget( QWidget* wid, const QString& icon, const QString& label );
73 void removeWidget( QWidget* ); 80 void removeWidget( QWidget* );
81 void removeWidget( OSplitter* );
74 82
75 void setCurrentWidget( QWidget* ); 83 void setCurrentWidget( QWidget* );
76 void setCurrentWidget( const QString& label ); 84 void setCurrentWidget( const QString& label );
77 void setCurrentWidget( int ); 85 void setCurrentWidget( int );
78 QWidget* currentWidget(); 86 QWidget* currentWidget()const;
79 87
80signals: 88signals:
@@ -84,4 +92,14 @@ signals:
84 */ 92 */
85 void currentChanged( QWidget* ); 93 void currentChanged( QWidget* );
94
95 /**
96 * emitted whenever a border is crossed
97 * true if in small screen mode
98 * false if in bigscreen
99 * this signal is emitted after the layout switch
100 * @param b The layout mode
101 * @param ori The orientation
102 */
103 void sizeChanged( bool b, Orientation ori);
86public: 104public:
87// QSize sizeHint()const; 105// QSize sizeHint()const;
@@ -92,4 +110,8 @@ protected:
92 110
93private: 111private:
112 /* true if OTabMode */
113 bool layoutMode()const;
114// void reparentAll();
115 void setTabWidget( OTabWidget*);
94 void addToTab( const Opie::OSplitterContainer& ); 116 void addToTab( const Opie::OSplitterContainer& );
95 void addToBox( const Opie::OSplitterContainer& ); 117 void addToBox( const Opie::OSplitterContainer& );
@@ -101,8 +123,12 @@ private:
101 QHBox *m_hbox; 123 QHBox *m_hbox;
102 OTabWidget *m_tabWidget; 124 OTabWidget *m_tabWidget;
125 OTabWidget *m_parentTab;
103 Orientation m_orient; 126 Orientation m_orient;
104 int m_size_policy; 127 int m_size_policy;
105 128
106 ContainerList m_container; 129 ContainerList m_container;
130 QList<OSplitter> m_splitter;
131
132 QString m_icon, m_name;
107 133
108 struct Private; 134 struct Private;