#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkfilechooser.h>
#include <goffice/app/goffice-app.h>
#include <goffice/utils/go-image.h>
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS void | go_gtk_editable_enters (GtkWindow *window, GtkWidget *w) |
go_gtk_editable_enters: : : | |
GdkPixbuf * | go_pixbuf_new_from_file (char const *filename) |
GdkPixbuf * | go_pixbuf_intelligent_scale (GdkPixbuf *pixbuf, guint width, guint height) |
int | go_pango_measure_string (PangoContext *context, PangoFontDescription const *font_desc, char const *str) |
gint | go_gtk_dialog_run (GtkDialog *dialog, GtkWindow *parent) |
go_gtk_dialog_run | |
GtkWidget * | go_gtk_dialog_add_button (GtkDialog *dialog, char const *text, char const *stock_id, gint response_id) |
go_gtk_dialog_add_button : : dialog you want to add a button : button label : stock icon id : respond id when button clicked | |
void | go_gtk_notice_dialog (GtkWindow *parent, GtkMessageType type, const gchar *format,...) |
void | go_gtk_notice_nonmodal_dialog (GtkWindow *parent, GtkWidget **ref, GtkMessageType type, const gchar *format,...) |
gboolean | go_gtk_query_yes_no (GtkWindow *toplevel, gboolean default_answer, const gchar *format,...) |
GtkWidget * | go_gtk_button_new_with_stock (char const *text, char const *stock_id) |
go_gtk_button_new_with_stock | |
void | go_gtk_widget_disable_focus (GtkWidget *w) |
void | go_gtk_window_set_transient (GtkWindow *parent, GtkWindow *window) |
go_gtk_window_set_transient : The calling window : the transient window | |
void | go_gtk_help_button_init (GtkWidget *w, char const *data_dir, char const *app, char const *link) |
void | go_gtk_nonmodal_dialog (GtkWindow *toplevel, GtkWindow *dialog) |
gboolean | go_gtk_file_sel_dialog (GtkWindow *toplevel, GtkWidget *w) |
char * | go_gtk_select_image (GtkWindow *toplevel, const char *initial) |
gboolean | go_gtk_url_is_writeable (GtkWindow *parent, char const *url, gboolean overwrite_by_default) |
go_gtk_url_is_writeable: : GtkWindow : : | |
void | go_atk_setup_label (GtkWidget *label, GtkWidget *target) |
go_atk_setup_label : : GtkWidget : GtkWidget | |
void | go_dialog_guess_alternative_button_order (GtkDialog *dialog) |
go_dialog_guess_alternative_button_order: : |
void go_atk_setup_label | ( | GtkWidget * | label, | |
GtkWidget * | target | |||
) |
go_atk_setup_label : : GtkWidget : GtkWidget
A convenience routine to setup label-for/labeled-by relationship between a pair of widgets
References add_atk_relation().
void go_dialog_guess_alternative_button_order | ( | GtkDialog * | dialog | ) |
go_dialog_guess_alternative_button_order: :
This function inspects the buttons in the dialog and comes up with a reasonable alternative dialog order.
References gtk_dialog_get_action_area(), gtk_dialog_get_response_for_widget(), and MAYBE_SWAP.
Referenced by centerDialog().
GtkWidget* go_gtk_button_new_with_stock | ( | char const * | text, | |
char const * | stock_id | |||
) |
go_gtk_button_new_with_stock
Code from gedit
Creates a new GtkButton with custom label and stock image.
text : button label stock_id : id for stock icon
return : newly created button
Referenced by go_color_palette_setup(), and go_gtk_dialog_add_button().
GtkWidget* go_gtk_dialog_add_button | ( | GtkDialog * | dialog, | |
char const * | text, | |||
char const * | stock_id, | |||
gint | response_id | |||
) |
go_gtk_dialog_add_button : : dialog you want to add a button : button label : stock icon id : respond id when button clicked
Creates and adds a button with stock image to the action area of an existing dialog. Code from gedit
return : newly created button
References go_gtk_button_new_with_stock(), and gtk_widget_set_can_default().
gint go_gtk_dialog_run | ( | GtkDialog * | dialog, | |
GtkWindow * | parent | |||
) |
go_gtk_dialog_run
Pop up a dialog as child of a window.
References go_gtk_window_set_transient().
Referenced by go_gtk_notice_dialog(), go_gtk_query_yes_no(), and go_gtk_url_is_writeable().
G_BEGIN_DECLS void go_gtk_editable_enters | ( | GtkWindow * | window, | |
GtkWidget * | w | |||
) |
go_gtk_editable_enters: : :
Normally if there's an editable widget (such as GtkEntry) in your dialog, pressing Enter will activate the editable rather than the default dialog button. However, in most cases, the user expects to type something in and then press enter to close the dialog. This function enables that behavior.
References cb_activate_default().
gboolean go_gtk_file_sel_dialog | ( | GtkWindow * | toplevel, | |
GtkWidget * | w | |||
) |
References fsel_response_cb(), go_gtk_window_set_transient(), and gu_delete_handler().
Referenced by go_gtk_select_image().
void go_gtk_help_button_init | ( | GtkWidget * | w, | |
char const * | data_dir, | |||
char const * | app, | |||
char const * | link | |||
) |
References CBHelpPaths::app, cb_help(), CBHelpPaths::data_dir, and CBHelpPaths::link.
void go_gtk_nonmodal_dialog | ( | GtkWindow * | toplevel, | |
GtkWindow * | dialog | |||
) |
References cb_non_modal_dialog_keypress(), and go_gtk_window_set_transient().
void go_gtk_notice_dialog | ( | GtkWindow * | parent, | |
GtkMessageType | type, | |||
const gchar * | format, | |||
... | ||||
) |
References gchar, go_gtk_dialog_run(), label, and VPRINTF_MESSAGE.
void go_gtk_notice_nonmodal_dialog | ( | GtkWindow * | parent, | |
GtkWidget ** | ref, | |||
GtkMessageType | type, | |||
const gchar * | format, | |||
... | ||||
) |
References gchar, and VPRINTF_MESSAGE.
gboolean go_gtk_query_yes_no | ( | GtkWindow * | toplevel, | |
gboolean | default_answer, | |||
const gchar * | format, | |||
... | ||||
) |
References _VPRINTF_MESSAGE, gchar, and go_gtk_dialog_run().
char* go_gtk_select_image | ( | GtkWindow * | toplevel, | |
const char * | initial | |||
) |
References _, go_gtk_file_sel_dialog(), and gui_image_chooser_new().
gboolean go_gtk_url_is_writeable | ( | GtkWindow * | parent, | |
char const * | uri, | |||
gboolean | overwrite_by_default | |||
) |
go_gtk_url_is_writeable: : GtkWindow : :
Check if it makes sense to try saving. If it's an existing file and writable for us, ask if we want to overwrite. We check for other problems, but if we miss any, the saver will report. So it doesn't have to be bulletproof.
FIXME: The message boxes should really be children of the file selector, not the workbook.
References _, go_basename_from_uri(), go_dirname_from_uri(), go_file_access(), go_filename_from_uri(), go_gtk_dialog_run(), go_gtk_notice_dialog(), and W_OK.
void go_gtk_widget_disable_focus | ( | GtkWidget * | w | ) |
References go_gtk_widget_disable_focus(), and gtk_widget_set_can_focus().
Referenced by go_gtk_widget_disable_focus().
void go_gtk_window_set_transient | ( | GtkWindow * | toplevel, | |
GtkWindow * | window | |||
) |
go_gtk_window_set_transient : The calling window : the transient window
Make the window a child of the workbook in the command context, if there is one. The function duplicates the positioning functionality in gnome_dialog_set_parent, but does not require the transient window to be a GnomeDialog.
References cb_parent_mapped(), and gtk_widget_get_mapped().
Referenced by go_gtk_dialog_run(), go_gtk_file_sel_dialog(), and go_gtk_nonmodal_dialog().
int go_pango_measure_string | ( | PangoContext * | context, | |
PangoFontDescription const * | font_desc, | |||
char const * | str | |||
) |
GdkPixbuf* go_pixbuf_intelligent_scale | ( | GdkPixbuf * | pixbuf, | |
guint | width, | |||
guint | height | |||
) |
Referenced by update_preview_cb().
GdkPixbuf* go_pixbuf_new_from_file | ( | char const * | filename | ) |
References go_sys_icon_dir().