@@ -44,25 +44,75 @@ class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPrope
44
44
void sync ();
45
45
46
46
public slots:
47
+ // TODO: Verify that these all need to be public
47
48
/* * \brief Applies the settings made in the dialog without closing the box */
48
49
void apply ();
49
- /* * \brief slot executed when the transparency level changes. */
50
- void sliderTransparency_valueChanged ( int );
51
- /* * \brief slot executed when the max red level changes. */
52
- void on_rbtnSingleBand_toggled ( bool );
53
- /* * \brief slot executed when the three band radio button is pressed. */
54
- void on_rbtnThreeBand_toggled ( bool );
55
50
/* * \brief this slot asks the rasterlayer to construct pyramids */
56
51
void on_buttonBuildPyramids_clicked ();
57
- /* * \brief slot executed when user wishes to refresh raster histogram */
58
- void on_pbnHistRefresh_clicked ();
59
- /* * Override the SRS specified when the layer was loaded */
60
- void on_pbnChangeSpatialRefSys_clicked ();
52
+ /* * \brief slot executed when user presses "Add Values From Display" button on the transparency page */
53
+ void on_pbnAddValuesFromDisplay_clicked ();
54
+ /* * \brief slot executed when user presses "Add Values Manually" button on the transparency page */
55
+ void on_pbnAddValuesManually_clicked ();
61
56
/* * Help button */
62
57
void on_buttonBox_helpRequested ();
63
-
64
- signals:
65
-
58
+ /* * Override the SRS specified when the layer was loaded */
59
+ void on_pbnChangeSpatialRefSys_clicked ();
60
+ /* * \brief slot executed when user wishes to reset noNoDataValue and transparencyTable to default value */
61
+ void on_pbnDefaultValues_clicked ();
62
+ /* * \brief slot executed when user wishes to export transparency values */
63
+ void on_pbnExportTransparentPixelValues_clicked ();
64
+ /* * \brief slot executed when user wishes to refresh raster histogram */
65
+ void on_pbnHistRefresh_clicked ();
66
+ /* * \brief slow executed when user wishes to import transparency values */
67
+ void on_pbnImportTransparentPixelValues_clicked ();
68
+ /* * \brief slot executed when user presses "Remove Selected Row" button on the transparency page */
69
+ void on_pbnRemoveSelectedRow_clicked ();
70
+ /* * \brief slot executed when the single band radio button is pressed. */
71
+ void on_rbtnSingleBand_toggled ( bool );
72
+ /* * \brief slot executed when the single band min max radio button is pressed. */
73
+ void on_rbtnSingleBandMinMax_toggled ( bool );
74
+ /* * \brief slot executed when the single band standard deviation radio button is pressed. */
75
+ void on_rbtnSingleBandStdDev_toggled ( bool );
76
+ /* * \brief slot executed when the three band radio button is pressed. */
77
+ void on_rbtnThreeBand_toggled ( bool );
78
+ /* * \brief slot executed when the three band min max radio button is pressed. */
79
+ void on_rbtnThreeBandMinMax_toggled ( bool );
80
+ /* * \brief slot executed when the three band standard deviation radio button is pressed. */
81
+ void on_rbtnThreeBandStdDev_toggled ( bool );
82
+ /* * \brief this slot clears min max values from gui */
83
+ void sboxSingleBandStdDev_valueChanged (double );
84
+ /* * \brief this slot clears min max values from gui */
85
+ void sboxThreeBandStdDev_valueChanged (double );
86
+ /* * \brief slot executed when the transparency level changes. */
87
+ void sliderTransparency_valueChanged ( int );
88
+ /* * \brief this slot sets StdDev switch box to 0.00 when user enters min max values */
89
+ void userDefinedMinMax_textEdited (QString);
90
+
91
+ private slots:
92
+ /* * This slow handles necessary interface modifiations (i.e., loading min max values) */
93
+ void on_cboBlue_currentIndexChanged (const QString&);
94
+ /* * This slow handles necessary interface modifiations (i.e., loading min max values) */
95
+ void on_cboGray_currentIndexChanged (const QString&);
96
+ /* * This slow handles necessary interface modifiations (i.e., loading min max values) */
97
+ void on_cboGreen_currentIndexChanged (const QString&);
98
+ /* * This slow handles necessary interface modifiations (i.e., loading min max values) */
99
+ void on_cboRed_currentIndexChanged (const QString&);
100
+ /* *The slot handles necessary interface modifications based when color map selected changes*/
101
+ void on_cboxColorMap_currentIndexChanged (const QString&);
102
+ /* *The slot handles necessary interface modifications based when transparency band selection changes*/
103
+ void on_cboxTransparencyLayer_currentIndexChanged (const QString&);
104
+ /* *This slot calculates classification values and colors for the tree widget on the colormap tab*/
105
+ void on_mClassifyButton_clicked ();
106
+ /* *This slot deletes the current class from the tree widget on the colormap tab*/
107
+ void on_mDeleteEntryButton_clicked ();
108
+ /* *Callback for double clicks on the colormap entry widget*/
109
+ void handleColormapTreeWidgetDoubleClick (QTreeWidgetItem* item, int column);
110
+ /* *This slot loads the minimum and maximum values from the raster band and updates the gui*/
111
+ void on_pbtnLoadMinMax_clicked ();
112
+
113
+
114
+ signals:
115
+
66
116
/* * emitted when changes to layer were saved to update legend */
67
117
void refreshLegend (QString layerID, bool expandItem);
68
118
@@ -87,6 +137,28 @@ class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPrope
87
137
88
138
/* * Id for context help */
89
139
static const int context_id = 394441851 ;
140
+
141
+ /* * \brief Clear the current transparency table and populate the table with the correct types for current drawing mode and data type*/
142
+ void populateTransparencyTable ();
143
+
144
+ /* * \brief Verify values in custom min max line edits */
145
+ bool validUserDefinedMinMax ();
146
+
147
+ /* *Restores the state of the colormap tab*/
148
+ void syncColormapTab ();
149
+
150
+ // Short circuit signal loop between min max field and stdDev spin box
151
+ bool ignoreSpinBoxEvent;
152
+
153
+ // @TODO we should move these gradient generators somewhere more generic
154
+ // so they can be used generically throughut the app
155
+ QLinearGradient greenGradient ();
156
+ QLinearGradient redGradient ();
157
+ QLinearGradient blueGradient ();
158
+ QLinearGradient grayGradient ();
159
+ QLinearGradient highlightGradient ();
160
+ qreal mGradientHeight ;
161
+ qreal mGradientWidth ;
90
162
};
91
163
92
164
#endif
0 commit comments