-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from XanatosX/feature/fix-non-hotkey-closeabl…
…e-modals Fix windows which are not closeable via hotkey
- Loading branch information
Showing
31 changed files
with
195 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Add a new function | ||
|
||
This documentation will tell you on how to add a new function to the application. If you are unsure what a function is check out the [what is a function][what-is-a-function] documentation. | ||
|
||
To add a new function click on `File->New Function` while being in the main window. This will open up the add function screen | ||
|
||
![add-a-function] | ||
|
||
Provide display name for the function, this will be shown on the button. The name needs to be 5 - 25 chars. If you want add an description, this will be shown as a tooltip if you hover over the button later on. | ||
|
||
![select-plugin] | ||
|
||
Select the plugin to start the application or binary. Checkout the [plugin overview][available-plugins] for more information. | ||
|
||
![additional-settings] | ||
|
||
Select the setting specific for this function. For more information about the [setting scope][setting-scope] check the documentation. | ||
|
||
If required enter any function parameters, those are arguments which are getting parsed to the script or application. | ||
|
||
Select the path to the script or application to start. To do so press the `...` next to the text field | ||
|
||
![final-function] | ||
|
||
If everything is entered as expected, press the `Ok` button. If the button is still grayed out something is wrong or could not be found. | ||
|
||
The function will now be shown in the main view like this. | ||
|
||
![function-in-tool] | ||
|
||
Showing the tooltip on hover | ||
|
||
![function-in-tool-tooltip] | ||
|
||
Press the button you created to start the tool. If this is not working you will need to check the log file for further information. | ||
|
||
## User Manual | ||
|
||
Go back to the [user manual][back] | ||
|
||
[back]: user-manual.md | ||
[what-is-a-function]: ./what-is-a-function.md | ||
[available-plugins]: ./plugin-overview.md | ||
[setting-scope]: ./scope-of-a-setting.md | ||
[main-window]: https://i.imgur.com/oswayay.png | ||
[add-a-function]: https://i.imgur.com/mr3Folx.png | ||
[select-plugin]: https://i.imgur.com/8ITUSA3.png | ||
[additional-settings]: https://i.imgur.com/O8va6Gd.png | ||
[final-function]: https://i.imgur.com/lmiIzjX.png | ||
[function-in-tool]: https://i.imgur.com/60cHafm.png | ||
[function-in-tool-tooltip]: https://i.imgur.com/8lUHaiU.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# What is a function | ||
|
||
The term function in connection with the `Modular Tool Manager` is a set of data required to start a specific application or script. Those functions are displayed as buttons on the main window | ||
|
||
![main-window] | ||
|
||
`My test function` is a function which will start a specific application or script. | ||
|
||
## User Manual | ||
|
||
Go back to the [user manual][back] | ||
|
||
[back]: user-manual.md | ||
|
||
[main-window]: https://i.imgur.com/oswayay.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
using Avalonia.Controls; | ||
using Avalonia.Platform.Storage; | ||
using System.Collections.Generic; | ||
|
||
namespace ModularToolManager.Models; | ||
|
||
/// <summary> | ||
/// Record for the openinig a file open dialog | ||
/// Record for the opening a file open dialog | ||
/// </summary> | ||
/// <param name="FileDialogFilters">The filter for the dialog</param> | ||
/// <param name="InialDirectory">The directory to start in</param> | ||
/// <param name="InitialDirectory">The directory to start in</param> | ||
/// <param name="AllowMultipleSelection">Allow selecting multiple files</param> | ||
public record ShowOpenFileDialogModel(List<FileDialogFilter> FileDialogFilters, string? InialDirectory, bool AllowMultipleSelection); | ||
public record ShowOpenFileDialogModel(List<FilePickerFileType> FileDialogFilters, string? InitialDirectory, bool AllowMultipleSelection); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.