dialog

dialog

Functions

Description

Functions

a_dialog_info_msg()

#define a_dialog_info_msg(win,info) a_dialog_msg(win,GTK_MESSAGE_INFO,info,NULL)

a_dialog_warning_msg()

#define a_dialog_warning_msg(win,info) a_dialog_msg(win,GTK_MESSAGE_WARNING,info,NULL)

a_dialog_error_msg()

#define a_dialog_error_msg(win,info) a_dialog_msg(win,GTK_MESSAGE_ERROR,info,NULL)

a_dialog_info_msg_extra()

#define a_dialog_info_msg_extra(win,info,extra) a_dialog_msg(win,GTK_MESSAGE_INFO,info,extra)

a_dialog_error_msg_extra()

#define a_dialog_error_msg_extra(win,info,extra) a_dialog_msg(win,GTK_MESSAGE_ERROR,info,extra)

a_dialog_create_label_vbox ()

GtkWidget *
a_dialog_create_label_vbox (gchar **texts,
                            int label_count,
                            gint spacing,
                            gint padding);

a_dialog_msg ()

void
a_dialog_msg (GtkWindow *parent,
              gint type,
              const gchar *info,
              const gchar *extra);

a_dialog_response_accept ()

void
a_dialog_response_accept (GtkDialog *dialog);

a_dialog_list ()

void
a_dialog_list (GtkWindow *parent,
               const gchar *title,
               GArray *array,
               gint padding);

a_dialog_about ()

void
a_dialog_about (GtkWindow *parent);

a_dialog_goto_latlon ()

gboolean
a_dialog_goto_latlon (GtkWindow *parent,
                      struct LatLon *ll,
                      const struct LatLon *old);

parent : Parent window ll : The returned LatLon location old : Initialize the dialog with this LatLon location

A simple dialog to get a lat/lon location

Returns

FALSE if the dialog was cancelled


a_dialog_goto_utm ()

gboolean
a_dialog_goto_utm (GtkWindow *parent,
                   struct UTM *utm,
                   const struct UTM *old);

a_dialog_new_track ()

gchar *
a_dialog_new_track (GtkWindow *parent,
                    gchar *default_name,
                    gboolean is_route);

a_dialog_get_date ()

gchar *
a_dialog_get_date (GtkWindow *parent,
                   const gchar *title);

Returns

a date as a string - always in ISO8601 format (YYYY-MM-DD) This string can be NULL (especially when the dialog is cancelled) Free the string after use


a_dialog_yes_or_no ()

gboolean
a_dialog_yes_or_no (GtkWindow *parent,
                    const gchar *message,
                    const gchar *extra);

a_dialog_custom_zoom ()

gboolean
a_dialog_custom_zoom (GtkWindow *parent,
                      gdouble *xmpp,
                      gdouble *ympp);

a_dialog_time_threshold ()

gboolean
a_dialog_time_threshold (GtkWindow *parent,
                         gchar *title_text,
                         gchar *label_text,
                         guint *thr);

a_dialog_get_positive_number ()

guint
a_dialog_get_positive_number (GtkWindow *parent,
                              gchar *title_text,
                              gchar *label_text,
                              guint default_num,
                              guint min,
                              guint max,
                              guint step);

Dialog to return a positive number via a spinbox within the supplied limits

Returns

A value of zero indicates the dialog was cancelled


a_dialog_map_n_zoom ()

gboolean
a_dialog_map_n_zoom (GtkWindow *parent,
                     gchar *mapnames[],
                     gint default_map,
                     gchar *zoom_list[],
                     gint default_zoom,
                     gint *selected_map,
                     gint *selected_zoom);

a_dialog_select_from_list ()

GList *
a_dialog_select_from_list (GtkWindow *parent,
                           GList *names,
                           gboolean multiple_selection_allowed,
                           const gchar *title,
                           const gchar *msg);

a_dialog_license ()

void
a_dialog_license (GtkWindow *parent,
                  const gchar *map,
                  const gchar *license,
                  const gchar *url);