<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="./robodoc.css" type="text/css" />
<title>./src/loaddata.ads</title>
<!-- Source: ./src/loaddata.ads -->
<!-- Generated with ROBODoc Version 4.99.43 (Feb  8 2020) -->
</head>
<body>
<div id="logo">
<a name="robo_top_of_doc">Hunter v1.6 code documentation</a>
</div> <!-- logo -->
<div id="navigation">
<a class="menuitem" href="./toc_index.html#top">Table of Contents</a>
<a class="menuitem" href="./sources.html#top">Source files</a>
<a class="menuitem" href="./index.html#top">Index</a>
<a class="menuitem" href="./robo_tasks.html#top">Tasks</a>
<a class="menuitem" href="./robo_constants.html#top">Constants</a>
<a class="menuitem" href="./robo_exceptions.html#top">Exceptions</a>
<a class="menuitem" href="./robo_subprograms.html#top">Subprograms</a>
<a class="menuitem" href="./robo_packages.html#top">Packages</a>
<a class="menuitem" href="./robo_commands.html#top">Commands</a>
<a class="menuitem" href="./robo_records.html#top">Records</a>
<a class="menuitem" href="./robo_types.html#top">Types</a>
<a class="menuitem" href="./robo_variables.html#top">Variables</a>
</div> <!-- navigation -->
<div id="content">
<h3>TABLE OF CONTENTS</h3>
<ul>
<li>1. <a href="#robo18">LoadData/LoadData</a></li>
<ul>
<li>1.1. <a href="./gui/loaddata-ui_ads.html#robo19">LoadData/LUI</a></li>
<ul>
<li>1.1.1. <a href="./gui/loaddata-ui_ads.html#robo213">LUI/LUI.LoadDirectory</a></li>
</ul>
<li>1.2. <a href="./tui/loaddata-ui_ads.html#robo20">LoadData/LUITUI</a></li>
<ul>
<li>1.2.1. <a href="./tui/loaddata-ui_ads.html#robo214">LUITUI/LUITUI.LoadDirectory</a></li>
</ul>
<li>1.3. <a href="#robo58">LoadData/LoadData.Item_Size</a></li>
<li>1.4. <a href="#robo59">LoadData/LoadData.Items_Container</a></li>
<li>1.5. <a href="#robo60">LoadData/LoadData.Items_Sorting</a></li>
<li>1.6. <a href="#robo61">LoadData/LoadData.Sorting_Order</a></li>
<li>1.7. <a href="#robo77">LoadData/LoadData.Item_Record</a></li>
<li>1.8. <a href="#robo83">LoadData/LoadData.Default_Sorting_Order</a></li>
<li>1.9. <a href="#robo84">LoadData/LoadData.Empty_Item</a></li>
<li>1.10. <a href="#robo85">LoadData/LoadData.Empty_Item_Size</a></li>
<li>1.11. <a href="#robo103">LoadData/LoadData.Items_List</a></li>
<li>1.12. <a href="#robo104">LoadData/LoadData.Second_Items_List</a></li>
<li>1.13. <a href="#robo105">LoadData/LoadData.Sort_Order</a></li>
<li>1.14. <a href="#robo210">LoadData/LoadData."&lt;"</a></li>
<li>1.15. <a href="#robo211">LoadData/LoadData."="</a></li>
<li>1.16. <a href="#robo212">LoadData/LoadData.Add_Item</a></li>
</ul>
</ul>
<hr />
<a name="LoadData2fLoadData"></a>
<a name="robo18"></a><h2>LoadData/LoadData [ Packages ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="./robo_packages.html#robo_top_of_doc">Packages</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Provide code to load directories information.
</pre>
<p class="item_name">SOURCE</p>
<pre class="source"><span class="keyword">package</span> <strong>LoadData</strong> <span class="keyword">is</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eItem5fSize"></a>
<a name="robo58"></a><h2>LoadData/LoadData.Item_Size [ Types ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_types.html#robo_top_of_doc">Types</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Used to store size of files and directories
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">type</span> Item_Size <span class="keyword">is</span> <span class="keyword">range</span> <span class="sign">-</span>2 <span class="sign">.</span><span class="sign">.</span> File_Size<span class="keyword">'Last</span> <span class="keyword">with</span>
      Default_Value =<span class="sign">&gt;</span> 0<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eItems5fContainer"></a>
<a name="robo59"></a><h2>LoadData/LoadData.Items_Container [ Types ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_types.html#robo_top_of_doc">Types</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Used to store information about selected directories contents
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">package</span> Items_Container <span class="keyword">is</span> <span class="keyword">new</span> Vectors
     <span class="sign">(</span>Index_Type <span class="sign">=</span><span class="sign">&gt;</span> Positive<span class="sign">,</span> Element_Type <span class="sign">=</span><span class="sign">&gt;</span> Item_Record<span class="sign">)</span><span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eItems5fSorting"></a>
<a name="robo60"></a><h2>LoadData/LoadData.Items_Sorting [ Types ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_types.html#robo_top_of_doc">Types</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Used to sort the selected directories contets
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">package</span> Items_Sorting <span class="keyword">is</span> <span class="keyword">new</span> Items_Container<span class="sign">.</span>Generic_Sorting<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eSorting5fOrder"></a>
<a name="robo61"></a><h2>LoadData/LoadData.Sorting_Order [ Types ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_types.html#robo_top_of_doc">Types</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Possible options of sorting for items in directory view
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">type</span> Sorting_Order <span class="keyword">is</span>
     <span class="sign">(</span>NAMEASC<span class="sign">,</span> NAMEDESC<span class="sign">,</span> MODIFIEDASC<span class="sign">,</span> MODIFIEDDESC<span class="sign">,</span> SIZEASC<span class="sign">,</span> SIZEDESC<span class="sign">)</span> <span class="keyword">with</span>
      Default_Value <span class="sign">=</span><span class="sign">&gt;</span> NAMEASC<span class="sign">;</span>
</pre>
<p class="item_name">OPTIONS</p>
<pre> NAMEASC      - Sort by name ascending
 NAMEDESC     - Sort by name descending
 MODIFIEDASC  - Sort by modified time ascending
 MODIFIEDDESC - Sort by modified time descending
 SIZEASC      - Sort by size ascending
 SIZEDESC     - Sort by size descending
</pre>

<hr />
<a name="LoadData2fLoadData2eItem5fRecord"></a>
<a name="robo77"></a><h2>LoadData/LoadData.Item_Record [ Records ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_records.html#robo_top_of_doc">Records</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Data structure with information about files and directories
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">type</span> Item_Record <span class="keyword">is</span> <span class="keyword">record</span>
      Name<span class="sign">:</span> Unbounded_String<span class="sign">;</span>
      Size<span class="sign">:</span> Item_Size<span class="sign">;</span>
      Is_Directory<span class="sign">:</span> Boolean<span class="sign">;</span>
      Is_Hidden<span class="sign">:</span> Boolean<span class="sign">;</span>
      Modified<span class="sign">:</span> Time<span class="sign">;</span>
      Image<span class="sign">:</span> Unbounded_String<span class="sign">;</span>
      Hidden_Items<span class="sign">:</span> Natural<span class="sign">;</span>
      Path<span class="sign">:</span> Unbounded_String<span class="sign">;</span>
   <span class="keyword">end</span> <span class="keyword">record</span><span class="sign">;</span>
</pre>
<p class="item_name">OPTIONS</p>
<pre> Name         - The name of the file or directory
 Size         - For file size in bytes, for directory amount of items
                inside
 Is_Directory - If True, the item is a directory, otherwise false
 Is_Hidden    - If True, the item is hidden, otherwise false
 Modified     - Time of last modificiation of the item
 Image        - The name of the image used to show on the left to the
                item on the list
 Hidden_Items - In directory, amount of hidden items
 Path         - The path to the selected item. Used in showing <a href="./trash_ads.html#robo44">Trash</a>
                content
</pre>

<hr />
<a name="LoadData2fLoadData2eDefault5fSorting5fOrder"></a>
<a name="robo83"></a><h2>LoadData/LoadData.Default_Sorting_Order [ Constants ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_constants.html#robo_top_of_doc">Constants</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Default sorting order for directory view
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   Default_Sorting_Order<span class="sign">:</span> <span class="keyword">constant</span> Sorting_Order <span class="sign">:</span><span class="sign">=</span> NAMEASC<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eEmpty5fItem"></a>
<a name="robo84"></a><h2>LoadData/LoadData.Empty_Item [ Constants ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_constants.html#robo_top_of_doc">Constants</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Empty item data
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   Empty_Item<span class="sign">:</span> <span class="keyword">constant</span> Item_Record <span class="sign">:</span><span class="sign">=</span> <span class="sign">(</span><span class="keyword">others</span> <span class="sign">=</span><span class="sign">&gt;</span> <span class="sign">&lt;</span><span class="sign">&gt;</span><span class="sign">)</span><span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eEmpty5fItem5fSize"></a>
<a name="robo85"></a><h2>LoadData/LoadData.Empty_Item_Size [ Constants ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_constants.html#robo_top_of_doc">Constants</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> The size of empty item (file or directory)
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   Empty_Item_Size<span class="sign">:</span> <span class="keyword">constant</span> Item_Size <span class="sign">:</span><span class="sign">=</span> 0<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eItems5fList"></a>
<a name="robo103"></a><h2>LoadData/LoadData.Items_List [ Variables ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_variables.html#robo_top_of_doc">Variables</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> The content of the currently viewed directory
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   Items_List<span class="sign">:</span> Items_Container<span class="sign">.</span>Vector<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eSecond5fItems5fList"></a>
<a name="robo104"></a><h2>LoadData/LoadData.Second_Items_List [ Variables ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_variables.html#robo_top_of_doc">Variables</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> The content of the currently previewed directory or destination
 directory for actions like moving, copying, creating links
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   Second_Items_List<span class="sign">:</span> Items_Container<span class="sign">.</span>Vector<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2eSort5fOrder"></a>
<a name="robo105"></a><h2>LoadData/LoadData.Sort_Order [ Variables ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_variables.html#robo_top_of_doc">Variables</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Currently set sorting order for directory view. Default value is NameAsc
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   Sort_Order<span class="sign">:</span> Sorting_Order <span class="sign">:</span><span class="sign">=</span> Default_Sorting_Order<span class="sign">;</span>
</pre>

<hr />
<a name="LoadData2fLoadData2e223c22"></a>
<a name="robo210"></a><h2>LoadData/LoadData."&lt;" [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Used in sorting items in directory view. Check if one item is smaller
 than other
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">function</span> <span class="quote">"<span class="sign">&lt;</span>"</span><span class="sign">(</span>Left<span class="sign">,</span> Right<span class="sign">:</span> Item_Record<span class="sign">)</span> <span class="keyword">return</span> Boolean<span class="sign">;</span>
</pre>
<p class="item_name">PARAMETERS</p>
<pre> Left  - First item in directory view to compare
 Right - Second item in directory view to compare
</pre>
<p class="item_name">RESULT</p>
<pre> True if Left is smaller than Right, otherwise false. Depends on
 currently selected sorting order
</pre>

<hr />
<a name="LoadData2fLoadData2e223d22"></a>
<a name="robo211"></a><h2>LoadData/LoadData."=" [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Used in sorting items in directory view. Check if one item is equal to
 another
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">overriding</span> <span class="keyword">function</span> <span class="quote">"="</span><span class="sign">(</span>Left<span class="sign">,</span> Right<span class="sign">:</span> Item_Record<span class="sign">)</span> <span class="keyword">return</span> Boolean<span class="sign">;</span>
</pre>
<p class="item_name">PARAMETERS</p>
<pre> Left  - First item in directory view to compare
 Right - Second item in directory view to compare
</pre>
<p class="item_name">RESULT</p>
<pre> True if items are equal, otherwise false. Depends on currently selected
 sorting order
</pre>

<hr />
<a name="LoadData2fLoadData2eAdd5fItem"></a>
<a name="robo212"></a><h2>LoadData/LoadData.Add_Item [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo18">LoadData</a> ] [ <a href="./robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Add the selected item to the selected list
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">procedure</span> Add_Item<span class="sign">(</span>Path<span class="sign">:</span> String<span class="sign">;</span> List<span class="sign">:</span> <span class="keyword">in</span> <span class="keyword">out</span> Items_Container<span class="sign">.</span>Vector<span class="sign">)</span><span class="sign">;</span>
</pre>
<p class="item_name">PARAMETERS</p>
<pre> Path - Full path to the file or directory which will be added
 List - The list to which a new item will be added
</pre>

</div> <!-- content -->
<div id="footer">
<p>Generated from ./src/loaddata.ads with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sun Aug 08 2021 07:39:39
</p>
</div> <!-- footer -->
</body>
</html>

