summaryrefslogtreecommitdiff
path: root/libopie/big-screen/osplitter.h
Unidiff
Diffstat (limited to 'libopie/big-screen/osplitter.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/big-screen/osplitter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libopie/big-screen/osplitter.h b/libopie/big-screen/osplitter.h
index 33a085f..61a247b 100644
--- a/libopie/big-screen/osplitter.h
+++ b/libopie/big-screen/osplitter.h
@@ -70,67 +70,68 @@ class OSplitter : public QFrame{
70 Q_OBJECT 70 Q_OBJECT
71public: 71public:
72 typedef QValueList<Opie::OSplitterContainer> ContainerList; 72 typedef QValueList<Opie::OSplitterContainer> ContainerList;
73 OSplitter( Qt::Orientation = Horizontal, QWidget *parent = 0, 73 OSplitter( Qt::Orientation = Horizontal, QWidget *parent = 0,
74 const char* name = 0, WFlags fl = 0 ); 74 const char* name = 0, WFlags fl = 0 );
75 ~OSplitter(); 75 ~OSplitter();
76 76
77 void setLabel( const QString& name ); 77 void setLabel( const QString& name );
78 void setIconName( const QString& name ); 78 void setIconName( const QString& name );
79 QString label()const; 79 QString label()const;
80 QString iconName()const; 80 QString iconName()const;
81 81
82 void setSizeChange( int width_height ); 82 void setSizeChange( int width_height );
83 83
84 void addWidget( OSplitter* splitter ); 84 void addWidget( OSplitter* splitter );
85 void addWidget( QWidget* wid, const QString& icon, const QString& label ); 85 void addWidget( QWidget* wid, const QString& icon, const QString& label );
86 void removeWidget( QWidget* ); 86 void removeWidget( QWidget* );
87 void removeWidget( OSplitter* ); 87 void removeWidget( OSplitter* );
88 88
89 void setCurrentWidget( QWidget* ); 89 void setCurrentWidget( QWidget* );
90 void setCurrentWidget( const QString& label ); 90 void setCurrentWidget( const QString& label );
91 void setCurrentWidget( int ); 91 void setCurrentWidget( int );
92 QWidget* currentWidget()const; 92 QWidget* currentWidget()const;
93 93
94
94signals: 95signals:
95 /** 96 /**
96 * Emitted if in tab and comes directly from the tab widget 97 * Emitted if in tab and comes directly from the tab widget
97 * 98 *
98 */ 99 */
99 void currentChanged( QWidget* ); 100 void currentChanged( QWidget* );
100 101
101 /** 102 /**
102 * emitted whenever a border is crossed 103 * emitted whenever a border is crossed
103 * true if in small screen mode 104 * true if in small screen mode
104 * false if in bigscreen 105 * false if in bigscreen
105 * this signal is emitted after the layout switch 106 * this signal is emitted after the layout switch
106 * @param b The layout mode 107 * @param b The layout mode
107 * @param ori The orientation 108 * @param ori The orientation
108 */ 109 */
109 void sizeChanged( bool b, Orientation ori); 110 void sizeChanged( bool b, Orientation ori);
110public: 111public:
111 QSize sizeHint()const; 112// QSize sizeHint()const;
112 QSize minimumSizeHint()const; 113// QSize minimumSizeHint()const;
113 114
114protected: 115protected:
115 void resizeEvent( QResizeEvent* ); 116 void resizeEvent( QResizeEvent* );
116 117
117private: 118private:
118 /* true if OTabMode */ 119 /* true if OTabMode */
119 bool layoutMode()const; 120 bool layoutMode()const;
120// void reparentAll(); 121// void reparentAll();
121 void setTabWidget( OTabWidget*); 122 void setTabWidget( OTabWidget*);
122 void addToTab( const Opie::OSplitterContainer& ); 123 void addToTab( const Opie::OSplitterContainer& );
123 void addToBox( const Opie::OSplitterContainer& ); 124 void addToBox( const Opie::OSplitterContainer& );
124 void removeFromTab( QWidget* ); 125 void removeFromTab( QWidget* );
125 void changeTab(); 126 void changeTab();
126 void changeHBox(); 127 void changeHBox();
127 void changeVBox(); 128 void changeVBox();
128 void commonChangeBox(); 129 void commonChangeBox();
129 QHBox *m_hbox; 130 QHBox *m_hbox;
130 OTabWidget *m_tabWidget; 131 OTabWidget *m_tabWidget;
131 OTabWidget *m_parentTab; 132 OTabWidget *m_parentTab;
132 Orientation m_orient; 133 Orientation m_orient;
133 int m_size_policy; 134 int m_size_policy;
134 135
135 ContainerList m_container; 136 ContainerList m_container;
136 QList<OSplitter> m_splitter; 137 QList<OSplitter> m_splitter;