WIP: suite lecture + mises en forme (arrays) perso; qui fait quoi ? (include/ui.h)
This commit is contained in:
parent
b8e70e8231
commit
14b326435b
71
include/ui.h
71
include/ui.h
|
@ -56,61 +56,25 @@ G_DECLARE_FINAL_TYPE (GemGraphClientApplication,
|
|||
|
||||
GemGraphClientApplication *gem_graph_client_application_new(const char *application_id,
|
||||
GApplicationFlags flags);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
void ui_enable_action (const char *name);
|
||||
|
||||
void ui_disable_action (const char *name);
|
||||
|
||||
//
|
||||
// Actions
|
||||
//
|
||||
void on_about_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_quit_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_preferences_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_togglesidebar_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_editmode_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_runmode_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_presentmode_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_openfile_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_closefile_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_savefile_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_toast_close_action(GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
void on_about_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_quit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_preferences_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_togglesidebar_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_editmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_runmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_presentmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_openfile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_closefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_savefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
void on_toast_close_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
||||
|
||||
static const GActionEntry app_actions[] = {
|
||||
{ "quit", on_quit_action, NULL, NULL, NULL },
|
||||
|
@ -126,9 +90,8 @@ static const GActionEntry app_actions[] = {
|
|||
{ "toastclose", on_toast_close_action, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
//
|
||||
// Actions responses
|
||||
//
|
||||
|
||||
void on_openfile_response(GtkNativeDialog *native,
|
||||
int response,
|
||||
GemGraphClientWindow *self);
|
||||
|
@ -137,27 +100,19 @@ void on_openfile_response_complete(GObject *source_object,
|
|||
GAsyncResult *result,
|
||||
GemGraphClientWindow *self);
|
||||
|
||||
//
|
||||
// General events
|
||||
//
|
||||
|
||||
void on_axis_value_change (GtkAdjustment *adjustment, gpointer data);
|
||||
|
||||
gboolean on_render (GtkGLArea * area, GdkGLContext * context);
|
||||
|
||||
void on_realize (GtkWidget *widget);
|
||||
|
||||
void on_unrealize (GtkWidget *widget);
|
||||
|
||||
void on_close_window (GtkWidget *widget);
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
//
|
||||
// Window primitives
|
||||
//
|
||||
|
||||
void ui_set_stack (const char *mode);
|
||||
|
||||
void ui_setup_glarea (GtkGLArea *target, GtkBox *target_controls);
|
||||
void ui_send_internal_notification (const char *message);
|
||||
void ui_close_internal_notification (void);
|
||||
|
|
Loading…
Reference in New Issue