21 #ifndef QGSBROWSERDOCKWIDGET_P_H
22 #define QGSBROWSERDOCKWIDGET_P_H
35 #include <QSortFilterProxyModel>
37 #include "ui_qgsbrowserlayerpropertiesbase.h"
38 #include "ui_qgsbrowserdirectorypropertiesbase.h"
39 #include "ui_qgsbrowserpropertiesdialogbase.h"
47 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 );
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 );
179 QgsBrowserPropertiesWidget *mPropertiesWidget =
nullptr;
180 QString mSettingsSection;
202 explicit QgsDockBrowserTreeView( QWidget *parent );
204 void dragEnterEvent( QDragEnterEvent *e )
override;
206 void dragMoveEvent( QDragMoveEvent *e )
override;
208 void dropEvent( QDropEvent *e )
override;
211 void setAction( QDropEvent *e );
A model for showing available data sources and other items in a structured tree.
The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.
Encapsulates the context in which a QgsDataItem is shown within the application GUI.
Base class for all items in the model.
Item that represents a layer that can be opened with one of the providers.