Other: added 'All Mail Visible' toggle in bridge-gui-tester.

This commit is contained in:
Xavier Michelon
2022-09-15 12:22:46 +02:00
parent 43ac21fd66
commit 8a7c56e8fd
7 changed files with 101 additions and 15 deletions

View File

@ -199,6 +199,24 @@ void SettingsTab::setIsBetaEnabled(bool enabled)
}
//****************************************************************************************************************************************************
/// \return true if the 'All Mail Visible' check box is checked.
//****************************************************************************************************************************************************
bool SettingsTab::isAllMailVisible() const
{
return ui_.checkAllMailVisible->isChecked();
}
//****************************************************************************************************************************************************
/// \param[in] visible The new value for the 'All Mail Visible' check box.
//****************************************************************************************************************************************************
void SettingsTab::setIsAllMailVisible(bool visible)
{
ui_.checkAllMailVisible->setChecked(visible);
}
//****************************************************************************************************************************************************
/// \return The delay to apply before sending automatically generated events.
//****************************************************************************************************************************************************
@ -447,6 +465,7 @@ void SettingsTab::resetUI()
ui_.checkIsFirstGUIStart->setChecked(false);
ui_.checkAutostart->setChecked(true);
ui_.checkBetaEnabled->setChecked(true);
ui_.checkAllMailVisible->setChecked(true);
ui_.checkDarkTheme->setChecked(false);
QString const tmpDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);

View File

@ -46,6 +46,7 @@ public: // member functions.
bool isFirstGUIStart() const; ///< Get the value for the 'Is First GUI Start' check.
bool isAutostartOn() const; ///< Get the value for the 'Autostart' check.
bool isBetaEnabled() const; ///< Get the value for the 'Beta Enabled' check.
bool isAllMailVisible() const; ///< Get the value for the 'All Mail Visible' check.
QString colorSchemeName() const; ///< Get the value of the 'Use Dark Theme' checkbox.
qint32 eventDelayMs() const; ///< Get the delay for sending automatically generated events.
QString logsPath() const; ///< Get the content of the 'Logs Path' edit.
@ -70,9 +71,10 @@ public: // slots
void updateGUIState(); ///< Update the GUI state.
void setIsStreaming(bool isStreaming); ///< Set the isStreamingEvents value.
void setClientPlatform(QString const &clientPlatform); ///< Set the client platform.
void setIsAutostartOn(bool on); ///< Set the value for the 'Autostart' check.
void setIsBetaEnabled(bool enabled); ///< Get the value for the 'Beta Enabled' check.
void setColorSchemeName(QString const &name); ///< Set the value for the 'Use Dark Theme' checkbox.
void setIsAutostartOn(bool on); ///< Set the value for the 'Autostart' check box.
void setIsBetaEnabled(bool enabled); ///< Set the value for the 'Beta Enabled' check box.
void setIsAllMailVisible(bool visible); ///< Set the value for the 'All Mail Visible' check box.
void setColorSchemeName(QString const &name); ///< Set the value for the 'Use Dark Theme' check box.
void setBugReport(QString const &osType, QString const &osVersion, QString const &emailClient, QString const &address, QString const &description,
bool includeLogs); ///< Set the content of the bug report box.
void changePorts(qint32 imapPort, qint32 smtpPort); ///< Change the IMAP and SMTP ports.

View File

@ -153,7 +153,14 @@
</property>
</widget>
</item>
<item row="1" column="2">
<item row="2" column="1">
<widget class="QCheckBox" name="checkAutomaticUpdate">
<property name="text">
<string>Automatic Update</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkDarkTheme">
<property name="text">
<string>Dark Theme</string>
@ -163,10 +170,13 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkAutomaticUpdate">
<item row="1" column="2">
<widget class="QCheckBox" name="checkAllMailVisible">
<property name="text">
<string>Automatic Update</string>
<string>Show 'All Mail'</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
@ -814,25 +824,42 @@
</layout>
</widget>
<tabstops>
<tabstop>editVersion</tabstop>
<tabstop>comboOS</tabstop>
<tabstop>editCurrentEmailClient</tabstop>
<tabstop>checkShowOnStartup</tabstop>
<tabstop>checkShowSplashScreen</tabstop>
<tabstop>checkIsFirstGUIStart</tabstop>
<tabstop>checkAutostart</tabstop>
<tabstop>checkBetaEnabled</tabstop>
<tabstop>checkAllMailVisible</tabstop>
<tabstop>checkDarkTheme</tabstop>
<tabstop>editVersion</tabstop>
<tabstop>comboOS</tabstop>
<tabstop>editCurrentEmailClient</tabstop>
<tabstop>editOSType</tabstop>
<tabstop>editOSVersion</tabstop>
<tabstop>editEmailClient</tabstop>
<tabstop>editAddress</tabstop>
<tabstop>editDescription</tabstop>
<tabstop>checkAutomaticUpdate</tabstop>
<tabstop>editHostname</tabstop>
<tabstop>spinPortIMAP</tabstop>
<tabstop>spinPortSMTP</tabstop>
<tabstop>checkUseSSLForSMTP</tabstop>
<tabstop>checkDoHEnabled</tabstop>
<tabstop>editLogsPath</tabstop>
<tabstop>editLicensePath</tabstop>
<tabstop>editReleaseNotesLink</tabstop>
<tabstop>editDependencyLicenseLink</tabstop>
<tabstop>editLandingPageLink</tabstop>
<tabstop>checkCacheOnDiskEnabled</tabstop>
<tabstop>editDiskCachePath</tabstop>
<tabstop>editOSType</tabstop>
<tabstop>editOSVersion</tabstop>
<tabstop>editEmailClient</tabstop>
<tabstop>editAddress</tabstop>
<tabstop>editDescription</tabstop>
<tabstop>spinEventDelay</tabstop>
<tabstop>buttonInternetOff</tabstop>
<tabstop>buttonInternetOn</tabstop>
<tabstop>buttonShowMainWindow</tabstop>
<tabstop>checkIsPortFree</tabstop>
<tabstop>checkNextCacheChangeWillSucceed</tabstop>
<tabstop>comboCacheError</tabstop>
<tabstop>checkNextBugReportWillSucceed</tabstop>
</tabstops>
<resources/>
<connections/>