source: synfigstudio/trunk/fuentes/src/gui/widgets/widget_waypointmodel.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.6 KB
Line 
1/* === S Y N F I G ========================================================= */
2/*!     \file widgets/widget_waypointmodel.h
3**      \brief Template Header
4**
5**      $Id$
6**
7**      \legal
8**      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
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_GTKMM_WIDGET_WAYPOINTMODEL_H
26#define __SYNFIG_GTKMM_WIDGET_WAYPOINTMODEL_H
27
28/* === H E A D E R S ======================================================= */
29
30#include <gtkmm/grid.h>
31#include <gtkmm/button.h>
32#include <gtkmm/adjustment.h>
33#include <gtkmm/box.h>
34#include <gtkmm/comboboxtext.h>
35#include <gtkmm/spinbutton.h>
36#include <gtkmm/checkbutton.h>
37
38
39#include <synfig/waypoint.h>
40#include <synfig/string.h>
41#include <synfig/time.h>
42#include "widgets/widget_enum.h"
43
44
45/* === M A C R O S ========================================================= */
46
47/* === T Y P E D E F S ===================================================== */
48
49
50/* === C L A S S E S & S T R U C T S ======================================= */
51
52namespace studio {
53
54class Widget_Time;
55class Widget_WaypointModel;
56
57class Widget_WaypointModel : public Gtk::Grid
58{
59        synfig::Waypoint::Model waypoint_model;
60
61        bool updating;
62
63        Widget_Enum *before_options,*after_options;
64
65        Gtk::SpinButton *spin_tension, *spin_continuity, *spin_bias, *spin_temporal_tension;
66        Glib::RefPtr<Gtk::Adjustment> adj_tension, adj_continuity, adj_bias, adj_temporal_tension;
67
68        Gtk::CheckButton checkbutton_after;
69        Gtk::CheckButton checkbutton_before;
70        Gtk::CheckButton checkbutton_tension;
71        Gtk::CheckButton checkbutton_continuity;
72        Gtk::CheckButton checkbutton_bias;
73        Gtk::CheckButton checkbutton_temporal_tension;
74
75        void on_change();
76
77public:
78        Widget_WaypointModel();
79
80        const synfig::Waypoint::Model &get_waypoint_model()const { return waypoint_model; }
81        void set_waypoint_model(const synfig::Waypoint::Model &x);
82        void reset_waypoint_model();
83}; // END of class Widget_WaypointModel
84
85}; // END of namespace studio
86
87/* === E N D =============================================================== */
88
89#endif
Note: See TracBrowser for help on using the repository browser.