21 #ifndef QGSBROWSERDOCKWIDGET_P_H
22 #define QGSBROWSERDOCKWIDGET_P_H
35 #include <QSortFilterProxyModel>
37 #include "ui_qgsbrowserdockwidgetbase.h"
38 #include "ui_qgsbrowserlayerpropertiesbase.h"
39 #include "ui_qgsbrowserdirectorypropertiesbase.h"
40 #include "ui_qgsbrowserpropertiesdialogbase.h"
48 class QgsDockBrowserTreeView;
58 class QgsBrowserPropertiesWrapLabel :
public QTextEdit
68 QgsBrowserPropertiesWrapLabel(
const QString &text, QWidget *parent =
nullptr );
71 void adjustHeight( QSizeF size );
77 class QgsBrowserPropertiesWidget :
public QWidget
86 explicit QgsBrowserPropertiesWidget( QWidget *parent =
nullptr );
90 virtual void setItem(
QgsDataItem *item ) { Q_UNUSED( item ); }
92 virtual void setWidget( QWidget *widget );
100 virtual void setCondensedMode(
bool condensedMode ) { Q_UNUSED( condensedMode ) }
106 class QgsBrowserLayerProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserLayerPropertiesBase
115 explicit QgsBrowserLayerProperties( QWidget *parent =
nullptr );
125 void setCondensedMode(
bool condensedMode )
override;
129 void urlClicked(
const QUrl &url );
133 void loadAttributeTable();
135 std::unique_ptr<QgsMapLayer> mLayer;
143 class QgsBrowserDirectoryProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserDirectoryPropertiesBase
152 explicit QgsBrowserDirectoryProperties( QWidget *parent =
nullptr );
158 QgsBrowserPropertiesWrapLabel *mPathLabel =
nullptr;
164 class GUI_EXPORT QgsBrowserPropertiesDialog :
public QDialog,
private Ui::QgsBrowserPropertiesDialogBase
174 QgsBrowserPropertiesDialog(
const QString &settingsSection, QWidget *parent =
nullptr );
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 );
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.