[Scummvm-cvs-logs] CVS: scummvm/gui TabWidget.h,1.8,1.9
Max Horn
fingolfin at users.sourceforge.net
Mon Apr 4 10:57:38 CEST 2005
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14470
Modified Files:
TabWidget.h
Log Message:
Cleanup
Index: TabWidget.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/TabWidget.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- TabWidget.h 1 Jan 2005 16:09:06 -0000 1.8
+++ TabWidget.h 4 Apr 2005 17:57:15 -0000 1.9
@@ -45,19 +45,20 @@
virtual int16 getChildY() const;
-// use Dialog::releaseFocus() when changing to another tab
-
-// Problem: how to add items to a tab?
-// First off, widget should allow non-dialog bosses, (i.e. also other widgets)
-// Could add a common base class for Widgets and Dialogs.
-// Then you add tabs using the following method, which returns a unique ID
+ // Problem: how to add items to a tab?
+ // First off, widget should allow non-dialog bosses, (i.e. also other widgets)
+ // Could add a common base class for Widgets and Dialogs.
+ // Then you add tabs using the following method, which returns a unique ID
int addTab(const String &title);
-// Maybe we need to remove tabs again? Hm
+
+ // Maybe we need to remove tabs again? Hm
//void removeTab(int tabID);
-// Setting the active tab:
+
+ /** Set the active tab by specifying a valid tab ID.
+ * setActiveTab changes the value of _firstWidget. This means new Widgets
+ * are always added to the active tab.
+ */
void setActiveTab(int tabID);
-// setActiveTab changes the value of _firstWidget. This means Widgets added afterwards
-// will be added to the active tab.
virtual void handleMouseDown(int x, int y, int button, int clickCount);
virtual bool handleKeyDown(uint16 ascii, int keycode, int modifiers);
More information about the Scummvm-git-logs
mailing list