mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
[Summary] Added mtc indicator
[Reviewed] GZharun
This commit is contained in:
parent
c2b6d88c39
commit
95b86fdf56
5 changed files with 39 additions and 1 deletions
|
|
@ -253,6 +253,8 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
|||
void on_timecode_source_dropdown_item_clicked (WavesDropdown*, int);
|
||||
void populate_timecode_source_dropdown ();
|
||||
void update_timecode_source_dropdown_items ();
|
||||
void set_mtc_indicator_active (bool set_active);
|
||||
void hide_mtc_indicator ();
|
||||
|
||||
void update_bit_depth_button ();
|
||||
void update_sample_rate_dropdown ();
|
||||
|
|
@ -786,6 +788,9 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
|||
Gtk::Label* _dsp_load_label;
|
||||
Gtk::Label* _hd_load_label;
|
||||
Gtk::Label* _hd_remained_time_label;
|
||||
|
||||
Gtk::Image* _mtc_idle_icon;
|
||||
Gtk::Image* _mtc_sync_icon;
|
||||
|
||||
/** A ProcessThread so that we have some thread-local buffers for use by
|
||||
* PluginEqGui::impulse_analysis ().
|
||||
|
|
|
|||
|
|
@ -92,7 +92,9 @@ ARDOUR_UI::create_editor ()
|
|||
_sample_rate_dropdown = &editor->get_waves_dropdown("sample_rate_dropdown");
|
||||
_display_format_dropdown = &editor->get_waves_dropdown("display_format_dropdown");
|
||||
_timecode_source_dropdown = &editor->get_waves_dropdown("timecode_selector_dropdown");
|
||||
|
||||
_mtc_idle_icon = &editor->get_image("mtc_idle_icon");
|
||||
_mtc_sync_icon = &editor->get_image("mtc_sync_icon");
|
||||
|
||||
_tracks_button = &editor->get_waves_button("tracks_button");
|
||||
}
|
||||
|
||||
|
|
@ -204,6 +206,20 @@ ARDOUR_UI::update_timecode_source_dropdown_items()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::set_mtc_indicator_active (bool set_active)
|
||||
{
|
||||
_mtc_sync_icon->set_visible (set_active);
|
||||
_mtc_idle_icon->set_visible (!set_active);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::hide_mtc_indicator ()
|
||||
{
|
||||
_mtc_sync_icon->set_visible (false);
|
||||
_mtc_idle_icon->set_visible (false);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::on_display_format_dropdown_item_clicked (WavesDropdown* dropdown, int el_number)
|
||||
{
|
||||
|
|
|
|||
BIN
gtk2_ardour/icons/mtc_idle.png
Normal file
BIN
gtk2_ardour/icons/mtc_idle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
gtk2_ardour/icons/mtc_sync.png
Normal file
BIN
gtk2_ardour/icons/mtc_sync.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
|
|
@ -140,6 +140,23 @@
|
|||
box.expand="true">
|
||||
<HBox>
|
||||
<icon source="infobar_left.png"/>
|
||||
<Layout width="80">
|
||||
<icon source="infobar_center.png"
|
||||
box.fill="true"
|
||||
box.expand="false"/>
|
||||
<icon id="mtc_idle_icon"
|
||||
source="mtc_idle.png"
|
||||
x="3"
|
||||
y="4"
|
||||
visible="false"
|
||||
noshowall="true"/>
|
||||
<icon id="mtc_sync_icon"
|
||||
source="mtc_sync.png"
|
||||
x="3"
|
||||
y="4"
|
||||
visible="false"
|
||||
noshowall="true"/>
|
||||
</Layout>
|
||||
<icon source="infobar_center.png"
|
||||
box.fill="true"
|
||||
box.expand="true"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue