Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _GOFFICE_GTK_H_
00020 #define _GOFFICE_GTK_H_
00021
00022 #include <gtk/gtk.h>
00023 #include <gdk/gdk.h>
00024 #include <goffice/app/goffice-app.h>
00025 #include <goffice/utils/go-image.h>
00026
00027 G_BEGIN_DECLS
00028
00029 void go_gtk_editable_enters (GtkWindow *window, GtkWidget *w);
00030
00031
00032
00033 GdkPixbuf *go_pixbuf_new_from_file (char const *filename);
00034 GdkPixbuf *go_pixbuf_intelligent_scale (GdkPixbuf *pixbuf,
00035 guint width, guint height);
00036
00037 int go_pango_measure_string (PangoContext *context,
00038 PangoFontDescription const *font_desc,
00039 char const *str);
00040
00041 gint go_gtk_dialog_run (GtkDialog *dialog, GtkWindow *parent);
00042 GtkWidget *go_gtk_dialog_add_button (GtkDialog *dialog, char const *text, char const *stock_id,
00043 gint response_id);
00044 void go_gtk_notice_dialog (GtkWindow *parent, GtkMessageType type,
00045 const gchar *format, ...);
00046 void go_gtk_notice_nonmodal_dialog (GtkWindow *parent, GtkWidget **ref,
00047 GtkMessageType type, const gchar *format, ...);
00048 gboolean go_gtk_query_yes_no (GtkWindow *toplevel, gboolean default_answer,
00049 const gchar *format, ...);
00050
00051 GtkWidget *go_gtk_button_new_with_stock (char const *text,
00052 char const *stock_id);
00053 void go_gtk_widget_disable_focus (GtkWidget *w);
00054 void go_gtk_window_set_transient (GtkWindow *parent, GtkWindow *window);
00055 void go_gtk_help_button_init (GtkWidget *w, char const *data_dir,
00056 char const *app, char const *link);
00057 void go_gtk_nonmodal_dialog (GtkWindow *toplevel, GtkWindow *dialog);
00058 gboolean go_gtk_file_sel_dialog (GtkWindow *toplevel, GtkWidget *w);
00059 char *go_gtk_select_image (GtkWindow *toplevel, const char *initial);
00060
00061
00062 gboolean go_gtk_url_is_writeable (GtkWindow *parent, char const *url,
00063 gboolean overwrite_by_default);
00064
00065 void go_atk_setup_label (GtkWidget *label, GtkWidget *target);
00066
00067 void go_dialog_guess_alternative_button_order (GtkDialog *dialog);
00068
00069 #include <goffice/gtk/go-color-group.h>
00070 #include <goffice/gtk/go-color-palette.h>
00071
00072 G_END_DECLS
00073
00074 #endif