20 #ifndef SETTINGSDIALOG_H
21 #define SETTINGSDIALOG_H
51 QWidget *parent =
nullptr);
188 static void saveCheckboxValue(QSettings *settings,
const QCheckBox *box,
const QString &name);
List of applications user has specified to open errors with.
bool showNoErrorsMessage() const
Get checkbox value for mNoErrorsMessage.
void browsePythonPath()
Slot for browsing for the python binary.
SettingsDialog & operator=(const SettingsDialog &)=delete
void ok()
Slot for clicking OK.
bool saveAllErrors() const
Get checkbox value for mSaveAllErrors.
void browseClangPath()
Slot for browsing for the clang binary.
void saveSettingValues() const
Save all values to QSettings.
static void saveCheckboxValue(QSettings *settings, const QCheckBox *box, const QString &name)
Save a single checkboxes value.
void populateApplicationList()
Clear all applications from the list and re insert them from mTempApplications.
SettingsDialog(const SettingsDialog &)=delete
bool saveFullPath() const
Get checkbox value for mSaveFullPath.
CodeEditorStyle * mCurrentStyle
Current Code Editor Style.
void editApplication()
Slot for modifying an application in the list.
void addApplication()
Slot for adding a new application to the list.
void removeApplication()
Slot for deleting an application from the list.
void browseMisraFile()
Browse for MISRA file.
void editCodeEditorStyle()
Edit Custom Code Editor Style.
ApplicationList * mTempApplications
Temporary list of applications This will be copied to actual list of applications (mApplications) whe...
TranslationHandler * mTranslator
List of translations.
void validateEditPythonPath()
Slot for validating input value in editPythonPath.
~SettingsDialog() override
void loadSettings()
Load saved values Loads dialog size and column widths.
void initTranslationsList()
Populate the translations list.
static constexpr int mLangCodeRole
void manageStyleControls()
static bool checkStateToBool(Qt::CheckState state)
Converts Qt::CheckState to bool.
void saveSettings() const
Save settings Save dialog size and column widths.
SettingsDialog(ApplicationList *list, TranslationHandler *translator, bool premium, QWidget *parent=nullptr)
bool showInconclusive() const
Get checkbox value for mEnableInconclusive.
Ui::Settings * mUI
Dialog from UI designer.
static Qt::CheckState boolToCheckState(bool yes)
Convert bool to Qt::CheckState.
ApplicationList * mApplications
List of applications user has specified.
void defaultApplication()
Slot for making the selected application as the default (first)
void setCodeEditorStyleDefault()
Set Code Editor Style to Default.
bool showFullPath() const
Get checkbox value for mShowFullPath.
bool showErrorId() const
Get checkbox value for mShowIdColumn.
This is just a container for general settings so that we don't need to pass individual values to func...
A class handling the available translations.