Code

C++-ification of paint selector.
[inkscape.git] / src / selection-describer.h
index 91948c2fd325f0bb0bf7da2694ab6a7b39bdd105..4b0e3d8c716df6542f9f2abc6222a93d810e37b9 100644 (file)
@@ -23,15 +23,20 @@ class MessageStack;
 
 class SelectionDescriber : public sigc::trackable {
 public:
-    SelectionDescriber(Inkscape::Selection *selection, MessageStack *stack);
+    SelectionDescriber(Inkscape::Selection *selection, MessageStack *stack, char *when_selected, char *when_nothing);
     ~SelectionDescriber();
 
 private:
     void _updateMessageFromSelection(Inkscape::Selection *selection);
+    void _selectionModified(Inkscape::Selection *selection, guint /*flags*/);
 
     sigc::connection *_selection_changed_connection;
+    sigc::connection *_selection_modified_connection;
 
     MessageContext _context;
+
+    char *_when_selected;
+    char *_when_nothing;
 };
 
 }