diff options
| author | Slagvi Public <JandotDarowskiattgmaildottcom> | 2013-07-02 15:37:42 +0000 |
|---|---|---|
| committer | Slagvi Public <JandotDarowskiattgmaildottcom> | 2013-07-02 15:37:42 +0000 |
| commit | fdb68963cec5ddbd3eef111f4c95b7e049aa839c (patch) | |
| tree | 60c0d23f4f777ba5f5b030a80313b5c24beb265f /src/ui/dialog/template-load-tab.h | |
| parent | Coding style fixes (diff) | |
| download | inkscape-fdb68963cec5ddbd3eef111f4c95b7e049aa839c.tar.gz inkscape-fdb68963cec5ddbd3eef111f4c95b7e049aa839c.zip | |
Adding NewFromTemplate to the Inkscape menu
(bzr r12379.2.5)
Diffstat (limited to 'src/ui/dialog/template-load-tab.h')
| -rw-r--r-- | src/ui/dialog/template-load-tab.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/ui/dialog/template-load-tab.h b/src/ui/dialog/template-load-tab.h new file mode 100644 index 000000000..a9fa7c313 --- /dev/null +++ b/src/ui/dialog/template-load-tab.h @@ -0,0 +1,59 @@ +#ifndef INKSCAPE_SEEN_UI_DIALOG_TEMPLATE_LOAD_TAB_H +#define INKSCAPE_SEEN_UI_DIALOG_TEMPLATE_LOAD_TAB_H + +#include <gtkmm/box.h> +#include <gtkmm/comboboxtext.h> +#include <gtkmm/frame.h> +#include <gtkmm/liststore.h> +#include <gtkmm/treeview.h> + +namespace Inkscape { +namespace UI { + + +class TemplateLoadTab : public Gtk::Frame +{ + +public: + TemplateLoadTab(); + virtual ~TemplateLoadTab(); + virtual void createTemplate(); + +protected: + class StringModelColumns : public Gtk::TreeModelColumnRecord + { + public: + StringModelColumns() + { + add(textValue); + } + + Gtk::TreeModelColumn<Glib::ustring> textValue; + }; + + Glib::ustring _current_keyword; + Glib::ustring _current_template; + + virtual void _displayTemplateInfo(); + virtual void _initKeywordsList(); + virtual void _refreshTemplatesList(); + + void _initLists(); + void _keywordSelected(); + + Gtk::HBox _main_box; + Gtk::VBox _templates_column; + Gtk::VBox _template_info_column; + + Gtk::ComboBoxText _keywords_combo; + + Gtk::TreeView _templates_view; + Glib::RefPtr<Gtk::ListStore> _templates_ref; + StringModelColumns _templates_columns; + +}; + +} +} + +#endif |
