1 /* merge_dialog.h - Merge utility headers (merging source - result) 2 * 3 * Copyright (C) 2002, 2010 Patrice St-Gelais 4 * patrstg@users.sourceforge.net 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21 #ifndef _MERGE_DIALOG 22 #define _MERGE_DIALOG 1 23 #include "globals.h" 24 #include "merge.h" 25 26 typedef struct { 27 GtkWidget *merge_dialog; // The dialog displayed in the tools window (the frame) 28 GtkWidget *main_box; // The box inside the frame (allowing show / hide) 29 GtkWidget *op_toolbar; 30 GtkObject *adj_mix; // % of each image mixed 31 // (-100 = 100% source, 100 = 100 % result) 32 GtkObject *adj_source_offset; // Luminosity offset, from -100 to 100 33 GtkObject *adj_result_offset; 34 GtkObject *adj_x_translate; // "result" geometric translation, from -100 to 100 35 GtkObject *adj_y_translate; 36 GtkObject *adj_hardness; // For altitude merge only (added 2010-11) 37 merge_struct *content; 38 } merge_dialog_struct; 39 40 merge_dialog_struct * merge_dialog_struct_new (merge_struct *mrg); 41 42 GtkWidget *merge_dialog_new(merge_dialog_struct *mrg_str, gboolean hide_control, 43 GtkWidget *parent_window, gchar *frame_title, 44 gchar *source_title, gchar *result_title, gchar *mix_title); 45 46 void merge_set_op (merge_dialog_struct *mrg_str, gint merge_op); 47 void merge_set_mix (merge_dialog_struct *mrg_str, gint mix); 48 49 #endif // _MERGE_DIALOG 50