X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/29c93cc57d2f7715c58b4e577440bc580a47bd8a..cd0b7e8541b5e65f1c0ac9c9b3115d14cc58af0a:/src/vikfileentry.h?ds=sidebyside diff --git a/src/vikfileentry.h b/src/vikfileentry.h index 41684b0f..34db287d 100644 --- a/src/vikfileentry.h +++ b/src/vikfileentry.h @@ -44,8 +44,19 @@ struct _VikFileEntryClass GType vik_file_entry_get_type (); -GtkWidget *vik_file_entry_new (GtkFileChooserAction action); -G_CONST_RETURN gchar *vik_file_entry_get_filename ( VikFileEntry *vfe ); +typedef enum { + VF_FILTER_NONE = 0, + VF_FILTER_IMAGE, // JPG+PNG+TIFF + VF_FILTER_MBTILES, + VF_FILTER_XML, + VF_FILTER_CARTO, // MML + MSS + VF_FILTER_LAST +} vf_filter_type; + +typedef void (*VikFileEntryFunc) (VikFileEntry *, gpointer); + +GtkWidget *vik_file_entry_new (GtkFileChooserAction action, vf_filter_type filter_type, VikFileEntryFunc cb, gpointer user_data); +const gchar *vik_file_entry_get_filename ( VikFileEntry *vfe ); void vik_file_entry_set_filename ( VikFileEntry *vfe, const gchar *filename ); G_END_DECLS