static void gth_file_tool_resize_init (GthFileToolResize *self) { self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_FILE_TOOL_RESIZE, GthFileToolResizePrivate); self->priv->settings = g_settings_new (GTHUMB_RESIZE_SCHEMA); self->priv->builder = NULL; self->priv->preview = NULL; self->priv->new_image = NULL; gth_file_tool_construct (GTH_FILE_TOOL (self), "image-resize-symbolic", _("Resize"), GTH_TOOLBOX_SECTION_FORMAT); }
static void gth_file_tool_sharpen_init (GthFileToolSharpen *self) { self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_FILE_TOOL_SHARPEN, GthFileToolSharpenPrivate); self->priv->source = NULL; self->priv->destination = NULL; self->priv->builder = NULL; self->priv->show_preview = TRUE; gth_file_tool_construct (GTH_FILE_TOOL (self), "tool-sharpen", _("Enhance Focus..."), _("Enhance Focus"), FALSE); }
static void gth_file_tool_grayscale_init (GthFileToolGrayscale *self) { self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_FILE_TOOL_GRAYSCALE, GthFileToolGrayscalePrivate); self->priv->preview = NULL; self->priv->destination = NULL; self->priv->builder = NULL; gth_file_tool_construct (GTH_FILE_TOOL (self), "image-grayscale-symbolic", _("Grayscale"), GTH_TOOLBOX_SECTION_COLORS); }
static void gth_file_tool_adjust_contrast_init (GthFileToolAdjustContrast *self) { self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_FILE_TOOL_ADJUST_CONTRAST, GthFileToolAdjustContrastPrivate); self->priv->preview = NULL; self->priv->destination = NULL; self->priv->builder = NULL; self->priv->method = GTH_FILTER_GRID_NO_FILTER; self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER; self->priv->view_original = FALSE; gth_file_tool_construct (GTH_FILE_TOOL (self), "image-adjust-contrast-symbolic", _("Adjust Contrast"), GTH_TOOLBOX_SECTION_COLORS); gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Automatic contrast adjustment")); }
static void gth_file_tool_adjust_contrast_init (GthFileToolAdjustContrast *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "tool-adjust-contrast", _("Adjust Contrast"), NULL, TRUE); gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Automatic contrast adjustment")); }
static void gth_file_tool_negative_init (GthFileToolNegative *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "image-invert-symbolic", _("Negative"), GTH_TOOLBOX_SECTION_COLORS); }
static void gth_file_tool_negative_init (GthFileToolNegative *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "tool-invert", _("Negative"), _("Negative"), FALSE); }
static void gth_file_tool_equalize_init (GthFileToolEqualize *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "image-equalize-symbolic", _("Equalize"), GTH_TOOLBOX_SECTION_COLORS); gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Equalize image histogram")); }
static void gth_file_tool_mirror_instance_init (GthFileToolMirror *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "tool-mirror", _("Mirror"), NULL, TRUE); /*gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Automatic white balance correction"));*/ }
static void gth_file_tool_save_as_init (GthFileToolSaveAs *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "document-save-as-symbolic", _("Save As"), GTH_TOOLBOX_SECTION_FILE); }
static void gth_file_tool_redo_instance_init (GthFileToolRedo *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "redo", _("Redo"), _("Redo"), FALSE); }
static void gth_file_tool_rotate_left_init (GthFileToolRotateLeft *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "tool-rotate-270", _("Rotate Left"), NULL, FALSE); gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Rotate the image by 90 degrees counterclockwise")); }
static void gth_file_tool_rotate_right_init (GthFileToolRotateRight *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "image-rotate-right-symbolic", _("Rotate Right"), GTH_TOOLBOX_SECTION_ROTATION); gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Rotate the image by 90 degrees clockwise")); }
static void gth_file_tool_save_as_instance_init (GthFileToolSaveAs *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), GTK_STOCK_SAVE_AS, _("Save As"), NULL, FALSE); }
static void gth_file_tool_save_init (GthFileToolSave *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), GTK_STOCK_SAVE, _("Save"), _("Save"), FALSE); }
static void gth_file_tool_flip_init (GthFileToolFlip *self) { gth_file_tool_construct (GTH_FILE_TOOL (self), "image-flip-vertical-symbolic", _("Flip"), GTH_TOOLBOX_SECTION_ROTATION); gtk_widget_set_tooltip_text (GTK_WIDGET (self), _("Flip the image vertically")); }