summaryrefslogtreecommitdiff
path: root/libopie/big-screen/osplitter.h
Side-by-side diff
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
@@ -32,8 +32,9 @@
#include <qstring.h>
#include <qframe.h>
#include <qvaluelist.h>
+#include <qlist.h>
#include "obigscreen_p.h"
/* forward declarations */
@@ -66,32 +67,53 @@ public:
OSplitter( Qt::Orientation = Horizontal, QWidget *parent = 0,
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:
/**
* Emitted if in tab and comes directly from the tab widget
*
*/
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;
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* );
void changeTab();
@@ -99,12 +121,16 @@ private:
void changeVBox();
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;
};