2 Copyright (C) 2000 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <libgnomecanvasmm.h>
28 #include <libgnomecanvasmm/canvas.h>
29 #include <libgnomecanvasmm/item.h>
31 #include <pbd/error.h>
33 #include <gtkmm2ext/utils.h>
34 #include <gtkmm2ext/selector.h>
35 #include <gtkmm2ext/stop_signal.h>
37 #include <ardour/session.h>
38 #include <ardour/utils.h>
39 #include <ardour/ladspa_plugin.h>
40 #include <ardour/insert.h>
41 #include <ardour/location.h>
43 #include "ardour_ui.h"
44 #include "public_editor.h"
45 #include "time_axis_view.h"
46 #include "simplerect.h"
47 #include "selection.h"
49 #include "rgb_macros.h"
57 using namespace ARDOUR;
59 using namespace Editing;
60 using namespace ArdourCanvas;
62 const double trim_handle_size = 6.0; /* pixels */
64 uint32_t TimeAxisView::hLargest = 0;
65 uint32_t TimeAxisView::hLarge = 0;
66 uint32_t TimeAxisView::hLarger = 0;
67 uint32_t TimeAxisView::hNormal = 0;
68 uint32_t TimeAxisView::hSmaller = 0;
69 uint32_t TimeAxisView::hSmall = 0;
70 bool TimeAxisView::need_size_info = true;
72 TimeAxisView::TimeAxisView (ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* rent, Canvas& canvas)
78 compute_controls_size_info ();
79 need_size_info = false;
82 canvas_display = new Group (*canvas.root(), 0.0, 0.0);
84 selection_group = new Group (*canvas_display);
85 selection_group->hide();
90 _marked_for_display = false;
96 last_name_entry_key_press_event = 0;
97 name_packing = NamePackingBits (0);
100 Create the standard LHS Controls
101 We create the top-level container and name add the name label here,
102 subclasses can add to the layout as required
105 name_entry.set_name ("EditorTrackNameDisplay");
106 name_entry.signal_button_release_event().connect (mem_fun (*this, &TimeAxisView::name_entry_button_release));
107 name_entry.signal_button_press_event().connect (mem_fun (*this, &TimeAxisView::name_entry_button_press));
108 name_entry.signal_key_release_event().connect (mem_fun (*this, &TimeAxisView::name_entry_key_release));
109 name_entry.signal_activate().connect (mem_fun(*this, &TimeAxisView::name_entry_activated));
110 name_entry.signal_focus_in_event().connect (mem_fun (*this, &TimeAxisView::name_entry_focus_in));
111 name_entry.signal_focus_out_event().connect (mem_fun (*this, &TimeAxisView::name_entry_focus_out));
112 Gtkmm2ext::set_size_request_to_display_given_text (name_entry, N_("gTortnam"), 10, 10); // just represents a short name
114 name_label.set_name ("TrackLabel");
115 name_label.set_alignment (0.0, 0.5);
117 /* typically, either name_label OR name_entry are visible,
118 but not both. its up to derived classes to show/hide them as they
124 controls_table.set_border_width (2);
125 controls_table.set_row_spacings (0);
126 controls_table.set_col_spacings (0);
127 controls_table.set_homogeneous (true);
129 controls_table.attach (name_hbox, 0, 4, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
130 controls_table.show_all ();
131 controls_table.set_no_show_all ();
133 controls_vbox.pack_start (controls_table, false, false);
134 controls_vbox.show ();
136 controls_ebox.set_name ("TimeAxisViewControlsBaseUnselected");
137 controls_ebox.add (controls_vbox);
138 controls_ebox.add_events (BUTTON_PRESS_MASK|BUTTON_RELEASE_MASK|SCROLL_MASK);
139 controls_ebox.set_flags (CAN_FOCUS);
141 controls_ebox.signal_button_release_event().connect (mem_fun (*this, &TimeAxisView::controls_ebox_button_release));
142 controls_ebox.signal_scroll_event().connect (mem_fun (*this, &TimeAxisView::controls_ebox_scroll), true);
144 controls_lhs_pad.set_name ("TimeAxisViewControlsPadding");
145 controls_hbox.pack_start (controls_lhs_pad,false,false);
146 controls_hbox.pack_start (controls_ebox,true,true);
147 controls_hbox.show ();
149 controls_frame.add (controls_hbox);
150 controls_frame.set_name ("TimeAxisViewControlsBaseUnselected");
151 controls_frame.set_shadow_type (Gtk::SHADOW_OUT);
153 ColorChanged.connect (mem_fun (*this, &TimeAxisView::color_handler));
156 TimeAxisView::~TimeAxisView()
158 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
162 for (list<SelectionRect*>::iterator i = free_selection_rects.begin(); i != free_selection_rects.end(); ++i) {
164 delete (*i)->start_trim;
165 delete (*i)->end_trim;
169 for (list<SelectionRect*>::iterator i = used_selection_rects.begin(); i != used_selection_rects.end(); ++i) {
171 delete (*i)->start_trim;
172 delete (*i)->end_trim;
175 if (selection_group) {
176 delete selection_group;
180 if (canvas_display) {
181 delete canvas_display;
192 TimeAxisView::show_at (double y, int& nth, VBox *parent)
194 gdouble ix1, ix2, iy1, iy2;
195 effective_height = 0;
197 if (control_parent) {
198 control_parent->reorder_child (controls_frame, nth);
200 control_parent = parent;
201 parent->pack_start (controls_frame, false, false);
202 parent->reorder_child (controls_frame, nth);
204 controls_frame.show ();
205 controls_ebox.show ();
207 /* the coordinates used here are in the system of the
211 canvas_display->get_bounds (ix1, iy1, ix2, iy2);
212 Group* pg = canvas_display->property_parent();
219 canvas_display->move (0.0, y - iy1);
220 canvas_display->show();/* XXX not necessary */
225 effective_height = height;
227 /* now show children */
229 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
231 if ((*i)->marked_for_display()) {
232 (*i)->canvas_display->show();
235 if (canvas_item_visible ((*i)->canvas_display)) {
237 effective_height += (*i)->show_at (y + effective_height, nth, parent);
241 return effective_height;
245 TimeAxisView::controls_ebox_scroll (GdkEventScroll* ev)
247 switch (ev->direction) {
249 if (Keyboard::modifier_state_equals (ev->state, Keyboard::Shift)) {
255 case GDK_SCROLL_DOWN:
256 if (Keyboard::modifier_state_equals (ev->state, Keyboard::Shift)) {
263 /* no handling for left/right, yet */
271 TimeAxisView::controls_ebox_button_release (GdkEventButton* ev)
273 switch (ev->button) {
275 selection_click (ev);
279 popup_display_menu (ev->time);
287 TimeAxisView::selection_click (GdkEventButton* ev)
289 if (Keyboard::modifier_state_contains (ev->state, Keyboard::Shift)) {
291 if (editor.get_selection().selected (this)) {
292 editor.get_selection().remove (this);
294 editor.get_selection().add (this);
299 editor.get_selection().set (this);
304 TimeAxisView::hide ()
310 canvas_display->hide();
311 controls_frame.hide ();
313 if (control_parent) {
314 control_parent->remove (controls_frame);
321 /* now hide children */
323 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
331 TimeAxisView::step_height (bool bigger)
334 if (height == hLargest) {
335 if (!bigger) set_height (Large);
338 if (height == hLarge) {
339 if (bigger) set_height (Largest);
340 else set_height (Larger);
343 if (height == hLarger) {
344 if (bigger) set_height (Large);
345 else set_height (Normal);
348 if (height == hNormal) {
349 if (bigger) set_height (Larger);
350 else set_height (Smaller);
353 if (height == hSmaller) {
354 if (bigger) set_height (Normal);
355 else set_height (Small);
358 if (height == hSmall) {
359 if (bigger) set_height (Smaller);
365 TimeAxisView::set_height (TrackHeight h)
368 set_height_pixels (height_to_pixels (h));
372 TimeAxisView::set_height_pixels (uint32_t h)
375 controls_frame.set_size_request (-1, height);
377 if (canvas_item_visible (selection_group)) {
378 /* resize the selection rect */
379 show_selection (editor.get_selection().time);
384 TimeAxisView::name_entry_key_release (GdkEventKey* ev)
386 switch (ev->keyval) {
390 name_entry_changed ();
397 #ifdef TIMEOUT_NAME_EDIT
398 /* adapt the timeout to reflect the user's typing speed */
400 guint32 name_entry_timeout;
402 if (last_name_entry_key_press_event) {
403 /* timeout is 1/2 second or 5 times their current inter-char typing speed */
404 name_entry_timeout = std::max (500U, (5 * (ev->time - last_name_entry_key_press_event)));
406 /* start with a 1 second timeout */
407 name_entry_timeout = 1000;
410 last_name_entry_key_press_event = ev->time;
412 /* wait 1 seconds and if no more keys are pressed, act as if they pressed enter */
414 name_entry_key_timeout.disconnect();
415 name_entry_key_timeout = Glib::signal_timeout().connect (mem_fun (*this, &TimeAxisView::name_entry_key_timed_out), name_entry_timeout);
422 TimeAxisView::name_entry_focus_in (GdkEventFocus* ev)
424 name_entry.select_region (0, -1);
425 name_entry.set_name ("EditorActiveTrackNameDisplay");
430 TimeAxisView::name_entry_focus_out (GdkEventFocus* ev)
434 last_name_entry_key_press_event = 0;
435 name_entry_key_timeout.disconnect ();
436 name_entry.set_name ("EditorTrackNameDisplay");
438 /* do the real stuff */
440 name_entry_changed ();
446 TimeAxisView::name_entry_key_timed_out ()
448 name_entry_activated();
453 TimeAxisView::name_entry_activated ()
455 controls_ebox.grab_focus();
459 TimeAxisView::name_entry_changed ()
464 TimeAxisView::name_entry_button_press (GdkEventButton *ev)
466 if (ev->button == 3) {
473 TimeAxisView::name_entry_button_release (GdkEventButton *ev)
475 if (ev->button == 3) {
476 popup_display_menu (ev->time);
483 TimeAxisView::popup_display_menu (guint32 when)
485 if (display_menu == 0) {
486 build_display_menu ();
488 display_menu->popup (1, when);
492 TimeAxisView::size_click (GdkEventButton *ev)
494 popup_size_menu (ev->time);
499 TimeAxisView::popup_size_menu (guint32 when)
501 if (size_menu == 0) {
504 size_menu->popup (1, when);
508 TimeAxisView::set_selected (bool yn)
510 AxisView::set_selected (yn);
513 controls_ebox.set_name (controls_base_selected_name);
514 controls_frame.set_name (controls_base_selected_name);
516 /* propagate any existing selection, if the mode is right */
518 if (editor.current_mouse_mode() == Editing::MouseRange && !editor.get_selection().time.empty()) {
519 show_selection (editor.get_selection().time);
523 controls_ebox.set_name (controls_base_unselected_name);
524 controls_frame.set_name (controls_base_unselected_name);
528 /* children will be set for the yn=true case. but when deselecting
529 the editor only has a list of top-level trackviews, so we
530 have to do this here.
533 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
534 (*i)->set_selected (false);
542 TimeAxisView::build_size_menu ()
544 using namespace Menu_Helpers;
546 size_menu = new Menu;
547 size_menu->set_name ("ArdourContextMenu");
548 MenuList& items = size_menu->items();
550 items.push_back (MenuElem (_("Largest"), bind (mem_fun (*this, &TimeAxisView::set_height), Largest)));
551 items.push_back (MenuElem (_("Large"), bind (mem_fun (*this, &TimeAxisView::set_height), Large)));
552 items.push_back (MenuElem (_("Larger"), bind (mem_fun (*this, &TimeAxisView::set_height), Larger)));
553 items.push_back (MenuElem (_("Normal"), bind (mem_fun (*this, &TimeAxisView::set_height), Normal)));
554 items.push_back (MenuElem (_("Smaller"), bind (mem_fun (*this, &TimeAxisView::set_height),Smaller)));
555 items.push_back (MenuElem (_("Small"), bind (mem_fun (*this, &TimeAxisView::set_height), Small)));
559 TimeAxisView::build_display_menu ()
561 using namespace Menu_Helpers;
563 display_menu = new Menu;
564 display_menu->set_name ("ArdourContextMenu");
566 // Just let implementing classes define what goes into the manu
570 TimeAxisView::set_samples_per_unit (double spu)
572 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
573 (*i)->set_samples_per_unit (spu);
578 TimeAxisView::show_timestretch (nframes_t start, nframes_t end)
580 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
581 (*i)->show_timestretch (start, end);
586 TimeAxisView::hide_timestretch ()
588 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
589 (*i)->hide_timestretch ();
594 TimeAxisView::show_selection (TimeSelection& ts)
601 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
602 (*i)->show_selection (ts);
605 if (canvas_item_visible (selection_group)) {
606 while (!used_selection_rects.empty()) {
607 free_selection_rects.push_front (used_selection_rects.front());
608 used_selection_rects.pop_front();
609 free_selection_rects.front()->rect->hide();
610 free_selection_rects.front()->start_trim->hide();
611 free_selection_rects.front()->end_trim->hide();
613 selection_group->hide();
616 selection_group->show();
617 selection_group->raise_to_top();
619 for (list<AudioRange>::iterator i = ts.begin(); i != ts.end(); ++i) {
620 nframes_t start, end, cnt;
624 cnt = end - start + 1;
626 rect = get_selection_rect ((*i).id);
628 x1 = editor.frame_to_unit (start);
629 x2 = editor.frame_to_unit (start + cnt - 1);
632 rect->rect->property_x1() = x1;
633 rect->rect->property_y1() = 1.0;
634 rect->rect->property_x2() = x2;
635 rect->rect->property_y2() = y2;
637 // trim boxes are at the top for selections
640 rect->start_trim->property_x1() = x1;
641 rect->start_trim->property_y1() = 1.0;
642 rect->start_trim->property_x2() = x1 + trim_handle_size;
643 rect->start_trim->property_y2() = 1.0 + trim_handle_size;
645 rect->end_trim->property_x1() = x2 - trim_handle_size;
646 rect->end_trim->property_y1() = 1.0;
647 rect->end_trim->property_x2() = x2;
648 rect->end_trim->property_y2() = 1.0 + trim_handle_size;
650 rect->start_trim->show();
651 rect->end_trim->show();
653 rect->start_trim->hide();
654 rect->end_trim->hide();
658 used_selection_rects.push_back (rect);
663 TimeAxisView::reshow_selection (TimeSelection& ts)
667 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
668 (*i)->show_selection (ts);
673 TimeAxisView::hide_selection ()
675 if (canvas_item_visible (selection_group)) {
676 while (!used_selection_rects.empty()) {
677 free_selection_rects.push_front (used_selection_rects.front());
678 used_selection_rects.pop_front();
679 free_selection_rects.front()->rect->hide();
680 free_selection_rects.front()->start_trim->hide();
681 free_selection_rects.front()->end_trim->hide();
683 selection_group->hide();
686 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
687 (*i)->hide_selection ();
692 TimeAxisView::order_selection_trims (ArdourCanvas::Item *item, bool put_start_on_top)
694 /* find the selection rect this is for. we have the item corresponding to one
698 for (list<SelectionRect*>::iterator i = used_selection_rects.begin(); i != used_selection_rects.end(); ++i) {
699 if ((*i)->start_trim == item || (*i)->end_trim == item) {
701 /* make one trim handle be "above" the other so that if they overlap,
702 the top one is the one last used.
705 (*i)->rect->raise_to_top ();
706 (put_start_on_top ? (*i)->start_trim : (*i)->end_trim)->raise_to_top ();
707 (put_start_on_top ? (*i)->end_trim : (*i)->start_trim)->raise_to_top ();
715 TimeAxisView::get_selection_rect (uint32_t id)
719 /* check to see if we already have a visible rect for this particular selection ID */
721 for (list<SelectionRect*>::iterator i = used_selection_rects.begin(); i != used_selection_rects.end(); ++i) {
722 if ((*i)->id == id) {
727 /* ditto for the free rect list */
729 for (list<SelectionRect*>::iterator i = free_selection_rects.begin(); i != free_selection_rects.end(); ++i) {
730 if ((*i)->id == id) {
731 free_selection_rects.erase (i);
736 /* no existing matching rect, so go get a new one from the free list, or create one if there are none */
738 if (free_selection_rects.empty()) {
740 rect = new SelectionRect;
742 rect->rect = new SimpleRect (*selection_group);
743 rect->rect->property_x1() = 0.0;
744 rect->rect->property_y1() = 0.0;
745 rect->rect->property_x2() = 0.0;
746 rect->rect->property_y2() = 0.0;
747 rect->rect->property_fill_color_rgba() = color_map[cSelectionRectFill];
748 rect->rect->property_outline_color_rgba() = color_map[cSelectionRectOutline];
750 rect->start_trim = new SimpleRect (*selection_group);
751 rect->start_trim->property_x1() = 0.0;
752 rect->start_trim->property_x2() = 0.0;
753 rect->start_trim->property_fill_color_rgba() = color_map[cSelectionStartFill];
754 rect->start_trim->property_outline_color_rgba() = color_map[cSelectionStartOutline];
756 rect->end_trim = new SimpleRect (*selection_group);
757 rect->end_trim->property_x1() = 0.0;
758 rect->end_trim->property_x2() = 0.0;
759 rect->end_trim->property_fill_color_rgba() = color_map[cSelectionEndFill];
760 rect->end_trim->property_outline_color_rgba() = color_map[cSelectionEndOutline];
762 free_selection_rects.push_front (rect);
764 rect->rect->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_selection_rect_event), rect->rect, rect));
765 rect->start_trim->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_selection_start_trim_event), rect->rect, rect));
766 rect->end_trim->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_selection_end_trim_event), rect->rect, rect));
769 rect = free_selection_rects.front();
771 free_selection_rects.pop_front();
776 TimeAxisView::is_child (TimeAxisView* tav)
778 return find (children.begin(), children.end(), tav) != children.end();
782 TimeAxisView::add_child (TimeAxisView* child)
784 children.push_back (child);
788 TimeAxisView::remove_child (TimeAxisView* child)
790 vector<TimeAxisView*>::iterator i;
792 if ((i = find (children.begin(), children.end(), child)) != children.end()) {
798 TimeAxisView::get_selectables (nframes_t start, nframes_t end, double top, double bot, list<Selectable*>& result)
804 TimeAxisView::get_inverted_selectables (Selection& sel, list<Selectable*>& result)
810 TimeAxisView::touched (double top, double bot)
812 /* remember: this is X Window - coordinate space starts in upper left and moves down.
813 y_position is the "origin" or "top" of the track.
816 double mybot = y_position + height; // XXX need to include Editor::track_spacing;
818 return ((y_position <= bot && y_position >= top) ||
819 ((mybot <= bot) && (top < mybot)) ||
820 (mybot >= bot && y_position < top));
824 TimeAxisView::set_parent (TimeAxisView& p)
830 TimeAxisView::has_state () const
836 TimeAxisView::get_parent_with_state ()
842 if (parent->has_state()) {
846 return parent->get_parent_with_state ();
850 TimeAxisView::set_state (const XMLNode& node)
852 const XMLProperty *prop;
854 if ((prop = node.property ("track_height")) != 0) {
856 if (prop->value() == "largest") {
857 set_height (Largest);
858 } else if (prop->value() == "large") {
860 } else if (prop->value() == "larger") {
862 } else if (prop->value() == "normal") {
864 } else if (prop->value() == "smaller") {
865 set_height (Smaller);
866 } else if (prop->value() == "small") {
869 error << string_compose(_("unknown track height name \"%1\" in XML GUI information"), prop->value()) << endmsg;
879 TimeAxisView::reset_height()
881 set_height_pixels (height);
883 for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
884 (*i)->set_height_pixels ((TrackHeight)(*i)->height);
889 TimeAxisView::height_to_pixels (TrackHeight h)
906 // what is wrong with gcc ?
912 TimeAxisView::compute_controls_size_info ()
914 Gtk::Window window (Gtk::WINDOW_TOPLEVEL);
915 Gtk::Table two_row_table (2, 8);
916 Gtk::Table one_row_table (1, 8);
918 const int border_width = 2;
919 const int extra_height = (2 * border_width) + 2; // 2 pixels for the controls frame
921 window.add (one_row_table);
923 one_row_table.set_border_width (border_width);
924 one_row_table.set_row_spacings (0);
925 one_row_table.set_col_spacings (0);
926 one_row_table.set_homogeneous (true);
928 two_row_table.set_border_width (border_width);
929 two_row_table.set_row_spacings (0);
930 two_row_table.set_col_spacings (0);
931 two_row_table.set_homogeneous (true);
933 for (int i = 0; i < 5; ++i) {
934 buttons[i] = manage (new Button (X_("f")));
935 buttons[i]->set_name ("TrackMuteButton");
938 Gtk::Requisition req;
940 one_row_table.attach (*buttons[0], 6, 7, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
942 one_row_table.show_all ();
943 one_row_table.size_request (req);
946 // height required to show 1 row of buttons
948 hSmaller = req.height + extra_height;
951 window.add (two_row_table);
953 two_row_table.attach (*buttons[1], 5, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
954 two_row_table.attach (*buttons[2], 6, 7, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
955 two_row_table.attach (*buttons[3], 7, 8, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
956 two_row_table.attach (*buttons[4], 8, 9, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 0, 0);
958 two_row_table.show_all ();
959 two_row_table.size_request (req);
961 // height required to show all normal buttons
963 hNormal = req.height + extra_height;
965 // these heights are all just larger than normal. no more
966 // elements are visible (yet).
968 hLarger = hNormal + 50;
969 hLarge = hNormal + 150;
970 hLargest = hNormal + 250;
972 // height required to show track name
978 TimeAxisView::show_name_label ()
980 if (!(name_packing & NameLabelPacked)) {
981 name_hbox.pack_start (name_label, true, true);
982 name_packing = NamePackingBits (name_packing | NameLabelPacked);
989 TimeAxisView::show_name_entry ()
991 if (!(name_packing & NameEntryPacked)) {
992 name_hbox.pack_start (name_entry, true, true);
993 name_packing = NamePackingBits (name_packing | NameEntryPacked);
1000 TimeAxisView::hide_name_label ()
1002 if (name_packing & NameLabelPacked) {
1003 name_hbox.remove (name_label);
1004 name_packing = NamePackingBits (name_packing & ~NameLabelPacked);
1009 TimeAxisView::hide_name_entry ()
1011 if (name_packing & NameEntryPacked) {
1012 name_hbox.remove (name_entry);
1013 name_packing = NamePackingBits (name_packing & ~NameEntryPacked);
1018 TimeAxisView::color_handler (ColorID id, uint32_t val)
1021 case cSelectionRectFill:
1023 case cSelectionRectOutline:
1025 case cSelectionStartFill:
1027 case cSelectionStartOutline:
1029 case cSelectionEndFill:
1031 case cSelectionEndOutline: