Turn BaseGrid into a do-nothing SelectionController<AssEntry>.

Originally committed to SVN as r4601.
This commit is contained in:
Niels Martin Hansen 2010-06-25 01:49:12 +00:00
parent 1a626bb14e
commit e60d476f4a

View file

@ -47,6 +47,8 @@
#include <wx/scrolbar.h> #include <wx/scrolbar.h>
#endif #endif
#include "selection_controller.h"
////////////// //////////////
// Prototypes // Prototypes
@ -70,7 +72,7 @@ public:
/// @brief DOCME /// @brief DOCME
/// ///
/// DOCME /// DOCME
class BaseGrid : public wxWindow { class BaseGrid : public wxWindow, public BaseSelectionController<AssEntry> {
private: private:
/// DOCME /// DOCME
@ -129,6 +131,15 @@ protected:
/// DOCME /// DOCME
std::vector<int> selMap; std::vector<int> selMap;
public:
// SelectionController implementation
virtual void SetActiveLine(AssEntry *new_line) { }
virtual AssEntry * GetActiveLine() const { return 0; }
virtual void SetSelectedSet(const Selection &new_selection) { }
virtual void GetSelectedSet(Selection &selection) const { }
virtual void NextLine() { }
virtual void PrevLine() { }
public: public:
/// DOCME /// DOCME