1 /* === S Y N F I G ========================================================= */ 2 /*! \file dialogs/dialog_spritesheetparam.h 3 ** \brief SpriteSheetParam 4 ** 5 ** $Id$ 6 ** 7 ** \legal 8 ** Copyright (c) 2015 Denis Zdorovtsov 9 ** 10 ** This package is free software; you can redistribute it and/or 11 ** modify it under the terms of the GNU General Public License as 12 ** published by the Free Software Foundation; either version 2 of 13 ** the License, or (at your option) any later version. 14 ** 15 ** This package is distributed in the hope that it will be useful, 16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 ** General Public License for more details. 19 ** \endlegal 20 */ 21 /* ========================================================================= */ 22 23 /* === S T A R T =========================================================== */ 24 25 #ifndef __SYNFIG_STUDIO_DIALOG_SPRITESHEETPARAM_H 26 #define __SYNFIG_STUDIO_DIALOG_SPRITESHEETPARAM_H 27 28 /* === H E A D E R S ======================================================= */ 29 30 #include <gtkmm/comboboxtext.h> 31 #include <gtkmm/spinbutton.h> 32 #include <gtkmm/checkbutton.h> 33 #include <gtkmm/comboboxtext.h> 34 35 #include "dialogs/dialog_targetparam.h" 36 37 /* === M A C R O S ========================================================= */ 38 39 /* === T Y P E D E F S ===================================================== */ 40 41 /* === C L A S S E S & S T R U C T S ======================================= */ 42 43 namespace studio { 44 class Dialog_SpriteSheetParam: public Dialog_TargetParam 45 { 46 public: 47 Dialog_SpriteSheetParam(Gtk::Window &parent); 48 ~Dialog_SpriteSheetParam(); 49 50 protected: 51 virtual void init(); 52 virtual void write_tparam(synfig::TargetParam & tparam); 53 54 private: 55 Gtk::SpinButton * offset_x_box; 56 Gtk::SpinButton * offset_y_box; 57 Gtk::SpinButton * rows_box; 58 Gtk::SpinButton * columns_box; 59 Gtk::CheckButton * check_button; 60 Gtk::ComboBoxText * direction_box; 61 62 int frame_count; 63 64 void on_dir_change(); 65 void on_rows_change(); 66 void on_cols_change(); 67 }; 68 69 }; //studio 70 71 /* === E N D =============================================================== */ 72 73 #endif 74