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"
26 #include <QSortFilterProxyModel>
30 class QgsDockBrowserTreeView;
60 Q_DECL_DEPRECATED
void addFavoriteDirectory(
const QString &favDir,
const QString &name = QString() )
SIP_DEPRECATED;
94 void setDisabledDataItemsKeys(
const QStringList &filter );
106 Q_DECL_DEPRECATED
bool addLayerAtIndex(
const QModelIndex &index )
SIP_DEPRECATED;
109 void showContextMenu( QPoint );
133 void showFilterWidget(
bool visible );
135 void enablePropertiesWidget(
bool enable );
137 void setFilterSyntax( QAction * );
139 void setCaseSensitive(
bool caseSensitive );
143 void setActiveIndex(
const QModelIndex &index );
145 void updateProjectHome();
148 void addSelectedLayers();
150 void showProperties();
163 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
165 void splitterMoved();
169 void openFile(
const QString &fileName,
const QString &fileTypeHint = QString() );
177 void showEvent( QShowEvent *event )
override;
180 void itemDoubleClicked(
const QModelIndex &index );
181 void onOptionsChanged();
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