• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

goffice-gtk.h

Go to the documentation of this file.
00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
00002 /*
00003  * goffice-gtk.h - Misc GTK+ utilities
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License, version 2, as published by the Free Software Foundation.
00008  *
00009  * This library is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00017  * USA.
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 /* _GOFFICE_GTK_H_ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1