implemented clipboard handling for cards

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@83 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-20 18:51:11 +00:00
parent 3cbf2577c1
commit 23abbedcbd
46 changed files with 433 additions and 70 deletions
+1 -17
View File
@@ -39,7 +39,7 @@ class SetWindowPanel : public wxPanel, public SetView {
/// Update the UI by enabling/disabling items.
/** Note: copy/paste and find/replace are not handled here.
*/
virtual void onUpdateUI(wxUpdateUIEvent& e) {}
virtual void onUpdateUI(wxUpdateUIEvent&) {}
/// Respond to one of those extra menu/tool items
virtual void onCommand(int id) {}
@@ -69,22 +69,6 @@ class SetWindowPanel : public wxPanel, public SetView {
// --------------------------------------------------- : Selection
virtual CardP selectedCard() const { return CardP(); } ///< Return the currently selected card, or CardP()
virtual void selectCard(const CardP& card) {} ///< Switch the view to another card
protected:
// --------------------------------------------------- : Helper functions for UI
/// Enable/disable a tool or menu item
// void enable(wxToolBar* tb, wxMenuBar* mb, int id, bool enable);
// mb->Enable(id, enable)
// tb->EnableTool(id, enable)
/// Id of the control that has the focus, or -1 if no control has the focus
int focusedControl();
// Window* focusedWindow = findFocus()
// // is this window actually inside this panel?
// if focusedWindow && findWindowById(focusedWindow->id, &this) == focusedWindow
// return focusedWindow->id
// else
// return -1 // no window has the focus, or it has a different parent/ancestor
};
// ----------------------------------------------------------------------------- : EOF