TABLE OF CONTENTS


Hunter/MainWindow [ Packages ]

[ Top ] [ Packages ]

FUNCTION

 Provide code to show and manipulate the main program window.

SOURCE

package MainWindow is

MainWindow/ItemActions [ Types ]

[ Top ] [ MainWindow ] [ Types ]

FUNCTION

 Types of action on files and directories

SOURCE

   type ItemActions is
     (CREATEFILE, CREATEDIRECTORY, RENAME, DELETE, COPY, MOVE, OPENWITH,
      GOTOPATH, CREATELINK, CLEARTRASH, SHOWTRASH, DELETETRASH);

OPTIONS

 CREATEFILE      - create file
 CREATEDIRECTORY - create directory
 RENAME          - rename file or directory
 DELETE          - delete file or directory
 COPY            - copy file or directory
 MOVE            - move file or directory
 OPENWITH        - open selected file or directory with command
 GOTOPATH        - go to selected path
 CREATELINK      - create symbolic link to selected file or directory
 CLEARTRASH      - remove all files and directories from trash
 SHOWTRASH       - show content of the trash
 DELETETRASH     - delete file or directory from trash

MainWindow/UnboundedString_Container [ Types ]

[ Top ] [ MainWindow ] [ Types ]

FUNCTION

 Used to store various Unbounded_String data in list.

SOURCE

   package UnboundedString_Container is new Vectors(Positive,
      Unbounded_String);

MainWindow/Accelerators [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Keyboard accelerators associated with the main program window

SOURCE

   Accelerators: Gtk_Accel_Group;

MainWindow/CurrentDirectory [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Currently selected directory to show

SOURCE

   CurrentDirectory: Unbounded_String;

MainWindow/CurrentSelected [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Full path to currently selected file or directory

SOURCE

   CurrentSelected: Unbounded_String;

MainWindow/DestinationPath [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Full path to directory where selected files and directories will be
 copied or moved.

SOURCE

   DestinationPath: Unbounded_String;

MainWindow/DirectoryView [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Gtk_Tree_View with current directory listing

SOURCE

   DirectoryView: Gtk_Tree_View;

MainWindow/FilesPaned [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Gtk_Paned with current directory listing and preview UI

SOURCE

   FilesPaned: Gtk_Paned;

MainWindow/FileStack [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Gtk_Stack with almost all the program UI

SOURCE

   FileStack: Gtk_Stack;

MainWindow/MainWindow [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Main window of the program

SOURCE

   Window: Gtk_Window;

MainWindow/NewAction [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Current performed action on files or directories

SOURCE

   NewAction: ItemActions;

MainWindow/SelectedItems [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 List of currently selected files and directories by user

SOURCE

   SelectedItems: UnboundedString_Container.Vector;

MainWindow/Setting [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 If true, the program is in the setting mode

SOURCE

   Setting: Boolean;

MainWindow/TextEntry [ Variables ]

[ Top ] [ MainWindow ] [ Variables ]

FUNCTION

 Gtk_GEntry used to create new files or directories or rename them

SOURCE

   TextEntry: Gtk_GEntry;

MainWindow/CreateMainWindow [ Subprograms ]

[ Top ] [ MainWindow ] [ Subprograms ]

FUNCTION

 Create main window and show content of selected directory

SOURCE

   procedure CreateMainWindow(Directory: String);

PARAMETERS

 Directory  - Full path to the directory which will be show at the
              program start

MainWindow/Quit [ Subprograms ]

[ Top ] [ MainWindow ] [ Subprograms ]

FUNCTION

 Quit from program

SOURCE

   procedure Quit(Self: access Gtk_Widget_Record'Class);

PARAMETERS

 Self - Main window of the program which triggered this code

MainWindow/Reload [ Subprograms ]

[ Top ] [ MainWindow ] [ Subprograms ]

FUNCTION

 Reload directory listing and preview of selected item

SOURCE

   procedure Reload;
54">MainWindow ] [ Subprograms ]

FUNCTION

 Reload directory listing and preview of selected item

SOURCE

   procedure Reload;