TABLE OF CONTENTS
- 1. Hunter/MainWindow
- 1.1. MainWindow/MainWindow
- 1.1.1. MainWindow/ItemActions
- 1.1.2. MainWindow/UnboundedString_Container
- 1.1.3. MainWindow/Accelerators
- 1.1.4. MainWindow/CurrentDirectory
- 1.1.5. MainWindow/CurrentSelected
- 1.1.6. MainWindow/DestinationPath
- 1.1.7. MainWindow/DirectoryView
- 1.1.8. MainWindow/FilesPaned
- 1.1.9. MainWindow/FileStack
- 1.1.10. MainWindow/MenuIndex
- 1.1.11. MainWindow/NewAction
- 1.1.12. MainWindow/SelectedItems
- 1.1.13. MainWindow/Setting
- 1.1.14. MainWindow/TextEntry
- 1.1.15. MainWindow/ActivateFileMenu
- 1.1.16. MainWindow/CopyItemMenu
- 1.1.17. MainWindow/CreateMainWindow
- 1.1.18. MainWindow/DeleteItemMenu
- 1.1.19. MainWindow/EntryKeyPressed
- 1.1.20. MainWindow/ExecuteFileMenu
- 1.1.21. MainWindow/GetWindowSize
- 1.1.22. MainWindow/MoveItemMenu
- 1.1.23. MainWindow/Quit
- 1.1.24. MainWindow/Reload
- 1.1.25. MainWindow/SelectAll
- 1.1.26. MainWindow/SelectAllMenu
- 1.1.27. MainWindow/SetFilesMenu
- 1.1.28. MainWindow/SetSelected
- 1.1.29. MainWindow/ShowAbout
- 1.1.30. MainWindow/ShowChangelog
- 1.1.31. MainWindow/ShowContributing
- 1.1.32. MainWindow/ShowFile
- 1.1.33. MainWindow/ShowFiles
- 1.1.34. MainWindow/ShowFilesMenu
- 1.1.35. MainWindow/ShowReadme
- 1.1.36. MainWindow/StartOpenWithMenu
- 1.1.37. MainWindow/StartRename
- 1.1.38. MainWindow/StartRenameMenu
- 1.1.39. MainWindow/WindowKeyPressed
Hunter/MainWindow [ 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;