mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-21 07:10:14 +01:00
Reloaded : Add Kf Anim toggle button in curve panel
When key framing an fx parameter, it's a bad user experience to have to (open and) go to the fx chain panel to active the animation. I had chosen to duplicate the toogle button to the curve (in place of just move it from fx chain), because it's relevant to me to have this functionnaly near the fx chain. (i'm also thinking to change the chain toogle by modifier+click on chain bulbs someday for both fx activation state and fx kf anim status)
This commit is contained in:
@@ -2740,7 +2740,7 @@ void curve_toggleentry_toggled( GtkWidget *widget, gpointer user_data)
|
||||
return;
|
||||
}
|
||||
|
||||
int k = is_button_toggled( "curve_toggleentry" );
|
||||
int k = is_button_toggled( "curve_chain_toggleentry" );
|
||||
int type = 0;
|
||||
if( is_button_toggled("curve_typespline")) {
|
||||
type = 1;
|
||||
@@ -2755,6 +2755,29 @@ void curve_toggleentry_toggled( GtkWidget *widget, gpointer user_data)
|
||||
info->uc.reload_hint[HINT_ENTRY] = 1;
|
||||
}
|
||||
|
||||
|
||||
void curve_chain_toggleentry_toggled( GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
curve_toggleentry_toggled( widget, user_data);
|
||||
|
||||
GtkWidget *siamese = glade_xml_get_widget_( info->main_window, "curve_panel_toggleentry");
|
||||
if(siamese) {
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(siamese),
|
||||
gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) )) ;
|
||||
}
|
||||
}
|
||||
|
||||
void curve_panel_toggleentry_toggled( GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
curve_toggleentry_toggled( widget, user_data);
|
||||
|
||||
GtkWidget *siamese = glade_xml_get_widget_( info->main_window, "curve_chain_toggleentry");
|
||||
if(siamese) {
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(siamese),
|
||||
gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) )) ;
|
||||
}
|
||||
}
|
||||
|
||||
void on_kf_none_toggled( GtkWidget widget, gpointer user_data)
|
||||
{
|
||||
info->uc.selected_parameter_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user