21 #ifndef QGSBROWSERDOCKWIDGET_P_H 22 #define QGSBROWSERDOCKWIDGET_P_H 36 #include "ui_qgsbrowserdockwidgetbase.h" 37 #include "ui_qgsbrowserlayerpropertiesbase.h" 38 #include "ui_qgsbrowserdirectorypropertiesbase.h" 39 #include "ui_qgsbrowserpropertiesdialogbase.h" 44 #include <QSortFilterProxyModel> 48 class QgsDockBrowserTreeView;
57 class QgsBrowserPropertiesWrapLabel :
public QTextEdit
67 QgsBrowserPropertiesWrapLabel(
const QString &text, QWidget *parent =
nullptr );
70 void adjustHeight( QSizeF size );
76 class QgsBrowserPropertiesWidget :
public QWidget
85 explicit QgsBrowserPropertiesWidget( QWidget *parent =
nullptr );
87 static QgsBrowserPropertiesWidget *createWidget(
QgsDataItem *item, QWidget *parent =
nullptr );
89 virtual void setItem(
QgsDataItem *item ) { Q_UNUSED( item ) }
91 virtual void setWidget( QWidget *widget );
99 virtual void setCondensedMode(
bool condensedMode ) { Q_UNUSED( condensedMode ) }
105 class QgsBrowserLayerProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserLayerPropertiesBase
114 explicit QgsBrowserLayerProperties( QWidget *parent =
nullptr );
124 void setCondensedMode(
bool condensedMode )
override;
128 void urlClicked(
const QUrl &url );
132 void loadAttributeTable();
134 std::unique_ptr<QgsMapLayer> mLayer;
142 class QgsBrowserDirectoryProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserDirectoryPropertiesBase
151 explicit QgsBrowserDirectoryProperties( QWidget *parent =
nullptr );
157 QgsBrowserPropertiesWrapLabel *mPathLabel =
nullptr;
163 class GUI_EXPORT QgsBrowserPropertiesDialog :
public QDialog,
private Ui::QgsBrowserPropertiesDialogBase
173 QgsBrowserPropertiesDialog(
const QString &settingsSection, QWidget *parent =
nullptr );
174 ~QgsBrowserPropertiesDialog()
override;
180 QgsBrowserPropertiesWidget *mPropertiesWidget =
nullptr;
181 QString mSettingsSection;
203 explicit QgsDockBrowserTreeView( QWidget *parent );
205 void dragEnterEvent( QDragEnterEvent *e )
override;
207 void dragMoveEvent( QDragMoveEvent *e )
override;
209 void dropEvent( QDropEvent *e )
override;
212 void setAction( QDropEvent *e );
217 #endif // QGSBROWSERDOCKWIDGET_P_H
The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.
Base class for all items in the model.
A model for showing available data sources and other items in a structured tree.
Item that represents a layer that can be opened with one of the providers.