diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-12-24 16:42:06 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2018-12-26 11:46:58 +0000 |
| commit | 2e9f2b6e96cec362e1b3f2ed884186cc49c2455c (patch) | |
| tree | 46857ec1fe481768ca11c980e95a020aec8fc421 /src/ui/dialog/cssdialog.h | |
| parent | Add status to attribute widget (diff) | |
| download | inkscape-2e9f2b6e96cec362e1b3f2ed884186cc49c2455c.tar.gz inkscape-2e9f2b6e96cec362e1b3f2ed884186cc49c2455c.zip | |
Add messagess to CSS dialog
Diffstat (limited to 'src/ui/dialog/cssdialog.h')
| -rw-r--r-- | src/ui/dialog/cssdialog.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/ui/dialog/cssdialog.h b/src/ui/dialog/cssdialog.h index c34575a1a..39de8acd0 100644 --- a/src/ui/dialog/cssdialog.h +++ b/src/ui/dialog/cssdialog.h @@ -20,10 +20,13 @@ #include <gtkmm/scrolledwindow.h> #include <gtkmm/dialog.h> #include <ui/widget/panel.h> +#include "message.h" #include "desktop.h" namespace Inkscape { +class MessageStack; +class MessageContext; namespace UI { namespace Dialog { @@ -58,6 +61,12 @@ public: }; CssColumns _cssColumns; + /** + * Status bar + */ + std::shared_ptr<Inkscape::MessageStack> _message_stack; + std::unique_ptr<Inkscape::MessageContext> _message_context; + // TreeView Gtk::TreeView _treeView; Glib::RefPtr<Gtk::ListStore> _store; @@ -68,6 +77,15 @@ public: Gtk::TreeViewColumn *_propCol; Gtk::TreeViewColumn *_sheetCol; Gtk::TreeViewColumn *_attrCol; + Gtk::HBox status_box; + Gtk::Label status; + + /** + * Sets the XML status bar, depending on which attr is selected. + */ + void css_reset_context(gint css); + static void _set_status_message(Inkscape::MessageType type, const gchar *message, GtkWidget *dialog); + // Widgets Gtk::VBox _mainBox; @@ -81,7 +99,10 @@ public: // Helper functions void setDesktop(SPDesktop* desktop) override; - // Signal handlers + /** + * Signal handlers + */ + sigc::connection _message_changed_connection; void _addProperty(); }; |
