TABLE OF CONTENTS
- 1. Hunter/LoadData
- 1.1. LoadData/AddItem
- 1.2. LoadData/EmptySortFiles
- 1.3. LoadData/LoadDirectory
- 1.4. LoadData/PathClicked
- 1.5. LoadData/RemovePathButtons
- 1.6. LoadData/SortFiles
Hunter/LoadData [ Packages ]
FUNCTION
Provide code to load directories information.
SOURCE
package LoadData is
LoadData/AddItem [ Subprograms ]
[ Top ] [ LoadData ] [ Subprograms ]
FUNCTION
Add file or directory to the directory listing list
SOURCE
procedure AddItem (FilesList: Gtk_List_Store; FileIter: out Gtk_Tree_Iter; Path: String);
PARAMETERS
FilesList - Gtk_List_Store with list of files and directories to which item will be added FileIter - Gtk_Tree_Iter of added item in FilesList Path - Full path to the file or directory which will be added to the FilesList.
RESULT
Parameter FileIter
LoadData/EmptySortFiles [ Subprograms ]
[ Top ] [ LoadData ] [ Subprograms ]
FUNCTION
Empty sort function used to speed up loading listing of current directory.
SOURCE
function EmptySortFiles (Model: Gtk_Tree_Model; A: Gtk_Tree_Iter; B: Gtk_Tree_Iter) return Gint;
PARAMETERS
Model - Gtk_Tree_Model with content (files and directories) of current directory A - Gtk_Tree_Iter to first Model element to compare B - Gtk_Tree_Iter to second Model element to compare
RESULT
This function always return 0;
LoadData/LoadDirectory [ Subprograms ]
[ Top ] [ LoadData ] [ Subprograms ]
FUNCTION
Load selected directory with Name to Gtk_Store_List with ListName
SOURCE
procedure LoadDirectory(Name, ListName: String);
PARAMETERS
Name - Full path to the directory which content will be displayed ListName - Name of list which will be filled with data. Proper values are: "fileslist" for current directory and "fileslist1" for directory preview
LoadData/SortFiles [ Subprograms ]
[ Top ] [ LoadData ] [ Subprograms ]
FUNCTION
Sort files and directories in current directory view
SOURCE
function SortFiles (Model: Gtk_Tree_Model; A: Gtk_Tree_Iter; B: Gtk_Tree_Iter) return Gint;
PARAMETERS
Model - Gtk_Tree_Model with content (files and directories) of current directory A - Gtk_Tree_Iter to first Model element to compare B - Gtk_Tree_Iter to second Model element to compare
RESULT
1 if first element should be sort after second 0 if first element should be sort with second (equal) -1 if first element should be sort before second