andrewdavidmackenzie / pigg

Raspberry Pi GPIO GUI
Apache License 2.0
206 stars 8 forks source link

Move config status / save / load to info row #465

Closed andrewdavidmackenzie closed 2 weeks ago

andrewdavidmackenzie commented 1 month ago

Take the current "Unsaved changes" entry in the info row, and add information on:

And move the actions "Save Config" and "Load Config" into a pop-up menu on that text, like the hardware menu..

This will make things all work the same, and also free up some space on the main UI, focussing it on content not menus/actions, and making the size smaller overall.

andrewdavidmackenzie commented 1 month ago

Flesh out the details of all the different cases for what would be shown, and what options would be in the pop-up menu for each case here before starting work on it.

andrewdavidmackenzie commented 1 month ago

Merge the status of config in the info row, so that

When clicked on, it shows the load and save options as a menu.

andrewdavidmackenzie commented 2 weeks ago

With the name of the file set in the window title area when loaded/saved, I think this table summarizes the possible states, text to display and Menu Actions Possible:

State Info Text Displayed Actions possible
Newly Opened config Load
Changes made config: nsaved changes Save As, Load
Saved config Load

When a config is loaded or saved, there will be a transitory info message to say "Saved" or "Loaded"

After load or save as action, the fIle name used is added to window title area.