diff options
| author | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-07-19 09:09:24 +0000 |
|---|---|---|
| committer | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-07-19 09:09:24 +0000 |
| commit | 96b7038386f56aa59a9d0935989469105234d2fe (patch) | |
| tree | 7d955e2d4aad8962a268af3b58c13de0f1564c5c /src/ui/dialog/cssdialog.cpp | |
| parent | Merge changes from trunk (diff) | |
| download | inkscape-96b7038386f56aa59a9d0935989469105234d2fe.tar.gz inkscape-96b7038386f56aa59a9d0935989469105234d2fe.zip | |
Update XML & hence drawing when properties are edited in CSS panel
(bzr r14949.1.54)
Diffstat (limited to 'src/ui/dialog/cssdialog.cpp')
| -rw-r--r-- | src/ui/dialog/cssdialog.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/ui/dialog/cssdialog.cpp b/src/ui/dialog/cssdialog.cpp index b0123482b..e12716d6e 100644 --- a/src/ui/dialog/cssdialog.cpp +++ b/src/ui/dialog/cssdialog.cpp @@ -21,6 +21,11 @@ namespace Inkscape { namespace UI { namespace Dialog { +/** + * Constructor + * A treeview whose each row corresponds to a CSS property of selector selected. + * TODO: Further, buttons to add and delete properties will be added. + */ CssDialog::CssDialog(): UI::Widget::Panel("", "/dialogs/css", SP_VERB_DIALOG_CSS), _desktop(0) @@ -53,9 +58,6 @@ CssDialog::CssDialog(): _targetDesktop = getDesktop(); setDesktop(_targetDesktop); - - _textRenderer->signal_edited().connect(sigc::mem_fun(*this, &CssDialog:: - _handleEdited)); } CssDialog::~CssDialog() @@ -68,16 +70,6 @@ void CssDialog::setDesktop( SPDesktop* desktop ) _desktop = desktop; } -void CssDialog::_handleEdited(const Glib::ustring& path, const Glib::ustring& new_text) -{ - Gtk::TreeModel::iterator iter = _treeView.get_model()->get_iter(path); - if (iter) { - Gtk::TreeModel::Row row = *iter; - row[_cssColumns._propertyLabel] = new_text; - editedProp = new_text; - } -} - } // namespace Dialog } // namespace UI } // namespace Inkscape |
