summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-02-08 09:36:56 +0000
committertavmjong-free <tavmjong@free.fr>2017-02-08 09:36:56 +0000
commitddb9f75a21c83c5979e467c5adf1b8a7cdf7b98e (patch)
tree8db41b619a8b0245d0aa4c5d97ee605e42251473 /src
parentFix g_warnings (typo in action name). (diff)
downloadinkscape-ddb9f75a21c83c5979e467c5adf1b8a7cdf7b98e.tar.gz
inkscape-ddb9f75a21c83c5979e467c5adf1b8a7cdf7b98e.zip
Allow dialog to be resizable. (Fixed inheritance.) Also basic housekeeping.
(bzr r15496)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/styledialog.cpp11
-rw-r--r--src/ui/dialog/styledialog.h30
2 files changed, 33 insertions, 8 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp
index 5246290b4..8d56e10e7 100644
--- a/src/ui/dialog/styledialog.cpp
+++ b/src/ui/dialog/styledialog.cpp
@@ -1114,3 +1114,14 @@ void StyleDialog::_selectRow(Selection */*sel*/)
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
diff --git a/src/ui/dialog/styledialog.h b/src/ui/dialog/styledialog.h
index b03a1d2e1..3cc4349e6 100644
--- a/src/ui/dialog/styledialog.h
+++ b/src/ui/dialog/styledialog.h
@@ -30,16 +30,16 @@ namespace Dialog {
/**
* @brief The StyleDialog class
- * A list of CSS selectors will show up in this dialog. This dialog allows to
- * add and delete selectors. Objects can be added to and removed from the selectors
- * in the dialog. Besides, selection of any selector row selects the matching
- * objects in the drawing and vice-versa.
+ * A list of CSS selectors will show up in this dialog. This dialog allows one to
+ * add and delete selectors. Elements can be added to and removed from the selectors
+ * in the dialog. Selection of any selector row selects the matching objects in
+ * the drawing and vice-versa.
*/
typedef std::pair<std::pair<std::string, std::vector<SPObject *> >, std::string>
_selectorVecType;
-class StyleDialog : public UI::Widget::Panel
-{
+class StyleDialog : public Widget::Panel {
+
public:
StyleDialog();
~StyleDialog();
@@ -73,8 +73,11 @@ private:
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
- ModelColumns()
- { add(_selectorLabel); add(_colAddRemove); add(_colObj); }
+ ModelColumns() {
+ add(_selectorLabel);
+ add(_colAddRemove);
+ add(_colObj);
+ }
Gtk::TreeModelColumn<Glib::ustring> _selectorLabel;
Gtk::TreeModelColumn<bool> _colAddRemove;
Gtk::TreeModelColumn<std::vector<SPObject *> > _colObj;
@@ -115,3 +118,14 @@ private:
} // namespace Inkscape
#endif // STYLEDIALOG_H
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :