C# Class Yava.Yava

Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: Beluki/Yava

Public Methods

Method Description
Yava ( String settingsFilepath, String foldersFilepath ) : System

Yava implementation.

Private Methods

Method Description
FoldersFileOpen ( ) : void

Open the folders file with the default program associated to the extension.

GlobalHotkeysHook ( ) : void

Start the global hotkeys hook.

GlobalHotkeysUnhook ( System.Boolean quiet = false ) : void

Stop the global hotkeys hook.

ListViewFilesExecuteFile ( FolderFile file ) : void

Execute a file from the files listview.

ListViewFilesExecuteSelectedFile ( ) : void

Run the currently selected file on the files listview.

ListViewFilesRememberSelectedFile ( ) : void

Remember the current folder selected file path. Used in combination with ListViewFilesSelectLastSelectedFile() to set the selected file after reloading the listview.

ListViewFilesResize ( ) : void

Resize the files ListView first column according to the content.

ListViewFilesSelectLastSelectedFile ( ) : void

Try to select the file that was last selected on the files listview.

ListViewFoldersRememberSelectedFolder ( ) : void

Remember the currently selected folder name. Used in combination with ListViewFoldersSelectLastSelectedFolder() to set the selected folder after reloading the listview.

ListViewFoldersResize ( ) : void

Resize the folder ListView first column according to the content.

ListViewFoldersSelectLastSelectedFolder ( ) : void

Try to select the folder that was last selected on the folders listview.

LoadContent ( ) : void

Loads both folders and files, selecting the last selected ones when possible.

LoadFiles ( ) : void

Populate the files listview using the selected folders files. On errors, show a MessageBox with details.

LoadFolders ( ) : void

Open the folders file and parse the content adding each folder to the folders listview. On errors, show a MessageBox with details.

OnFilesListViewItemSelectionChanged ( Object sender, System.Windows.Forms.ListViewItemSelectionChangedEventArgs e ) : void

When the file selection changes remember the new one as the last selected file.

OnFilesListViewKeyDown ( Object sender, KeyEventArgs e ) : void

Files listview keyboard shortcuts.

OnFilesListViewMouseDoubleClick ( Object sender, MouseEventArgs e ) : void

On double click, run the currently selected file.

OnFoldersListViewItemSelectionChanged ( Object sender, System.Windows.Forms.ListViewItemSelectionChangedEventArgs e ) : void

When the folder selection changes, load the appropriate files list and try to select the last known selected file.

OnFoldersListViewKeyDown ( Object sender, KeyEventArgs e ) : void

Folders listview keyboard shortcuts.

OnFormClosing ( Object sender, FormClosingEventArgs e ) : void

When the form is closed, save settings, unhook hotkeys.

OnHotkeyDown ( Object sender, LowKey.KeyboardHookEventArgs e ) : void

Global keyboard hotkeys.

OnResizeEnd ( Object sender, EventArgs e ) : void

When the form is resized, auto-resize the listviews.

OnSplitterMoved ( Object sender, EventArgs e ) : void

When the spliiter is moved, auto-resize the listviews.

SettingsLoad ( ) : YavaSettings

Load the settings from our settings filepath if it exists. Return default settings otherwise.

SettingsSave ( ) : void

Save the current settings.

TryClosingCurrentFileProcess ( ) : void

Try closing the current file process by sending a close message to its main window. Do nothing if there is no process running or it can't be closed.

TryKillingCurrentFileProcess ( ) : void

Try to kill the current file process immediately. Do nothing if there is no process running or it can't be killed.

Method Details

Yava() public method

Yava implementation.
public Yava ( String settingsFilepath, String foldersFilepath ) : System
settingsFilepath String /// Path to the settings file to use. ///
foldersFilepath String /// Path to the folders file to use. ///
return System