navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
bookmarks.h
Go to the documentation of this file.
1 
20  #ifndef NAVIT_BOOKMARKS_H
21  #define NAVIT_BOOKMARKS_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* prototypes */
28 struct bookmarks;
29 struct bookmarks *bookmarks_new(struct attr *parent, struct attr **attrs, struct transformation *trans);
30 void bookmarks_destroy(struct bookmarks *this_);
31 void bookmarks_add_callback(struct bookmarks *this_, struct callback *cb);
32 
33 int bookmarks_add_bookmark(struct bookmarks *this_, struct pcoord *c, const char *description);
34 int bookmarks_cut_bookmark(struct bookmarks *this_, const char *label);
35 int bookmarks_copy_bookmark(struct bookmarks *this_, const char *label);
36 int bookmarks_paste_bookmark(struct bookmarks *this_);
37 int bookmarks_rename_bookmark(struct bookmarks *this_, const char *oldName, const char* newName);
38 int bookmarks_delete_bookmark(struct bookmarks *this_, const char *label);
39 
40 struct map* bookmarks_get_map(struct bookmarks *this_);
42 
43 void bookmarks_move_root(struct bookmarks *this_);
44 void bookmarks_move_up(struct bookmarks *this_);
45 int bookmarks_move_down(struct bookmarks *this_,const char* name);
46 
47 struct item* bookmarks_get_item(struct bookmarks* this_);
48 int bookmarks_get_bookmark_count(struct bookmarks* this_);
49 void bookmarks_item_rewind(struct bookmarks* this_);
50 const char* bookmarks_item_cwd(struct bookmarks* this_);
51 
52 char* bookmarks_get_user_data_directory(gboolean create);
53 char* bookmarks_get_destination_file(gboolean create);
54 void bookmarks_set_center_from_file(struct bookmarks *this_, char *file);
55 char* bookmarks_get_center_file(gboolean create);
56 void bookmarks_write_center_to_file(struct bookmarks *this_, char *file);
57 void bookmarks_append_destinations(struct map *former_destination_map, char *file, struct pcoord *c, int count, enum item_type type, const char *description, int limit);
58 /* end of prototypes */
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64  #endif /* NAVIT_BOOKMARKS_H */
const char * bookmarks_item_cwd(struct bookmarks *this_)
Definition: bookmarks.c:146
struct item * bookmarks_get_item(struct bookmarks *this_)
Definition: bookmarks.c:119
Definition: gpx2navit_txt.h:51
static char * description(struct search_param *search, GtkTreeIter *iter)
Definition: destination.c:71
int bookmarks_cut_bookmark(struct bookmarks *this_, const char *label)
Definition: bookmarks.c:524
char * bookmarks_get_user_data_directory(gboolean create)
Definition: item.h:99
void bookmarks_item_rewind(struct bookmarks *this_)
Definition: bookmarks.c:114
void bookmarks_write_center_to_file(struct bookmarks *this_, char *file)
Definition: bookmarks.c:442
struct bookmarks * bookmarks_new(struct attr *parent, struct attr **attrs, struct transformation *trans)
Definition: bookmarks.c:240
void bookmarks_add_callback(struct bookmarks *this_, struct callback *cb)
Definition: bookmarks.c:297
void bookmarks_destroy(struct bookmarks *this_)
Definition: bookmarks.c:274
item_type
Definition: item.h:29
int bookmarks_copy_bookmark(struct bookmarks *this_, const char *label)
Definition: bookmarks.c:532
void bookmarks_append_destinations(struct map *former_destination_map, char *file, struct pcoord *c, int count, enum item_type type, const char *description, int limit)
Definition: bookmarks.c:779
struct attr ** attrs
Definition: bookmarks.c:68
int bookmarks_delete_bookmark(struct bookmarks *this_, const char *label)
Definition: bookmarks.c:588
Definition: bookmarks.c:54
struct map * bookmarks_get_map(struct bookmarks *this_)
Definition: bookmarks.c:289
void bookmarks_move_up(struct bookmarks *this_)
Definition: bookmarks.c:89
projection
Definition: projection.h:23
enum projection bookmarks_get_projection(struct bookmarks *this_)
Definition: bookmarks.c:293
Definition: attr.h:156
char * bookmarks_get_destination_file(gboolean create)
Definition: bookmarks.c:397
int bookmarks_rename_bookmark(struct bookmarks *this_, const char *oldName, const char *newName)
Definition: bookmarks.c:618
int bookmarks_get_bookmark_count(struct bookmarks *this_)
Definition: bookmarks.c:133
static unsigned char limit[]
Definition: street.c:405
Definition: callback.c:26
void bookmarks_set_center_from_file(struct bookmarks *this_, char *file)
Definition: bookmarks.c:418
void bookmarks_move_root(struct bookmarks *this_)
Definition: bookmarks.c:83
Holds information about a map.
Definition: map.c:60
int bookmarks_move_down(struct bookmarks *this_, const char *name)
Definition: bookmarks.c:96
struct label_data_offset label
Definition: garmin_img.c:409
char type[3]
Definition: garmin_img.c:130
struct transformation * trans
Definition: bookmarks.c:67
char name[0]
Definition: street.c:559
Definition: coord.h:40
int bookmarks_add_bookmark(struct bookmarks *this_, struct pcoord *c, const char *description)
Definition: bookmarks.c:491
int bookmarks_paste_bookmark(struct bookmarks *this_)
Definition: bookmarks.c:555
char * bookmarks_get_center_file(gboolean create)
Definition: bookmarks.c:412
The parameters needed to transform a map for display.
Definition: transform.c:64
Definition: file.h:36