summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/template-load-tab.h
diff options
context:
space:
mode:
authorSlagvi Public <JandotDarowskiattgmaildottcom>2013-07-08 16:02:38 +0000
committerSlagvi Public <JandotDarowskiattgmaildottcom>2013-07-08 16:02:38 +0000
commitcbdafaae927348aa8ef5396474535571fe989bf8 (patch)
treef6043cb991d9b848e8c073d8c9f9704d6de33df1 /src/ui/dialog/template-load-tab.h
parentAdded loading templates into NewFromTemplate dialog. (diff)
downloadinkscape-cbdafaae927348aa8ef5396474535571fe989bf8.tar.gz
inkscape-cbdafaae927348aa8ef5396474535571fe989bf8.zip
Coding style improvements and display bug fixes
(bzr r12379.2.8)
Diffstat (limited to 'src/ui/dialog/template-load-tab.h')
-rw-r--r--src/ui/dialog/template-load-tab.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/ui/dialog/template-load-tab.h b/src/ui/dialog/template-load-tab.h
index 3edcf15eb..7d1e25d6d 100644
--- a/src/ui/dialog/template-load-tab.h
+++ b/src/ui/dialog/template-load-tab.h
@@ -1,3 +1,13 @@
+/** @file
+ * @brief New From Template abstract tab class
+ */
+/* Authors:
+ * Jan Darowski <jan.darowski@gmail.com>, supervised by Krzysztof KosiƄski
+ *
+ * Copyright (C) 2013 Authors
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
#ifndef INKSCAPE_SEEN_UI_DIALOG_TEMPLATE_LOAD_TAB_H
#define INKSCAPE_SEEN_UI_DIALOG_TEMPLATE_LOAD_TAB_H
@@ -46,7 +56,7 @@ protected:
Glib::ustring _current_keyword;
Glib::ustring _current_template;
Glib::ustring _loading_path;
- std::map<Glib::ustring, TemplateData> _templates;
+ std::map<Glib::ustring, TemplateData> _tdata;
virtual void _displayTemplateInfo();
@@ -56,19 +66,19 @@ protected:
void _initLists();
Gtk::HBox _main_box;
- Gtk::VBox _templates_column;
- Gtk::VBox _template_info_column;
+ Gtk::VBox _tlist_box;
+ Gtk::VBox _info_box;
Gtk::ComboBoxText _keywords_combo;
- Gtk::TreeView _templates_view;
- Glib::RefPtr<Gtk::ListStore> _templates_ref;
- StringModelColumns _templates_columns;
+ Gtk::TreeView _tlist_view;
+ Glib::RefPtr<Gtk::ListStore> _tlist_store;
+ StringModelColumns _columns;
private:
- void _getTemplatesFromDir(Glib::ustring);
+ void _getTemplatesFromDir(const Glib::ustring &);
void _keywordSelected();
- TemplateData _processTemplateFile(Glib::ustring);
+ TemplateData _processTemplateFile(const Glib::ustring &);
};