00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_GTKMM_CANVASPROPERTIES_H
00026 #define __SYNFIG_GTKMM_CANVASPROPERTIES_H
00027
00028
00029
00030 #include <ETL/handle>
00031
00032 #include <gtkmm/dialog.h>
00033 #include <gtkmm/tooltips.h>
00034 #include <gtkmm/table.h>
00035 #include <gtkmm/entry.h>
00036 #include <gtkmm/tooltips.h>
00037
00038 #include "renddesc.h"
00039
00040
00041
00042
00043
00044
00045
00046 namespace Gtk { class TreeView; };
00047 namespace synfigapp { class CanvasInterface; };
00048
00049 namespace studio
00050 {
00051 class CanvasProperties : public Gtk::Dialog
00052 {
00053 Gtk::Tooltips tooltips;
00054
00055 etl::handle<synfigapp::CanvasInterface> canvas_interface_;
00056 Widget_RendDesc widget_rend_desc;
00057 Gtk::Entry entry_id;
00058 Gtk::Entry entry_name;
00059 Gtk::Entry entry_description;
00060
00061 bool dirty_rend_desc;
00062
00063 Gtk::TreeView* meta_data_tree_view;
00064 void on_button_meta_data_add();
00065 void on_button_meta_data_delete();
00066
00067 public:
00068 CanvasProperties(Gtk::Window& parent,etl::handle<synfigapp::CanvasInterface> canvas_interface);
00069 ~CanvasProperties();
00070
00071 void refresh();
00072 void update_title();
00073 private:
00074 void on_rend_desc_changed();
00075
00076 Gtk::Widget& create_meta_data_view();
00077
00078 void on_ok_pressed();
00079 void on_apply_pressed();
00080 void on_cancel_pressed();
00081 };
00082
00083 };
00084
00085
00086
00087 #endif