Enchancement / "Sequencer Clear All"

* Button in ui (on_button_seq_clearall) right to activate sequencer checkbox
* Callback clear entire grid (VIMS_SEQUENCE_DEL)
* sequencer col and row has #define
* new vj_gui_t struct members :  sequencer_col & sequencer_row
This commit is contained in:
[d.j.a.y] Jerome Blanchi
2016-07-31 17:42:27 +02:00
parent f27ddfb27e
commit 31ac585ca3
3 changed files with 53 additions and 1 deletions

View File

@@ -1412,6 +1412,18 @@ g_return_val_if_fail( GTK_IS_LIST_STORE(_model),NULL);
#define gtk_combo_box_get_active_text( combo ) my_gtk_combo_box_get_active_text(combo)
#endif
void on_button_seq_clearall_clicked( GtkWidget *w, gpointer data )
{
int slot;
for (slot = 0; slot < info->sequencer_col * info->sequencer_row ; slot++)
{
multi_vims( VIMS_SEQUENCE_DEL, "%d", slot );
gtk_label_set_text(GTK_LABEL(info->sequencer_view->gui_slot[slot]->image),
NULL );
}
vj_msg(VEEJAY_MSG_INFO, "Sequencer cleared");
}
void on_seq_rec_stop_clicked( GtkWidget *w, gpointer data )
{
single_vims( VIMS_SAMPLE_REC_STOP );