pavi  0.0
Map Path Viewer
TS_add Class Reference

Class adding a new entry to the list of tracks. More...

Collaboration diagram for TS_add:

Public Member Functions

 TS_add (BYVAL_AS_CONST_gchar_PTR)
 CTOR for adding a further track. More...
 

Static Public Member Functions

static FUNCTION_CDECL_AS_gboolean _find (BYVAL_AS_GtkTreeModel_PTR, BYVAL_AS_GtkTreePath_PTR, BYVAL_AS_GtkTreeIter_PTR, BYVAL_AS_gpointer)
 Callback for finding folders/file entries. More...
 

Public Attributes

STRING Nam
 The name to search. More...
 
STRING Fol
 The folder to search. More...
 
gboolean Got = FALSE
 Got a match? More...
 
GtkTreeIter_PTR Par = NULL
 The parent folder iter. More...
 
gpointer Loa
 Pointer for TrackLoader instance. More...
 

Detailed Description

Class adding a new entry to the list of tracks.

This class (UDT) is designed to add a new file to the tracks tree store. It checks if the file is allready loaded, and does nothing in that case.

Otherwise it loads the file and creates a new row in the tree store, and additionally a new folder entry if neccesary.

It's a 'flying' class, designed for temporary instances only.

Since
0.0

Definition at line 42 of file track_store.bi.

Constructor & Destructor Documentation

◆ TS_add()

TS_add::TS_add ( BYVAL_AS_CONST_gchar_PTR  N)

CTOR for adding a further track.

Parameters
NThe path/name to load

This constructor is designed to add a further file to the tree store in GUI.STO, applying standard parameters from the TrackLayer. It separates path and file name and checks if that file is already in the store, doing nothing in that case.

Otherwise it loads the track. In case of success it creates a new folder entry (if neccesary) and a new file entry, and selects that new entry in the tree view.

Since
0.0

Definition at line 66 of file track_store.bas.

Here is the call graph for this function:

Member Function Documentation

◆ _find()

FUNCTION_CDECL_AS_gboolean TS_add::_find ( BYVAL_AS_GtkTreeModel_PTR  Model,
BYVAL_AS_GtkTreePath_PTR  Path,
BYVAL_AS_GtkTreeIter_PTR  Iter,
BYVAL_AS_gpointer  UserData 
)
static

Callback for finding folders/file entries.

Parameters
Modeltree model
Pathline in Model
Iteriter in Model
UserDatathe calling TS_add instance
Returns
TRUE when matching, otherwise FALSE

This function is designed as a gtk_tree_model_foreach callback. It checks if the tree store line contains an entry with equal entry (folder and file name), or at least an equal folder parent.

Since
0.0

Definition at line 29 of file track_store.bas.

Here is the caller graph for this function:

Member Data Documentation

◆ Nam

STRING TS_add::Nam

The name to search.

Definition at line 44 of file track_store.bi.

◆ Fol

STRING TS_add::Fol

The folder to search.

Definition at line 45 of file track_store.bi.

◆ Got

gboolean TS_add::Got = FALSE

Got a match?

Definition at line 46 of file track_store.bi.

◆ Par

GtkTreeIter_PTR TS_add::Par = NULL

The parent folder iter.

Definition at line 47 of file track_store.bi.

◆ Loa

gpointer TS_add::Loa

Pointer for TrackLoader instance.

Definition at line 48 of file track_store.bi.


The documentation for this class was generated from the following files: