[Scummvm-cvs-logs] CVS: scummvm/gui PopUpWidget.h,1.5,1.6

Max Horn fingolfin at users.sourceforge.net
Tue Nov 4 16:59:09 CET 2003


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv31598

Modified Files:
	PopUpWidget.h 
Log Message:
make it possible to query the tag of the selected item

Index: PopUpWidget.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/PopUpWidget.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- PopUpWidget.h	3 Nov 2003 01:00:25 -0000	1.5
+++ PopUpWidget.h	5 Nov 2003 00:58:42 -0000	1.6
@@ -62,6 +62,7 @@
 
 	void setSelected(int item);
 	int getSelected() const						{ return _selectedItem; }
+	uint32 getSelectedTag() const				{ return (_selectedItem >= 0) ? _entries[_selectedItem].tag : (uint32)-1; }
 	const String& getSelectedString() const		{ return (_selectedItem >= 0) ? _entries[_selectedItem].name : String::emptyString; }
 
 protected:





More information about the Scummvm-git-logs mailing list