mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-21 06:14:08 -06:00
Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
adf46bd64e
commit
2e4b276e07
3860 changed files with 1161787 additions and 438 deletions
42
uppdev/stdapp/stdappEdit.cpp
Normal file
42
uppdev/stdapp/stdappEdit.cpp
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#include <stdapp/stdapp.hpp>
|
||||
|
||||
void stdapp::Edit(Bar& bar)
|
||||
{
|
||||
bar.Add(t_("Cut"), THISBACK(OnCut)).Key(K_CTRL_X).Help(t_("Cut out the current object"));
|
||||
bar.Add(t_("Copy"), THISBACK(OnCopy)).Key(K_CTRL_C).Help(t_("Copy the current object to the clipboard"));
|
||||
bar.Add(t_("Paste"), THISBACK(OnPaste)).Key(K_CTRL_V).Help(t_("Paste an object from the clipboard"));
|
||||
bar.Add(t_("Delete"), THISBACK(OnDelete)).Help(t_("Delete the current object"));
|
||||
bar.MenuSeparator();
|
||||
bar.Add(t_("Undo"), THISBACK(OnUndo)).Key(K_CTRL_Z).Help(t_("Undo the last operation"));
|
||||
bar.Add(t_("Redo"), THISBACK(OnRedo)).Key(K_SHIFT_CTRL_Z).Help(t_("Redo the last undone operation"));
|
||||
}
|
||||
|
||||
void stdapp::OnCut()
|
||||
{
|
||||
Exclamation("You still have to write your own \"Cut\" code!");
|
||||
}
|
||||
|
||||
void stdapp::OnCopy()
|
||||
{
|
||||
Exclamation("You still have to write your own \"Copy\" code!");
|
||||
}
|
||||
|
||||
void stdapp::OnPaste()
|
||||
{
|
||||
Exclamation("You still have to write your own \"Paste\" code!");
|
||||
}
|
||||
|
||||
void stdapp::OnDelete()
|
||||
{
|
||||
Exclamation("You still have to write your own \"Delete\" code!");
|
||||
}
|
||||
|
||||
void stdapp::OnUndo()
|
||||
{
|
||||
Exclamation("You still have to write your own \"Undo\" code!");
|
||||
}
|
||||
|
||||
void stdapp::OnRedo()
|
||||
{
|
||||
Exclamation("You still have to write your own \"Redo\" code!");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue