16#ifndef QGSPROCESSINGOUTPUTDESTINATIONWIDGET_H
17#define QGSPROCESSINGOUTPUTDESTINATIONWIDGET_H
19#include "ui_qgsprocessingdestinationwidgetbase.h"
39class GUI_EXPORT QgsProcessingLayerOutputDestinationWidget :
public QWidget,
private Ui::QgsProcessingDestinationWidgetBase
47 QgsProcessingLayerOutputDestinationWidget(
const QgsProcessingDestinationParameter *parameter,
bool defaultSelection, QWidget *parent
SIP_TRANSFERTHIS =
nullptr );
52 bool outputIsSkipped()
const;
57 void setValue(
const QVariant &value );
62 QVariant value()
const;
69 void setWidgetContext(
const QgsProcessingParameterWidgetContext &context );
74 void setContext( QgsProcessingContext *context );
82 void registerProcessingParametersGenerator( QgsProcessingParametersGenerator *generator );
87 void addOpenAfterRunningOption();
92 bool openAfterRunning()
const;
99 void skipOutputChanged(
bool skipped );
104 void destinationChanged();
107 void dragEnterEvent( QDragEnterEvent *event )
override;
108 void dragLeaveEvent( QDragLeaveEvent *event )
override;
109 void dropEvent( QDropEvent *event )
override;
113 void menuAboutToShow();
115 void saveToTemporary();
116 void selectDirectory();
118 void saveToGeopackage();
119 void saveToDatabase();
120 void appendToLayer();
121 void selectEncoding();
122 void textChanged(
const QString &text );
125 void setAppendDestination(
const QString &uri,
const QgsFields &destFields );
127 QString mimeDataToPath(
const QMimeData *data );
129 const QgsProcessingDestinationParameter *mParameter =
nullptr;
130 QgsProcessingParametersGenerator *mParametersGenerator =
nullptr;
131 QMenu *mMenu =
nullptr;
133 bool mUseTemporary =
true;
134 bool mDefaultSelection =
false;
136 QgsBrowserGuiModel *mBrowserModel =
nullptr;
137 QCheckBox *mOpenAfterRunningCheck =
nullptr;
139 QgsRemappingSinkDefinition mRemapDefinition;
140 bool mUseRemapping =
false;
142 QgsProcessingContext *mContext =
nullptr;
144 friend class TestProcessingGui;
A model for showing available data sources and other items in a structured tree.
Base class for all parameter definitions which represent file or layer destinations,...