Esempio n. 1
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_image_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data)
{
  property_add_icon (Icon, _("Icon:"),
		     _("The icon to display"),
		     GLADE_ICON_SIZE_ANY);
  property_add_named_icon (IconName, _("Named Icon:"),
			   _("The named icon to use"));
  property_add_choice (IconSize, _("Icon Size:"),
		       _("The stock icon size"),
		       GladeIconSizeChoices);
  property_add_int_range (PixelSize, _("Pixel Size:"),
			  _("The size of the named icon in pixels, or -1 to use the Icon Size property"),
			  -1, 1000, 1, 10, 1);

  property_add_float_range (XAlign, _("X Align:"),
			    _("The horizontal alignment"),
			    0, 1, 0.01, 0.1, 0.01, 2);
  property_add_float_range (YAlign, _("Y Align:"),
			    _("The vertical alignment"),
			    0, 1, 0.01, 0.1, 0.01, 2);
  property_add_int_range (XPad, _("X Pad:"), _("The horizontal padding"),
			  0, 1000, 1, 10, 1);
  property_add_int_range (YPad, _("Y Pad:"), _("The vertical padding"),
			  0, 1000, 1, 10, 1);
}
Esempio n. 2
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_vbox_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data)
{
  property_add_int_range (Size, _("Size:"), _("The number of widgets in the box"),
			  0, 1000, 1, 10, 1);
  property_add_bool (Homogeneous, _("Homogeneous:"),
		     _("If the children should be the same size"));
  property_add_int_range (Spacing, _("Spacing:"), _("The space between each child"),
			  0, 1000, 1, 10, 1);
}
Esempio n. 3
0
/*
 * Creates the child packing properties for children of this widget.
 */
void
gb_fixed_create_child_properties (GtkWidget * widget,
				  GbWidgetCreateChildArgData * data)
{
  property_add_int_range (GladeFixedChildX, _("X:"),
			  _("The X coordinate of the widget in the GtkFixed"),
			  0, 10000, 1, 10, 1);
  property_add_int_range (GladeFixedChildY, _("Y:"),
			  _("The Y coordinate of the widget in the GtkFixed"),
			  0, 10000, 1, 10, 1);
}
Esempio n. 4
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_vbutton_box_create_properties (GtkWidget * widget, GbWidgetCreateArgData *
				  data)
{
  property_add_int_range (Size, "Size:", "The number of buttons",
			  0, 1000, 1, 10, 1);
  property_add_choice (Layout, "Layout:",
		       "The layout style of the buttons",
		       GbLayoutChoices);
  property_add_int_range (Spacing, "Spacing:", "The space between the buttons",
			  0, 1000, 1, 10, 1);
}
Esempio n. 5
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_gnome_pixmap_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data)
{
  property_add_filename (Filename, _("File:"), _("The pixmap filename"));
  property_add_bool (Scaled, _("Scaled:"), _("If the pixmap is scaled"));
  property_add_int_range (Width, _("Scaled Width:"),
			  _("The width to scale the pixmap to"),
			  1, 10000, 1, 10, 1);
  property_add_int_range (Height, _("Scaled Height:"),
			  _("The height to scale the pixmap to"),
			  1, 10000, 1, 10, 1);
}
Esempio n. 6
0
void
gb_label_create_standard_properties (GtkWidget * widget,
				     GbWidgetCreateArgData * data,
				     const char *label_p,
				     const char *use_underline_p,
				     const char *use_markup_p,
				     const char *justify_p,
				     const char *wrap_p,
				     const char *selectable_p,
				     const char *xalign_p,
				     const char *yalign_p,
				     const char *xpad_p,
				     const char *ypad_p,
				     const char *focus_target_p)
{
  GtkWidget *combo;

  property_add_text (label_p, _("Label:"), _("The text to display"), 2);
  property_add_bool (use_underline_p, _("Use Underline:"),
		     _("If the text includes an underlined accelerator character"));
  property_add_bool (use_markup_p, _("Use Markup:"),
		     _("If the text includes pango markup"));
  property_add_choice (justify_p, _("Justify:"),
		       _("The justification of the lines of the label"),
		       GbJustifyChoices);
  property_add_bool (wrap_p, _("Wrap Text:"),
		     _("If the text is wrapped to fit within the width of the label"));
  property_add_bool (selectable_p, _("Selectable:"),
		     _("If the label text can be selected with the mouse"));
  property_add_float_range (xalign_p, _("X Align:"),
			    _("The horizontal alignment of the entire label"),
			    0, 1, 0.01, 0.1, 0.01, 2);
  property_add_float_range (yalign_p, _("Y Align:"),
			    _("The vertical alignment of the entire label"),
			    0, 1, 0.01, 0.1, 0.01, 2);
  property_add_int_range (xpad_p, _("X Pad:"), _("The horizontal padding"),
			  0, 1000, 1, 10, 1);
  property_add_int_range (ypad_p, _("Y Pad:"), _("The vertical padding"),
			  0, 1000, 1, 10, 1);
  property_add_combo (focus_target_p, _("Focus Target:"),
		      _("The widget to set the keyboard focus to when the underlined accelerator key is used"),
		      NULL);
  combo = property_get_value_widget (focus_target_p);
  gtk_editable_set_editable (GTK_EDITABLE (GTK_COMBO (combo)->entry), FALSE);
  gtk_combo_set_value_in_list (GTK_COMBO (combo), TRUE, TRUE);
}
Esempio n. 7
0
/*
 * Creates the child packing properties for children of this widget.
 */
void
gb_box_create_child_properties (GtkWidget * widget,
				GbWidgetCreateChildArgData * data)
{
  property_add_int_range (GbPosition, _("Position:"),
			  _("The widget's position relative to its siblings"),
			  0, 10000, 1, 10, 1);
  property_add_int_range (GbPadding, _("Padding:"),
			  _("The widget's padding"),
			  0, 10000, 1, 10, 1);
  property_add_bool (GbExpand, _("Expand:"),
		     _("Set True to let the widget expand"));
  property_add_bool (GbFill, _("Fill:"),
		     _("Set True to let the widget fill its allocated area"));
  property_add_bool (GbPack, _("Pack Start:"),
		     _("Set True to pack the widget at the start of the box"));
}
Esempio n. 8
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_option_menu_create_properties (GtkWidget * widget, GbWidgetCreateArgData *
				  data)
{
  property_add_text (Items, _("Items:"),
		     _("The items in the option menu, one per line"), 5);
  property_add_int_range (Choice, _("Initial Choice:"),
			  _("The index of the initially selected item"),
			  0, 10000, 1, 10, 1);
}
Esempio n. 9
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_gnome_icon_entry_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data)
{
  property_add_string (Title, _("Title:"),
		       _("The title of the file selection dialog"));
  property_add_string (HistoryID, _("History ID:"),
		       _("The ID to save the history entries under"));
  property_add_int_range (MaxSaved, _("Max Saved:"),
			  _("The maximum number of history entries saved"),
			  0, 10000, 1, 10, 1);
}
Esempio n. 10
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_file_chooser_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data)
{
  property_add_string (Title, _("Title:"),
		     _("The window title of the file chooser dialog"));
  property_add_choice (Action, _("Action:"),
		       _("The type of file operation being performed"),
		       GbActionChoices);
  property_add_bool (LocalOnly, _("Local Only:"),
		     _("Whether the selected files should be limited to local files"));
  property_add_bool (ShowHidden, _("Show Hidden:"),
		     _("Whether the hidden files and folders should be displayed"));
  property_add_bool (Confirm, _("Confirm:"),
		     _("Whether a confirmation dialog will be displayed if a file will be overwritten"));
  property_add_int_range (WidthChars, _("Width in Chars:"),
			  _("The width of the button in characters"),
			  -1, 1000, 1, 10, 1);
}
Esempio n. 11
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_spin_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData *
				  data)
{
  property_add_float (ClimbRate, _("Climb Rate:"),
		      _("The climb rate of the spinbutton, used in conjunction with the Page Increment"));
  property_add_int_range (Digits, _("Digits:"),
			  _("The number of decimal digits to show"),
			  0, 5, 1, 1, 0);
  property_add_bool (Numeric, _("Numeric:"),
		     _("If only numeric entry is allowed"));
  property_add_choice (Policy, _("Update Policy:"),
		       _("When value_changed signals are emitted"),
		       GbPolicyChoices);
  property_add_bool (Snap, _("Snap:"),
	      _("If the value is snapped to multiples of the step increment"));
  property_add_bool (Wrap, _("Wrap:"),
		     _("If the value is wrapped at the limits"));
  property_add_adjustment (Values, GB_ADJUST_DEFAULT_LABELS);
}
Esempio n. 12
0
/*
 * Creates the components needed to edit the extra properties of this widget.
 */
static void
gb_vbutton_box_create_properties (GtkWidget * widget, GbWidgetCreateArgData *
				  data)
{
  property_add_int_range (Size, "Size:", "The number of buttons",
			  0, 1000, 1, 10, 1);
  property_add_choice (Layout, "Layout:",
		       "The layout style of the buttons",
		       GbLayoutChoices);
  property_add_int_range (Spacing, "Spacing:", "The space between the buttons",
			  0, 1000, 1, 10, 1);
  property_add_int_range (Width, "Min Width:",
			  "The minimum width of the buttons",
			  0, 1000, 1, 10, 1);
  property_add_int_range (Height, "Min Height:",
			  "The minimum height of the buttons",
			  0, 1000, 1, 10, 1);
  property_add_int_range (XPad, "X Pad:",
			  "The horizontal padding of the buttons",
			  0, 1000, 1, 10, 1);
  property_add_int_range (YPad, "Y Pad:", "The vertical padding of the buttons",
			  0, 1000, 1, 10, 1);
}