1 /* 2 */ 3 4 /* 5 6 Copyright (C) 2014 Ferrero Andrea 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 3 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 */ 23 24 /* 25 26 These files are distributed with PhotoFlow - http://aferrero2707.github.io/PhotoFlow/ 27 28 */ 29 30 #ifndef GMIC_INPAINT_CONFIG_DIALOG_HH 31 #define GMIC_INPAINT_CONFIG_DIALOG_HH 32 33 #include <gtkmm.h> 34 35 #include "../../operation_config_gui.hh" 36 37 38 namespace PF { 39 40 class GmicInpaintConfigGUI: public OperationConfigGUI 41 { 42 Gtk::Button updateButton; 43 Gtk::VBox controlsBox; 44 45 Slider patch_size; 46 Slider lookup_size; 47 Slider lookup_factor; 48 Slider blend_size; 49 Slider blend_threshold; 50 Slider blend_decay; 51 Slider blend_scales; 52 Slider allow_outer_blending; 53 Slider pen_size; 54 Selector display_mode_selector; 55 56 public: 57 GmicInpaintConfigGUI( Layer* l ); 58 59 void on_update(); 60 void open(); 61 62 void start_stroke(); 63 void draw_point( double x, double y ); 64 65 bool pointer_press_event( int button, double x, double y, int mod_key ); 66 bool pointer_release_event( int button, double x, double y, int mod_key ); 67 bool pointer_motion_event( int button, double x, double y, int mod_key ); 68 }; 69 70 } 71 72 #endif 73