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"
47class QgsDockBrowserTreeView;
57class QgsBrowserPropertiesWrapLabel :
public QTextEdit
66 QgsBrowserPropertiesWrapLabel(
const QString &text, QWidget *parent =
nullptr );
69 void adjustHeight( QSizeF size );
75class QgsBrowserPropertiesWidget :
public QWidget
83 explicit QgsBrowserPropertiesWidget( QWidget *parent =
nullptr );
87 virtual void setItem(
QgsDataItem *item ) { Q_UNUSED( item ); }
89 virtual void setWidget( QWidget *widget );
96 virtual void setCondensedMode(
bool condensedMode ) { Q_UNUSED( condensedMode ) }
102class QgsBrowserLayerProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserLayerPropertiesBase
110 explicit QgsBrowserLayerProperties( QWidget *parent =
nullptr );
119 void setCondensedMode(
bool condensedMode )
override;
123 void urlClicked(
const QUrl &url );
126 void loadAttributeTable();
128 std::unique_ptr<QgsMapLayer> mLayer;
135class QgsBrowserDirectoryProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserDirectoryPropertiesBase
143 explicit QgsBrowserDirectoryProperties( QWidget *parent =
nullptr );
150 QgsBrowserPropertiesWrapLabel *mPathLabel =
nullptr;
156class GUI_EXPORT QgsBrowserPropertiesDialog :
public QDialog,
private Ui::QgsBrowserPropertiesDialogBase
165 QgsBrowserPropertiesDialog(
const QString &settingsSection, QWidget *parent =
nullptr );
171 QgsBrowserPropertiesWidget *mPropertiesWidget =
nullptr;
172 QString mSettingsSection;
193 explicit QgsDockBrowserTreeView( QWidget *parent );
195 void dragEnterEvent( QDragEnterEvent *e )
override;
197 void dragMoveEvent( QDragMoveEvent *e )
override;
199 void dropEvent( QDropEvent *e )
override;
202 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.