OptionRow::Reload doesn't take an OptionRowDefinition.

Implement Reload() explicitly, so we can clearly short-
circuit for static rows.

Fix up ScreenOptionsEditCourseEntry (broken during the
course of things).
This commit is contained in:
Glenn Maynard
2006-01-18 01:34:45 +00:00
parent 9b37d8966c
commit a3dc5596de
5 changed files with 124 additions and 59 deletions
+4 -2
View File
@@ -5,6 +5,8 @@
#include "Course.h"
class Song;
class OptionRowHandler;
class OptionRowHandlerSongChoices;
class ScreenOptionsEditCourseEntry : public ScreenOptionsEditCourseSubMenu
{
public:
@@ -14,6 +16,8 @@ public:
virtual void HandleScreenMessage( const ScreenMessage SM );
protected:
OptionRowHandler *m_pModChangesHandler;
OptionRowHandlerSongChoices *m_pSongHandler;
virtual void ImportOptions( int iRow, const vector<PlayerNumber> &vpns );
virtual void ExportOptions( int iRow, const vector<PlayerNumber> &vpns );
@@ -21,8 +25,6 @@ protected:
virtual void AfterChangeValueInRow( int iRow, PlayerNumber pn );
virtual void ProcessMenuStart( const InputEventPlus &input );
vector<Song*> m_vpDisplayedSongs; // corresponds with the choices in the Song row
CourseEntry m_Original; // use this to revert when cancelling
};