SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
LicenseAgreementDialog Class Reference

Modal dialog presenting the GPLv3 license agreement on first launch. More...

#include <licenseagreementdialog.h>

Inheritance diagram for LicenseAgreementDialog:
Collaboration diagram for LicenseAgreementDialog:

Public Member Functions

 LicenseAgreementDialog (QWidget *parent=nullptr)
 
 ~LicenseAgreementDialog () override
 

Static Public Member Functions

static bool shouldShowOnStartup ()
 Returns true if the dialog should be shown at startup.
 
static void setShowOnStartup (bool show)
 Persists the "show on startup" preference.
 

Detailed Description

Modal dialog presenting the GPLv3 license agreement on first launch.

The dialog stores whether it should appear again via QSettings under "SWMMVis/LicenseAgreement/showOnStartup". Call shouldShowOnStartup() before constructing the dialog to skip it when the user opted out.

Constructor & Destructor Documentation

◆ LicenseAgreementDialog()

LicenseAgreementDialog::LicenseAgreementDialog ( QWidget *  parent = nullptr)
explicit

◆ ~LicenseAgreementDialog()

LicenseAgreementDialog::~LicenseAgreementDialog ( )
overridedefault

Member Function Documentation

◆ setShowOnStartup()

void LicenseAgreementDialog::setShowOnStartup ( bool  show)
static

Persists the "show on startup" preference.

Parameters
showtrue = show dialog on next launch, false = suppress it.

◆ shouldShowOnStartup()

bool LicenseAgreementDialog::shouldShowOnStartup ( )
static

Returns true if the dialog should be shown at startup.

Reads QSettings. Defaults to true (i.e., show on first run).

Here is the caller graph for this function:

The documentation for this class was generated from the following files: