phargogh / palisades

Configurable UI chunks for PyQt user interfaces
0 stars 0 forks source link

Allow folder to be opened on completion #26

Open phargogh opened 9 years ago

phargogh commented 9 years ago

Palisades should provide an option for the workspace to be opened after execution completes. To enable this, the user should provide a flag of whether the workspace should be opened after execution completes in the JSON file. The attribute should be formatted like this:

"open_dir_on_complete": {
    "type": "element",
    "id": "<string id of the target element from which we should take the value>"
}

Other types might include:

open_dir_on_complete: {
    "type": "folder",
    "path": "C:\path\to\folder"
}

If the user provides this option, the UI should show a labeled checkbox on the execution dialog (checked by default), indicating whether the folder should be opened after the model executes. If the model completes successfully, the workspace should be opened if the checkbox is checked.

If the user does not provide this configuration option in the json configuration object, the workspace should not be opened and the checkbox should not appear.