Selection in cardlist is correctly moved when changes are made;

cuting/copying/pasting/deleting multiple cards now works.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@888 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-30 18:13:56 +00:00
parent 6de54b34fd
commit 674fa1a32a
5 changed files with 41 additions and 30 deletions
+3 -1
View File
@@ -46,7 +46,7 @@ class ItemList : public wxListView {
virtual bool canPaste() const { return false; }
virtual bool canDelete() const { return false; }
// Try to perform a clipboard operation, return success
virtual bool doCut() { return false; }
virtual bool doCut();
virtual bool doCopy() { return false; }
virtual bool doPaste() { return false; }
virtual bool doDelete() { return false; }
@@ -90,6 +90,8 @@ class ItemList : public wxListView {
void focusNone();
/// Actually select a certain item in the control
void focusItem(const VoidP& item, bool focus = true);
/// Count the number of focused items
long focusCount() const;
// --------------------------------------------------- : Data
VoidP selected_item; ///< The currently selected item