source: user_config.conf @ ec56a8a

Last change on this file since ec56a8a was ec56a8a, checked in by xkolman2 <xkolman2@…>, 4 years ago

replace active tracklog index by active tracklog path variable
-> fix the mess resulting from inconsistent indexes
make all modules load the tracklogs throught a method, not directly
-> safer, more transparent

git-svn-id: https://nlp.fi.muni.cz/svn/gps_navigace/trunk@156 0858a4d0-ffff-46e5-938e-62b5ecb34222

  • Property mode set to 100644
File size: 5.3 KB
Line 
1## this is a modRana configuration file
2## intended usage is for advanced users to set and override some system settings
3## other uses include modifing the UI and setting parameters for widgets
4## options are divided by the current mode
5## supported modes: cycle,foot,car,train,bus
6##
7## nesting is indicated by numebr of  []
8##
9## everything wth at least one # is a comment
10##
11## per mode settings are used when the coresponding mode is used in modRana
12##
13## screen cooridnates:
14## px=0,py=0 -> top left corner
15## px=1,py=1 -> down right corner
16## px=0.5,py=0.5 -> screen middle
17## and other cobinations, of course
18
19## ** Global config start ** ##
20
21enabled=True       ## True -> config will be used, False -> config wont be used
22
23## ==>Tile folder configuration<==
24## the tile_folder variable sets the master folder for all layers
25## folder_prefix in map_config.conf sets the sub folder
26## so for example:
27## tile_folder=/home/example_user/modrana/maps and folder_prefix=OSM
28## translates to this: /home/example_user/modrana/maps/OSM
29##
30## NOTE: symlinks should work too
31tile_folder=cache/images ## path can be relative or absolute, dont use .. in path
32
33tracklog_folder=tracklogs ## path can be relative or absolute, dont use .. in path, the folder must exist
34
35## ** Global config end ** ##
36
37
38## * Nokia N900 specific overrides start * ##
39[n900] ## Nokia N900 specific overrides (use lower case for device ids)
40
41tile_folder = /home/user/MyDocs/.modRana_tiles/ ## vfat folder with about 27GB of space
42## * Nokia N900 specific overrides end * ##
43
44
45
46## * per mode specific sections start * ##
47
48
49## + cycle mode section start + ##
50[cycle]
51
52[[override_main_buttons]]
53## to disable a button: set px=1 and py=1 (the button wil be located offscreen)
54##
55## the order of assignements is not important
56## its not needed to use all the overrides
57## settings that are not overriden will use defaults
58##
59## coordiantes represent the left upper corner of a square icon/button
60## icon_size represents icon size in propotion of the shortest side of the screen
61## format: px,py,horizontal offset,vertical offset
62## the offset is a number, representing how many button sizes
63## we should shift the button
64## positive offset shifts to the right for x and up for y, negative does the opposite
65## offset can also be 0 or float
66##
67## using the offset adressing, we can specify a flexible GUI
68## that works on different resolutions
69##
70## EXAMPLE: 0.0,1.0,3,-1
71##          set the coordinates to the bottom left of the screen
72##          then shift three button sizes to the right
73##          and shift on button size up, to make the button visible
74##          (it would be otherwise "under" the screen,
75##          because we set the cooridnates of its left upper corner)
76
77menu=0.0,1,0,-1 ## bottom left
78
79zoom_in=0.0,1.0,0,-2
80
81zoom_out=0.0,1.0,1,-1
82
83fullscreen=0.0,0.0,0,0 ## upper right
84
85centre=1.0,0.0,-1,0 ## upper left
86
87scalebar=0.0,0.0,1.2,0.2
88
89icon_size=0.2
90
91
92
93[[OSD]]
94
95[[[speed]]]
96## proportional adressing is used
97## left upper corner is px=0,py=0
98## rigt down corner is px=1,px=1
99## screen middle px=0.5,py=0.5
100## width and height are computed from the content size
101## align left or right, left is default
102px=0.90
103py=0.25
104font_size=50
105align=right
106
107[[[statistics]]]
108px=0.15
109py=0.05
110font_size=20
111align=left
112
113#[[[time]]]
114#px=0.82
115#py=0.05
116#font_size=5
117#align=right
118
119
120[[[route_remaining_length]]]
121px=0.6
122py=0.05
123font_size=20
124align=left
125
126## a widget showing route profile/elevation graph
127## to show this in the OSD, ju must set a tracklog active
128## tracklog-> select tracklog -> set active
129[[[route_profile]]]
130px=0.67
131py=0.4
132pw=0.3
133ph=0.2
134segment_length=5 ## this sets the length of the profile in km
135
136
137
138## + cycle mode section end + ##
139
140## + car mode section start + ##
141[car]
142
143[[OSD]]
144
145[[[time]]]
146px=0.82
147py=0.05
148font_size=50
149align=right
150[[[time_to_start]]]
151px=0.93
152py=0.23
153font_size=20
154align=right
155[[[time_to_destination]]]
156px=0.93
157py=0.38
158font_size=20
159align=right
160
161
162## + car mode section + ##
163
164
165## + train mode section + ##
166[train]
167
168[[OSD]]
169
170[[[coordinates]]]
171px=0.55
172py=0.03
173font_size=20
174align=left
175
176## + train mode section end + ##
177
178
179## + walking mode section start + ##
180[foot]
181
182[[override_main_buttons]]
183## ovi maps like example
184
185## like in ovi maps, the centering button is on the upper left side, bit offset to the right
186centre=0.0,0.0,0.1,1.0
187
188## there are on demand controls in the lower right corner,
189## so the fullscreen button is above the menu button
190## also, on the N900, the close button is dangerously close to the upper right corner
191## therefore its not the best place for the fullscreen button
192fullscreen=0.0,1.0,0.1,-2.4
193
194## menu is in bottom left, bit offset to the right
195menu=0.0,1.0,0.1,-1.2
196
197## the zoom buttons are under the fullscreen button with small offsets
198zoom_out=1.0,0.0,-1.1,0.5
199zoom_in=1.0,0.0,-1.1,1.7
200
201## icon size in propotions of the shortest side of the screen
202## e.g. 0.2 -> max 5 icons side to side on the shortest side
203## default: 0.2
204icon_size=0.2
205## + walking mode section start + ##
206
207
208## + bus mode section start + ##
209[bus] ## in this case the section is empty, this is also possible
210## + bus mode section end + ##
211
212## * per mode specific sections end * ##
213
214
215## END oft he config file ##
216## NOTE: it is asumed that the user knows, what is he (or she) doing
217##       therefore, the values are used as provided
218##       (eq a speed widget on px=1,py=1
219##       will be drawn, but outside of the screen
Note: See TracBrowser for help on using the repository browser.