This repository has been archived on 2020-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
gnoemoe/gnoemoe/widgets/gm-app-view.h

79 lines
2.7 KiB
C

#ifndef __GM_APP_VIEW_H__
#define __GM_APP_VIEW_H__
#include <gtk/gtk.h>
#include <glib.h>
#include <glade/glade.h>
#include "../gm-world.h"
#include "../gm-app.h"
G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define GM_TYPE_APP_VIEW (gm_app_view_get_type())
#define GM_APP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_APP_VIEW, GmAppView))
#define GM_APP_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_APP_VIEW, GmAppView const))
#define GM_APP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_APP_VIEW, GmAppViewClass))
#define GM_IS_APP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_APP_VIEW))
#define GM_IS_APP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_APP_VIEW))
#define GM_APP_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_APP_VIEW, GmAppViewClass))
/* Private structure type */
typedef struct _GmAppViewPrivate GmAppViewPrivate;
/*
* Main object structure
*/
typedef struct _GmAppView GmAppView;
struct _GmAppView {
GtkWindow window;
/*< private > */
GmAppViewPrivate *priv;
};
/*
* Class definition
*/
typedef struct _GmAppViewClass GmAppViewClass;
struct _GmAppViewClass {
GtkWindowClass parent_class;
/* Signals */
};
GType gm_app_view_get_type(void) G_GNUC_CONST;
GmAppView *gm_app_view_new(GmApp *application);
const GmApp *gm_app_view_application(GmAppView *view);
/* Callbacks */
void on_gm_app_view_world_new(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_world_connect(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_world_logs(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_world_info(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_world_close(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_world_quit(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_cut(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_copy(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_paste(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_worlds(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_world(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_find(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_find_next(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_edit_preferences(
GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_view_mcp(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_view_scripts(GtkMenuItem * menuitem, GmAppView *view);
void on_gm_app_view_help_about(GtkMenuItem * menuitem, GmAppView *view);
G_END_DECLS
#endif /* __GM_APP_VIEW__ */