gladish: Studio status visualization
This commit is contained in:
parent
c9c349ae8c
commit
31d0aa9d0f
|
@ -389,7 +389,7 @@
|
|||
<widget class="GtkComboBoxEntry" id="buffer_size_combo">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="tooltip" translatable="yes">Jack latency</property>
|
||||
<property name="tooltip" translatable="yes">JACK latency</property>
|
||||
<property name="border_width">1</property>
|
||||
<property name="items" translatable="yes">32 frames
|
||||
64 frames
|
||||
|
@ -477,7 +477,7 @@
|
|||
|
||||
The bar represents the percentage of available time used for audio processing (i.e. the DSP load). If the bar reaches 100%, a dropout will occur.</property>
|
||||
<property name="pulse_step">0.10000000149</property>
|
||||
<property name="text" translatable="yes">? Dropouts</property>
|
||||
<property name="text" translatable="yes">Stopped</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
@ -499,7 +499,7 @@ The bar represents the percentage of available time used for audio processing (i
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkToolItem" id="toolitem_a2j">
|
||||
<widget class="GtkToolItem" id="toolitem_studio">
|
||||
<property name="visible">True</property>
|
||||
<property name="border_width">1</property>
|
||||
<child>
|
||||
|
@ -508,11 +508,11 @@ The bar represents the percentage of available time used for audio processing (i
|
|||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="resize_mode">GTK_RESIZE_QUEUE</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="main_a2j_status_label">
|
||||
<widget class="GtkLabel" id="studio_status_label">
|
||||
<property name="width_request">150</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">A2J status?</property>
|
||||
<property name="label" translatable="yes">No studio loaded</property>
|
||||
<property name="use_markup">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
@ -534,16 +534,6 @@ The bar represents the percentage of available time used for audio processing (i
|
|||
<property name="homogeneous">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkSeparatorToolItem" id="toolbutton2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkToolButton" id="zoom_normal_but">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
@ -60,6 +60,7 @@ GtkWidget * g_menu_item_load_project;
|
|||
GtkWidget * g_menu_item_start_app;
|
||||
GtkWidget * g_menu_item_daemon_exit;
|
||||
GtkWidget * g_menu_item_jack_configure;
|
||||
GtkWidget * g_studio_status_label;
|
||||
|
||||
GtkWidget * g_name_dialog;
|
||||
|
||||
|
@ -471,6 +472,8 @@ void control_proxy_on_studio_appeared(void)
|
|||
gtk_widget_set_sensitive(g_menu_item_load_project, true);
|
||||
gtk_widget_set_sensitive(g_menu_item_start_app, true);
|
||||
|
||||
gtk_label_set_text(GTK_LABEL(g_studio_status_label), name);
|
||||
|
||||
free_name:
|
||||
free(name);
|
||||
|
||||
|
@ -496,6 +499,8 @@ void control_proxy_on_studio_disappeared(void)
|
|||
gtk_widget_set_sensitive(g_menu_item_load_project, false);
|
||||
gtk_widget_set_sensitive(g_menu_item_start_app, false);
|
||||
|
||||
gtk_label_set_text(GTK_LABEL(g_studio_status_label), "No studio loaded");
|
||||
|
||||
if (g_studio_view != NULL)
|
||||
{
|
||||
destroy_view(g_studio_view);
|
||||
|
@ -531,6 +536,7 @@ void jack_stopped(void)
|
|||
buffer_size_clear();
|
||||
gtk_widget_set_sensitive(g_clear_load_button, false);
|
||||
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(g_xrun_progress_bar), 0.0);
|
||||
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(g_xrun_progress_bar), "Stopped");
|
||||
}
|
||||
|
||||
void jack_appeared(void)
|
||||
|
@ -611,6 +617,7 @@ int main(int argc, char** argv)
|
|||
g_menu_item_start_app = get_glade_widget("menu_item_start_app");
|
||||
g_menu_item_daemon_exit = get_glade_widget("menu_item_daemon_exit");
|
||||
g_menu_item_jack_configure = get_glade_widget("menu_item_jack_configure");
|
||||
g_studio_status_label = get_glade_widget("studio_status_label");
|
||||
|
||||
g_name_dialog = get_glade_widget("name_dialog");
|
||||
|
||||
|
|
Loading…
Reference in New Issue