Added button for follow chain fade

git-svn-id: svn://code.dyne.org/veejay/trunk@1371 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2010-02-02 20:54:15 +00:00
parent 13c522b44e
commit d3d05a9d55
4 changed files with 68 additions and 2 deletions

View File

@@ -15139,6 +15139,36 @@ YUV (current)</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="fx_followfade">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Switch to sample #B after completing fade.</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_HALF</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_fx_followfade_toggled" last_modification_time="Tue, 02 Feb 2010 20:48:43 GMT"/>
<child>
<widget class="GtkImage" id="image3508">
<property name="visible">True</property>
<property name="pixbuf">icon_follow.png</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>

View File

@@ -3629,7 +3629,7 @@
<property name="visible">True</property>
<property name="label" translatable="yes">_learn MIDI</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="active">False</property>
<signal name="activate" handler="on_midilearn_toggled" last_modification_time="Sat, 07 Apr 2007 17:55:42 GMT"/>
</widget>
</child>
@@ -3639,7 +3639,7 @@
<property name="visible">True</property>
<property name="label" translatable="yes">_MIDI enable</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="active">False</property>
<property name="group">midilearn</property>
<signal name="activate" handler="on_midievent_toggled" last_modification_time="Sat, 07 Apr 2007 17:55:29 GMT"/>
</widget>
@@ -15139,6 +15139,36 @@ YUV (current)</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="fx_followfade">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Switch to sample #B after completing fade.</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_HALF</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_fx_followfade_toggled" last_modification_time="Tue, 02 Feb 2010 20:48:43 GMT"/>
<child>
<widget class="GtkImage" id="image3508">
<property name="visible">True</property>
<property name="pixbuf">icon_follow.png</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

View File

@@ -130,6 +130,12 @@ void on_button_001_clicked(GtkWidget *widget, gpointer user_data)
vj_midi_learning_vims_simple( info->midi, NULL, VIMS_SET_PLAIN_MODE );
}
void on_fx_followfade_toggled( GtkWidget *widget, gpointer data )
{
int val = is_button_toggled( "fx_followfade" ) ? 1:0;
multi_vims( VIMS_CHAIN_FOLLOW_FADE,"%d", val );
}
void on_button_252_clicked( GtkWidget *widget, gpointer user_data)
{
single_vims( VIMS_DEBUG_LEVEL );