mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
GridCtrl: Added explicitly enabling of clipboard cut, copy and paste operations
git-svn-id: svn://ultimatepp.org/upp/trunk@4988 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
797873db09
commit
3d1a1a03ed
2 changed files with 15 additions and 5 deletions
|
|
@ -881,6 +881,9 @@ class GridCtrl : public Ctrl
|
|||
bool clipboard:1;
|
||||
bool extra_paste:1;
|
||||
bool fixed_paste:1;
|
||||
bool copy_allowed:1;
|
||||
bool cut_allowed:1;
|
||||
bool paste_allowed:1;
|
||||
bool copy_column_names:1;
|
||||
bool draw_focus:1;
|
||||
bool cancel_all:1;
|
||||
|
|
@ -1136,6 +1139,9 @@ class GridCtrl : public Ctrl
|
|||
GridCtrl& Clipboard(bool b = true) { clipboard = b; return *this; }
|
||||
GridCtrl& ExtraPaste(bool b = true) { extra_paste = b; return *this; }
|
||||
GridCtrl& FixedPaste(bool b = true) { fixed_paste = b; return *this; }
|
||||
GridCtrl& ClipboardCopy(bool b = true) { copy_allowed = b; return *this; }
|
||||
GridCtrl& ClipboardCut(bool b = true) { cut_allowed = b; return *this; }
|
||||
GridCtrl& ClipboardPaste(bool b = true) { paste_allowed = b; return *this; }
|
||||
GridCtrl& CopyColumnNames(bool b = true) { copy_column_names = b; return *this; }
|
||||
GridCtrl& AskRemove(bool b = true) { ask_remove = b; return *this; }
|
||||
GridCtrl& RowChanging(bool b = true) { row_changing = b; return *this; }
|
||||
|
|
@ -1843,6 +1849,7 @@ class GridText : Ctrl
|
|||
};
|
||||
|
||||
template<> void Xmlize(XmlIO& xml, GridCtrl& g);
|
||||
template<> void Jsonize(JsonIO& json, GridCtrl& g);
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue