Header for tree store of tracks handling. More...
Go to the source code of this file.
Classes | |
class | TS_add |
Class adding a new entry to the list of tracks. More... | |
class | UDTnearest_result |
UDT holding search result. More... | |
class | TS_nearest |
Class finding the nearest track point. More... | |
class | TS_bbox |
Class finding the nearest track point. More... | |
Typedefs | |
typedef SINGLE | float |
Enumerations | |
enum | TSTracksColumns { COL__SELECT = 0, COL__ENABLE, COL_VISIBLE, COL____PATH, COL____NAME, COL_P_WIDTH, COL_L_WIDTH, COL_P_COLOR, COL_L_COLOR, COL__LOADER } |
Functions | |
SUB | TS_finalize () |
Remove all tracks from store. More... | |
SUB | TS_remove (BYVAL_AS_GtkTreeIter_PTR) |
Remove a track from store. More... | |
SUB | TS_select (BYVAL_AS_STRING) |
Handle new selection. More... | |
SUB | TS_preference (BYVAL_AS_TrackLoader_PTR) |
Open the preference dialog. More... | |
Header for tree store of tracks handling.
This header file deals with stuff to handle the GtkTreeStore for the tracks data.
Definition in file track_store.bi.
class UDTnearest_result |
UDT holding search result.
In order to find a point nearest to a given location the search process uses this UDT to store the track results.
Definition at line 65 of file track_store.bi.
Class Members | ||
---|---|---|
float | Dist | |
TrackLoader_PTR | Loa |
typedef SINGLE float |
Definition at line 10 of file track_store.bi.
enum TSTracksColumns |
Enumerator | |
---|---|
COL__SELECT | |
COL__ENABLE | |
COL_VISIBLE | |
COL____PATH | |
COL____NAME | |
COL_P_WIDTH | |
COL_L_WIDTH | |
COL_P_COLOR | |
COL_L_COLOR | |
COL__LOADER |
Definition at line 15 of file track_store.bi.
SUB TS_finalize | ( | ) |
Remove all tracks from store.
Function checking each store row: in case of a track (no folder) it DELETEs the TrackLoader instance and frees the gchararray memory. Finally it clears the remaining folder entries.
Definition at line 165 of file track_store.bas.
SUB TS_remove | ( | BYVAL_AS_GtkTreeIter_PTR | Child | ) |
Remove a track from store.
Child | The iter where to find the track |
Procedure to remove a single track from the store, DELETEing the TrackLoader structure.
Definition at line 182 of file track_store.bas.
SUB TS_select | ( | BYVAL_AS_STRING | Path | ) |
Handle new selection.
Path | The path in the tree model as STRING |
This procedure handles a selection change in the tree model. The priviously seleted radio button (if any) gets inactive, and the new one gets active.
Definition at line 332 of file track_store.bas.
SUB TS_preference | ( | BYVAL_AS_TrackLoader_PTR | Loa | ) |
Open the preference dialog.
Loa | The track to open for |
This procedure handles the preference dialog for a track, loading its parameters in the user interface and providing the dialog to the user. On OK
button it reads the new values from the user interface mask and stores them in the track store model.
Definition at line 368 of file track_store.bas.