diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-22 14:54:34 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-22 14:54:34 +0000 |
commit | 63895220894090004f288cced691ec896821e555 (patch) | |
tree | 7a555e88cc074d72bcd65b705104de6a0ac5a8db /navit/gui/internal/gui_internal_poi.h | |
parent | be2b0b44816d9d9ebd8435cb97265578c3f5feb9 (diff) | |
download | navit-63895220894090004f288cced691ec896821e555.tar.gz |
Add:gui_internal:Split up into smaller files for easier maintenance
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5298 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/gui/internal/gui_internal_poi.h')
-rw-r--r-- | navit/gui/internal/gui_internal_poi.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/navit/gui/internal/gui_internal_poi.h b/navit/gui/internal/gui_internal_poi.h new file mode 100644 index 000000000..f5bdc0097 --- /dev/null +++ b/navit/gui/internal/gui_internal_poi.h @@ -0,0 +1,57 @@ + +/** + * POI search/filtering parameters. + * + */ + +struct poi_param { + + /** + * =1 if selnb is defined, 0 otherwize. + */ + unsigned char sel; + + /** + * Index to struct selector selectors[], shows what type of POIs is defined. + */ + unsigned char selnb; + /** + * Page number to display. + */ + unsigned char pagenb; + /** + * Radius (number of 10-kilometer intervals) to search for POIs. + */ + unsigned char dist; + /** + * Should filter phrase be compared to postal address of the POI. + * =1 - address filter, =0 - name filter + */ + unsigned char isAddressFilter; + /** + * Filter string, casefold()ed and divided into substrings at the spaces, which are replaced by ASCII 0*. + */ + char *filterstr; + /** + * list of pointers to individual substrings of filterstr. + */ + GList *filter; + /** + * Number of POIs in this list + */ + int count; +}; + +/* prototypes */ +struct coord; +struct gui_priv; +struct item; +struct poi_param; +struct widget; +void gui_internal_poi_param_free(void *p); +void gui_internal_poi_param_set_filter(struct poi_param *param, char *text); +struct widget *gui_internal_cmd_pois_item(struct gui_priv *this, struct coord *center, struct item *item, struct coord *c, int dist, char *name); +char *gui_internal_compose_item_address_string(struct item *item); +void gui_internal_cmd_pois_filter(struct gui_priv *this, struct widget *wm, void *data); +void gui_internal_cmd_pois(struct gui_priv *this, struct widget *wm, void *data); +/* end of prototypes */ |