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 setActiveIndex(
const QModelIndex &index );
133 void updateProjectHome();
136 void addSelectedLayers();
138 void showProperties();
151 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
153 void splitterMoved();
157 void openFile(
const QString &fileName,
const QString &fileTypeHint = QString() );
161 void connectionsChanged();
165 void showEvent( QShowEvent *event )
override;
168 void itemDoubleClicked(
const QModelIndex &index );
172 void refreshModel(
const QModelIndex &index );
176 void clearPropertiesWidget();
178 void setPropertiesWidget();
181 int selectedItemsCount();
183 QString settingsSection() {
return objectName().toLower(); }
187 QgsDockBrowserTreeView *mBrowserView =
nullptr;
191 bool mPropertiesWidgetEnabled;
193 float mPropertiesWidgetHeight;
201 #endif // QGSBROWSERDOCKWIDGET_H
A bar for displaying non-blocking messages to the user.
A model for showing available data sources and other items in a structured tree.
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
Item that represents a layer that can be opened with one of the providers.