Add a 'Type' column to the parameter dialog so it's possible to tell an 'Add' from...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 31 Oct 2007 12:27:11 +0000 (12:27 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 31 Oct 2007 12:27:11 +0000 (12:27 +0000)
git-svn-id: http://svn.voria.com/code@1092 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/layertree.cpp

index 70fd8be..82387b2 100644 (file)
@@ -356,6 +356,18 @@ LayerTree::create_param_tree()
                column->set_reorderable();
                column->set_resizable();
        }
+       {       // --- T Y P E --------------------------------------------------------
+               const CanvasTreeStore::Model model;
+               int cols_count = get_param_tree_view().append_column(_("Type"),model.type);
+               Gtk::TreeViewColumn* column = get_param_tree_view().get_column(cols_count-1);
+               if(column)
+               {
+                       column->set_reorderable();
+                       column->set_resizable();
+                       column->set_clickable();
+                       column->set_sort_column_id(model.type);
+               }
+       }
        /*{     // --- T I M E   T R A C K --------------------------------------------
                Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column(_("Time Track")) );
                column_time_track=column;