1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 3 /* 4 * GThumb 5 * 6 * Copyright (C) 2009 Free Software Foundation, Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef PREFERENCES_H 23 #define PREFERENCES_H 24 25 #include <gthumb.h> 26 27 28 typedef enum { 29 GTH_TIFF_COMPRESSION_NONE, 30 GTH_TIFF_COMPRESSION_DEFLATE, 31 GTH_TIFF_COMPRESSION_JPEG 32 } GthTiffCompression; 33 34 35 /* schemas */ 36 37 #define GTHUMB_IMAGE_SAVERS GTHUMB_SCHEMA ".pixbuf-savers" 38 #define GTHUMB_IMAGE_SAVERS_JPEG_SCHEMA GTHUMB_IMAGE_SAVERS ".jpeg" 39 #define GTHUMB_IMAGE_SAVERS_PNG_SCHEMA GTHUMB_IMAGE_SAVERS ".png" 40 #define GTHUMB_IMAGE_SAVERS_TGA_SCHEMA GTHUMB_IMAGE_SAVERS ".tga" 41 #define GTHUMB_IMAGE_SAVERS_TIFF_SCHEMA GTHUMB_IMAGE_SAVERS ".tiff" 42 #define GTHUMB_IMAGE_SAVERS_WEBP_SCHEMA GTHUMB_IMAGE_SAVERS ".webp" 43 44 /* keys: jpeg */ 45 46 #define PREF_JPEG_DEFAULT_EXT "default-ext" 47 #define PREF_JPEG_QUALITY "quality" 48 #define PREF_JPEG_SMOOTHING "smoothing" 49 #define PREF_JPEG_OPTIMIZE "optimize" 50 #define PREF_JPEG_PROGRESSIVE "progressive" 51 52 /* keys: png */ 53 54 #define PREF_PNG_COMPRESSION_LEVEL "compression-level" 55 56 /* keys: tga */ 57 58 #define PREF_TGA_RLE_COMPRESSION "rle-compression" 59 60 /* keys: tiff */ 61 62 #define PREF_TIFF_DEFAULT_EXT "default-ext" 63 #define PREF_TIFF_COMPRESSION "compression" 64 #define PREF_TIFF_HORIZONTAL_RES "horizontal-resolution" 65 #define PREF_TIFF_VERTICAL_RES "vertical-resolution" 66 67 /* keys: webp */ 68 69 #define PREF_WEBP_LOSSLESS "lossless" 70 #define PREF_WEBP_QUALITY "quality" 71 #define PREF_WEBP_METHOD "method" 72 73 74 void ci__dlg_preferences_construct_cb (GtkWidget *dialog, 75 GthBrowser *browser, 76 GtkBuilder *builder); 77 void ci__dlg_preferences_apply_cb (GtkWidget *dialog, 78 GthBrowser *browser, 79 GtkBuilder *builder); 80 81 #endif /* PREFERENCES_H */ 82