mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
clipboard functions for keywords
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@358 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -37,6 +37,18 @@ class ItemList : public wxListView {
|
||||
/// Move the selection to the first item (if possible)
|
||||
void selectFirst();
|
||||
|
||||
// --------------------------------------------------- : Clipboard
|
||||
|
||||
virtual bool canCut() const { return canCopy() && canDelete(); }
|
||||
virtual bool canCopy() const { return false; }
|
||||
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 doCopy() { return false; }
|
||||
virtual bool doPaste() { return false; }
|
||||
virtual bool doDelete() { return false; }
|
||||
|
||||
// --------------------------------------------------- : Virtual interface
|
||||
protected:
|
||||
/// Get a list of all items
|
||||
@@ -85,6 +97,7 @@ class ItemList : public wxListView {
|
||||
|
||||
void onColumnClick(wxListEvent& ev);
|
||||
void onItemFocus (wxListEvent& ev);
|
||||
void onContextMenu(wxContextMenuEvent&);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
Reference in New Issue
Block a user