1 |
/**
|
2 |
* Navit, a modular navigation system.
|
3 |
* Copyright (C) 2005-2008 Navit Team
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* version 2 as published by the Free Software Foundation.
|
8 |
*
|
9 |
* This program is distributed in the hope that it will be useful,
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12 |
* GNU General Public License for more details.
|
13 |
*
|
14 |
* You should have received a copy of the GNU General Public License
|
15 |
* along with this program; if not, write to the
|
16 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
17 |
* Boston, MA 02110-1301, USA.
|
18 |
*/
|
19 |
|
20 |
#include <stdio.h>
|
21 |
#include <glib.h>
|
22 |
|
23 |
#include "attr.h"
|
24 |
#include "coord.h"
|
25 |
#include "quadtree.h"
|
26 |
|
27 |
|
28 |
struct map_priv {
|
29 |
int id;
|
30 |
struct quadtree_node* tree_root;
|
31 |
int flags;
|
32 |
GHashTable*item_hash;
|
33 |
GHashTable*qitem_hash;
|
34 |
char* filename;
|
35 |
int dirty; //need to write map file on exit
|
36 |
int attr_cnt;
|
37 |
enum attr_type *attr_types;
|
38 |
int next_item_idx;
|
39 |
enum item_type item_type;
|
40 |
GList* new_items; //list of quadtree items that have no coord set yet ()
|
41 |
};
|
42 |
|
43 |
struct map_rect_priv {
|
44 |
struct map_selection *sel;
|
45 |
GList* query_result;
|
46 |
GList* curr_item;
|
47 |
struct coord c;
|
48 |
int bStarted;
|
49 |
struct item item;
|
50 |
struct map_priv *m;
|
51 |
};
|
52 |
|