![]() |
SudokuFX
|
ViewModel responsible for displaying the help dialog. More...
Collaboration diagram for fr.softsf.sudokufx.viewmodel.HelpViewModel:Public Member Functions | |
| HelpViewModel (IOsFolder iOsFolder, Coordinator coordinator) | |
| Constructs the HelpViewModel with required dependencies. | |
| void | showHelp () |
| Shows the help dialog with application and system information. | |
Package Functions | |
| void | displayAlert (MyAlert alert) |
| Displays the given alert and waits for user interaction. | |
Private Member Functions | |
| void | addLogFileButton (MyAlert informationAlert) |
| Adds an "Open log file" button to the given alert. | |
| void | addWebsiteButton (MyAlert informationAlert) |
| Adds a "Visit my website" button to the given alert. | |
Private Attributes | |
| final Coordinator | coordinator |
| final IOsFolder | iOsFolder |
Static Private Attributes | |
| static final double | ALERT_SIZE_RATIO = 0.6 |
ViewModel responsible for displaying the help dialog.
It retrieves application and system information to show in an informational alert.
| fr.softsf.sudokufx.viewmodel.HelpViewModel.HelpViewModel | ( | IOsFolder | iOsFolder, |
| Coordinator | coordinator ) |
Constructs the HelpViewModel with required dependencies.
| iOsFolder | service providing OS folder paths |
| coordinator | navigation coordinator for external actions |
|
private |
Adds an "Open log file" button to the given alert.
The button is aligned to the left and opens the system log file when clicked. The file path is resolved via iOsFolder.getOsLogsFolderPath() and validated beforehand.
| informationAlert | the alert to which the log file button will be added; must not be null |
| NullPointerException | if informationAlert is null or if the resolved file is null |
| IllegalArgumentException | if the resolved path is blank |
|
private |
Adds a "Visit my website" button to the given alert.
The button is aligned to the left and opens my website page when clicked.
| informationAlert | the alert to which the website button will be added; must not be null |
| NullPointerException | if informationAlert is null |
|
package |
Displays the given alert and waits for user interaction.
| alert | the alert to display; must not be null |
| NullPointerException | if alert is null |
| void fr.softsf.sudokufx.viewmodel.HelpViewModel.showHelp | ( | ) |
Shows the help dialog with application and system information.
Adds a "Become a sponsor!" button to the alert.
Here is the call graph for this function:
|
staticprivate |
|
private |
|
private |