source: synfigstudio/trunk/fuentes/src/gui/dialogs/dialog_targetparam.h @ 481

Last change on this file since 481 was 481, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 2.4 KB
Line 
1/* === S Y N F I G ========================================================= */
2/*!     \file dialogs/dialog_targetparam.h
3**      \brief Targetparam Dialog Header
4**
5**      $Id$
6**
7**      \legal
8**      Copyright (c) 2010 Carlos López González
9**      Copyright (c) 2015 Denis Zdorovtsov
10**
11**      This package is free software; you can redistribute it and/or
12**      modify it under the terms of the GNU General Public License as
13**      published by the Free Software Foundation; either version 2 of
14**      the License, or (at your option) any later version.
15**
16**      This package is distributed in the hope that it will be useful,
17**      but WITHOUT ANY WARRANTY; without even the implied warranty of
18**      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19**      General Public License for more details.
20**      \endlegal
21*/
22/* ========================================================================= */
23
24/* === S T A R T =========================================================== */
25
26#ifndef __SYNFIG_STUDIO_DIALOG_TARGETPARAM_H
27#define __SYNFIG_STUDIO_DIALOG_TARGETPARAM_H
28
29/* === H E A D E R S ======================================================= */
30#include <gtkmm/dialog.h>
31#include <gtkmm/button.h>
32#include <gtkmm/comboboxtext.h>
33#include <gtkmm/spinbutton.h>
34
35#include <synfig/targetparam.h>
36#include <synfig/renddesc.h>
37
38/* === M A C R O S ========================================================= */
39
40/* === T Y P E D E F S ===================================================== */
41
42/* === C L A S S E S & S T R U C T S ======================================= */
43
44namespace studio {
45
46///@brief Abstract parrent for extra target parameters dialogs.         
47class Dialog_TargetParam: public Gtk::Dialog
48{
49public:
50        Dialog_TargetParam(Gtk::Window &parent, const char* title);
51        virtual ~Dialog_TargetParam(){};
52
53        synfig::TargetParam get_tparam() const { return tparam_;}
54        void set_tparam(const synfig::TargetParam &tp) {this->tparam_=tp; }
55        void set_desc(const synfig::RendDesc & desc) {this->desc = desc;}
56        int run();
57       
58protected:
59        virtual void init() = 0;
60        virtual void write_tparam(synfig::TargetParam & tparam_) = 0;
61        const synfig::RendDesc & get_desc() {return desc;}
62       
63private:
64        synfig::TargetParam tparam_;
65        synfig::RendDesc desc;
66        Gtk::Button *ok_button;
67        Gtk::Button *cancel_button;
68       
69        void on_ok();
70        void on_cancel();
71};
72
73}; // END of namespace studio
74
75/* === E N D =============================================================== */
76
77#endif
78
79
80
Note: See TracBrowser for help on using the repository browser.