From: dooglus Date: Wed, 31 Oct 2007 12:27:11 +0000 (+0000) Subject: Add a 'Type' column to the parameter dialog so it's possible to tell an 'Add' from... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0775390967acc868a87002bd747f3a4846a26cfb;p=synfig.git Add a 'Type' column to the parameter dialog so it's possible to tell an 'Add' from a 'Subtract' convert for example. git-svn-id: http://svn.voria.com/code@1092 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/layertree.cpp b/synfig-studio/trunk/src/gtkmm/layertree.cpp index 70fd8be..82387b2 100644 --- a/synfig-studio/trunk/src/gtkmm/layertree.cpp +++ b/synfig-studio/trunk/src/gtkmm/layertree.cpp @@ -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;