summaryrefslogtreecommitdiff
path: root/libopie/otabwidget.h
Unidiff
Diffstat (limited to 'libopie/otabwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/otabwidget.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libopie/otabwidget.h b/libopie/otabwidget.h
index c140c0b..acb9223 100644
--- a/libopie/otabwidget.h
+++ b/libopie/otabwidget.h
@@ -115,24 +115,25 @@ public:
115 * @param child Widget control. 115 * @param child Widget control.
116 * @param icon Path to icon. 116 * @param icon Path to icon.
117 * @param label Text label. 117 * @param label Text label.
118 */ 118 */
119 void addTab( QWidget *, const QString &, const QString & ); 119 void addTab( QWidget *, const QString &, const QString & );
120 120
121/** 121/**
122 * @fn removePage( QWidget *widget ) 122 * @fn removePage( QWidget *widget )
123 * @brief Remove widget from control. Does not delete widget. 123 * @brief Remove widget from control. Does not delete widget.
124 * 124 *
125 * @param widget Widget control to be removed. 125 * @param widget Widget control to be removed.
126 */ 126 */
127 /* ### Page vs. Tab.. yes the widget is a Page but then is addTab wrong -zecke */
127 void removePage( QWidget * ); 128 void removePage( QWidget * );
128 129
129/** 130/**
130 * @fn changeTab( QWidget *widget, const QString &icon, const QString &label ) 131 * @fn changeTab( QWidget *widget, const QString &icon, const QString &label )
131 * @brief Change text and/or icon for existing tab 132 * @brief Change text and/or icon for existing tab
132 * 133 *
133 * @param child Widget control. 134 * @param child Widget control.
134 * @param icon Path to icon. 135 * @param icon Path to icon.
135 * @param label Text label. 136 * @param label Text label.
136 */ 137 */
137 void changeTab( QWidget *, const QString &, const QString & ); 138 void changeTab( QWidget *, const QString &, const QString & );
138 139
@@ -189,26 +190,32 @@ public:
189 void setCurrentTab(int); 190 void setCurrentTab(int);
190 191
191/** 192/**
192 * @fn sizeHint()const 193 * @fn sizeHint()const
193 * @brief Reimplemented for internal purposes. 194 * @brief Reimplemented for internal purposes.
194 */ 195 */
195 QSize sizeHint() const; 196 QSize sizeHint() const;
196 197
197/** 198/**
198 * @fn currentTab( ) 199 * @fn currentTab( )
199 * @brief returns current tab id. 200 * @brief returns current tab id.
200 */ 201 */
201 int currentTab(); 202 // ### make const
202 203 int currentTab()/* const */;
204/**
205 * @brief returns the current page of the active tab
206 *
207 * @since 1.2
208 */
209 QWidget* currentWidget()const;
203 210
204protected: 211protected:
205 212
206/** 213/**
207 * @fn resizeEvent( QResizeEvent * ) 214 * @fn resizeEvent( QResizeEvent * )
208 * @brief Reimplemented for internal purposes. 215 * @brief Reimplemented for internal purposes.
209 */ 216 */
210 void resizeEvent( QResizeEvent * ); 217 void resizeEvent( QResizeEvent * );
211 218
212private: 219private:
213 OTabInfoList tabs; 220 OTabInfoList tabs;
214 OTabInfo *currTab; 221 OTabInfo *currTab;