From 07caa199cbca1a121fcbd78ff8ffc4efba12ed23 Mon Sep 17 00:00:00 2001 From: namespace Date: Wed, 24 Jan 2007 19:40:32 +0000 Subject: [PATCH] - Added Undo/Redo-Toolbarbuttons (Shaderman) - Fixed Bug #1078 (sogined) git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@139 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- CHANGES | 5 +++++ TODO | 1 + radiant/mainframe.cpp | 10 ++++++++++ svn.py | 10 ++++++---- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 22d356ab..18c88211 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,11 @@ This is the changelog for developers, != changelog for the end user that we distribute with the binaries. (see changelog) +24/01/2007 +namespace +- Added Undo/Redo-Toolbarbuttons (Shaderman) +- Fixed Bug #1078 (sogined) + 18/01/2007 namespace - Weird shiftvalues are now hidden to the user, shiftvalues will diff --git a/TODO b/TODO index 6e2e9259..c0b6aa51 100644 --- a/TODO +++ b/TODO @@ -119,6 +119,7 @@ Shortcuts: convert shortcuts.ini to xml. Shortcuts: warn when duplicate shortcuts are registered Shortcuts: rename commands in order to group shortcuts list better. upgrade to new API for SymGetModuleInfo - required for compiling with Visual Studio 8.0 +Doom3: lights should stay in place while resizing LOW priority features diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index f066482a..7710d468 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -2417,6 +2417,12 @@ void File_constructToolbar(GtkToolbar* toolbar) toolbar_append_button(toolbar, "Save the active map (CTRL + S)", "file_save.bmp", "SaveMap"); } +void UndoRedo_constructToolbar(GtkToolbar* toolbar) +{ + toolbar_append_button(toolbar, "Undo (CTRL + Z)", "undo.bmp", "Undo"); + toolbar_append_button(toolbar, "Redo (CTRL + Y)", "redo.bmp", "Redo"); +} + void RotateFlip_constructToolbar(GtkToolbar* toolbar) { toolbar_append_button(toolbar, "x-axis Flip", "brush_flipx.bmp", "MirrorSelectionX"); @@ -2480,6 +2486,10 @@ GtkToolbar* create_main_toolbar(MainFrame::EViewStyle style) gtk_toolbar_append_space (GTK_TOOLBAR (toolbar)); + UndoRedo_constructToolbar(toolbar); + + gtk_toolbar_append_space (GTK_TOOLBAR (toolbar)); + RotateFlip_constructToolbar(toolbar); gtk_toolbar_append_space (GTK_TOOLBAR (toolbar)); diff --git a/svn.py b/svn.py index 4fe8cbc2..68d60457 100644 --- a/svn.py +++ b/svn.py @@ -8,7 +8,9 @@ def getRevision(path): line = cmd.readline() if line == "": raise Exception("failed to obtain revision number") - if line.startswith("Revision: "): - revision = int(line[10:]) - return revision - \ No newline at end of file + for word in line.split(): + try: + return int(word) + except: + pass + -- 2.39.2