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"
27 #include <QSortFilterProxyModel>
31 class QgsDockBrowserTreeView;
61 Q_DECL_DEPRECATED
void addFavoriteDirectory(
const QString &favDir,
const QString &name = QString() )
SIP_DEPRECATED;
95 void setDisabledDataItemsKeys(
const QStringList &filter );
107 Q_DECL_DEPRECATED
bool addLayerAtIndex(
const QModelIndex &index )
SIP_DEPRECATED;
110 void showContextMenu( QPoint );
134 void showFilterWidget(
bool visible );
136 void enablePropertiesWidget(
bool enable );
138 void setFilterSyntax( QAction * );
140 void setCaseSensitive(
bool caseSensitive );
144 void setActiveIndex(
const QModelIndex &index );
146 void updateProjectHome();
149 void addSelectedLayers();
151 void showProperties();
164 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
166 void splitterMoved();
170 void openFile(
const QString &fileName,
const QString &fileTypeHint = QString() );
178 void showEvent( QShowEvent *event )
override;
181 void itemDoubleClicked(
const QModelIndex &index );
185 void refreshModel(
const QModelIndex &index );
189 void clearPropertiesWidget();
191 void setPropertiesWidget();
194 int selectedItemsCount();
196 QString settingsSection() {
return objectName().toLower(); }
200 QgsDockBrowserTreeView *mBrowserView =
nullptr;
204 bool mPropertiesWidgetEnabled;
206 float mPropertiesWidgetHeight;
209 QStringList mDisabledDataItemsKeys;
A model for showing available data sources and other items in a structured tree.
A QSortFilterProxyModel subclass for filtering and sorting browser model items.
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.
A bar for displaying non-blocking messages to the user.
QList< QgsMimeDataUtils::Uri > UriList