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;
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 &fileName,
const QString &fileTypeHint = 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;
136 bool mPropertiesWidgetEnabled;
138 float mPropertiesWidgetHeight;
144 #endif // QGSBROWSERDOCKWIDGET_H
Base class for all items in the model.
A QSortFilterProxyModel subclass for filtering and sorting browser model items.
QList< QgsMimeDataUtils::Uri > UriList
A model for showing available data sources and other items in a structured tree.
Item that represents a layer that can be opened with one of the providers.