Class adding a new entry to the list of tracks. More...
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... | |
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.
Definition at line 42 of file track_store.bi.
TS_add::TS_add | ( | BYVAL_AS_CONST_gchar_PTR | N | ) |
CTOR for adding a further track.
N | The 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.
Definition at line 66 of file track_store.bas.
|
static |
Callback for finding folders/file entries.
Model | tree model |
Path | line in Model |
Iter | iter in Model |
UserData | the calling TS_add instance |
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.
Definition at line 29 of file track_store.bas.
STRING TS_add::Nam |
The name to search.
Definition at line 44 of file track_store.bi.
STRING TS_add::Fol |
The folder to search.
Definition at line 45 of file track_store.bi.
gboolean TS_add::Got = FALSE |
Got a match?
Definition at line 46 of file track_store.bi.
GtkTreeIter_PTR TS_add::Par = NULL |
The parent folder iter.
Definition at line 47 of file track_store.bi.
gpointer TS_add::Loa |
Pointer for TrackLoader instance.
Definition at line 48 of file track_store.bi.