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"
49 class QgsDockBrowserTreeView;
59 class QgsBrowserPropertiesWrapLabel :
public QTextEdit
69 QgsBrowserPropertiesWrapLabel(
const QString &text, QWidget *parent =
nullptr );
72 void adjustHeight( QSizeF size );
78 class QgsBrowserPropertiesWidget :
public QWidget
87 explicit QgsBrowserPropertiesWidget( QWidget *parent =
nullptr );
91 virtual void setItem(
QgsDataItem *item ) { Q_UNUSED( item ); }
93 virtual void setWidget( QWidget *widget );
101 virtual void setCondensedMode(
bool condensedMode ) { Q_UNUSED( condensedMode ) }
107 class QgsBrowserLayerProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserLayerPropertiesBase
116 explicit QgsBrowserLayerProperties( QWidget *parent =
nullptr );
126 void setCondensedMode(
bool condensedMode )
override;
130 void urlClicked(
const QUrl &url );
134 void loadAttributeTable();
136 std::unique_ptr<QgsMapLayer> mLayer;
144 class QgsBrowserDirectoryProperties :
public QgsBrowserPropertiesWidget,
private Ui::QgsBrowserDirectoryPropertiesBase
153 explicit QgsBrowserDirectoryProperties( QWidget *parent =
nullptr );
159 QgsBrowserPropertiesWrapLabel *mPathLabel =
nullptr;
165 class GUI_EXPORT QgsBrowserPropertiesDialog :
public QDialog,
private Ui::QgsBrowserPropertiesDialogBase
175 QgsBrowserPropertiesDialog(
const QString &settingsSection, QWidget *parent =
nullptr );
181 QgsBrowserPropertiesWidget *mPropertiesWidget =
nullptr;
182 QString mSettingsSection;
204 explicit QgsDockBrowserTreeView( QWidget *parent );
206 void dragEnterEvent( QDragEnterEvent *e )
override;
208 void dragMoveEvent( QDragMoveEvent *e )
override;
210 void dropEvent( QDropEvent *e )
override;
213 void setAction( QDropEvent *e );
218 #endif // QGSBROWSERDOCKWIDGET_P_H