2013-09-08 11:39:44 +00:00
|
|
|
#ifndef __AG_APP_H__
|
|
|
|
#define __AG_APP_H__
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2013-09-20 08:23:02 +00:00
|
|
|
#include "astrognome.h"
|
|
|
|
|
2013-09-08 11:39:44 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define AG_TYPE_APP (ag_app_get_type())
|
2014-07-11 08:33:04 +00:00
|
|
|
#define AG_APP(o) (G_TYPE_CHECK_INSTANCE_CAST((o), \
|
|
|
|
AG_TYPE_APP, \
|
|
|
|
AgApp))
|
|
|
|
#define AG_APP_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), \
|
|
|
|
AG_TYPE_APP, \
|
|
|
|
AgAppClass))
|
2013-09-08 11:39:44 +00:00
|
|
|
#define AG_IS_APP(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), AG_TYPE_APP))
|
|
|
|
#define AG_IS_APP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), AG_TYPE_APP))
|
2014-07-11 08:33:04 +00:00
|
|
|
#define AG_APP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), \
|
|
|
|
AG_TYPE_APP, \
|
|
|
|
AgAppClass))
|
2013-09-08 11:39:44 +00:00
|
|
|
|
|
|
|
typedef struct _AgApp AgApp;
|
|
|
|
typedef struct _AgAppClass AgAppClass;
|
|
|
|
|
|
|
|
struct _AgApp {
|
|
|
|
GtkApplication parent_instance;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _AgAppClass {
|
|
|
|
GtkApplicationClass parent_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
GType ag_app_get_type(void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
AgApp *ag_app_new(void);
|
|
|
|
|
|
|
|
GtkWindow *ag_app_peek_first_window(AgApp *self);
|
|
|
|
|
|
|
|
void ag_app_new_window(AgApp *self);
|
2014-07-10 21:47:39 +00:00
|
|
|
|
2013-09-08 11:39:44 +00:00
|
|
|
void ag_app_quit(AgApp *self);
|
2014-07-10 21:47:39 +00:00
|
|
|
|
2013-09-08 11:39:44 +00:00
|
|
|
void ag_app_raise(AgApp *self);
|
2014-07-10 21:47:39 +00:00
|
|
|
|
2013-09-21 16:37:27 +00:00
|
|
|
void ag_app_run_action(AgApp *app,
|
|
|
|
gboolean is_remote,
|
|
|
|
const AstrognomeOptions *options);
|
2014-07-10 21:47:39 +00:00
|
|
|
|
2014-08-02 17:52:47 +00:00
|
|
|
gint ag_app_buttoned_dialog(GtkWidget *window,
|
|
|
|
GtkMessageType message_type,
|
|
|
|
const gchar *message,
|
|
|
|
const gchar *first_button_text, ...);
|
|
|
|
|
2014-07-10 21:47:39 +00:00
|
|
|
void ag_app_message_dialog(GtkWidget *window,
|
|
|
|
GtkMessageType message_type,
|
|
|
|
gchar *fmt, ...);
|
2013-09-08 11:39:44 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __AG_APP_H__ */
|