7#ifndef DLG_SETTINGS_COLOR_FILTER_H
8#define DLG_SETTINGS_COLOR_FILTER_H
56 void slotCurveName(
const QString &curveName);
57 void slotDividerHigh (
double);
58 void slotDividerLow (
double);
59 void slotForeground();
62 void slotSaturation();
71 void createControls (QGridLayout *layout,
int &row);
72 void createPreview (QGridLayout *layout,
int &row);
73 void createProfileAndScale (QGridLayout *layout,
int &row);
75 void loadForCurveName();
76 static int PROFILE_HEIGHT_IN_ROWS () {
return 6; }
77 static int PROFILE_SCENE_WIDTH () {
return 100; }
78 static int PROFILE_SCENE_HEIGHT () {
return 100; }
79 void updateHistogram();
82 ButtonWhatsThis *m_btnWhatsThis;
84 QComboBox *m_cmbCurveName;
86 QRadioButton *m_btnIntensity;
87 QRadioButton *m_btnForeground;
88 QRadioButton *m_btnHue;
89 QRadioButton *m_btnSaturation;
90 QRadioButton *m_btnValue;
92 QGraphicsScene *m_sceneProfile;
93 ViewProfile *m_viewProfile;
94 ViewProfileScale *m_scale;
96 QGraphicsScene *m_scenePreview;
97 ViewPreview *m_viewPreview;
98 ViewProfileDivider *m_dividerLow;
99 ViewProfileDivider *m_dividerHigh;
103 DlgFilterThread *m_filterThread;
105 QImage m_imagePreview;
107 DocumentModelColorFilter *m_modelColorFilterBefore;
108 DocumentModelColorFilter *m_modelColorFilterAfter;
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qt...
DlgSettingsAbstractBase(const QString &title, const QString &dialogName, MainWindow &mainWindow)
Single constructor.
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
MainWindow & mainWindow()
Get method for MainWindow.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
DlgSettingsColorFilter(MainWindow &mainWindow)
Single constructor.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
void slotTransferPiece(int xLeft, QImage image)
Receive processed piece of preview image, to be inserted at xLeft to xLeft+pixmap....
virtual void handleOk()
Process slotOk.
virtual ~DlgSettingsColorFilter()
void signalApplyFilter(ColorFilterMode colorFilterMode, double low, double high)
Send filter parameters to DlgFilterThread and DlgFilterWorker for processing.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window,...
Divider that can be dragged, in a dialog QGraphicsView.
Linear horizontal scale, with the spectrum reflecting the active filter parameter.
Class that modifies QGraphicsView to present a two-dimensional profile, with movable dividers for sel...