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;
62 Q_DECL_DEPRECATED
void addFavoriteDirectory(
const QString &favDir,
const QString &name = QString() )
SIP_DEPRECATED;
94 Q_DECL_DEPRECATED
bool addLayerAtIndex(
const QModelIndex &index )
SIP_DEPRECATED;
97 void showContextMenu( QPoint );
121 void showFilterWidget(
bool visible );
123 void enablePropertiesWidget(
bool enable );
125 void setFilterSyntax( QAction * );
127 void setCaseSensitive(
bool caseSensitive );
131 void updateProjectHome();
134 void addSelectedLayers();
136 void showProperties();
149 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
151 void splitterMoved();
155 void openFile(
const QString &fileName,
const QString &fileTypeHint = QString() );
159 void connectionsChanged();
163 void showEvent( QShowEvent *event )
override;
166 void itemDoubleClicked(
const QModelIndex &index );
170 void refreshModel(
const QModelIndex &index );
174 void clearPropertiesWidget();
176 void setPropertiesWidget();
179 int selectedItemsCount();
181 QString settingsSection() {
return objectName().toLower(); }
185 QgsDockBrowserTreeView *mBrowserView =
nullptr;
189 bool mPropertiesWidgetEnabled;
191 float mPropertiesWidgetHeight;
199 #endif // QGSBROWSERDOCKWIDGET_H
A bar for displaying non-blocking messages to the user.
Base class for all items in the model.
Encapsulates the context in which a QgsDataItem is shown within the application GUI.
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.