7 #ifndef DLG_SETTINGS_COLOR_FILTER_H 8 #define DLG_SETTINGS_COLOR_FILTER_H 10 #include "ColorFilterMode.h" 11 #include "DlgSettingsAbstractBase.h" 55 void slotCurveName(
const QString &curveName);
56 void slotDividerHigh (
double);
57 void slotDividerLow (
double);
58 void slotForeground();
61 void slotSaturation();
69 void createControls (QGridLayout *layout,
int &row);
70 void createPreview (QGridLayout *layout,
int &row);
71 void createProfileAndScale (QGridLayout *layout,
int &row);
73 void loadForCurveName();
74 static int PROFILE_HEIGHT_IN_ROWS () {
return 6; }
75 static int PROFILE_SCENE_WIDTH () {
return 100; }
76 static int PROFILE_SCENE_HEIGHT () {
return 100; }
77 void updateHistogram();
80 QComboBox *m_cmbCurveName;
82 QRadioButton *m_btnIntensity;
83 QRadioButton *m_btnForeground;
84 QRadioButton *m_btnHue;
85 QRadioButton *m_btnSaturation;
86 QRadioButton *m_btnValue;
88 QGraphicsScene *m_sceneProfile;
92 QGraphicsScene *m_scenePreview;
101 QImage m_imagePreview;
107 #endif // DLG_SETTINGS_COLOR_FILTER_H void slotTransferPiece(int xLeft, QImage image)
Receive processed piece of preview image, to be inserted at xLeft to xLeft+pixmap.width().
virtual void handleOk()
Process slotOk.
void signalApplyFilter(ColorFilterMode colorFilterMode, double low, double high)
Send filter parameters to DlgFilterThread and DlgFilterWorker for processing.
virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
Dialog for editing filtering settings.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Linear horizontal scale, with the spectrum reflecting the active filter parameter.
Divider that can be dragged, in a dialog QGraphicsView.
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qt...
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
DlgSettingsColorFilter(MainWindow &mainWindow)
Single constructor.
Abstract base class for all Settings dialogs.
Class that modifies QGraphicsView to present a two-dimensional profile, with movable dividers for sel...
MainWindow & mainWindow()
Get method for MainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.