-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The user should be able to edit the settings of the application.
There should be a button to open the settings page, entierly replacing the main screen of the application.
The settings should be organised in the following way :
- Application Settings
- (currently empty)
- Device Settings (correspond to the fields of the Config class)
- General
- Device Name
- Download Folder
- Allow Connections (!disable_server)
- (Default) Virtual Folder (FileMapping class)
- (virtual folder UI will be described below)
- Advanced
- Virtual Root Name (Config->FileMapping->RootNode->set_name())
- Private Key Directory
- Private Key name
- Transport Mode
- General
- Account
- (currently empty)
- Logout (red button, grayed-out/disabled until we implement accounts)
The result should look like this :
A sidebar where the top-level is the category, not clickable but explains the different sections.
Second level is clickable and changes the main pannel with the different options (3rd level).
There should be a button Save Settings outside of the sidebar/main pannel to save the settings, and a Cancel button to exit the setting screeen without saving.
Saving should write the settings to disk and apply the settings instantly.
Cancel should clear in-memory changes.
Virtual Folder UI
The UI looks like a file-explorer where the root is not / but //fsp (by default, the actual value is the Virtual Root Name value). The explorer opens inside the RootNode, and the user cannot go higher than the root node.
User can create the layout they want by creating folders or links (or deleting them).
Folders can contain more folders/links (VIRTUAL type), and links are linked to a filepath on the HOST computer (HOST_XXX type).
When creating a link, the user can select a file or a folder. Links and folders have a visibility (default to PRIVATE). The user can change the visibility of a created link/folder.
The user can navigate the GUI as if it was a real file-exporer, and can even follow links and see the HOST folders in the GUI (but when viewing a HOST_FOLDER, the user cannot create links or folders. It is just to view them for now).
There should be a displayed at the top of the file-explorer the current path. Each part of the path is clickable and moves the user to the specified directory.
There is also another sidebar on the right that opens when the user click on an virtual/link object. It displays informations about it, and allows the user to change things like name, visibility, host_path (for link objects), and a button to delete it.
There is buttons to Create Folder / Link File and Link Folder visibile at all times, grayed out/disabled when the user is not in a virtual folder.
The user can do the following right-click actions :
- On a virtual / link object :
- Rename
- Delete
- In a virtual folder :
- Create Folder
- Link File
- Link Folder
- On a link folder/file :
- View in file explorer (open the system file explorer to this file/folder)
- In a host folder :
- View in file explorer
