summaryrefslogtreecommitdiff
path: root/libopie/big-screen/osplitter.h
authorzecke <zecke>2003-09-02 18:15:07 (UTC)
committer zecke <zecke>2003-09-02 18:15:07 (UTC)
commit3cf3fc001922a7ef34c7ff95751beb569809383b (patch) (side-by-side diff)
tree4fb5fba6b8684b7a9a6cf88e3eb3e02068e73a52 /libopie/big-screen/osplitter.h
parente87caebc920ad256d210eeb31aeb134318f0c104 (diff)
downloadopie-3cf3fc001922a7ef34c7ff95751beb569809383b.zip
opie-3cf3fc001922a7ef34c7ff95751beb569809383b.tar.gz
opie-3cf3fc001922a7ef34c7ff95751beb569809383b.tar.bz2
Allow adding child Osplitters and sharing
the same OTabBar ( untested ) but the normal mode still works
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
@@ -33,6 +33,7 @@
#include <qframe.h>
#include <qvaluelist.h>
+#include <qlist.h>
#include "obigscreen_p.h"
@@ -67,15 +68,22 @@ public:
const char* name = 0, WFlags fl = 0 );
~OSplitter();
+ 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* );
void setCurrentWidget( QWidget* );
void setCurrentWidget( const QString& label );
void setCurrentWidget( int );
- QWidget* currentWidget();
+ QWidget* currentWidget()const;
signals:
/**
@@ -83,6 +91,16 @@ 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:
// QSize sizeHint()const;
// QSize minimumSizeHint()const;
@@ -91,6 +109,10 @@ protected:
void resizeEvent( QResizeEvent* );
private:
+ /* true if OTabMode */
+ bool layoutMode()const;
+// void reparentAll();
+ void setTabWidget( OTabWidget*);
void addToTab( const Opie::OSplitterContainer& );
void addToBox( const Opie::OSplitterContainer& );
void removeFromTab( QWidget* );
@@ -100,10 +122,14 @@ private:
void commonChangeBox();
QHBox *m_hbox;
OTabWidget *m_tabWidget;
+ OTabWidget *m_parentTab;
Orientation m_orient;
int m_size_policy;
ContainerList m_container;
+ QList<OSplitter> m_splitter;
+
+ QString m_icon, m_name;
struct Private;
Private *d;