vloopback start/stop in preferences window, #47

This commit is contained in:
niels
2015-11-15 20:23:09 +01:00
parent cc5431dc65
commit 7346535da7
2 changed files with 131 additions and 66 deletions

View File

@@ -10490,7 +10490,6 @@ YUV (current)</property>
<child> <child>
<widget class="GtkCheckButton" id="loglinear"> <widget class="GtkCheckButton" id="loglinear">
<property name="label" translatable="yes">Log</property> <property name="label" translatable="yes">Log</property>
<property name="visible">False</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="tooltip" translatable="yes">Toggle logarithmic scale</property> <property name="tooltip" translatable="yes">Toggle logarithmic scale</property>
@@ -12689,6 +12688,24 @@ YUV (current)</property>
<child> <child>
<placeholder/> <placeholder/>
</child> </child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child> <child>
<widget class="GtkButton" id="inputstream_close"> <widget class="GtkButton" id="inputstream_close">
<property name="visible">True</property> <property name="visible">True</property>
@@ -13449,71 +13466,7 @@ YUV (current)</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child> <child>
<widget class="GtkFrame" id="frame260"> <placeholder/>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<child>
<widget class="GtkAlignment" id="alignment481">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkHBox" id="hbox832">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">1</property>
<child>
<widget class="GtkCheckButton" id="record_vp">
<property name="label" translatable="yes">Record video from Viewport</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="clicked" handler="on_record_vp_clicked" />
</widget>
<packing>
<property name="expand">True</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="setup_viewport">
<property name="label" translatable="yes">Configure Viewport</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label870">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Viewport settings&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="padding">2</property>
<property name="position">0</property>
</packing>
</child> </child>
<child> <child>
<widget class="GtkFrame" id="frame225"> <widget class="GtkFrame" id="frame225">
@@ -13858,6 +13811,109 @@ YUV (current)</property>
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child>
<widget class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="n_columns">4</property>
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">vloopback output device</property>
</widget>
</child>
<child>
<widget class="GtkSpinButton" id="spin_vloop">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="primary_icon_sensitive">True</property>
<property name="secondary_icon_sensitive">True</property>
<property name="adjustment">0 0 16 1 10 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="button_vloop_stop">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip" translatable="yes">Disable vloopback output video</property>
<signal name="clicked" handler="on_button_vloop_stop_clicked" />
<child>
<widget class="GtkImage" id="image2328">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">icon_disconnect.png</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="button_vloop_start">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip" translatable="yes">Enable vloopback output video</property>
<signal name="clicked" handler="on_button_vloop_start_clicked" />
<child>
<widget class="GtkImage" id="image112">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">icon_connect.png</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="framevloop">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Video loopback settings&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</widget> </widget>
<packing> <packing>
<property name="expand">True</property> <property name="expand">True</property>

View File

@@ -4162,4 +4162,13 @@ void on_alphacomposite_toggled(GtkWidget *widget, gpointer user_data)
multi_vims( VIMS_ALPHA_COMPOSITE,"%d", is_button_toggled( "alphacomposite" )); multi_vims( VIMS_ALPHA_COMPOSITE,"%d", is_button_toggled( "alphacomposite" ));
} }
void on_button_vloop_stop_clicked(GtkWidget *widget, gpointer user_data)
{
single_vims( VIMS_VLOOPBACK_STOP );
}
void on_button_vloop_start_clicked(GtkWidget *widget, gpointer user_data)
{
multi_vims( VIMS_VLOOPBACK_START, "%d", get_nums( "spin_vloop" ) );
}