16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 |
18 |
19 #include "gui.h" |
19 #include "gui.h" |
20 #include "common.h" |
20 #include "common.h" |
|
21 #include "file.h" |
|
22 #include "history.h" |
|
23 #include "zz_colorSelectDialog.h" |
|
24 #include "zz_historyDialog.h" |
21 #include "zz_setContentsDialog.h" |
25 #include "zz_setContentsDialog.h" |
22 #include "file.h" |
|
23 #include "zz_colorSelectDialog.h" |
|
24 #include "history.h" |
|
25 |
26 |
26 vector<LDObject*> g_Clipboard; |
27 vector<LDObject*> g_Clipboard; |
27 |
28 |
28 // ============================================================================= |
29 // ============================================================================= |
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
320 |
321 |
321 ACTION (moveDown, "Move Down", "arrow-down", "Move the current selection down.", CTRL (Down)) { |
322 ACTION (moveDown, "Move Down", "arrow-down", "Move the current selection down.", CTRL (Down)) { |
322 doMoveSelection (false); |
323 doMoveSelection (false); |
323 } |
324 } |
324 |
325 |
|
326 // ============================================================================= |
|
327 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
|
328 // ============================================================================= |
325 ACTION (undo, "Undo", "undo", "Undo a step.", CTRL (Z)) { |
329 ACTION (undo, "Undo", "undo", "Undo a step.", CTRL (Z)) { |
326 History::undo (); |
330 History::undo (); |
327 } |
331 } |
328 |
332 |
329 ACTION (redo, "Redo", "redo", "Redo a step.", CTRL_SHIFT (Z)) { |
333 ACTION (redo, "Redo", "redo", "Redo a step.", CTRL_SHIFT (Z)) { |
330 History::redo (); |
334 History::redo (); |
331 } |
335 } |
|
336 |
|
337 ACTION (showHistory, "Show History", "history", "Show the history dialog.", (0)) { |
|
338 HistoryDialog dlg; |
|
339 dlg.exec (); |
|
340 } |