@@ -47,20 +47,70 @@ class GUI_EXPORT QgsRasterFormatSaveOptionsWidget: public QWidget,
4747 QgsRasterFormatSaveOptionsWidget::Type type = Default,
4848 const QString& provider = " gdal" );
4949
50+ /* *
51+ * Set output raster format, it is used to determine list
52+ * of available options
53+ */
5054 void setFormat ( const QString& format );
55+
56+ /* *
57+ * Set provider key, , it is used to determine list
58+ * of available options
59+ */
5160 void setProvider ( const QString& provider );
61+
62+ /* *
63+ * Set output raster layer
64+ */
5265 void setRasterLayer ( QgsRasterLayer* rasterLayer ) { mRasterLayer = rasterLayer; mRasterFileName = QString (); }
66+
67+ /* *
68+ * Set output raster file name
69+ */
5370 void setRasterFileName ( const QString& file ) { mRasterLayer = nullptr ; mRasterFileName = file; }
71+
72+ /* *
73+ * Returns list of selected options
74+ * @see setOptions()
75+ */
5476 QStringList options () const ;
77+
78+ /* *
79+ * Populate widget with user-defined options
80+ * @see options()
81+ * @note added in QGIS 3.0
82+ */
83+ void setOptions ( const QString& options);
84+
85+ /* *
86+ * Set widget look and feel
87+ */
5588 void setType ( QgsRasterFormatSaveOptionsWidget::Type type = Default );
89+
90+ /* *
91+ * Set pyramids format to use
92+ */
5693 void setPyramidsFormat ( QgsRaster::RasterPyramidsFormat format )
5794 { mPyramids = true ; mPyramidsFormat = format; }
5895
5996 public slots:
6097
6198 void apply ();
99+
100+ /* *
101+ * Opens window with options desctiption for given provider
102+ * and output format
103+ */
62104 void helpOptions ();
105+
106+ /* *
107+ * Validates options correctness
108+ */
63109 QString validateOptions ( bool gui = true , bool reportOk = true );
110+
111+ /* *
112+ * Reloads profiles list from QGIS settings
113+ */
64114 void updateProfiles ();
65115
66116 private slots:
0 commit comments