Code

Add a zoom correction option to preferences (used when zooming to 1:1 etc. to display...
[inkscape.git] / src / ui / dialog / livepatheffect-editor.h
index 49b25d6077a9b61af9d138b6f8720567315340ee..a924ed6e9507d9fe01d5aedc306d7bd1acdebc09 100644 (file)
@@ -55,9 +55,10 @@ private:
 
     void showParams(LivePathEffect::Effect* effect);
     void showText(Glib::ustring const &str);
+    void selectInList(LivePathEffect::Effect* effect);
 
    // void add_entry(const char* name );
-    void effect_list_update(SPLPEItem *lpeitem);
+    void effect_list_reload(SPLPEItem *lpeitem);
 
     // callback methods for buttons on grids page.
     void onApply();
@@ -68,16 +69,21 @@ private:
 
     class ModelColumns : public Gtk::TreeModel::ColumnRecord
     {
-         public:
-         ModelColumns()
-         {
+      public:
+        ModelColumns()
+        {
             add(col_name);
             add(lperef);
-         }
+            add(col_visible);
+        }
+        virtual ~ModelColumns() {}
 
-         Gtk::TreeModelColumn<Glib::ustring> col_name;
-         Gtk::TreeModelColumn<LivePathEffect::LPEObjectReference *> lperef;
-     };
+        Gtk::TreeModelColumn<Glib::ustring> col_name;
+        Gtk::TreeModelColumn<LivePathEffect::LPEObjectReference *> lperef;
+        Gtk::TreeModelColumn<bool> col_visible;
+    };
+
+    bool lpe_list_locked;
 
     Inkscape::UI::Widget::ComboBoxEnum<LivePathEffect::EffectType> combo_effecttype;
     
@@ -95,7 +101,9 @@ private:
     Gtk::TreeView effectlist_view;
     Glib::RefPtr<Gtk::ListStore> effectlist_store;
     Glib::RefPtr<Gtk::TreeSelection> effectlist_selection;
-    
+
+    void on_visibility_toggled( Glib::ustring const& str );
+
     Gtk::Toolbar toolbar;
     Gtk::ToolButton button_up;
     Gtk::ToolButton button_down;