author | zecke <zecke> | 2003-09-02 18:15:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-09-02 18:15:07 (UTC) |
commit | 3cf3fc001922a7ef34c7ff95751beb569809383b (patch) (side-by-side diff) | |
tree | 4fb5fba6b8684b7a9a6cf88e3eb3e02068e73a52 /libopie/big-screen/osplitter.h | |
parent | e87caebc920ad256d210eeb31aeb134318f0c104 (diff) | |
download | opie-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) (ignore whitespace changes)
-rw-r--r-- | libopie/big-screen/osplitter.h | 28 |
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; |