forked from mia/Aegisub
Turn BaseGrid into a do-nothing SelectionController<AssEntry>.
Originally committed to SVN as r4601.
This commit is contained in:
parent
1a626bb14e
commit
e60d476f4a
1 changed files with 12 additions and 1 deletions
|
@ -47,6 +47,8 @@
|
|||
#include <wx/scrolbar.h>
|
||||
#endif
|
||||
|
||||
#include "selection_controller.h"
|
||||
|
||||
|
||||
//////////////
|
||||
// Prototypes
|
||||
|
@ -70,7 +72,7 @@ public:
|
|||
/// @brief DOCME
|
||||
///
|
||||
/// DOCME
|
||||
class BaseGrid : public wxWindow {
|
||||
class BaseGrid : public wxWindow, public BaseSelectionController<AssEntry> {
|
||||
private:
|
||||
|
||||
/// DOCME
|
||||
|
@ -129,6 +131,15 @@ protected:
|
|||
/// DOCME
|
||||
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:
|
||||
|
||||
/// DOCME
|
||||
|
|
Loading…
Reference in a new issue