15 #ifndef QGSBROWSERDOCKWIDGET_H 16 #define QGSBROWSERDOCKWIDGET_H 18 #include "ui_qgsbrowserdockwidgetbase.h" 19 #include "ui_qgsbrowserlayerpropertiesbase.h" 20 #include "ui_qgsbrowserdirectorypropertiesbase.h" 21 #include "ui_qgsbrowserpropertiesdialogbase.h" 28 #include <QSortFilterProxyModel> 32 class QgsDockBrowserTreeView;
35 class QgsBrowserTreeFilterProxyModel;
56 void addFavoriteDirectory(
const QString &favDir,
const QString &name = QString() );
60 void addLayerAtIndex(
const QModelIndex &index );
62 void showContextMenu( QPoint );
67 void addFavoriteDirectory();
69 void removeFavorite();
75 void showFilterWidget(
bool visible );
77 void enablePropertiesWidget(
bool enable );
79 void setFilterSyntax( QAction * );
81 void setCaseSensitive(
bool caseSensitive );
85 void updateProjectHome();
88 void addSelectedLayers();
90 void showProperties();
94 void toggleFastScan();
97 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
103 void openFile(
const QString & );
107 void connectionsChanged();
111 void showEvent( QShowEvent *event )
override;
114 void itemDoubleClicked(
const QModelIndex &index );
115 void renameFavorite();
119 void refreshModel(
const QModelIndex &index );
123 void clearPropertiesWidget();
125 void setPropertiesWidget();
128 int selectedItemsCount();
130 QString settingsSection() {
return objectName().toLower(); }
132 QgsDockBrowserTreeView *mBrowserView =
nullptr;
134 QgsBrowserTreeFilterProxyModel *mProxyModel =
nullptr;
136 bool mPropertiesWidgetEnabled;
138 float mPropertiesWidgetHeight;
144 #endif // QGSBROWSERDOCKWIDGET_H
Base class for all items in the model.
QList< QgsMimeDataUtils::Uri > UriList
Item that represents a layer that can be opened with one of the providers.