Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
geometrize::dialog::GlobalPreferencesDialog Class Reference

The GlobalPreferencesDialog class models the UI for a tabbed preferences dialog for application-level preferences. Note this is a modal dialog, task-specific preferences are edited elsewhere. More...

#include <globalpreferencesdialog.h>

Inheritance diagram for geometrize::dialog::GlobalPreferencesDialog:
Inheritance graph
[legend]
Collaboration diagram for geometrize::dialog::GlobalPreferencesDialog:
Collaboration graph
[legend]

Classes

class  GlobalPreferencesDialogImpl
 

Public Member Functions

 GlobalPreferencesDialog (QWidget *parent=nullptr)
 
virtual ~GlobalPreferencesDialog ()
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Slots

void on_geometrizeLogo_toggled (bool checked)
 
void on_populateRecents_toggled (bool checked)
 
void on_populateTemplates_toggled (bool checked)
 
void on_useCustomImageTaskBackgroundColor_toggled (bool checked)
 
void on_selectCustomImageBackgroundColorButton_clicked ()
 
void on_replaceTargetImageAlphaWithCustomColor_toggled (bool enabled)
 
void on_selectTargetImageAlphaReplacementColorButton_clicked ()
 
void on_autoLoadImageTaskSettings_toggled (bool checked)
 
void on_autoSaveImageTaskSettings_toggled (bool checked)
 
void on_showLaunchWindowConsoleByDefault_toggled (bool checked)
 
void on_showVectorResultsByDefault_toggled (bool checked)
 
void on_showPixmapResultsByDefault_toggled (bool checked)
 
void on_showImageTaskConsoleByDefault_toggled (bool checked)
 
void on_showScriptEditorsByDefault_toggled (bool checked)
 
void on_imageResize_toggled (bool checked)
 
void on_resizeWidth_valueChanged (int value)
 
void on_resizeHeight_valueChanged (int value)
 
void on_maxThreadsPerImageTask_valueChanged (int value)
 

Private Member Functions

void populateUi ()
 

Private Attributes

std::unique_ptr
< GlobalPreferencesDialogImpl
d
 

Detailed Description

The GlobalPreferencesDialog class models the UI for a tabbed preferences dialog for application-level preferences. Note this is a modal dialog, task-specific preferences are edited elsewhere.

Constructor & Destructor Documentation

geometrize::dialog::GlobalPreferencesDialog::GlobalPreferencesDialog ( QWidget *  parent = nullptr)
explicit
219  : QDialog(parent), d{std::make_unique<GlobalPreferencesDialog::GlobalPreferencesDialogImpl>(this)}
220 {
221 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
geometrize::dialog::GlobalPreferencesDialog::~GlobalPreferencesDialog ( )
virtual
224 {
225 }

Member Function Documentation

void geometrize::dialog::GlobalPreferencesDialog::changeEvent ( QEvent *  event)
overrideprotected
318 {
319  if (event->type() == QEvent::LanguageChange) {
320  d->onLanguageChange();
321  }
322  QDialog::changeEvent(event);
323 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_autoLoadImageTaskSettings_toggled ( bool  checked)
privateslot
263 {
264  d->setAutoLoadImageTaskSettings(checked);
265 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_autoSaveImageTaskSettings_toggled ( bool  checked)
privateslot
268 {
269  d->setAutoSaveImageTaskSettings(checked);
270 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_geometrizeLogo_toggled ( bool  checked)
privateslot
228 {
229  d->setGeometrizeLogo(checked);
230 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_imageResize_toggled ( bool  checked)
privateslot
298 {
299  d->setImageTaskImageResize(checked);
300 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_maxThreadsPerImageTask_valueChanged ( int  value)
privateslot
313 {
314  d->setMaxThreadsPerImageTask(value);
315 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_populateRecents_toggled ( bool  checked)
privateslot
233 {
234  d->setPopulateRecents(checked);
235 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_populateTemplates_toggled ( bool  checked)
privateslot
238 {
239  d->setPopulateTemplates(checked);
240 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_replaceTargetImageAlphaWithCustomColor_toggled ( bool  enabled)
privateslot
253 {
254  d->setShouldReplaceTargetImageAlphaWithCustomColor(enabled);
255 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_resizeHeight_valueChanged ( int  value)
privateslot
308 {
309  d->setImageTaskImageResizeThresholdHeight(value);
310 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_resizeWidth_valueChanged ( int  value)
privateslot
303 {
304  d->setImageTaskImageResizeThresholdWidth(value);
305 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_selectCustomImageBackgroundColorButton_clicked ( )
privateslot
248 {
249  d->openCustomImageBackgroundBackgroundColorPicker();
250 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_selectTargetImageAlphaReplacementColorButton_clicked ( )
privateslot
258 {
259  d->openCustomImageAlphaReplacementColorPicker();
260 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_showImageTaskConsoleByDefault_toggled ( bool  checked)
privateslot
288 {
289  d->setShowImageTaskConsoleByDefault(checked);
290 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_showLaunchWindowConsoleByDefault_toggled ( bool  checked)
privateslot
273 {
274  d->setShowLaunchWindowConsoleByDefault(checked);
275 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_showPixmapResultsByDefault_toggled ( bool  checked)
privateslot
283 {
284  d->setShowPixmapResultsByDefault(checked);
285 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_showScriptEditorsByDefault_toggled ( bool  checked)
privateslot
293 {
294  d->setShowScriptEditorsByDefault(checked);
295 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_showVectorResultsByDefault_toggled ( bool  checked)
privateslot
278 {
279  d->setShowVectorResultsByDefault(checked);
280 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::on_useCustomImageTaskBackgroundColor_toggled ( bool  checked)
privateslot
243 {
244  d->setShouldUseCustomImageTaskBackgroundOverrideColor(checked);
245 }
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void geometrize::dialog::GlobalPreferencesDialog::populateUi ( )
private

Member Data Documentation

std::unique_ptr<GlobalPreferencesDialogImpl> geometrize::dialog::GlobalPreferencesDialog::d
private

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