-
- hSmaller = req.height + extra_height;
-
- window.remove ();
- window.add (two_row_table);
-
- two_row_table.attach (*buttons[1], 5, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
- two_row_table.attach (*buttons[2], 6, 7, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
- two_row_table.attach (*buttons[3], 7, 8, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
- two_row_table.attach (*buttons[4], 8, 9, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
-
- two_row_table.show_all ();
- req = two_row_table.size_request ();
-
- // height required to show all normal buttons
-
- hNormal = /*req.height*/ 48 + extra_height;
-
- // these heights are all just larger than normal. no more
- // elements are visible (yet).
-
- hLarger = hNormal + 50;
- hLarge = hNormal + 150;
- hLargest = hNormal + 250;
-
- // height required to show track name
-
- hSmall = 27;
-}
-
-void
-TimeAxisView::show_name_label ()
-{
- if (!(name_packing & NameLabelPacked)) {
- name_hbox.pack_start (name_label, true, true);
- name_packing = NamePackingBits (name_packing | NameLabelPacked);
- name_hbox.show ();
- name_label.show ();
- }
-}
-
-void
-TimeAxisView::show_name_entry ()
-{
- if (!(name_packing & NameEntryPacked)) {
- name_hbox.pack_start (name_entry, true, true);
- name_packing = NamePackingBits (name_packing | NameEntryPacked);
- name_hbox.show ();
- name_entry.show ();
- }
-}
-
-void
-TimeAxisView::hide_name_label ()
-{
- if (name_packing & NameLabelPacked) {
- name_hbox.remove (name_label);
- name_packing = NamePackingBits (name_packing & ~NameLabelPacked);
- }
-}
-
-void
-TimeAxisView::hide_name_entry ()
-{
- if (name_packing & NameEntryPacked) {
- name_hbox.remove (name_entry);
- name_packing = NamePackingBits (name_packing & ~NameEntryPacked);
- }