1 /* === S Y N F I G ========================================================= */
2 /*! \file canvasproperties.h
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
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.
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.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_GTKMM_CANVASPROPERTIES_H
26 #define __SYNFIG_GTKMM_CANVASPROPERTIES_H
28 /* === H E A D E R S ======================================================= */
32 #include <gtkmm/dialog.h>
33 #include <gtkmm/tooltips.h>
34 #include <gtkmm/table.h>
35 #include <gtkmm/entry.h>
36 #include <gtkmm/tooltips.h>
40 /* === M A C R O S ========================================================= */
42 /* === T Y P E D E F S ===================================================== */
44 /* === C L A S S E S & S T R U C T S ======================================= */
46 namespace Gtk { class TreeView; };
47 namespace synfigapp { class CanvasInterface; };
51 class CanvasProperties : public Gtk::Dialog
53 Gtk::Tooltips tooltips;
55 etl::handle<synfigapp::CanvasInterface> canvas_interface_;
56 Widget_RendDesc widget_rend_desc;
58 Gtk::Entry entry_name;
59 Gtk::Entry entry_description;
63 Gtk::TreeView* meta_data_tree_view;
64 void on_button_meta_data_add();
65 void on_button_meta_data_delete();
68 CanvasProperties(Gtk::Window& parent,etl::handle<synfigapp::CanvasInterface> canvas_interface);
74 void on_rend_desc_changed();
76 Gtk::Widget& create_meta_data_view();
79 void on_apply_pressed();
80 void on_cancel_pressed();
81 }; // END of class CanvasProperties
83 }; // END of namespace studio
85 /* === E N D =============================================================== */