- Added Undo/Redo-Toolbarbuttons (Shaderman)

- Fixed Bug #1078 (sogined)



git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@139 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
namespace 2007-01-24 19:40:32 +00:00
parent 72ce262ae8
commit 2a71ead9d9
4 changed files with 22 additions and 4 deletions

View file

@ -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

1
TODO
View file

@ -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

View file

@ -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));

10
svn.py
View file

@ -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
for word in line.split():
try:
return int(word)
except:
pass