19
19
#ifndef KSTIMAGEDIALOGI_H
20
20
#define KSTIMAGEDIALOGI_H
22
#include "imagedialog.h"
22
#include "kstdatadialog.h"
23
23
#include "kstimage.h"
25
class KstImageDialogI : public KstImageDialog {
24
#include "kst_export.h"
26
class ImageDialogWidget;
28
class KST_EXPORT KstImageDialogI : public KstDataDialog {
28
KstImageDialogI(QWidget *parent = 0, const char *name = 0,
29
bool modal = false, WFlags fl = 0 );
31
KstImageDialogI(QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags fl = 0 );
30
32
virtual ~KstImageDialogI();
33
static KstImageDialogI *globalInstance();
34
37
void updateWindow();
39
static KstImageDialogI *globalInstance();
40
void populateEditMultiple();
41
void setMatrix(const QString& name);
44
static QGuardedPtr<KstImageDialogI> _inst;
45
void placeInPlot(KstImagePtr image);
46
bool checkParameters(double& lowerZDouble, double& upperZDouble);
47
void fillFieldsForEditNoUpdate();
49
// the following are for the multiple edit mode
50
bool _matrixDirty : 1;
51
bool _colorOnlyDirty : 1;
52
bool _contourOnlyDirty : 1;
53
bool _colorAndContourDirty : 1;
54
bool _paletteDirty : 1;
55
bool _lowerZDirty : 1;
56
bool _upperZDirty : 1;
57
bool _realTimeAutoThresholdDirty : 1;
58
bool _numContourLinesDirty : 1;
59
bool _contourWeightDirty : 1;
60
bool _useVariableWeightDirty : 1;
61
bool _contourColorDirty : 1;
62
bool editSingleObject(KstImagePtr imPtr);
42
65
void calcAutoThreshold();
43
66
void updateGroups();
44
67
void updateEnables();
50
static QGuardedPtr<KstImageDialogI> _inst;
51
KstImagePtr _getPtr(const QString& tagin);
55
void placeInPlot(KstImagePtr image);
56
bool checkParameters(double& lowerZDouble, double& upperZDouble);
58
/***********************************/
59
/** defined in dataobjectdialog.h **/
61
void show_Edit(const QString &field);
68
void _fillFieldsForEdit();
69
void _fillFieldsForNew();
68
void updatePalette(const QString& palette);
70
// for multiple edit mode
71
void setColorOnlyDirty() { _colorOnlyDirty = true; }
72
void setContourOnlyDirty() { _contourOnlyDirty = true; }
73
void setColorAndContourDirty() { _colorAndContourDirty = true; }
74
void setRealTimeAutoThresholdDirty();
75
void setUseVariableWeightDirty();
76
void setContourColorDirty() { _contourColorDirty = true; }
79
void fillFieldsForEdit();
80
void fillFieldsForNew();
82
ImageDialogWidget *_w;