* added pot file (translation catalog)

* marked more strings as translateable
* deactivated gtk_disable_setlocale and bind the textdomains


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@265 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
mattn 2008-06-26 08:31:13 +00:00
parent e4b1c1a55c
commit 3f7eb00721
5 changed files with 898 additions and 171 deletions

View file

@ -45,7 +45,7 @@ void *g_pMainWidget;
//backwards for some reason //backwards for some reason
static const char *PLUGIN_COMMANDS = CMD_ABOUT ";" CMD_SEP; static const char *PLUGIN_COMMANDS = CMD_ABOUT ";" CMD_SEP;
static const char *PLUGIN_ABOUT = "UFO: Alien Invasion plugin " PLUGIN_VERSION "\nby Martin Gerhardy"; static const char *PLUGIN_ABOUT = _("UFO: Alien Invasion plugin " PLUGIN_VERSION "\nby Martin Gerhardy");
#define NUM_TOOLBAR_BUTTONS FILTER_MAX #define NUM_TOOLBAR_BUTTONS FILTER_MAX
typedef struct toolbar_button_info_s typedef struct toolbar_button_info_s
@ -89,57 +89,57 @@ static const toolbar_button_info_t toolbar_buttons[NUM_TOOLBAR_BUTTONS] =
}, },
{ {
"ufoai_level1.bmp", "ufoai_level1.bmp",
"Filter level1", _("Filter level1"),
"Level 1", _("Level 1"),
DoLevel1Filtering, DoLevel1Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level2.bmp", "ufoai_level2.bmp",
"Filter level2", _("Filter level2"),
"Level 2", _("Level 2"),
DoLevel2Filtering, DoLevel2Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level3.bmp", "ufoai_level3.bmp",
"Filter level3", _("Filter level3"),
"Level 3", _("Level 3"),
DoLevel3Filtering, DoLevel3Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level4.bmp", "ufoai_level4.bmp",
"Filter level4", _("Filter level4"),
"Level 4", _("Level 4"),
DoLevel4Filtering, DoLevel4Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level5.bmp", "ufoai_level5.bmp",
"Filter level5", _("Filter level5"),
"Level 5", _("Level 5"),
DoLevel5Filtering, DoLevel5Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level6.bmp", "ufoai_level6.bmp",
"Filter level6", _("Filter level6"),
"Level 6", _("Level 6"),
DoLevel6Filtering, DoLevel6Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level7.bmp", "ufoai_level7.bmp",
"Filter level7", _("Filter level7"),
"Level 7", _("Level 7"),
DoLevel7Filtering, DoLevel7Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
{ {
"ufoai_level8.bmp", "ufoai_level8.bmp",
"Filter level8", _("Filter level8"),
"Level 8", _("Level 8"),
DoLevel8Filtering, DoLevel8Filtering,
IToolbarButton::eToggleButton IToolbarButton::eToggleButton
}, },
@ -207,7 +207,7 @@ extern "C" const char* QERPlug_GetCommandList (void)
extern "C" void QERPlug_Dispatch (const char *p, vec3_t vMin, vec3_t vMax, bool bSingleBrush) extern "C" void QERPlug_Dispatch (const char *p, vec3_t vMin, vec3_t vMax, bool bSingleBrush)
{ {
if (!strcmp(p, CMD_ABOUT)) { if (!strcmp(p, CMD_ABOUT)) {
g_FuncTable.m_pfnMessageBox(NULL, PLUGIN_ABOUT, "About", MB_OK, NULL); g_FuncTable.m_pfnMessageBox(NULL, PLUGIN_ABOUT, _("About"), MB_OK, NULL);
} else { } else {
Sys_Printf("Message: %s\n", p); Sys_Printf("Message: %s\n", p);
} }

View file

@ -40,6 +40,7 @@ and the external dependencies (such as GLib, STL, mathlib etc.)
#include "ifilesystem.h" #include "ifilesystem.h"
#include "ientity.h" #include "ientity.h"
#include "idata.h" #include "idata.h"
#include <glib/gi18n.h>
extern _QERFuncTable_1 g_FuncTable; extern _QERFuncTable_1 g_FuncTable;
extern _QERQglTable g_QglTable; extern _QERQglTable g_QglTable;

719
radiant.pot Normal file
View file

@ -0,0 +1,719 @@
#: radiant/mainframe.cpp:6687
msgid "Select Complete Tall"
msgstr ""
#: radiant/mainframe.cpp:6687
msgid "Select Touching"
msgstr ""
#: radiant/mainframe.cpp:6687
msgid "Select Partial Tall"
msgstr ""
#: radiant/mainframe.cpp:6687
msgid "Select Inside"
msgstr ""
#: contrib/ufoai/plugin.cpp:48
msgid "UFO: Alien Invasion plugin "
msgstr ""
#: contrib/ufoai/plugin.cpp:64
msgid "Filter actorclip"
msgstr ""
#: contrib/ufoai/plugin.cpp:65
msgid "Actorclip"
msgstr ""
#: contrib/ufoai/plugin.cpp:71
msgid "Filter weaponclip"
msgstr ""
#: contrib/ufoai/plugin.cpp:72
msgid "Weaponclip"
msgstr ""
#: contrib/ufoai/plugin.cpp:78
msgid "Filter nodraw"
msgstr ""
#: contrib/ufoai/plugin.cpp:79
msgid "NoDraw"
msgstr ""
#: contrib/ufoai/plugin.cpp:85
msgid "Filter stepon"
msgstr ""
#: contrib/ufoai/plugin.cpp:86
msgid "Stepon"
msgstr ""
#: contrib/ufoai/plugin.cpp:92
msgid "Filter level1"
msgstr ""
#: contrib/ufoai/plugin.cpp:93
msgid "Level 1"
msgstr ""
#: contrib/ufoai/plugin.cpp:99
msgid "Filter level2"
msgstr ""
#: contrib/ufoai/plugin.cpp:100
msgid "Level 2"
msgstr ""
#: contrib/ufoai/plugin.cpp:106
msgid "Filter level3"
msgstr ""
#: contrib/ufoai/plugin.cpp:107
msgid "Level 3"
msgstr ""
#: contrib/ufoai/plugin.cpp:113
msgid "Filter level4"
msgstr ""
#: contrib/ufoai/plugin.cpp:114
msgid "Level 4"
msgstr ""
#: contrib/ufoai/plugin.cpp:120
msgid "Filter level5"
msgstr ""
#: contrib/ufoai/plugin.cpp:121
msgid "Level 5"
msgstr ""
#: contrib/ufoai/plugin.cpp:127
msgid "Filter level6"
msgstr ""
#: contrib/ufoai/plugin.cpp:128
msgid "Level 6"
msgstr ""
#: contrib/ufoai/plugin.cpp:134
msgid "Filter level7"
msgstr ""
#: contrib/ufoai/plugin.cpp:135
msgid "Level 7"
msgstr ""
#: contrib/ufoai/plugin.cpp:141
msgid "Filter level8"
msgstr ""
#: contrib/ufoai/plugin.cpp:142
msgid "Level 8"
msgstr ""
#: contrib/ufoai/plugin.cpp:210
msgid "About"
msgstr ""
#: radiant/mainframe.cpp:939
msgid "_File"
msgstr ""
#: radiant/mainframe.cpp:943
msgid "_New Map"
msgstr ""
#: radiant/mainframe.cpp:948
msgid "_Sleep"
msgstr ""
#: radiant/mainframe.cpp:954
msgid "_Open..."
msgstr ""
#: radiant/mainframe.cpp:957
msgid "_Import..."
msgstr ""
#: radiant/mainframe.cpp:959
msgid "_Save"
msgstr ""
#: radiant/mainframe.cpp:962
msgid "Save _as..."
msgstr ""
#: radiant/mainframe.cpp:964
msgid "Save s_elected..."
msgstr ""
#: radiant/mainframe.cpp:967
msgid "Save re_gion..."
msgstr ""
#: radiant/mainframe.cpp:971
msgid "New p_roject..."
msgstr ""
#: radiant/mainframe.cpp:973
msgid "Load _project..."
msgstr ""
#: radiant/mainframe.cpp:975
msgid "Pro_ject settings..."
msgstr ""
#: radiant/mainframe.cpp:978
msgid "_Pointfile..."
msgstr ""
#: radiant/mainframe.cpp:981
msgid "Recent Files"
msgstr ""
#: radiant/mainframe.cpp:999
msgid "Check for GtkRadiant update (web)"
msgstr ""
#: radiant/mainframe.cpp:1004
msgid "E_xit"
msgstr ""
#: radiant/mainframe.cpp:1008
msgid "_Edit"
msgstr ""
#: radiant/mainframe.cpp:1011
msgid "_Undo"
msgstr ""
#: radiant/mainframe.cpp:1014
msgid "_Redo"
msgstr ""
#: radiant/mainframe.cpp:1018
msgid "_Copy"
msgstr ""
#: radiant/mainframe.cpp:1019
msgid "_Paste"
msgstr ""
#: radiant/mainframe.cpp:1020
msgid "P_aste To Camera"
msgstr ""
#: radiant/mainframe.cpp:1021 radiant/mainframe.cpp:1168
msgid "_Delete"
msgstr ""
#: radiant/mainframe.cpp:1024
msgid "Map Info..."
msgstr ""
#: radiant/mainframe.cpp:1025
msgid "Entity Info..."
msgstr ""
#: radiant/mainframe.cpp:1027
msgid "Brush Scripts..."
msgstr ""
#: radiant/mainframe.cpp:1029
msgid "Load Pre_fab..."
msgstr ""
#: radiant/mainframe.cpp:1030
msgid "Save Selection as Prefab..."
msgstr ""
#: radiant/mainframe.cpp:1032
msgid "Preferences..."
msgstr ""
#: radiant/mainframe.cpp:1035
msgid "_View"
msgstr ""
#: radiant/mainframe.cpp:1039
msgid "Toggle"
msgstr ""
#: radiant/mainframe.cpp:1040
msgid "Camera View"
msgstr ""
#: radiant/mainframe.cpp:1041
msgid "Console View"
msgstr ""
#: radiant/mainframe.cpp:1042
msgid "Entity View"
msgstr ""
#: radiant/mainframe.cpp:1045 radiant/mainframe.cpp:1057
msgid "XY (Top)"
msgstr ""
#: radiant/mainframe.cpp:1046
msgid "YZ (Side)"
msgstr ""
#: radiant/mainframe.cpp:1047
msgid "XZ (Front)"
msgstr ""
#: radiant/mainframe.cpp:1048
msgid "Z View"
msgstr ""
#: radiant/mainframe.cpp:1050
msgid "_Center"
msgstr ""
#: radiant/mainframe.cpp:1051
msgid "_Center 2d"
msgstr ""
#: radiant/mainframe.cpp:1052
msgid "_Up Floor"
msgstr ""
#: radiant/mainframe.cpp:1053
msgid "_Down Floor"
msgstr ""
#: radiant/mainframe.cpp:1055
msgid "_Next (XY, YZ, XY)"
msgstr ""
#: radiant/mainframe.cpp:1056
msgid "Layout"
msgstr ""
#: radiant/mainframe.cpp:1058
msgid "YZ"
msgstr ""
#: radiant/mainframe.cpp:1059
msgid "XZ"
msgstr ""
#: radiant/mainframe.cpp:1060
msgid "Zoom"
msgstr ""
#: radiant/mainframe.cpp:1061
msgid "_XY 100%"
msgstr ""
#: radiant/mainframe.cpp:1062
msgid "XY Zoom _In"
msgstr ""
#: radiant/mainframe.cpp:1063
msgid "XY Zoom _Out"
msgstr ""
#: radiant/mainframe.cpp:1065
msgid "_Z 100%"
msgstr ""
#: radiant/mainframe.cpp:1066
msgid "Z Zoo_m In"
msgstr ""
#: radiant/mainframe.cpp:1068
msgid "Z Zoom O_ut"
msgstr ""
#: radiant/mainframe.cpp:1071
msgid "Cubic Clip Zoom In"
msgstr ""
#: radiant/mainframe.cpp:1072
msgid "Cubic Clip Zoom Out"
msgstr ""
#: radiant/mainframe.cpp:1075
msgid "Show"
msgstr ""
#: radiant/mainframe.cpp:1076
msgid "Show _Angles"
msgstr ""
#: radiant/mainframe.cpp:1078
msgid "Show _Names"
msgstr ""
#: radiant/mainframe.cpp:1080
msgid "Show Blocks"
msgstr ""
#: radiant/mainframe.cpp:1082
msgid "Show C_oordinates"
msgstr ""
#: radiant/mainframe.cpp:1084
msgid "Show Window Outline"
msgstr ""
#: radiant/mainframe.cpp:1086
msgid "Show ZBuffered Outline"
msgstr ""
#: radiant/mainframe.cpp:1088
msgid "Show Axes"
msgstr ""
#: radiant/mainframe.cpp:1090
msgid "Show Workzone"
msgstr ""
#: radiant/mainframe.cpp:1093
msgid "Filter"
msgstr ""
#: radiant/mainframe.cpp:1094
msgid "World"
msgstr ""
#: radiant/mainframe.cpp:1095
msgid "Entities"
msgstr ""
#: radiant/mainframe.cpp:1096
msgid "Areaportals"
msgstr ""
#: radiant/mainframe.cpp:1097
msgid "Translucent"
msgstr ""
#: radiant/mainframe.cpp:1098
msgid "Liquids"
msgstr ""
#: radiant/mainframe.cpp:1099
msgid "Caulk"
msgstr ""
#: radiant/mainframe.cpp:1100
msgid "Clips"
msgstr ""
#: radiant/mainframe.cpp:1101
msgid "Paths"
msgstr ""
#: radiant/mainframe.cpp:1102
msgid "Clusterportals"
msgstr ""
#: radiant/mainframe.cpp:1103
msgid "Lights"
msgstr ""
#: radiant/mainframe.cpp:1104
msgid "Structural"
msgstr ""
#: radiant/mainframe.cpp:1105
msgid "Lightgrid"
msgstr ""
#: radiant/mainframe.cpp:1107
msgid "Patches"
msgstr ""
#: radiant/mainframe.cpp:1108
msgid "Details"
msgstr ""
#: radiant/mainframe.cpp:1109
msgid "Hints"
msgstr ""
#: radiant/mainframe.cpp:1110
msgid "Models"
msgstr ""
#: radiant/mainframe.cpp:1111
msgid "Triggers"
msgstr ""
#: radiant/mainframe.cpp:1112
msgid "Botclips"
msgstr ""
#: radiant/mainframe.cpp:1115
msgid "Hide/Show"
msgstr ""
#: radiant/mainframe.cpp:1116
msgid "Hide Selected"
msgstr ""
#: radiant/mainframe.cpp:1118
msgid "Show Hidden"
msgstr ""
#: radiant/mainframe.cpp:1121
msgid "Entities as"
msgstr ""
#: radiant/mainframe.cpp:1123
msgid "Bounding box"
msgstr ""
#: radiant/mainframe.cpp:1126
msgid "Wireframe"
msgstr ""
#: radiant/mainframe.cpp:1129
msgid "Selected Wireframe"
msgstr ""
#: radiant/mainframe.cpp:1132
msgid "Selected Skinned"
msgstr ""
#: radiant/mainframe.cpp:1135
msgid "Skinned"
msgstr ""
#: radiant/mainframe.cpp:1138
msgid "Skinned and Boxed"
msgstr ""
#: radiant/mainframe.cpp:1142
msgid "Cubic Clipping"
msgstr ""
#: radiant/mainframe.cpp:1146
msgid "OpenGL Lighting"
msgstr ""
#: radiant/mainframe.cpp:1151
msgid "_Selection"
msgstr ""
#: radiant/mainframe.cpp:1155
msgid "Drag"
msgstr ""
#: radiant/mainframe.cpp:1156
msgid "Drag _Edges"
msgstr ""
#: radiant/mainframe.cpp:1158
msgid "Drag _Vertices"
msgstr ""
#: radiant/mainframe.cpp:1161
msgid "_Clone"
msgstr ""
#: radiant/mainframe.cpp:1163
msgid "Deselect"
msgstr ""
#: radiant/mainframe.cpp:1165
msgid "Invert"
msgstr ""
#: radiant/mainframe.cpp:1172
msgid "Flip"
msgstr ""
#: radiant/mainframe.cpp:1173
msgid "Flip _X"
msgstr ""
#: radiant/mainframe.cpp:1175
msgid "Flip _Y"
msgstr ""
#: radiant/mainframe.cpp:1177
msgid "Flip _Z"
msgstr ""
#: radiant/mainframe.cpp:1180
msgid "Rotate"
msgstr ""
#: radiant/mainframe.cpp:1181
msgid "Rotate X"
msgstr ""
#: radiant/mainframe.cpp:1183
msgid "Rotate Y"
msgstr ""
#: radiant/mainframe.cpp:1185
msgid "Rotate Z"
msgstr ""
#: radiant/mainframe.cpp:1187
msgid "Arbitrary rotation..."
msgstr ""
#: radiant/mainframe.cpp:1190
msgid "Scale..."
msgstr ""
#: radiant/mainframe.cpp:1191
msgid "CSG"
msgstr ""
#: radiant/mainframe.cpp:1192
msgid "Make _Hollow"
msgstr ""
#: radiant/mainframe.cpp:1194
msgid "CSG _Subtract"
msgstr ""
#: radiant/mainframe.cpp:1196
msgid "CSG _Merge"
msgstr ""
#: radiant/mainframe.cpp:1199
msgid "Select"
msgstr ""
#: radiant/mainframe.cpp:1200
msgid "Select Complete _Tall"
msgstr ""
#: radiant/mainframe.cpp:1202
msgid "Select T_ouching"
msgstr ""
#: radiant/mainframe.cpp:1204
msgid "Select _Partial Tall"
msgstr ""
#: radiant/mainframe.cpp:1206
msgid "Select _Inside"
msgstr ""
#: radiant/mainframe.cpp:1209
msgid "Nudge Left"
msgstr ""
#: radiant/mainframe.cpp:1211
msgid "Nudge Right"
msgstr ""
#: radiant/mainframe.cpp:1213
msgid "Nudge Up"
msgstr ""
#: radiant/mainframe.cpp:1215
msgid "Nudge Down"
msgstr ""
#: radiant/mainframe.cpp:1219
msgid "Clipper"
msgstr ""
#: radiant/mainframe.cpp:1220
msgid "Toggle Clipper"
msgstr ""
#: radiant/mainframe.cpp:1223
msgid "Clip selection"
msgstr ""
#: radiant/mainframe.cpp:1225
msgid "Split selection"
msgstr ""
#: radiant/mainframe.cpp:1227
msgid "Flip Clip orientation"
msgstr ""
#: radiant/mainframe.cpp:1230
msgid "Connect entities"
msgstr ""
#: radiant/mainframe.cpp:1232
msgid "Ungroup entity"
msgstr ""
#: radiant/mainframe.cpp:1234
msgid "Make detail"
msgstr ""
#: radiant/mainframe.cpp:1236
msgid "Make structural"
msgstr ""
#: radiant/mainframe.cpp:1240
msgid "_Bsp"
msgstr ""
#: radiant/mainframe.cpp:1246
msgid "_Grid"
msgstr ""
#: radiant/mainframe.cpp:1250
msgid "Grid0.25"
msgstr ""
#: radiant/mainframe.cpp:1253
msgid "Grid0.5"
msgstr ""
#: radiant/mainframe.cpp:1256
msgid "Grid1"
msgstr ""
#: radiant/mainframe.cpp:1259
msgid "Grid2"
msgstr ""
#: radiant/mainframe.cpp:1262
msgid "Grid4"
msgstr ""
#: radiant/mainframe.cpp:1265
msgid "Grid8"
msgstr ""
#: radiant/mainframe.cpp:1268
msgid "Grid16"
msgstr ""
#: radiant/mainframe.cpp:1271
msgid "Grid32"
msgstr ""
#: radiant/mainframe.cpp:1274
msgid "Grid64"
msgstr ""
#: radiant/mainframe.cpp:1277
msgid "Grid128"
msgstr ""
#: radiant/mainframe.cpp:1280
msgid "Grid256"
msgstr ""
#: radiant/mainframe.cpp:1284
msgid "Snap to grid"
msgstr ""
#: radiant/mainframe.cpp:1289
msgid "_Textures"
msgstr ""
#: radiant/mainframe.cpp:1293
msgid "Show In _Use"
msgstr ""

View file

@ -420,6 +420,9 @@ void error_redirect (const gchar *domain, GLogLevelFlags log_level, const gchar
// Sys_FPrintf (SYS_NOCON, buf); // Sys_FPrintf (SYS_NOCON, buf);
} }
#define GETTEXT_PACKAGE "radiant"
#define LOCALEDIR "lang"
int main( int argc, char* argv[] ) { int main( int argc, char* argv[] ) {
char *libgl, *ptr; char *libgl, *ptr;
int i, j, k; int i, j, k;
@ -447,7 +450,11 @@ int main( int argc, char* argv[] ) {
} }
#endif #endif
gtk_disable_setlocale();
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
// gtk_disable_setlocale();
gtk_init(&argc, &argv); gtk_init(&argc, &argv);

View file

@ -936,49 +936,49 @@ void MainFrame::create_main_menu (GtkWidget *window, GtkWidget *vbox)
gtk_widget_show (menu_bar); gtk_widget_show (menu_bar);
// File menu // File menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_File"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_File"));
if (g_PrefsDlg.m_bDetachableMenus) if (g_PrefsDlg.m_bDetachableMenus)
menu_tearoff (menu); menu_tearoff (menu);
create_menu_item_with_mnemonic (menu, "_New Map", create_menu_item_with_mnemonic (menu, _("_New Map"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_NEW); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_NEW);
menu_separator (menu); menu_separator (menu);
//++timo temporary experimental stuff for sleep mode.. //++timo temporary experimental stuff for sleep mode..
item = create_menu_item_with_mnemonic (menu, "_Sleep", item = create_menu_item_with_mnemonic (menu, _("_Sleep"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SLEEP); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SLEEP);
g_object_set_data (G_OBJECT (window), "menu_file_sleep", item ); g_object_set_data (G_OBJECT (window), "menu_file_sleep", item );
menu_separator (menu); menu_separator (menu);
// end experimental // end experimental
item = create_menu_item_with_mnemonic (menu, "_Open...", item = create_menu_item_with_mnemonic (menu, _("_Open..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_OPEN); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_OPEN);
g_object_set_data (G_OBJECT (window), "menu_file_open", item); g_object_set_data (G_OBJECT (window), "menu_file_open", item);
create_menu_item_with_mnemonic (menu, "_Import...", // Hydra: give it it's proper name create_menu_item_with_mnemonic (menu, _("_Import..."), // Hydra: give it it's proper name
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_IMPORTMAP); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_IMPORTMAP);
item = create_menu_item_with_mnemonic (menu, "_Save", item = create_menu_item_with_mnemonic (menu, _("_Save"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SAVE); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SAVE);
g_object_set_data (G_OBJECT (window), "menu_file_save", item); g_object_set_data (G_OBJECT (window), "menu_file_save", item);
create_menu_item_with_mnemonic (menu, "Save _as...", create_menu_item_with_mnemonic (menu, _("Save _as..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SAVEAS); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SAVEAS);
create_menu_item_with_mnemonic (menu, "Save s_elected...", create_menu_item_with_mnemonic (menu, _("Save s_elected..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_EXPORTMAP); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_EXPORTMAP);
menu_separator (menu); menu_separator (menu);
item = create_menu_item_with_mnemonic (menu, "Save re_gion...", item = create_menu_item_with_mnemonic (menu, _("Save re_gion..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SAVEREGION); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_SAVEREGION);
g_object_set_data (G_OBJECT (window), "menu_file_saveregion", item); g_object_set_data (G_OBJECT (window), "menu_file_saveregion", item);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "New p_roject...", create_menu_item_with_mnemonic (menu, _("New p_roject..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_NEWPROJECT); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_NEWPROJECT);
create_menu_item_with_mnemonic (menu, "Load _project...", create_menu_item_with_mnemonic (menu, _("Load _project..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_LOADPROJECT); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_LOADPROJECT);
create_menu_item_with_mnemonic (menu, "Pro_ject settings...", create_menu_item_with_mnemonic (menu, _("Pro_ject settings..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_PROJECTSETTINGS); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_PROJECTSETTINGS);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "_Pointfile...", create_menu_item_with_mnemonic (menu, _("_Pointfile..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_POINTFILE); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_POINTFILE);
menu_separator (menu); menu_separator (menu);
item = create_menu_item_with_mnemonic (menu, "Recent Files", item = create_menu_item_with_mnemonic (menu, _("Recent Files"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_RECENT1); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_RECENT1);
g_object_set_data (G_OBJECT (item), "accel", accel); g_object_set_data (G_OBJECT (item), "accel", accel);
gtk_widget_set_sensitive (item, FALSE); gtk_widget_set_sensitive (item, FALSE);
@ -996,301 +996,301 @@ void MainFrame::create_main_menu (GtkWidget *window, GtkWidget *vbox)
gtk_widget_hide (item); gtk_widget_hide (item);
MRU_AddWidget (item, 3); MRU_AddWidget (item, 3);
menu_separator (menu); menu_separator (menu);
item = create_menu_item_with_mnemonic (menu, "Check for GtkRadiant update (web)", item = create_menu_item_with_mnemonic (menu, _("Check for GtkRadiant update (web)"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_CHECKUPDATE); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_CHECKUPDATE);
// disable, the functionality is no longer available // disable, the functionality is no longer available
gtk_widget_set_sensitive( item, FALSE ); gtk_widget_set_sensitive( item, FALSE );
create_menu_item_with_mnemonic (menu, "E_xit", create_menu_item_with_mnemonic (menu, _("E_xit"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_EXIT); GTK_SIGNAL_FUNC (HandleCommand), ID_FILE_EXIT);
// Edit menu // Edit menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_Edit"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_Edit"));
if (g_PrefsDlg.m_bDetachableMenus) if (g_PrefsDlg.m_bDetachableMenus)
menu_tearoff (menu); menu_tearoff (menu);
item = create_menu_item_with_mnemonic (menu, "_Undo", item = create_menu_item_with_mnemonic (menu, _("_Undo"),
GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_UNDO); GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_UNDO);
g_object_set_data (G_OBJECT (window), "menu_edit_undo", item); g_object_set_data (G_OBJECT (window), "menu_edit_undo", item);
item = create_menu_item_with_mnemonic (menu, "_Redo", item = create_menu_item_with_mnemonic (menu, _("_Redo"),
GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_REDO); GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_REDO);
g_object_set_data (G_OBJECT (window), "menu_edit_redo", item); g_object_set_data (G_OBJECT (window), "menu_edit_redo", item);
menu_separator (menu); menu_separator (menu);
item = create_menu_item_with_mnemonic (menu, "_Copy", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_COPYBRUSH); item = create_menu_item_with_mnemonic (menu, _("_Copy"), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_COPYBRUSH);
item = create_menu_item_with_mnemonic (menu, "_Paste", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_PASTEBRUSH); item = create_menu_item_with_mnemonic (menu, _("_Paste"), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_PASTEBRUSH);
item = create_menu_item_with_mnemonic (menu, "P_aste To Camera", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_PASTEBRUSHTOCAMERA); item = create_menu_item_with_mnemonic (menu, _("P_aste To Camera"), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_PASTEBRUSHTOCAMERA);
item = create_menu_item_with_mnemonic (menu, "_Delete", GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DELETE); item = create_menu_item_with_mnemonic (menu, _("_Delete"), GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DELETE);
g_object_set_data (G_OBJECT (window), "menu_selection_delete", item); g_object_set_data (G_OBJECT (window), "menu_selection_delete", item);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "Map Info...", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_MAPINFO); create_menu_item_with_mnemonic (menu, _("Map Info..."), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_MAPINFO);
create_menu_item_with_mnemonic (menu, "Entity Info...", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_ENTITYINFO); create_menu_item_with_mnemonic (menu, _("Entity Info..."), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_ENTITYINFO);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "Brush Scripts...", GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_SCRIPTS); create_menu_item_with_mnemonic (menu, _("Brush Scripts..."), GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_SCRIPTS);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "Load Pre_fab...", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_LOADPREFAB); create_menu_item_with_mnemonic (menu, _("Load Pre_fab..."), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_LOADPREFAB);
create_menu_item_with_mnemonic (menu, "Save Selection as Prefab...", GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_SAVEPREFAB); create_menu_item_with_mnemonic (menu, _("Save Selection as Prefab..."), GTK_SIGNAL_FUNC (HandleCommand), ID_EDIT_SAVEPREFAB);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "Preferences...", GTK_SIGNAL_FUNC (HandleCommand), ID_PREFS); create_menu_item_with_mnemonic (menu, _("Preferences..."), GTK_SIGNAL_FUNC (HandleCommand), ID_PREFS);
// View menu // View menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_View"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_View"));
if (g_PrefsDlg.m_bDetachableMenus) if (g_PrefsDlg.m_bDetachableMenus)
menu_tearoff (menu); menu_tearoff (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Toggle"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Toggle"));
create_menu_item_with_mnemonic (menu_in_menu, "Camera View", GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLECAMERA); create_menu_item_with_mnemonic (menu_in_menu, _("Camera View"), GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLECAMERA);
create_menu_item_with_mnemonic (menu_in_menu, "Console View", GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLECONSOLE); create_menu_item_with_mnemonic (menu_in_menu, _("Console View"), GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLECONSOLE);
item = create_menu_item_with_mnemonic (menu_in_menu, "Entity View", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITY); item = create_menu_item_with_mnemonic (menu_in_menu, _("Entity View"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITY);
g_object_set_data (G_OBJECT (window), "menu_view_entity", item); g_object_set_data (G_OBJECT (window), "menu_view_entity", item);
// create_menu_item_with_mnemonic (menu_in_menu, "Groups View", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_GROUPS); // create_menu_item_with_mnemonic (menu_in_menu, "Groups View", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_GROUPS);
create_menu_item_with_mnemonic (menu_in_menu, "XY (Top)", GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEVIEW); create_menu_item_with_mnemonic (menu_in_menu, _("XY (Top)"), GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEVIEW);
create_menu_item_with_mnemonic (menu_in_menu, "YZ (Side)", GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEVIEW_YZ); create_menu_item_with_mnemonic (menu_in_menu, _("YZ (Side)"), GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEVIEW_YZ);
create_menu_item_with_mnemonic (menu_in_menu, "XZ (Front)", GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEVIEW_XZ); create_menu_item_with_mnemonic (menu_in_menu, _("XZ (Front)"), GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEVIEW_XZ);
create_menu_item_with_mnemonic (menu_in_menu, "Z View", GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEZ); create_menu_item_with_mnemonic (menu_in_menu, _("Z View"), GTK_SIGNAL_FUNC (HandleCommand), ID_TOGGLEZ);
menu_separator (menu); menu_separator (menu);
item = create_menu_item_with_mnemonic (menu, "_Center", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CENTER); item = create_menu_item_with_mnemonic (menu, _("_Center"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CENTER);
item = create_menu_item_with_mnemonic (menu, "_Center 2d", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CENTERVIEW); item = create_menu_item_with_mnemonic (menu, _("_Center 2d"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CENTERVIEW);
item = create_menu_item_with_mnemonic (menu, "_Up Floor", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_UPFLOOR); item = create_menu_item_with_mnemonic (menu, _("_Up Floor"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_UPFLOOR);
item = create_menu_item_with_mnemonic (menu, "_Down Floor", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_DOWNFLOOR); item = create_menu_item_with_mnemonic (menu, _("_Down Floor"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_DOWNFLOOR);
menu_separator (menu); menu_separator (menu);
item = create_menu_item_with_mnemonic (menu, "_Next (XY, YZ, XY)", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_NEXTVIEW); item = create_menu_item_with_mnemonic (menu, _("_Next (XY, YZ, XY)"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_NEXTVIEW);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Layout"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Layout"));
create_menu_item_with_mnemonic (menu_in_menu, "XY (Top)", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_XY); create_menu_item_with_mnemonic (menu_in_menu, _("XY (Top)"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_XY);
create_menu_item_with_mnemonic (menu_in_menu, "YZ", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SIDE); create_menu_item_with_mnemonic (menu_in_menu, _("YZ"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SIDE);
create_menu_item_with_mnemonic (menu_in_menu, "XZ", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_FRONT); create_menu_item_with_mnemonic (menu_in_menu, _("XZ"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_FRONT);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Zoom"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Zoom"));
create_menu_item_with_mnemonic (menu_in_menu, "_XY 100%", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_100); create_menu_item_with_mnemonic (menu_in_menu, _("_XY 100%"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_100);
item = create_menu_item_with_mnemonic (menu_in_menu, "XY Zoom _In", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZOOMIN); item = create_menu_item_with_mnemonic (menu_in_menu, _("XY Zoom _In"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZOOMIN);
item = create_menu_item_with_mnemonic (menu_in_menu, "XY Zoom _Out", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZOOMOUT); item = create_menu_item_with_mnemonic (menu_in_menu, _("XY Zoom _Out"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZOOMOUT);
menu_separator (menu_in_menu); menu_separator (menu_in_menu);
create_menu_item_with_mnemonic (menu_in_menu, "_Z 100%", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_Z100); create_menu_item_with_mnemonic (menu_in_menu, _("_Z 100%"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_Z100);
item = create_menu_item_with_mnemonic (menu_in_menu, "Z Zoo_m In", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZZOOMIN); item = create_menu_item_with_mnemonic (menu_in_menu, _("Z Zoo_m In"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZZOOMIN);
g_object_set_data (G_OBJECT (window), "menu_view_zzoomin", item); g_object_set_data (G_OBJECT (window), "menu_view_zzoomin", item);
item = create_menu_item_with_mnemonic (menu_in_menu, "Z Zoom O_ut", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZZOOMOUT); item = create_menu_item_with_mnemonic (menu_in_menu, _("Z Zoom O_ut"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ZZOOMOUT);
g_object_set_data (G_OBJECT (window), "menu_view_zzoomout", item); g_object_set_data (G_OBJECT (window), "menu_view_zzoomout", item);
menu_separator (menu_in_menu); menu_separator (menu_in_menu);
item = create_menu_item_with_mnemonic (menu_in_menu, "Cubic Clip Zoom In", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CUBEIN); item = create_menu_item_with_mnemonic (menu_in_menu, _("Cubic Clip Zoom In"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CUBEIN);
item = create_menu_item_with_mnemonic (menu_in_menu, "Cubic Clip Zoom Out", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CUBEOUT); item = create_menu_item_with_mnemonic (menu_in_menu, _("Cubic Clip Zoom Out"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CUBEOUT);
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Show"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Show"));
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show _Angles", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWANGLES, FALSE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show _Angles"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWANGLES, FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_showangles", item); g_object_set_data (G_OBJECT (window), "menu_view_showangles", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show _Names", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWNAMES, TRUE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show _Names"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWNAMES, TRUE);
g_object_set_data (G_OBJECT (window), "menu_view_shownames", item); g_object_set_data (G_OBJECT (window), "menu_view_shownames", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show Blocks", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWBLOCKS, FALSE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show Blocks"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWBLOCKS, FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_showblocks", item); g_object_set_data (G_OBJECT (window), "menu_view_showblocks", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show C_oordinates", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWCOORDINATES, TRUE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show C_oordinates"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWCOORDINATES, TRUE);
g_object_set_data (G_OBJECT (window), "menu_view_showcoordinates", item); g_object_set_data (G_OBJECT (window), "menu_view_showcoordinates", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show Window Outline", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWOUTLINE, TRUE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show Window Outline"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWOUTLINE, TRUE);
g_object_set_data (G_OBJECT (window), "menu_view_showoutline", item); g_object_set_data (G_OBJECT (window), "menu_view_showoutline", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show ZBuffered Outline", GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_NOOUTLINE, TRUE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show ZBuffered Outline"), GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_NOOUTLINE, TRUE);
g_object_set_data (G_OBJECT (window), "menu_selection_nooutline", item); g_object_set_data (G_OBJECT (window), "menu_selection_nooutline", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show Axes", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWAXES, TRUE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show Axes"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWAXES, TRUE);
g_object_set_data (G_OBJECT (window), "menu_view_showaxes", item); g_object_set_data (G_OBJECT (window), "menu_view_showaxes", item);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Show Workzone", GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWWORKZONE, FALSE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Show Workzone"), GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_SHOWWORKZONE, FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_showworkzone", item); g_object_set_data (G_OBJECT (window), "menu_view_showworkzone", item);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Filter"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Filter"));
create_check_menu_item_with_mnemonic (menu_in_menu, "World", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_WORLD, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("World"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_WORLD, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Entities", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_ENTITIES, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Entities"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_ENTITIES, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Areaportals", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_AREAPORTALS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Areaportals"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_AREAPORTALS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Translucent", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_TRANSLUCENT, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Translucent"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_TRANSLUCENT, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Liquids", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_LIQUIDS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Liquids"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_LIQUIDS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Caulk", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_CAULK, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Caulk"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_CAULK, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Clips", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_CLIPS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Clips"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_CLIPS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Paths", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_PATHS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Paths"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_PATHS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Clusterportals", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_CLUSTERPORTALS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Clusterportals"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_CLUSTERPORTALS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Lights", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_LIGHTS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Lights"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_LIGHTS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Structural", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_STRUCTURAL, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Structural"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_STRUCTURAL, FALSE);
item = create_check_menu_item_with_mnemonic (menu_in_menu, "Lightgrid", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_LIGHTGRID, FALSE); item = create_check_menu_item_with_mnemonic (menu_in_menu, _("Lightgrid"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_LIGHTGRID, FALSE);
g_object_set_data (G_OBJECT (window), "menu_filter_lightgrid", item); g_object_set_data (G_OBJECT (window), "menu_filter_lightgrid", item);
create_check_menu_item_with_mnemonic (menu_in_menu, "Patches", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_PATCHES, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Patches"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_PATCHES, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Details", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_DETAILS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Details"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_DETAILS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Hints", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_HINTSSKIPS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Hints"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_HINTSSKIPS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Models", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_MODELS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Models"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_MODELS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Triggers", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_TRIGGERS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Triggers"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_TRIGGERS, FALSE);
create_check_menu_item_with_mnemonic (menu_in_menu, "Botclips", GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_BOTCLIPS, FALSE); create_check_menu_item_with_mnemonic (menu_in_menu, _("Botclips"), GTK_SIGNAL_FUNC (HandleCommand), ID_FILTER_BOTCLIPS, FALSE);
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Hide/Show"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Hide/Show"));
create_menu_item_with_mnemonic (menu_in_menu, "Hide Selected", create_menu_item_with_mnemonic (menu_in_menu, _("Hide Selected"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_HIDESHOW_HIDESELECTED); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_HIDESHOW_HIDESELECTED);
create_menu_item_with_mnemonic (menu_in_menu, "Show Hidden", create_menu_item_with_mnemonic (menu_in_menu, _("Show Hidden"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_HIDESHOW_SHOWHIDDEN); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_HIDESHOW_SHOWHIDDEN);
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Entities as"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Entities as"));
g_object_set_data (G_OBJECT (window), "view_entitiesas_menu", menu_in_menu); g_object_set_data (G_OBJECT (window), "view_entitiesas_menu", menu_in_menu);
item = create_radio_menu_item_with_mnemonic (menu_in_menu, NULL, "Bounding box", item = create_radio_menu_item_with_mnemonic (menu_in_menu, NULL, _("Bounding box"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_BOUNDINGBOX,FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_BOUNDINGBOX,FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_boundingbox", item); g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_boundingbox", item);
item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, "Wireframe", item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, _("Wireframe"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_WIREFRAME,FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_WIREFRAME,FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_wireframe", item); g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_wireframe", item);
item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, "Selected Wireframe", item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, _("Selected Wireframe"),
GTK_SIGNAL_FUNC (HandleCommand),ID_VIEW_ENTITIESAS_SELECTEDWIREFRAME,FALSE); GTK_SIGNAL_FUNC (HandleCommand),ID_VIEW_ENTITIESAS_SELECTEDWIREFRAME,FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_selectedwireframe", item); g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_selectedwireframe", item);
item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, "Selected Skinned", item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, _("Selected Skinned"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_SELECTEDSKINNED,FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_SELECTEDSKINNED,FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_selectedskinned", item); g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_selectedskinned", item);
item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, "Skinned", item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, _("Skinned"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_SKINNED,FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_SKINNED,FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_skinned", item); g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_skinned", item);
item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, "Skinned and Boxed", item = create_radio_menu_item_with_mnemonic (menu_in_menu, item, _("Skinned and Boxed"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_SKINNEDANDBOXED,FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_ENTITIESAS_SKINNEDANDBOXED,FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_skinnedandboxed", item); g_object_set_data (G_OBJECT (window), "menu_view_entitiesas_skinnedandboxed", item);
menu_separator (menu); menu_separator (menu);
item = create_check_menu_item_with_mnemonic (menu, "Cubic Clipping", item = create_check_menu_item_with_mnemonic (menu, _("Cubic Clipping"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CUBICCLIPPING, TRUE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CUBICCLIPPING, TRUE);
g_object_set_data (G_OBJECT (window), "menu_view_cubicclipping", item); g_object_set_data (G_OBJECT (window), "menu_view_cubicclipping", item);
menu_separator (menu); menu_separator (menu);
item = create_check_menu_item_with_mnemonic (menu, "OpenGL Lighting", item = create_check_menu_item_with_mnemonic (menu, _("OpenGL Lighting"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_OPENGLLIGHTING, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_OPENGLLIGHTING, FALSE);
g_object_set_data (G_OBJECT (window), "menu_view_opengllighting", item); g_object_set_data (G_OBJECT (window), "menu_view_opengllighting", item);
// Selection menu // Selection menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_Selection"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_Selection"));
if (g_PrefsDlg.m_bDetachableMenus) if (g_PrefsDlg.m_bDetachableMenus)
menu_tearoff (menu); menu_tearoff (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Drag"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Drag"));
create_menu_item_with_mnemonic (menu_in_menu, "Drag _Edges", create_menu_item_with_mnemonic (menu_in_menu, _("Drag _Edges"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DRAGEDGES); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DRAGEDGES);
create_menu_item_with_mnemonic (menu_in_menu, "Drag _Vertices", create_menu_item_with_mnemonic (menu_in_menu, _("Drag _Vertices"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DRAGVERTECIES); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DRAGVERTECIES);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "_Clone", create_menu_item_with_mnemonic (menu, _("_Clone"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CLONE); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CLONE);
item = create_menu_item_with_mnemonic (menu, "Deselect", item = create_menu_item_with_mnemonic (menu, _("Deselect"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DESELECT); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DESELECT);
item = create_menu_item_with_mnemonic (menu, "Invert", item = create_menu_item_with_mnemonic (menu, _("Invert"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_INVERT); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_INVERT);
#ifndef QUAKE3 #ifndef QUAKE3
create_menu_item_with_mnemonic (menu, "_Delete", create_menu_item_with_mnemonic (menu, _("_Delete"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DELETE); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_DELETE);
#endif #endif
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Flip"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Flip"));
create_menu_item_with_mnemonic (menu_in_menu, "Flip _X", create_menu_item_with_mnemonic (menu_in_menu, _("Flip _X"),
GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_FLIPX); GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_FLIPX);
create_menu_item_with_mnemonic (menu_in_menu, "Flip _Y", create_menu_item_with_mnemonic (menu_in_menu, _("Flip _Y"),
GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_FLIPY); GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_FLIPY);
create_menu_item_with_mnemonic (menu_in_menu, "Flip _Z", create_menu_item_with_mnemonic (menu_in_menu, _("Flip _Z"),
GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_FLIPZ); GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_FLIPZ);
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Rotate"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Rotate"));
create_menu_item_with_mnemonic (menu_in_menu, "Rotate X", create_menu_item_with_mnemonic (menu_in_menu, _("Rotate X"),
GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_ROTATEX); GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_ROTATEX);
create_menu_item_with_mnemonic (menu_in_menu, "Rotate Y", create_menu_item_with_mnemonic (menu_in_menu, _("Rotate Y"),
GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_ROTATEY); GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_ROTATEY);
create_menu_item_with_mnemonic (menu_in_menu, "Rotate Z", create_menu_item_with_mnemonic (menu_in_menu, _("Rotate Z"),
GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_ROTATEZ); GTK_SIGNAL_FUNC (HandleCommand), ID_BRUSH_ROTATEZ);
create_menu_item_with_mnemonic (menu_in_menu, "Arbitrary rotation...", create_menu_item_with_mnemonic (menu_in_menu, _("Arbitrary rotation..."),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_ARBITRARYROTATION); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_ARBITRARYROTATION);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "Scale...", GTK_SIGNAL_FUNC (HandleCommand), ID_SELECT_SCALE); create_menu_item_with_mnemonic (menu, _("Scale..."), GTK_SIGNAL_FUNC (HandleCommand), ID_SELECT_SCALE);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "CSG"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("CSG"));
create_menu_item_with_mnemonic (menu_in_menu, "Make _Hollow", create_menu_item_with_mnemonic (menu_in_menu, _("Make _Hollow"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_MAKEHOLLOW); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_MAKEHOLLOW);
create_menu_item_with_mnemonic (menu_in_menu, "CSG _Subtract", create_menu_item_with_mnemonic (menu_in_menu, _("CSG _Subtract"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CSGSUBTRACT); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CSGSUBTRACT);
create_menu_item_with_mnemonic (menu_in_menu, "CSG _Merge", create_menu_item_with_mnemonic (menu_in_menu, _("CSG _Merge"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CSGMERGE); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CSGMERGE);
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Select"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Select"));
create_menu_item_with_mnemonic (menu_in_menu, "Select Complete _Tall", create_menu_item_with_mnemonic (menu_in_menu, _("Select Complete _Tall"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTCOMPLETETALL); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTCOMPLETETALL);
create_menu_item_with_mnemonic (menu_in_menu, "Select T_ouching", create_menu_item_with_mnemonic (menu_in_menu, _("Select T_ouching"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTTOUCHING); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTTOUCHING);
create_menu_item_with_mnemonic (menu_in_menu, "Select _Partial Tall", create_menu_item_with_mnemonic (menu_in_menu, _("Select _Partial Tall"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTPARTIALTALL); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTPARTIALTALL);
create_menu_item_with_mnemonic (menu_in_menu, "Select _Inside", create_menu_item_with_mnemonic (menu_in_menu, _("Select _Inside"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTINSIDE); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTINSIDE);
#ifndef QUAKE3 #ifndef QUAKE3
create_menu_item_with_mnemonic (menu_in_menu, "Nudge Left", create_menu_item_with_mnemonic (menu_in_menu, _("Nudge Left"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGELEFT); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGELEFT);
create_menu_item_with_mnemonic (menu_in_menu, "Nudge Right", create_menu_item_with_mnemonic (menu_in_menu, _("Nudge Right"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGERIGHT); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGERIGHT);
create_menu_item_with_mnemonic (menu_in_menu, "Nudge Up", create_menu_item_with_mnemonic (menu_in_menu, _("Nudge Up"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGEUP); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGEUP);
create_menu_item_with_mnemonic (menu_in_menu, "Nudge Down", create_menu_item_with_mnemonic (menu_in_menu, _("Nudge Down"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGEDOWN); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECT_NUDGEDOWN);
#endif #endif
menu_separator (menu); menu_separator (menu);
menu_in_menu = create_menu_in_menu_with_mnemonic (menu, "Clipper"); menu_in_menu = create_menu_in_menu_with_mnemonic (menu, _("Clipper"));
create_menu_item_with_mnemonic (menu_in_menu, "Toggle Clipper", create_menu_item_with_mnemonic (menu_in_menu, _("Toggle Clipper"),
GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CLIPPER); GTK_SIGNAL_FUNC (HandleCommand), ID_VIEW_CLIPPER);
menu_separator (menu_in_menu); menu_separator (menu_in_menu);
create_menu_item_with_mnemonic (menu_in_menu, "Clip selection", create_menu_item_with_mnemonic (menu_in_menu, _("Clip selection"),
GTK_SIGNAL_FUNC (HandleCommand), ID_CLIP_SELECTED); GTK_SIGNAL_FUNC (HandleCommand), ID_CLIP_SELECTED);
create_menu_item_with_mnemonic (menu_in_menu, "Split selection", create_menu_item_with_mnemonic (menu_in_menu, _("Split selection"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SPLIT_SELECTED); GTK_SIGNAL_FUNC (HandleCommand), ID_SPLIT_SELECTED);
create_menu_item_with_mnemonic (menu_in_menu, "Flip Clip orientation", create_menu_item_with_mnemonic (menu_in_menu, _("Flip Clip orientation"),
GTK_SIGNAL_FUNC (HandleCommand), ID_FLIP_CLIP); GTK_SIGNAL_FUNC (HandleCommand), ID_FLIP_CLIP);
menu_separator (menu); menu_separator (menu);
create_menu_item_with_mnemonic (menu, "Connect entities", create_menu_item_with_mnemonic (menu, _("Connect entities"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CONNECT); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_CONNECT);
create_menu_item_with_mnemonic (menu, "Ungroup entity", create_menu_item_with_mnemonic (menu, _("Ungroup entity"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_UNGROUPENTITY); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_UNGROUPENTITY);
create_menu_item_with_mnemonic (menu, "Make detail", create_menu_item_with_mnemonic (menu, _("Make detail"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_MAKE_DETAIL); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_MAKE_DETAIL);
create_menu_item_with_mnemonic (menu, "Make structural", create_menu_item_with_mnemonic (menu, _("Make structural"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_MAKE_STRUCTURAL); GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_MAKE_STRUCTURAL);
// BSP menu // BSP menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_Bsp"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_Bsp"));
menu_separator (menu); menu_separator (menu);
g_object_set_data (G_OBJECT (window), "menu_bsp", menu); g_object_set_data (G_OBJECT (window), "menu_bsp", menu);
// Grid menu // Grid menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_Grid"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_Grid"));
if (g_PrefsDlg.m_bDetachableMenus) if (g_PrefsDlg.m_bDetachableMenus)
menu_tearoff (menu); menu_tearoff (menu);
item = create_radio_menu_item_with_mnemonic (menu, NULL, "Grid0.25", item = create_radio_menu_item_with_mnemonic (menu, NULL, _("Grid0.25"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_025, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_025, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_025", item); g_object_set_data (G_OBJECT (window), "menu_grid_025", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid0.5", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid0.5"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_05, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_05, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_05", item); g_object_set_data (G_OBJECT (window), "menu_grid_05", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid1", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid1"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_1, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_1, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_1", item); g_object_set_data (G_OBJECT (window), "menu_grid_1", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid2", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid2"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_2, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_2, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_2", item); g_object_set_data (G_OBJECT (window), "menu_grid_2", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid4", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid4"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_4, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_4, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_4", item); g_object_set_data (G_OBJECT (window), "menu_grid_4", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid8", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid8"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_8, TRUE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_8, TRUE);
g_object_set_data (G_OBJECT (window), "menu_grid_8", item); g_object_set_data (G_OBJECT (window), "menu_grid_8", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid16", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid16"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_16, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_16, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_16", item); g_object_set_data (G_OBJECT (window), "menu_grid_16", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid32", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid32"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_32, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_32, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_32", item); g_object_set_data (G_OBJECT (window), "menu_grid_32", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid64", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid64"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_64, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_64, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_64", item); g_object_set_data (G_OBJECT (window), "menu_grid_64", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid128", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid128"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_128, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_128, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_128", item); g_object_set_data (G_OBJECT (window), "menu_grid_128", item);
item = create_radio_menu_item_with_mnemonic (menu, item, "Grid256", item = create_radio_menu_item_with_mnemonic (menu, item, _("Grid256"),
GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_256, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_GRID_256, FALSE);
g_object_set_data (G_OBJECT (window), "menu_grid_256", item); g_object_set_data (G_OBJECT (window), "menu_grid_256", item);
menu_separator (menu); menu_separator (menu);
item = create_check_menu_item_with_mnemonic (menu, "Snap to grid", item = create_check_menu_item_with_mnemonic (menu, _("Snap to grid"),
GTK_SIGNAL_FUNC (HandleCommand), ID_SNAPTOGRID, TRUE); GTK_SIGNAL_FUNC (HandleCommand), ID_SNAPTOGRID, TRUE);
g_object_set_data (G_OBJECT (window), "menu_snaptogrid", item); g_object_set_data (G_OBJECT (window), "menu_snaptogrid", item);
// Textures menu // Textures menu
menu = create_sub_menu_with_mnemonic (menu_bar, "_Textures"); menu = create_sub_menu_with_mnemonic (menu_bar, _("_Textures"));
if (g_PrefsDlg.m_bDetachableMenus) if (g_PrefsDlg.m_bDetachableMenus)
menu_tearoff (menu); menu_tearoff (menu);
item = create_check_menu_item_with_mnemonic (menu, "Show In _Use", item = create_check_menu_item_with_mnemonic (menu, _("Show In _Use"),
GTK_SIGNAL_FUNC (HandleCommand), ID_TEXTURES_SHOWINUSE, FALSE); GTK_SIGNAL_FUNC (HandleCommand), ID_TEXTURES_SHOWINUSE, FALSE);
g_object_set_data (G_OBJECT (window), "menu_textures_showinuse", item); g_object_set_data (G_OBJECT (window), "menu_textures_showinuse", item);
item = create_check_menu_item_with_mnemonic (menu, "Show _All", item = create_check_menu_item_with_mnemonic (menu, "Show _All",