From: <wel...@us...> - 2009-10-02 09:28:49
|
Revision: 4602 http://planeshift.svn.sourceforge.net/planeshift/?rev=4602&view=rev Author: weltall2 Date: 2009-10-02 09:28:42 +0000 (Fri, 02 Oct 2009) Log Message: ----------- expanded pawscombo api and put the button to open it as default in the constructor Modified Paths: -------------- trunk/src/common/paws/pawscombo.cpp trunk/src/common/paws/pawscombo.h Modified: trunk/src/common/paws/pawscombo.cpp =================================================================== --- trunk/src/common/paws/pawscombo.cpp 2009-10-02 09:04:53 UTC (rev 4601) +++ trunk/src/common/paws/pawscombo.cpp 2009-10-02 09:28:42 UTC (rev 4602) @@ -37,6 +37,11 @@ rows = 0; rowHeight = 0; + + upButton = "Up Arrow"; + downButton = "Down Arrow"; + upButtonPressed = "Up Arrow Highlight"; + downButtonPressed = "Down Arrow Highlight"; } pawsComboBox::~pawsComboBox() Modified: trunk/src/common/paws/pawscombo.h =================================================================== --- trunk/src/common/paws/pawscombo.h 2009-10-02 09:04:53 UTC (rev 4601) +++ trunk/src/common/paws/pawscombo.h 2009-10-02 09:28:42 UTC (rev 4602) @@ -58,6 +58,10 @@ void SetNumRows(int numRows) { rows = numRows; } void SetRowHeight(int height) { rowHeight = height; } + void SetUpButtonImage(const char* name) { upButton = name; } + void SetUpDownButtonImage(const char* name) { downButton = name; } + void SetUpButtonPressedImage(const char* name) { upButtonPressed = name; } + void SetUpDownButtonPressedImage(const char* name) { downButtonPressed = name; } pawsListBoxRow* NewOption(); pawsListBoxRow* NewOption(const csString & text); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |