46extern G_MODULE_EXPORT
void window_spinner (GtkWidget * widg, gpointer data);
47extern G_MODULE_EXPORT
void window_recorder (GtkWidget * widg, gpointer data);
48extern G_MODULE_EXPORT
void window_sequencer (GtkWidget * widg, gpointer data);
62 GtkWidget * menua = gtk_menu_new ();
63 gtk_menu_item_set_submenu ((GtkMenuItem *)menuanim, menua);
66 view -> ogl_anim[0] =
gtk3_menu_item (menua,
"Spin",
IMG_STOCK, (gpointer)
MEDIA_LOOP, G_CALLBACK(
window_spinner), (gpointer)view, FALSE, 0, 0, FALSE, FALSE, FALSE);
70 gtk3_menu_item (menua,
"Spin",
IMG_STOCK, (gpointer)
MEDIA_LOOP, G_CALLBACK(
window_spinner), (gpointer)view, FALSE, 0, 0, FALSE, FALSE, FALSE);
72 GtkWidget * item =
gtk3_menu_item (menua,
"Sequencer",
IMG_STOCK, (gpointer)
MEDIA_PLAY, G_CALLBACK(
window_sequencer), (gpointer)view, FALSE, 0, 0, FALSE, FALSE, FALSE);
79 view -> ogl_anim[1] =
gtk3_menu_item (menua,
"Recorder",
IMG_STOCK, (gpointer)
RECORD, G_CALLBACK(
window_recorder), (gpointer)view, TRUE, GDK_KEY_r, GDK_CONTROL_MASK, FALSE, FALSE, FALSE);
83 gtk3_menu_item (menua,
"Recorder",
IMG_STOCK, (gpointer)
RECORD, G_CALLBACK(
window_recorder), (gpointer)view, TRUE, GDK_KEY_r, GDK_CONTROL_MASK, FALSE, FALSE, FALSE);
98G_MODULE_EXPORT
void to_spin (GSimpleAction *
action, GVariant * parameter, gpointer data)
112G_MODULE_EXPORT
void to_seq (GSimpleAction *
action, GVariant * parameter, gpointer data)
126G_MODULE_EXPORT
void to_rec (GSimpleAction *
action, GVariant * parameter, gpointer data)
141 GMenu * menu = g_menu_new ();
142 append_opengl_item (view, menu,
"Spin",
"spin", popm, popm, NULL,
IMG_STOCK, (gpointer)
MEDIA_LOOP, FALSE, G_CALLBACK(
to_spin), (gpointer)view, FALSE, FALSE, FALSE, TRUE);
143 append_opengl_item (view, menu,
"Sequencer",
"seq", popm, popm, NULL,
IMG_STOCK, (gpointer)
MEDIA_PLAY, FALSE, G_CALLBACK(
to_seq), (gpointer)view, FALSE, FALSE, FALSE, TRUE);
144 append_opengl_item (view, menu,
"Recorder",
"rec", popm, popm,
"<CTRL>R",
IMG_STOCK, (gpointer)
RECORD, FALSE, G_CALLBACK(
to_rec), (gpointer)view, FALSE, FALSE, FALSE, TRUE);
Global variable declarations Global convenience function declarations Global data structure defin...
GtkWidget * gtk3_menu_item(GtkWidget *menu, gchar *name, int icon_format, gpointer item_icon, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod, gboolean check, gboolean radio, gboolean status)
void widget_set_sensitive(GtkWidget *widg, gboolean sensitive)
Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.
GtkWidget * create_menu_item(gboolean add_mnemo, gchar *action)
project * get_project_by_id(int p)
get project pointer using id number
Function declarations for the creation of the OpenGL window.
void append_opengl_item(glwin *view, GMenu *menu, const gchar *name, gchar *key, int mpop, int item_id, gchar *accel, int image_format, gpointer icon, gboolean custom, GCallback handler, gpointer data, gboolean check, gboolean status, gboolean radio, gboolean sensitive)
G_MODULE_EXPORT void window_spinner(GtkWidget *widg, gpointer data)
create the spin window callback
G_MODULE_EXPORT void to_rec(GSimpleAction *action, GVariant *parameter, gpointer data)
handle the recorder window creation signal
G_MODULE_EXPORT void to_spin(GSimpleAction *action, GVariant *parameter, gpointer data)
handle the spinner window creation signal
G_MODULE_EXPORT void window_recorder(GtkWidget *widg, gpointer data)
create video recorder window
GMenu * menu_anim(glwin *view, int popm)
create the 'Animate' submenu elements
G_MODULE_EXPORT void to_seq(GSimpleAction *action, GVariant *parameter, gpointer data)
handle the sequencer window creation signal
G_MODULE_EXPORT void window_sequencer(GtkWidget *widg, gpointer data)
create the sequencer window