#include "bkgrnd2d.h"
#include "dialog.h"
+#include <glib/gi18n.h>
// spaces to make label nice and big
#define NO_FILE_MSG " (no file loaded) "
//TODO bug/patch for comments
//TODO patern gets fucked up sometimes if empty
newfile = g_FuncTable.m_pfnFileDialog(pDialogWnd,TRUE,
- "Load Background Image",browsedir,FILETYPE_KEY);
+ _("Load Background Image"),browsedir,FILETYPE_KEY);
if(!newfile) {
Syn_Printf(MSG_PREFIX "newfile = NULL\n");
return;
void CBackgroundDialogPage::SetPosLabel()
{
char s[64];
- // TODO no snprintf ?
- sprintf(s, "Size/Position (%d,%d) (%d,%d)",(int)(m_pImage->m_xmin),
+ snprintf(s, sizeof(s) - 1, _("Size/Position (%d,%d) (%d,%d)"),(int)(m_pImage->m_xmin),
(int)(m_pImage->m_ymin),(int)(m_pImage->m_xmax),(int)(m_pImage->m_ymax));
gtk_label_set_text(GTK_LABEL(m_pPosLabel),s);
}
switch(m_vt)
{
case XY:
- m_pTabLabel = gtk_label_new("X/Y");
+ m_pTabLabel = gtk_label_new(_("X/Y"));
m_pImage = &backgroundXY;
break;
case XZ:
- m_pTabLabel = gtk_label_new("X/Z");
+ m_pTabLabel = gtk_label_new(_("X/Z"));
m_pImage = &backgroundXZ;
break;
case YZ:
- m_pTabLabel = gtk_label_new("Y/Z");
+ m_pTabLabel = gtk_label_new(_("Y/Z"));
m_pImage = &backgroundYZ;
break;
}
// A vbox to hold everything
m_pWidget = gtk_vbox_new(FALSE,0);
// Frame for file row
- frame = gtk_frame_new("File");
+ frame = gtk_frame_new(_("File"));
gtk_box_pack_start (GTK_BOX (m_pWidget),frame, FALSE, FALSE, 2);
// hbox for first row
gtk_widget_show (frame);
// second row (rendering options)
- frame = gtk_frame_new("Rendering");
+ frame = gtk_frame_new(_("Rendering"));
gtk_box_pack_start (GTK_BOX (m_pWidget),frame, FALSE, FALSE, 2);
hbox = gtk_hbox_new(FALSE,5);
gtk_container_set_border_width(GTK_CONTAINER (hbox),4);
gtk_container_add (GTK_CONTAINER (frame), hbox);
- w = gtk_label_new("Vertex alpha:");
+ w = gtk_label_new(_("Vertex alpha:"));
gtk_box_pack_start (GTK_BOX (hbox),w, FALSE, FALSE, 5);
gtk_widget_show (w);
g_signal_connect (G_OBJECT (w), "value-changed",
G_CALLBACK (alpha_adjust_callback), (gpointer)this);
gtk_box_pack_start (GTK_BOX (hbox),w, TRUE, TRUE, 5);
- gtk_tooltips_set_tip (pTooltips, w, "Set image transparancy", NULL);
+ gtk_tooltips_set_tip (pTooltips, w, _("Set image transparancy"), NULL);
gtk_widget_show (w);
gtk_widget_show (hbox);
gtk_widget_show (frame);
// Third row (size and position)
- frame = gtk_frame_new("Size/Position (undefined)");
+ frame = gtk_frame_new(_("Size/Position (undefined)"));
m_pPosLabel = gtk_frame_get_label_widget (GTK_FRAME(frame));
gtk_box_pack_start ( GTK_BOX (m_pWidget), frame, FALSE, FALSE, 2);
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_container_set_border_width(GTK_CONTAINER (hbox),4);
- w = gtk_button_new_with_label ("from selection");
+ w = gtk_button_new_with_label (_("from selection"));
gtk_box_pack_start (GTK_BOX (hbox),w, TRUE, FALSE, 5);
g_signal_connect (G_OBJECT (w), "clicked", G_CALLBACK (size_sel_callback),
(gpointer)this);
- gtk_tooltips_set_tip (pTooltips, w, "Set the size of the image to the bounding rectangle of all selected brushes and entities", NULL);
+ gtk_tooltips_set_tip (pTooltips, w, _("Set the size of the image to the bounding rectangle of all selected brushes and entities"), NULL);
gtk_widget_show (w);
if(m_vt == XY) {
- w = gtk_button_new_with_label ("from map mins/maxs");
+ w = gtk_button_new_with_label (_("from map mins/maxs"));
gtk_box_pack_start ( GTK_BOX (hbox),w, TRUE, FALSE, 2);
g_signal_connect (G_OBJECT (w), "clicked", G_CALLBACK (size_mm_callback),
(gpointer)this);
- gtk_tooltips_set_tip (pTooltips, w, "Set the size of the image using the mapcoordsmins and mapcoordsmaxs keys of the worldspawn entity", NULL);
+ gtk_tooltips_set_tip (pTooltips, w, _("Set the size of the image using the mapcoordsmins and mapcoordsmaxs keys of the worldspawn entity"), NULL);
gtk_widget_show (w);
}
{
CBackgroundDialogPage *pPage;
- pDialogWnd = gtk_dialog_new_with_buttons ("Background Images",
+ pDialogWnd = gtk_dialog_new_with_buttons (_("Background Images"),
GTK_WINDOW(g_pMainWidget),
(GtkDialogFlags)(GTK_DIALOG_DESTROY_WITH_PARENT),
// TODO dialog with no buttons
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- frame = gtk_frame_new( "Type" );
+ frame = gtk_frame_new( _("Type") );
gtk_box_pack_start( GTK_BOX( hbox ), frame, TRUE, TRUE, 0 );
gtk_widget_show( frame );
loop = 1;
while (loop)
gtk_main_iteration ();
-
+
dialogError = FALSE;
if( ret == IDOK ) {
}
str = gtk_entry_get_text( GTK_ENTRY(g_pSecondsEntry) );
-
+
if( str ) {
GetCurrentCam()->GetCam()->setBaseTime( atof( str ) );
build = true;
loop = 1;
while (loop)
gtk_main_iteration ();
-
+
dialogError = FALSE;
if( ret == IDOK ) {
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- frame = gtk_frame_new( "Type" );
+ frame = gtk_frame_new( _("Type") );
gtk_box_pack_start( GTK_BOX( hbox ), frame, TRUE, TRUE, 0 );
gtk_widget_show( frame );
// -------------------------- //
- fixed = gtk_radio_button_new_with_label( targetTypeRadio, "Fixed" );
+ fixed = gtk_radio_button_new_with_label( targetTypeRadio, _("Fixed") );
gtk_box_pack_start( GTK_BOX( vbox2 ), fixed, FALSE, FALSE, 3 );
gtk_widget_show( fixed );
targetTypeRadio = gtk_radio_button_group( GTK_RADIO_BUTTON( fixed ) );
- interpolated = gtk_radio_button_new_with_label( targetTypeRadio, "Interpolated" );
+ interpolated = gtk_radio_button_new_with_label( targetTypeRadio, _("Interpolated") );
gtk_box_pack_start( GTK_BOX( vbox2 ), interpolated, FALSE, FALSE, 3 );
gtk_widget_show( interpolated );
targetTypeRadio = gtk_radio_button_group( GTK_RADIO_BUTTON( interpolated ) );
- spline = gtk_radio_button_new_with_label( targetTypeRadio, "Spline" );
+ spline = gtk_radio_button_new_with_label( targetTypeRadio, _("Spline") );
gtk_box_pack_start( GTK_BOX( vbox2 ), spline, FALSE, FALSE, 3 );
gtk_widget_show( spline );
targetTypeRadio = gtk_radio_button_group( GTK_RADIO_BUTTON( spline ) );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_button_new_with_label ("Ok");
+ w = gtk_button_new_with_label (_("Ok"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked", GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDOK));
gtk_widget_show (w);
GTK_WIDGET_SET_FLAGS( w, GTK_CAN_DEFAULT );
gtk_widget_grab_default( w );
- w = gtk_button_new_with_label ("Cancel");
+ w = gtk_button_new_with_label (_("Cancel"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked", GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDCANCEL));
gtk_widget_show (w);
loop = 1;
while (loop)
gtk_main_iteration ();
-
+
dialogError = FALSE;
if( ret == IDOK ) {
enum camEventType {
EVENT_NA = 0x00,
- EVENT_WAIT, //
- EVENT_TARGETWAIT, //
- EVENT_SPEED, //
+ EVENT_WAIT, //
+ EVENT_TARGETWAIT, //
+ EVENT_SPEED, //
EVENT_TARGET, // char(name)
- EVENT_SNAPTARGET, //
+ EVENT_SNAPTARGET, //
EVENT_FOV, // int(time), int(targetfov)
- EVENT_CMD, //
- EVENT_TRIGGER, //
- EVENT_STOP, //
- EVENT_CAMERA, //
+ EVENT_CMD, //
+ EVENT_TRIGGER, //
+ EVENT_STOP, //
+ EVENT_CAMERA, //
EVENT_FADEOUT, // int(time)
EVENT_FADEIN, // int(time)
- EVENT_FEATHER, //
- EVENT_COUNT
+ EVENT_FEATHER, //
+ EVENT_COUNT
};
// { requires parameters, enabled }
};
const char *camEventStr[] = {
- "n/a",
- "Wait",
- "Target wait",
- "Speed",
- "Change Target <string:name>",
- "Snap Target",
- "FOV <int:duration> <int:targetfov>",
- "Run Script",
- "Trigger",
- "Stop",
- "Change to Camera <string:camera> (or <int:cameranum> <string:camera>",
- "Fade Out <int:duration>",
- "Fade In <int:duration>",
- "Feather"
+ N_("n/a"),
+ N_("Wait"),
+ N_("Target wait"),
+ N_("Speed"),
+ N_("Change Target <string:name>"),
+ N_("Snap Target"),
+ N_("FOV <int:duration> <int:targetfov>"),
+ N_("Run Script"),
+ N_("Trigger"),
+ N_("Stop"),
+ N_("Change to Camera <string:camera> (or <int:cameranum> <string:camera>"),
+ N_("Fade Out <int:duration>"),
+ N_("Fade In <int:duration>"),
+ N_("Feather")
};
static gint ci_add( GtkWidget *widget, gpointer data )
// create the window
window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
- gtk_window_set_title( GTK_WINDOW (window), "Add Event" );
+ gtk_window_set_title( GTK_WINDOW (window), _("Add Event") );
gtk_signal_connect( GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC( dialog_delete_callback ), NULL );
gtk_signal_connect( GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC( gtk_widget_destroy ), NULL );
gtk_window_set_transient_for( GTK_WINDOW( window ), GTK_WINDOW( g_pCameraInspectorWnd ) );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- frame = gtk_frame_new( "Type" );
+ frame = gtk_frame_new( _("Type") );
gtk_box_pack_start( GTK_BOX( hbox ), frame, TRUE, TRUE, 0 );
gtk_widget_show( frame );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "Parameters:" );
+ w = gtk_label_new( _("Parameters:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_button_new_with_label ("Ok");
+ w = gtk_button_new_with_label (_("Ok"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked", GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDOK));
gtk_widget_show (w);
GTK_WIDGET_SET_FLAGS( w, GTK_CAN_DEFAULT );
gtk_widget_grab_default( w );
- w = gtk_button_new_with_label ("Cancel");
+ w = gtk_button_new_with_label (_("Cancel"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked", GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDCANCEL));
gtk_widget_show (w);
loop = 1;
while (loop)
gtk_main_iteration ();
-
+
dialogError = FALSE;
if( ret == IDOK ) {
GetCurrentCam()->GetCam()->getCameraInfo( (long)(adjustment->value), &origin[0], &dir[0], &fov );
VectorSet( angles, asin (dir[2])*180/3.14159, atan2 (dir[1], dir[0])*180/3.14159, 0 );
- g_CameraTable.m_pfnSetCamera( origin, angles );
- }
+ g_CameraTable.m_pfnSetCamera( origin, angles );
+ }
return TRUE;
}
// create the window
window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
- gtk_window_set_title( GTK_WINDOW (window), "Camera Inspector" );
+ gtk_window_set_title( GTK_WINDOW (window), _("Camera Inspector") );
gtk_signal_connect( GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC( ci_close ), NULL );
gtk_signal_connect( GTK_OBJECT (window), "expose_event", GTK_SIGNAL_FUNC( ci_expose ), NULL );
// gtk_signal_connect( GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC( gtk_widget_destroy ), NULL );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "File:" );
+ w = gtk_label_new( _("File:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "Name:" );
+ w = gtk_label_new( _("Name:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
g_pCamName = gtk_entry_new();
gtk_box_pack_start( GTK_BOX( hbox ), g_pCamName, FALSE, FALSE, 0 );
- gtk_widget_show( g_pCamName );
+ gtk_widget_show( g_pCamName );
- w = gtk_label_new( "Type: " );
+ w = gtk_label_new( _("Type:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
// -------------------------- //
- frame = gtk_frame_new( "Path and Target editing" );
+ frame = gtk_frame_new( _("Path and Target editing") );
gtk_widget_show( frame );
gtk_table_attach( GTK_TABLE( table ), frame, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "Edit:" );
+ w = gtk_label_new( _("Edit:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- g_pEditModeEditRadioButton = gtk_radio_button_new_with_label( g_pEditTypeRadio, "Edit Points" );
+ g_pEditModeEditRadioButton = gtk_radio_button_new_with_label( g_pEditTypeRadio, _("Edit Points") );
gtk_box_pack_start( GTK_BOX( hbox ), g_pEditModeEditRadioButton, FALSE, FALSE, 3 );
gtk_widget_show( g_pEditModeEditRadioButton );
g_pEditTypeRadio = gtk_radio_button_group( GTK_RADIO_BUTTON( g_pEditModeEditRadioButton ) );
gtk_signal_connect( GTK_OBJECT( g_pEditModeEditRadioButton ), "clicked", GTK_SIGNAL_FUNC( ci_editmode_edit ), NULL );
- g_pEditModeAddRadioButton = gtk_radio_button_new_with_label( g_pEditTypeRadio, "Add Points" );
+ g_pEditModeAddRadioButton = gtk_radio_button_new_with_label( g_pEditTypeRadio, _("Add Points") );
gtk_box_pack_start( GTK_BOX( hbox ), g_pEditModeAddRadioButton, FALSE, FALSE, 3 );
gtk_widget_show( g_pEditModeAddRadioButton );
g_pEditTypeRadio = gtk_radio_button_group( GTK_RADIO_BUTTON( g_pEditModeAddRadioButton ) );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(g_pEditModeAddRadioButton), TRUE );
}
- w = gtk_label_new( "Type: " );
+ w = gtk_label_new( _("Type:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_button_new_with_label( "Rename..." );
+ w = gtk_button_new_with_label( _("Rename...") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, TRUE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_rename ), NULL );
gtk_widget_show( w );
- w = gtk_button_new_with_label( "Add Target..." );
+ w = gtk_button_new_with_label( _("Add Target...") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, TRUE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_add_target ), NULL );
gtk_widget_show( w );
// -------------------------- //
- frame = gtk_frame_new( "Time" );
+ frame = gtk_frame_new( _("Time") );
gtk_widget_show( frame );
gtk_table_attach( GTK_TABLE( table ), frame, 0, 1, 2, 3,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "Length (seconds):" );
+ w = gtk_label_new( _("Length (seconds):") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "Current Time: " );
+ w = gtk_label_new( _("Current Time:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
- w = gtk_label_new( "0.00" );
+ w = gtk_label_new( _("0.00") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
g_pCurrentTime = GTK_LABEL( w );
- w = gtk_label_new( " of " );
+ w = gtk_label_new( _(" of ") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
- w = gtk_label_new( "0.00" );
+ w = gtk_label_new( _("0.00") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
g_pTotalTime = GTK_LABEL( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- g_pTrackCamera = gtk_check_button_new_with_label( "Track Camera" );
+ g_pTrackCamera = gtk_check_button_new_with_label( _("Track Camera") );
gtk_box_pack_start( GTK_BOX( hbox ), g_pTrackCamera, FALSE, FALSE, 0 );
gtk_widget_show( g_pTrackCamera );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
gtk_widget_show( hbox );
- w = gtk_label_new( "Events:" );
+ w = gtk_label_new( _("Events:") );
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( hbox ), vbox, FALSE, FALSE, 0 );
gtk_widget_show( vbox );
- w = gtk_button_new_with_label( "Add..." );
+ w = gtk_button_new_with_label( _("Add...") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_add ), NULL );
gtk_widget_show( w );
- w = gtk_button_new_with_label( "Del" );
+ w = gtk_button_new_with_label( _("Del") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_del ), NULL );
gtk_widget_show( w );
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0 );
- w = gtk_button_new_with_label( "New..." );
+ w = gtk_button_new_with_label( _("New...") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_new ), NULL );
gtk_widget_show( w );
- w = gtk_button_new_with_label( "Load..." );
+ w = gtk_button_new_with_label( _("Load...") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_load ), NULL );
gtk_widget_show( w );
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0 );
- w = gtk_button_new_with_label( "Save..." );
+ w = gtk_button_new_with_label( _("Save...") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_save ), NULL );
gtk_widget_show( w );
- w = gtk_button_new_with_label( "Unload" );
+ w = gtk_button_new_with_label( _("Unload") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_unload ), NULL );
gtk_widget_show( w );
-
+
hbox = gtk_hbox_new( FALSE, 5 );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, TRUE, TRUE, 0 );
gtk_widget_show( hbox );
- w = gtk_button_new_with_label( "Apply" );
+ w = gtk_button_new_with_label( _("Apply") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_apply ), NULL );
gtk_widget_show( w );
- w = gtk_button_new_with_label( "Preview" );
+ w = gtk_button_new_with_label( _("Preview") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_preview ), NULL );
gtk_widget_show( w );
gtk_box_pack_start( GTK_BOX( vbox ), hbox, TRUE, TRUE, 0 );
gtk_widget_show( hbox );
- w = gtk_button_new_with_label( "Close" );
+ w = gtk_button_new_with_label( _("Close") );
gtk_box_pack_start( GTK_BOX( vbox ), w, FALSE, FALSE, 0);
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( ci_close ), NULL );
GTK_WIDGET_SET_FLAGS( w, GTK_CAN_DEFAULT );
#include <string.h>
#include <math.h>
#include "gensurf.h"
+#include <glib/gi18n.h>
#define GENERAL_TAB 0
#define EXTENTS_TAB 1
{
char Text[256];
char RForm[16] = "%.5g";
- int i;
switch (tab)
{
// than once anyhow.
if (!FirstPassComplete)
{
+ int i;
for (i = 0; i < NUMGAMES; i++)
gtk_widget_set_sensitive (game_radios[i], (i == Game ? TRUE : FALSE));
for (i = 0; i < 6; i++)
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("General");
+ label = gtk_label_new (_("General"));
gtk_widget_show (label);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), table, label);
- frame = gtk_frame_new ("Game");
+ frame = gtk_frame_new (_("Game"));
gtk_widget_show (frame);
gtk_table_attach (GTK_TABLE (table), frame, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
g_signal_connect (G_OBJECT (radio), "toggled", G_CALLBACK (general_game), GINT_TO_POINTER (i));
}
- frame = gtk_frame_new ("Waveform");
+ frame = gtk_frame_new (_("Waveform"));
gtk_widget_show (frame);
gtk_table_attach (GTK_TABLE (table), frame, 1, 2, 0, 1,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
g_signal_connect (G_OBJECT (radio), "toggled", G_CALLBACK (general_wave), GINT_TO_POINTER (i));
}
- frame = gtk_frame_new ("Orientation");
+ frame = gtk_frame_new (_("Orientation"));
gtk_widget_show (frame);
gtk_table_attach (GTK_TABLE (table), frame, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL), 0, 0);
- label = gtk_label_new ("Wavelength:");
+ label = gtk_label_new (_("Wavelength:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table2), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
- label = gtk_label_new ("Max. amplitude:");
+ label = gtk_label_new (_("Max. amplitude:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table2), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
- label = gtk_label_new ("Roughness:");
+ label = gtk_label_new (_("Roughness:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table2), label, 0, 1, 2, 3,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
- label = gtk_label_new ("Random seed:");
+ label = gtk_label_new (_("Random seed:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table2), label, 0, 1, 3, 4,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- label = gtk_label_new ("Extents");
+ label = gtk_label_new (_("Extents"));
gtk_widget_show (label);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label);
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, TRUE, 0);
- frame = gtk_frame_new ("Extents");
+ frame = gtk_frame_new (_("Extents"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (hbox2), frame, TRUE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("X:");
+ label = gtk_label_new (_("X:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
g_object_set_data (G_OBJECT (dlg), "hmin_text", label);
- label = gtk_label_new ("X:");
+ label = gtk_label_new (_("X:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
g_object_set_data (G_OBJECT (dlg), "hmax_text", label);
- label = gtk_label_new ("Y:");
+ label = gtk_label_new (_("Y:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
g_object_set_data (G_OBJECT (dlg), "vmin_text", label);
- label = gtk_label_new ("Y:");
+ label = gtk_label_new (_("Y:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 2, 3,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
g_object_set_data (G_OBJECT (dlg), "vmax_text", label);
- label = gtk_label_new ("Lower-left");
+ label = gtk_label_new (_("Lower-left"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- label = gtk_label_new ("Upper-right");
+ label = gtk_label_new (_("Upper-right"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 3, 4, 0, 1,
(GtkAttachOptions) (GTK_FILL),
g_object_set_data (G_OBJECT (dlg), "vmax", entry);
g_signal_connect (G_OBJECT (entry), "focus_out_event", G_CALLBACK (doublevariable_entryfocusout), &Vur);
- frame = gtk_frame_new ("Divisions");
+ frame = gtk_frame_new (_("Divisions"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (hbox2), frame, TRUE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("X:");
+ label = gtk_label_new (_("X:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL), 0, 0);
g_object_set_data (G_OBJECT (dlg), "nh_text", label);
- label = gtk_label_new ("Y:");
+ label = gtk_label_new (_("Y:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
g_signal_connect (G_OBJECT (check), "toggled", G_CALLBACK (extents_use_patches), NULL);
// ^Fishman - Snap to grid, replaced scroll bar with a texbox.
- label = gtk_label_new ("Snap to grid:");
+ label = gtk_label_new (_("Snap to grid:"));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
gtk_object_set_data (GTK_OBJECT (dlg), "snap_text", label);
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, TRUE, 10);
- label = gtk_label_new ("Decimate:");
+ label = gtk_label_new (_("Decimate:"));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (hbox2), label, FALSE, TRUE, 0);
gtk_scale_set_digits (GTK_SCALE (scale), 0);
g_object_set_data (G_OBJECT (dlg), "decimate", scale);
- frame = gtk_frame_new ("Corner values");
+ frame = gtk_frame_new (_("Corner values"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Upper-left:");
+ label = gtk_label_new (_("Upper-left:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- label = gtk_label_new ("Lower-left:");
+ label = gtk_label_new (_("Lower-left:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- label = gtk_label_new ("Upper-right:");
+ label = gtk_label_new (_("Upper-right:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- label = gtk_label_new ("Lower-right:");
+ label = gtk_label_new (_("Lower-right:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_FILL),
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- label = gtk_label_new ("Bitmap");
+ label = gtk_label_new (_("Bitmap"));
gtk_widget_show (label);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Filename:");
+ label = gtk_label_new (_("Filename:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0),
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL), 0, 0);
- button = gtk_button_new_with_label ("Browse...");
+ button = gtk_button_new_with_label (_("Browse..."));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, FALSE, 0);
gtk_widget_set_usize (button, 60, -2);
g_object_set_data (G_OBJECT (dlg), "bmp_file_browse", button);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (bitmap_browse), NULL);
- button = gtk_button_new_with_label ("Reload");
+ button = gtk_button_new_with_label (_("Reload"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, FALSE, 0);
gtk_widget_set_usize (button, 60, -2);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Map color 0 to:");
+ label = gtk_label_new (_("Map color 0 to:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
- label = gtk_label_new ("Map color 255 to:");
+ label = gtk_label_new (_("Map color 255 to:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- label = gtk_label_new ("Fix Points");
+ label = gtk_label_new (_("Fix Points"));
gtk_widget_show (label);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label);
- label = gtk_label_new ("Click on a vertex in the lower half of the preview window,\n"
+ label = gtk_label_new (_("Click on a vertex in the lower half of the preview window,\n"
"then use the arrow keys or text box to assign a value.\n"
"Use Ctrl+Click to select multiple vertices/toggle a\n"
"selection. Use Shift+Click to select a range of vertices.\n\n"
"Click \"Free\" to unlock a vertex. Vertices within \"Range\n"
- "affected\" will be influenced by this vertex.");
+ "affected\" will be influenced by this vertex."));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Value:");
+ label = gtk_label_new (_("Value:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL),
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
g_object_set_data (G_OBJECT (dlg), "fix_value_text", label);
- label = gtk_label_new ("Range affected:");
+ label = gtk_label_new (_("Range affected:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
g_object_set_data (G_OBJECT (dlg), "fix_range_text", label);
- label = gtk_label_new ("Rate of change:");
+ label = gtk_label_new (_("Rate of change:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
(GtkAttachOptions) (GTK_FILL),
g_object_set_data (G_OBJECT (dlg), "fix_rate", entry);
g_signal_connect (G_OBJECT (entry), "focus_out_event", G_CALLBACK (fix_rate_entryfocusout), NULL);
- button = gtk_button_new_with_label ("Free");
+ button = gtk_button_new_with_label (_("Free"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 2, 3, 0, 1,
(GtkAttachOptions) (GTK_EXPAND),
g_object_set_data (G_OBJECT (dlg), "fix_free", button);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (fix_free), NULL);
- button = gtk_button_new_with_label ("Free All");
+ button = gtk_button_new_with_label (_("Free All"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_EXPAND),
gtk_widget_show (vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- label = gtk_label_new ("Texture");
+ label = gtk_label_new (_("Texture"));
gtk_widget_show (label);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Surface:");
+ label = gtk_label_new (_("Surface:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
- label = gtk_label_new ("Other:");
+ label = gtk_label_new (_("Other:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
- label = gtk_label_new ("Steep:");
+ label = gtk_label_new (_("Steep:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
(GtkAttachOptions) (GTK_FILL),
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, TRUE, 0);
- label = gtk_label_new ("\"Steep\" angle:");
+ label = gtk_label_new (_("\"Steep\" angle:"));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (hbox2), label, FALSE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Offset <h,v>");
+ label = gtk_label_new (_("Offset <h,v>"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 2, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
- label = gtk_label_new ("Scale <h,v>");
+ label = gtk_label_new (_("Scale <h,v>"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 4, 0, 1,
(GtkAttachOptions) (GTK_FILL),
- check = gtk_check_button_new_with_label ("Use detail brushes");
+ check = gtk_check_button_new_with_label (_("Use detail brushes"));
gtk_widget_show (check);
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "detail", check);
g_signal_connect (G_OBJECT (check), "toggled", G_CALLBACK (texture_detail), NULL);
- check = gtk_check_button_new_with_label ("Detail hint brushes");
+ check = gtk_check_button_new_with_label (_("Detail hint brushes"));
gtk_widget_show (check);
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "hint", check);
g_signal_connect (G_OBJECT (check), "toggled", G_CALLBACK (texture_hint), NULL);
// ^Fishman - Add terrain key to func_group.
- check = gtk_check_button_new_with_label ("Add terrain key");
+ check = gtk_check_button_new_with_label (_("Add terrain key"));
gtk_widget_show (check);
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "terrain_ent", check);
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, TRUE, 0);
- button = gtk_button_new_with_label ("OK");
+ button = gtk_button_new_with_label (_("OK"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, TRUE, 0);
gtk_widget_set_usize (button, 60, -2);
g_object_set_data (G_OBJECT (dlg), "go", button);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (main_go), NULL);
- label = gtk_label_new ("Settings:");
+ label = gtk_label_new (_("Settings:"));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "open", button);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (main_open), NULL);
- button = gtk_button_new_with_label ("Save as...");
+ button = gtk_button_new_with_label (_("Save as..."));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "save", button);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (main_save), NULL);
- button = gtk_button_new_with_label ("Defaults");
+ button = gtk_button_new_with_label (_("Defaults"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "defaults", button);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (main_defaults), NULL);
- button = gtk_button_new_with_label ("About...");
+ button = gtk_button_new_with_label (_("About..."));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, TRUE, 0);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (main_about), NULL);
- check = gtk_check_button_new_with_label ("Preview");
+ check = gtk_check_button_new_with_label (_("Preview"));
gtk_widget_show (check);
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, TRUE, 0);
g_signal_connect (G_OBJECT (check), "toggled", G_CALLBACK (main_preview), NULL);
g_object_set_data (G_OBJECT (dlg), "main_preview", check);
// ^Fishman - Antializing for the preview window.
- check = gtk_check_button_new_with_label ("Antialised lines");
+ check = gtk_check_button_new_with_label (_("Antialised lines"));
gtk_widget_show (check);
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (dlg), "main_antialiasing", check);
GtkWidget *parent;
int *loop;
char **filename;
-
+
parent = gtk_widget_get_toplevel (widget);
loop = (int*)g_object_get_data (G_OBJECT (parent), "loop");
filename = (char**)g_object_get_data (G_OBJECT (parent), "filename");
-
+
*loop = 0;
if ((int)data == IDOK)
*filename = g_strdup (gtk_file_selection_get_filename (GTK_FILE_SELECTION (parent)));
GtkObject *adj;
dlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title (GTK_WINDOW (dlg), "Portal Viewer Configuration");
+ gtk_window_set_title (GTK_WINDOW (dlg), _("Portal Viewer Configuration"));
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event",
GTK_SIGNAL_FUNC (dialog_delete_callback), NULL);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
gtk_container_add (GTK_CONTAINER (dlg), vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- frame = gtk_frame_new ("3D View");
+ frame = gtk_frame_new (_("3D View"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- button = gtk_button_new_with_label ("Color");
+ button = gtk_button_new_with_label (_("Color"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColor3d), NULL);
- button = gtk_button_new_with_label ("Depth Color");
+ button = gtk_button_new_with_label (_("Depth Color"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColorFog), NULL);
- aa3check = gtk_check_button_new_with_label ("Anti-Alias (May not work on some video cards)");
+ aa3check = gtk_check_button_new_with_label (_("Anti-Alias (May not work on some video cards)"));
gtk_widget_show (aa3check);
gtk_table_attach (GTK_TABLE (table), aa3check, 1, 4, 0, 1,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_signal_connect (GTK_OBJECT (aa3check), "toggled", GTK_SIGNAL_FUNC (OnAntiAlias3d), NULL);
- depthcheck = gtk_check_button_new_with_label ("Depth Cue");
+ depthcheck = gtk_check_button_new_with_label (_("Depth Cue"));
gtk_widget_show (depthcheck);
gtk_table_attach (GTK_TABLE (table), depthcheck, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_signal_connect (GTK_OBJECT (depthcheck), "toggled", GTK_SIGNAL_FUNC (OnFog), NULL);
- linescheck = gtk_check_button_new_with_label ("Lines");
+ linescheck = gtk_check_button_new_with_label (_("Lines"));
gtk_widget_show (linescheck);
gtk_table_attach (GTK_TABLE (table), linescheck, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_signal_connect (GTK_OBJECT (linescheck), "toggled", GTK_SIGNAL_FUNC (OnLines), NULL);
- polyscheck = gtk_check_button_new_with_label ("Polygons");
+ polyscheck = gtk_check_button_new_with_label (_("Polygons"));
gtk_widget_show (polyscheck);
gtk_table_attach (GTK_TABLE (table), polyscheck, 3, 4, 1, 2,
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
gtk_widget_show (menu);
gtk_option_menu_set_menu (GTK_OPTION_MENU (zlist), menu);
- item = gtk_menu_item_new_with_label ("Z-Buffer Test and Write (recommended for solid or no polygons)");
+ item = gtk_menu_item_new_with_label (_("Z-Buffer Test and Write (recommended for solid or no polygons)"));
gtk_widget_show (item);
gtk_signal_connect (GTK_OBJECT (item), "activate",
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (0));
gtk_menu_append (GTK_MENU (menu), item);
- item = gtk_menu_item_new_with_label ("Z-Buffer Test Only (recommended for transparent polygons)");
+ item = gtk_menu_item_new_with_label (_("Z-Buffer Test Only (recommended for transparent polygons)"));
gtk_widget_show (item);
gtk_signal_connect (GTK_OBJECT (item), "activate",
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (1));
gtk_menu_append (GTK_MENU (menu), item);
- item = gtk_menu_item_new_with_label ("Z-Buffer Off");
+ item = gtk_menu_item_new_with_label (_("Z-Buffer Off"));
gtk_widget_show (item);
gtk_signal_connect (GTK_OBJECT (item), "activate",
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (2));
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
- show3check = gtk_check_button_new_with_label ("Show");
+ show3check = gtk_check_button_new_with_label (_("Show"));
gtk_widget_show (show3check);
gtk_box_pack_start (GTK_BOX (hbox), show3check, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (show3check), "toggled", GTK_SIGNAL_FUNC (OnConfig3d), NULL);
- portalcheck = gtk_check_button_new_with_label ("Portal cubic clipper");
+ portalcheck = gtk_check_button_new_with_label (_("Portal cubic clipper"));
gtk_widget_show (portalcheck);
gtk_box_pack_start (GTK_BOX (hbox), portalcheck, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (portalcheck), "toggled", GTK_SIGNAL_FUNC (OnClip), NULL);
- frame = gtk_frame_new ("2D View");
+ frame = gtk_frame_new (_("2D View"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
+#include <glib/gi18n.h>
#include "surfdlg_plugin.h"
const char *buttonLabel;
char buffer[8];
- frame1 = gtk_frame_new ("Flags");
+ frame1 = gtk_frame_new (_("Flags"));
gtk_widget_show (frame1);
gtk_container_add (GTK_CONTAINER (surfacedialog_widget), frame1);
msgstr ""
#: radiant/mainframe.cpp:1108 radiant/mainframe.cpp:1103
+#: radiant/patchdialog.cpp:333
msgid "Details"
msgstr ""
msgstr ""
#: radiant/mainframe.cpp:1180 radiant/mainframe.cpp:1175
+#: radiant/surfacedialog.cpp:715
msgid "Rotate"
msgstr ""
#: radiant/gtkdlgs.cpp:3371 radiant/gtkdlgs.cpp:3476 radiant/gtkdlgs.cpp:3547
#: radiant/gtkdlgs.cpp:3641 radiant/gtkdlgs.cpp:4006
#: radiant/preferences.cpp:1136 radiant/preferences.cpp:1554
-#: radiant/preferences.cpp:3296
+#: radiant/preferences.cpp:3296 radiant/findtexturedialog.cpp:223
msgid "OK"
msgstr ""
#: radiant/gtkdlgs.cpp:3483 radiant/gtkdlgs.cpp:3554 radiant/gtkdlgs.cpp:3648
#: radiant/gtkdlgs.cpp:4015 radiant/preferences.cpp:1141
#: radiant/preferences.cpp:1560 radiant/preferences.cpp:3301
+#: radiant/gtkmisc.cpp:949 radiant/gtkmisc.cpp:973
+#: radiant/surfacedialog.cpp:882
msgid "Cancel"
msgstr ""
msgstr ""
#: radiant/preferences.cpp:1860 radiant/preferences.cpp:1861
-#: radiant/preferences.cpp:1872
+#: radiant/preferences.cpp:1872 radiant/gtkmisc.cpp:967
+#: radiant/gtkmisc.cpp:990
msgid "No"
msgstr ""
#: radiant/preferences.cpp:1861 radiant/preferences.cpp:1862
-#: radiant/preferences.cpp:1873
+#: radiant/preferences.cpp:1873 radiant/gtkmisc.cpp:959
+#: radiant/gtkmisc.cpp:982
msgid "Yes"
msgstr ""
#: radiant/preferences.cpp:3243 radiant/gtkdlgs.cpp:3536
#: radiant/preferences.cpp:3244 radiant/gtkdlgs.cpp:3535
-#: radiant/preferences.cpp:3257
+#: radiant/preferences.cpp:3257 radiant/patchdialog.cpp:464
msgid "Name:"
msgstr ""
#: radiant/gtkdlgs.cpp:1388 radiant/gtkdlgs.cpp:1736 radiant/gtkdlgs.cpp:2901
#: radiant/gtkdlgs.cpp:2996 radiant/gtkdlgs.cpp:3288 radiant/gtkdlgs.cpp:3824
#: radiant/gtkdlgs.cpp:2900 radiant/gtkdlgs.cpp:2995 radiant/gtkdlgs.cpp:3287
-#: radiant/gtkdlgs.cpp:3821
+#: radiant/gtkdlgs.cpp:3821 radiant/findtexturedialog.cpp:237
msgid "Close"
msgstr ""
msgid " Z "
msgstr ""
-#: radiant/gtkdlgs.cpp:1875
+#: radiant/gtkdlgs.cpp:1875 radiant/findtexturedialog.cpp:230
+#: radiant/patchdialog.cpp:658 radiant/surfacedialog.cpp:875
msgid "Apply"
msgstr ""
msgstr ""
#: radiant/gtkdlgs.cpp:2416 radiant/gtkdlgs.cpp:2415
+#: radiant/patchdialog.cpp:390
msgid "X:"
msgstr ""
#: radiant/gtkdlgs.cpp:2423 radiant/gtkdlgs.cpp:2422
+#: radiant/patchdialog.cpp:396
msgid "Y:"
msgstr ""
#: radiant/gtkdlgs.cpp:2430 radiant/gtkdlgs.cpp:2429
+#: radiant/patchdialog.cpp:402
msgid "Z:"
msgstr ""
#: radiant/xywindow.cpp:133
msgid "Save BMP Image"
msgstr ""
+
+#: radiant/findtexturedialog.cpp:216
+msgid "Find"
+msgstr ""
+
+#: radiant/gtkmisc.cpp:927 radiant/gtkmisc.cpp:940
+msgid "Ok"
+msgstr ""
+
+#: radiant/gtkmisc.cpp:1000
+msgid "Go to URL"
+msgstr ""
+
+#: radiant/patchdialog.cpp:317
+msgid "Patch Properties"
+msgstr ""
+
+#: radiant/patchdialog.cpp:348
+msgid "Row:"
+msgstr ""
+
+#: radiant/patchdialog.cpp:354
+msgid "Column:"
+msgstr ""
+
+#: radiant/patchdialog.cpp:408
+msgid "S:"
+msgstr ""
+
+#: radiant/patchdialog.cpp:414
+msgid "T:"
+msgstr ""
+
+#: radiant/patchdialog.cpp:455 radiant/surfacedialog.cpp:759
+msgid "Texturing"
+msgstr ""
+
+#: radiant/patchdialog.cpp:482
+msgid "Horizontal Shift Step"
+msgstr ""
+
+#: radiant/patchdialog.cpp:489
+msgid "Vertical Shift Step"
+msgstr ""
+
+#: radiant/patchdialog.cpp:496
+msgid "Horizontal Stretch Step"
+msgstr ""
+
+#: radiant/patchdialog.cpp:503
+msgid "Vertical Stretch Step"
+msgstr ""
+
+#: radiant/patchdialog.cpp:510
+msgid "Rotate Step"
+msgstr ""
+
+#: radiant/patchdialog.cpp:624 radiant/surfacedialog.cpp:812
+msgid "CAP"
+msgstr ""
+
+#: radiant/patchdialog.cpp:630 radiant/surfacedialog.cpp:821
+msgid "Set..."
+msgstr ""
+
+#: radiant/patchdialog.cpp:636 radiant/surfacedialog.cpp:830
+msgid "Natural"
+msgstr ""
+
+#: radiant/patchdialog.cpp:642 radiant/surfacedialog.cpp:803
+#: radiant/surfacedialog.cpp:839
+msgid "Fit"
+msgstr ""
+
+#: radiant/patchdialog.cpp:652 radiant/surfacedialog.cpp:868
+msgid "Done"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:546
+msgid "Surface inspector"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:562
+msgid "Texture"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:579
+msgid "Horizontal shift"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:596 radiant/surfacedialog.cpp:630
+#: radiant/surfacedialog.cpp:664 radiant/surfacedialog.cpp:698
+#: radiant/surfacedialog.cpp:733
+msgid "Step"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:613
+msgid "Vertical shift"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:647
+msgid "Horizontal stretch"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:681
+msgid "Vertical stretch"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:751
+msgid "Match Grid"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:788
+msgid "Height"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:794
+msgid "Axial"
+msgstr ""
+
+#: radiant/surfacedialog.cpp:892
+msgid "Test"
+msgstr ""
#include "stdafx.h"
#include "findtexturedialog.h"
+#include <glib/gi18n.h>
FindTextureDialog g_TexFindDlg;
FindTextureDialog& g_dlgFind = g_TexFindDlg;
static bool g_bFindActive = true;
-static void OnApply(GtkWidget *widget, gpointer data)
+static void OnApply(GtkWidget *widget, gpointer data)
{
g_dlgFind.UpdateData(TRUE);
FindReplaceTextures(g_dlgFind.m_strFind, g_dlgFind.m_strReplace,
g_dlgFind.m_bSelectedOnly, g_dlgFind.m_bForce, FALSE);
}
-static void OnFind(GtkWidget *widget, gpointer data)
+static void OnFind(GtkWidget *widget, gpointer data)
{
g_dlgFind.UpdateData(TRUE);
FindReplaceTextures(g_dlgFind.m_strFind, g_dlgFind.m_strReplace,
g_dlgFind.m_bSelectedOnly, FALSE, TRUE);
}
-static void OnOK(GtkWidget *widget, gpointer data)
+static void OnOK(GtkWidget *widget, gpointer data)
{
g_dlgFind.UpdateData(TRUE);
FindReplaceTextures(g_dlgFind.m_strFind, g_dlgFind.m_strReplace,
g_dlgFind.HideDlg ();
}
-static void OnClose(GtkWidget *widget, gpointer data)
+static void OnClose(GtkWidget *widget, gpointer data)
{
g_dlgFind.HideDlg ();
}
-static void popup_selected (GtkWidget *widget, gpointer data)
+static void popup_selected (GtkWidget *widget, gpointer data)
{
gchar *str;
gtk_entry_set_text (GTK_ENTRY (data), str);
}
-static void find_clicked (GtkWidget *widget, gpointer data)
+static void find_clicked (GtkWidget *widget, gpointer data)
{
GtkWidget *menu, *item;
menu = gtk_menu_new ();
gtk_menu_append (GTK_MENU (menu), item);
}
- gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME);
+ gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 1, GDK_CURRENT_TIME);
}
static gint find_focus_in (GtkWidget *widget, GdkEventFocus *event, gpointer data)
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
- button = gtk_button_new_with_label( "Find" );
+ button = gtk_button_new_with_label( _("Find") );
gtk_widget_show( button );
gtk_box_pack_start( GTK_BOX( vbox ), button, FALSE, FALSE, 0 );
gtk_signal_connect( GTK_OBJECT( button ), "clicked",
GTK_SIGNAL_FUNC( OnFind ), NULL );
gtk_widget_set_usize( button, 60, -2 );
- button = gtk_button_new_with_label ("OK");
+ button = gtk_button_new_with_label (_("OK"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (OnOK), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Apply");
+ button = gtk_button_new_with_label (_("Apply"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (OnApply), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Close");
+ button = gtk_button_new_with_label (_("Close"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
if (mode == MB_OK)
{
- w = gtk_button_new_with_label ("Ok");
+ w = gtk_button_new_with_label (_("Ok"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDOK));
}
else if (mode == MB_OKCANCEL)
{
- w = gtk_button_new_with_label ("Ok");
+ w = gtk_button_new_with_label (_("Ok"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDOK));
gtk_widget_grab_default (w);
gtk_widget_show (w);
- w = gtk_button_new_with_label ("Cancel");
+ w = gtk_button_new_with_label (_("Cancel"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDCANCEL));
}
else if (mode == MB_YESNOCANCEL)
{
- w = gtk_button_new_with_label ("Yes");
+ w = gtk_button_new_with_label (_("Yes"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDYES));
gtk_widget_grab_default (w);
gtk_widget_show (w);
- w = gtk_button_new_with_label ("No");
+ w = gtk_button_new_with_label (_("No"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDNO));
gtk_widget_show (w);
- w = gtk_button_new_with_label ("Cancel");
+ w = gtk_button_new_with_label (_("Cancel"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDCANCEL));
}
else /* if (mode == MB_YESNO) */
{
- w = gtk_button_new_with_label ("Yes");
+ w = gtk_button_new_with_label (_("Yes"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDYES));
gtk_widget_grab_default (w);
gtk_widget_show (w);
- w = gtk_button_new_with_label ("No");
+ w = gtk_button_new_with_label (_("No"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_button_callback), GINT_TO_POINTER (IDNO));
if (URL)
{
- w = gtk_button_new_with_label ("Go to URL");
+ w = gtk_button_new_with_label (_("Go to URL"));
gtk_box_pack_start (GTK_BOX (hbox), w, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (w), "clicked",
GTK_SIGNAL_FUNC (dialog_url_callback), NULL);
#include <gdk/gdkkeysyms.h>
#include "stdafx.h"
#include "patchdialog.h"
+#include <glib/gi18n.h>
PatchDialog g_PatchDialog;
// is the patch inspector currently displayed/active?
load_window_pos (dlg, g_PrefsDlg.mWindowInfo.posPatchWnd);
- gtk_window_set_title (GTK_WINDOW (dlg), "Patch Properties");
+ gtk_window_set_title (GTK_WINDOW (dlg), _("Patch Properties"));
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event", GTK_SIGNAL_FUNC (OnDone), NULL);
// catch 'Esc' and 'Enter'
gtk_signal_connect (GTK_OBJECT (dlg), "key_press_event", GTK_SIGNAL_FUNC (OnDialogKey), NULL);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
- frame = gtk_frame_new ("Details");
+ frame = gtk_frame_new (_("Details"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Row:");
+ label = gtk_label_new (_("Row:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label = gtk_label_new ("Column:");
+ label = gtk_label_new (_("Column:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("X:");
+ label = gtk_label_new (_("X:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label = gtk_label_new ("Y:");
+ label = gtk_label_new (_("Y:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label = gtk_label_new ("Z:");
+ label = gtk_label_new (_("Z:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label = gtk_label_new ("S:");
+ label = gtk_label_new (_("S:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label = gtk_label_new ("T:");
+ label = gtk_label_new (_("T:"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
AddDialogData (entry, &m_fT, DLG_ENTRY_FLOAT);
- frame = gtk_frame_new ("Texturing");
+ frame = gtk_frame_new (_("Texturing"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (frame), vbox2);
gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5);
- label = gtk_label_new ("Name:");
+ label = gtk_label_new (_("Name:"));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE, TRUE, 0);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Horizontal Shift Step");
+ label = gtk_label_new (_("Horizontal Shift Step"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
- label = gtk_label_new ("Vertical Shift Step");
+ label = gtk_label_new (_("Vertical Shift Step"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
- label = gtk_label_new ("Horizontal Stretch Step");
+ label = gtk_label_new (_("Horizontal Stretch Step"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 2, 3,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
- label = gtk_label_new ("Vertical Stretch Step");
+ label = gtk_label_new (_("Vertical Stretch Step"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 3, 4,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
- label = gtk_label_new ("Rotate Step");
+ label = gtk_label_new (_("Rotate Step"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 4, 5,
(GtkAttachOptions) (GTK_FILL),
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, FALSE, 0);
- button = gtk_button_new_with_label ("CAP");
+ button = gtk_button_new_with_label (_("CAP"));
gtk_widget_show (button);
gtk_box_pack_end (GTK_BOX (hbox2), button, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnBtnPatchdetails), NULL);
gtk_widget_set_usize (button, 60, -1);
- button = gtk_button_new_with_label ("Set...");
+ button = gtk_button_new_with_label (_("Set..."));
gtk_widget_show (button);
gtk_box_pack_end (GTK_BOX (hbox2), button, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnBtnPatchreset), NULL);
gtk_widget_set_usize (button, 60, -1);
- button = gtk_button_new_with_label ("Natural");
+ button = gtk_button_new_with_label (_("Natural"));
gtk_widget_show (button);
gtk_box_pack_end (GTK_BOX (hbox2), button, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnBtnPatchnatural), NULL);
gtk_widget_set_usize (button, 60, -1);
- button = gtk_button_new_with_label ("Fit");
+ button = gtk_button_new_with_label (_("Fit"));
gtk_widget_show (button);
gtk_box_pack_end (GTK_BOX (hbox2), button, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnBtnPatchfit), NULL);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, FALSE, 0);
- button = gtk_button_new_with_label ("Done");
+ button = gtk_button_new_with_label (_("Done"));
gtk_widget_show (button);
gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnDone), NULL);
gtk_widget_set_usize (button, 60, -1);
- button = gtk_button_new_with_label ("Apply");
+ button = gtk_button_new_with_label (_("Apply"));
gtk_widget_show (button);
gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnApply), NULL);
#include <gdk/gdkkeysyms.h>
#include "stdafx.h"
#include "surfacedialog.h"
+#include <glib/gi18n.h>
SurfaceDlg g_dlgSurface;
#ifdef _DEBUG
// experimental stuff, work directly on BP
-static void OnTest(GtkWidget *widget, gpointer data)
+static void OnTest(GtkWidget *widget, gpointer data)
{
if (!g_qeglobals.m_bBrushPrimitMode)
{
m[0][0] = 1; m[1][1] = 1; m[0][2] = -Os; m[1][2] = -Ot;
BPMatMul(m, pBP->coords, aux);
m[0][2] = Os; m[1][2] = Ot; // now M^-1
- BPMatMul(aux, m, BPO);
+ BPMatMul(aux, m, BPO);
#if 0
// apply a scaling
vec_t BPO[2][3];
memcpy(&BPO, &pBP->coords, sizeof(vec_t)*6);
BPO[0][2] = Os*(pBP->coords[0][0]-1.0) + Ot*pBP->coords[0][1] + pBP->coords[0][2];
- BPO[1][2] = Os*pBP->coords[1][0] + Ot*(pBP->coords[1][1]-1.0) + Ot*pBP->coords[1][2];
+ BPO[1][2] = Os*pBP->coords[1][0] + Ot*(pBP->coords[1][1]-1.0) + Ot*pBP->coords[1][2];
// apply a scaling
// scale factors against S and T axis, we apply on top of the existing matrix
m[0][0] = 1; m[1][1] = 1; m[0][2] = -Os; m[1][2] = -Ot;
BPMatMul(m, pBP->coords, aux);
m[0][2] = Os; m[1][2] = Ot; // now M^-1
- BPMatMul(aux, m, BPO);
+ BPMatMul(aux, m, BPO);
// apply a scaling
// scale factors against S and T axis, we apply on top of the existing matrix
*/
#endif
-static void OnDone(GtkWidget *widget, gpointer data)
+static void OnDone(GtkWidget *widget, gpointer data)
{
g_dlgSurface.GetTexMods();
g_dlgSurface.HideDlg ();
// reflect the current changes in the views, and make sure
// the changes are stored in the undo.
-static void OnApply (GtkWidget *widget, gpointer data)
+static void OnApply (GtkWidget *widget, gpointer data)
{
if (!g_bListenChanged)
return;
return FALSE;
}
-static void OnCancel(GtkWidget *widget, gpointer data)
+static void OnCancel(GtkWidget *widget, gpointer data)
{
g_qeglobals.d_texturewin.texdef = g_old_texdef;
// cancel the last do if we own it
// see fenris #2810
void DoSnapTToGrid(float hscale, float vscale)
{
- if (hscale == 0.0f)
+ if (hscale == 0.0f)
{
(g_qeglobals.m_bBrushPrimitMode) ? hscale = 1.0f : hscale = 0.5f;
}
return;
}
-static void OnBtnPatchdetails(GtkWidget *widget, gpointer data)
+static void OnBtnPatchdetails(GtkWidget *widget, gpointer data)
{
Patch_NaturalizeSelected(true);
Sys_UpdateWindows(W_ALL);
}
-static void OnBtnPatchnatural(GtkWidget *widget, gpointer data)
+static void OnBtnPatchnatural(GtkWidget *widget, gpointer data)
{
Patch_NaturalizeSelected();
Sys_UpdateWindows(W_ALL);
}
-static void OnBtnPatchreset(GtkWidget *widget, gpointer data)
+static void OnBtnPatchreset(GtkWidget *widget, gpointer data)
{
float fx, fy;
Sys_UpdateWindows(W_ALL);
}
-static void OnBtnPatchFit(GtkWidget *widget, gpointer data)
+static void OnBtnPatchFit(GtkWidget *widget, gpointer data)
{
Patch_ResetTexturing(1.0, 1.0);
Sys_UpdateWindows(W_ALL);
Sys_UpdateWindows(W_ALL);
}
-static void OnBtnFaceFit(GtkWidget *widget, gpointer data)
+static void OnBtnFaceFit(GtkWidget *widget, gpointer data)
{
g_dlgSurface.UpdateData(TRUE);
if (g_ptrSelectedFaces.GetSize() == 0)
tex->shift[1] = 8;
tex->scale[0] = 0.25;
tex->scale[1] = 0.25;
- tex->rotate = 10;
+ tex->rotate = 10;
}
void SurfaceDlg::BuildDialog ()
load_window_pos (dlg, g_PrefsDlg.mWindowInfo.posSurfaceWnd);
- gtk_window_set_title (GTK_WINDOW (dlg), "Surface inspector");
+ gtk_window_set_title (GTK_WINDOW (dlg), _("Surface inspector"));
//g_signal_connect (G_OBJECT (dlg), "delete_event", G_CALLBACK (OnCancel), NULL);
// we catch 'Enter' and interpret is as OnDone
gtk_signal_connect (GTK_OBJECT (dlg), "key_press_event", GTK_SIGNAL_FUNC (OnDialogKey), NULL);
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, TRUE, 0);
- label = gtk_label_new ("Texture");
+ label = gtk_label_new (_("Texture"));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (hbox2), label, FALSE, TRUE, 0);
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
- label = gtk_label_new ("Horizontal shift");
+ label = gtk_label_new (_("Horizontal shift"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (spin, 60, -2);
- label = gtk_label_new ("Step");
+ label = gtk_label_new (_("Step"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
-
+
entry = gtk_entry_new ();
g_object_set_data (G_OBJECT (dlg), "hshift_inc", entry);
gtk_signal_connect (GTK_OBJECT (entry), "changed",
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (entry, 50, -2);
- label = gtk_label_new ("Vertical shift");
+ label = gtk_label_new (_("Vertical shift"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (spin, 60, -2);
-
- label = gtk_label_new ("Step");
+
+ label = gtk_label_new (_("Step"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
-
+
entry = gtk_entry_new ();
g_object_set_data (G_OBJECT (dlg), "vshift_inc", entry);
gtk_signal_connect (GTK_OBJECT (entry), "changed",
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (entry, 50, -2);
- label = gtk_label_new ("Horizontal stretch");
+ label = gtk_label_new (_("Horizontal stretch"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (spin, 60, -2);
- label = gtk_label_new ("Step");
+ label = gtk_label_new (_("Step"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 2, 3,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 2, 3);
-
+
entry = gtk_entry_new ();
g_object_set_data (G_OBJECT (dlg), "hscale_inc", entry);
gtk_signal_connect (GTK_OBJECT (entry), "changed",
(GtkAttachOptions) (0), 2, 3);
gtk_widget_set_usize (entry, 50, -2);
- label = gtk_label_new ("Vertical stretch");
+ label = gtk_label_new (_("Vertical stretch"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (spin, 60, -2);
-
- label = gtk_label_new ("Step");
+
+ label = gtk_label_new (_("Step"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 3, 4,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
-
+
entry = gtk_entry_new ();
g_object_set_data (G_OBJECT (dlg), "vscale_inc", entry);
gtk_signal_connect (GTK_OBJECT (entry), "changed",
(GtkAttachOptions) (0), 0, 0);
gtk_widget_set_usize (entry, 50, -2);
- label = gtk_label_new ("Rotate");
+ label = gtk_label_new (_("Rotate"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
gtk_widget_set_usize (spin, 60, -2);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spin), TRUE);
- label = gtk_label_new ("Step");
+ label = gtk_label_new (_("Step"));
gtk_widget_show (label);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 4, 5,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
-
+
entry = gtk_entry_new ();
g_object_set_data (G_OBJECT (dlg), "rotate_inc", entry);
gtk_signal_connect (GTK_OBJECT (entry), "changed",
gtk_widget_set_usize (entry, 50, -2);
// match grid button
- button = gtk_button_new_with_label ("Match Grid");
+ button = gtk_button_new_with_label (_("Match Grid"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 2, 4, 5, 6,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (OnBtnMatchGrid), NULL);
- frame = gtk_frame_new ("Texturing");
+ frame = gtk_frame_new (_("Texturing"));
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- label = gtk_label_new ("Height");
+ label = gtk_label_new (_("Height"));
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 3, 4, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- button = gtk_button_new_with_label ("Axial");
+ button = gtk_button_new_with_label (_("Axial"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 1, 2,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
GTK_SIGNAL_FUNC (OnBtnAxial), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Fit");
+ button = gtk_button_new_with_label (_("Fit"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
GTK_SIGNAL_FUNC (OnBtnFaceFit), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("CAP");
+ button = gtk_button_new_with_label (_("CAP"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 3, 4,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
GTK_SIGNAL_FUNC (OnBtnPatchdetails), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Set...");
+ button = gtk_button_new_with_label (_("Set..."));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 1, 2, 3, 4,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
GTK_SIGNAL_FUNC (OnBtnPatchreset), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Natural");
+ button = gtk_button_new_with_label (_("Natural"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 2, 3, 3, 4,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
GTK_SIGNAL_FUNC (OnBtnPatchnatural), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Fit");
+ button = gtk_button_new_with_label (_("Fit"));
gtk_widget_show (button);
gtk_table_attach (GTK_TABLE (table), button, 3, 4, 3, 4,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, TRUE, 0);
- button = gtk_button_new_with_label ("Done");
+ button = gtk_button_new_with_label (_("Done"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (OnDone), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Apply");
+ button = gtk_button_new_with_label (_("Apply"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (OnApply), NULL);
gtk_widget_set_usize (button, 60, -2);
- button = gtk_button_new_with_label ("Cancel");
+ button = gtk_button_new_with_label (_("Cancel"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
// that's a bit of trashy stuff from Textool-v2 branch
#ifdef _DEBUG
// FIXME: testing only, scaling in BP mode
- button = gtk_button_new_with_label ("Test");
+ button = gtk_button_new_with_label (_("Test"));
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
if (!g_surfwin)
return;
-
+
if (g_ptrSelectedFaces.GetSize() > 0)
{
face_t *selFace = reinterpret_cast<face_t*>(g_ptrSelectedFaces.GetAt(0));
// brush primitive mode : compute fake shift scale rot representation
if (g_qeglobals.m_bBrushPrimitMode)
TexMatToFakeTexCoords( bpt->coords, m_shift, &m_rotate, m_scale );
-
+
g_bListenChanged = false;
-
+
if(strncmp(pt->GetName(), "textures/", 9) != 0)
pt->SetName(SHADER_NOT_FOUND);
gtk_entry_set_text (GTK_ENTRY (GetDlgWidget ("texture")), pt->GetName()+9);
gtk_entry_set_text (GTK_ENTRY (GetDlgWidget ("rotate_inc")), buf);
g_bListenChanged = true;
-
+
// undo tricks: set the undo id to zero so we don't attempt to undo something that does not belong to us
m_nUndoId = 0;
// store the current texdef as our escape route if user hits OnCancel
#ifdef DBG_SI
Sys_Printf("SurfaceDlg::GetTexMods\n");
#endif
-
+
if (g_ptrSelectedFaces.GetSize() > 0)
{
//++timo just a test, we disable the undo when working on selected faces
Sys_Printf("pt = &g_qeglobals.d_texturewin.texdef\n");
#endif
// }
-
+
const char* text = gtk_entry_get_text (GTK_ENTRY (GetDlgWidget ("texture")));
#ifdef DBG_SI
Sys_Printf("pt->SetName(%s)\n", text );
#endif
-
+
// TTimo: detect and refuse invalid texture names (at least the ones with spaces)
if (text[0] <= ' ' || strchr(text, ' '))
{
}
- (g_qeglobals.m_bBrushPrimitMode ? m_shift[0] : pt->shift[0]) =
+ (g_qeglobals.m_bBrushPrimitMode ? m_shift[0] : pt->shift[0]) =
gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (GetDlgWidget ("hshift")));
(g_qeglobals.m_bBrushPrimitMode ? m_shift[1] : pt->shift[1]) =
gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (GetDlgWidget ("vshift")));