summaryrefslogtreecommitdiff
path: root/libopie/big-screen/osplitter.h
Side-by-side diff
Diffstat (limited to 'libopie/big-screen/osplitter.h') (more/less context) (show 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
@@ -35,2 +35,3 @@
#include <qvaluelist.h>
+#include <qlist.h>
@@ -69,6 +70,13 @@ public:
+ void setLabel( const QString& name );
+ void setIconName( const QString& name );
+ QString label()const;
+ QString iconName()const;
+
void setSizeChange( int width_height );
+ void addWidget( OSplitter* splitter );
void addWidget( QWidget* wid, const QString& icon, const QString& label );
void removeWidget( QWidget* );
+ void removeWidget( OSplitter* );
@@ -77,3 +85,3 @@ public:
void setCurrentWidget( int );
- QWidget* currentWidget();
+ QWidget* currentWidget()const;
@@ -85,2 +93,12 @@ signals:
void currentChanged( QWidget* );
+
+ /**
+ * emitted whenever a border is crossed
+ * true if in small screen mode
+ * false if in bigscreen
+ * this signal is emitted after the layout switch
+ * @param b The layout mode
+ * @param ori The orientation
+ */
+ void sizeChanged( bool b, Orientation ori);
public:
@@ -93,2 +111,6 @@ protected:
private:
+ /* true if OTabMode */
+ bool layoutMode()const;
+// void reparentAll();
+ void setTabWidget( OTabWidget*);
void addToTab( const Opie::OSplitterContainer& );
@@ -102,2 +124,3 @@ private:
OTabWidget *m_tabWidget;
+ OTabWidget *m_parentTab;
Orientation m_orient;
@@ -106,2 +129,5 @@ private:
ContainerList m_container;
+ QList<OSplitter> m_splitter;
+
+ QString m_icon, m_name;