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
67 QgsBrowserPropertiesWrapLabel(
const QString &text, QWidget *parent =
nullptr );
70 void adjustHeight( QSizeF size );
76class QgsBrowserPropertiesWidget :
public QWidget
85 explicit QgsBrowserPropertiesWidget( QWidget *parent =
nullptr );
89 virtual void setItem(
QgsDataItem *item ) { Q_UNUSED( item ); }
91 virtual void setWidget( QWidget *widget );
98 virtual void setCondensedMode(
bool condensedMode ) { Q_UNUSED( condensedMode ) }
104class QgsBrowserLayerProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserLayerPropertiesBase
113 explicit QgsBrowserLayerProperties( QWidget *parent =
nullptr );
122 void setCondensedMode(
bool condensedMode )
override;
126 void urlClicked(
const QUrl &url );
130 void loadAttributeTable();
132 std::unique_ptr<QgsMapLayer> mLayer;
140class QgsBrowserDirectoryProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserDirectoryPropertiesBase
149 explicit QgsBrowserDirectoryProperties( QWidget *parent =
nullptr );
155 QgsBrowserPropertiesWrapLabel *mPathLabel =
nullptr;
161class GUI_EXPORT QgsBrowserPropertiesDialog :
public QDialog,
private Ui::QgsBrowserPropertiesDialogBase
171 QgsBrowserPropertiesDialog(
const QString &settingsSection, QWidget *parent =
nullptr );
177 QgsBrowserPropertiesWidget *mPropertiesWidget =
nullptr;
178 QString mSettingsSection;
200 explicit QgsDockBrowserTreeView( QWidget *parent );
202 void dragEnterEvent( QDragEnterEvent *e )
override;
204 void dragMoveEvent( QDragMoveEvent *e )
override;
206 void dropEvent( QDropEvent *e )
override;
209 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.