pavi  0.0
Map Path Viewer
track_store.bi File Reference

Header for tree store of tracks handling. More...

#include "Gir/Gtk-3.0.bi"
#include "track_loader.bi"
Include dependency graph for track_store.bi:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Header for tree store of tracks handling.

This header file deals with stuff to handle the GtkTreeStore for the tracks data.

Since
0.0

Definition in file track_store.bi.


Class Documentation

◆ UDTnearest_result

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.

Since
0.0

Definition at line 65 of file track_store.bi.

Collaboration diagram for UDTnearest_result:
Class Members
float Dist
TrackLoader_PTR Loa

Typedef Documentation

◆ float

typedef SINGLE float

Definition at line 10 of file track_store.bi.

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ TS_finalize()

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.

Since
0.0

Definition at line 165 of file track_store.bas.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TS_remove()

SUB TS_remove ( BYVAL_AS_GtkTreeIter_PTR  Child)

Remove a track from store.

Parameters
ChildThe iter where to find the track

Procedure to remove a single track from the store, DELETEing the TrackLoader structure.

Since
0.0

Definition at line 182 of file track_store.bas.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TS_select()

SUB TS_select ( BYVAL_AS_STRING  Path)

Handle new selection.

Parameters
PathThe 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.

Note
We don't use the GtkTreeSelection since it marks the selected row with a blue bar, overriding the bachground color we want to see.
Since
0.0

Definition at line 332 of file track_store.bas.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TS_preference()

SUB TS_preference ( BYVAL_AS_TrackLoader_PTR  Loa)

Open the preference dialog.

Parameters
LoaThe 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.

Since
0.0

Definition at line 368 of file track_store.bas.

Here is the call graph for this function:
Here is the caller graph for this function: