QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgsbrowserdockwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsbrowserdockwidget.h
3 ---------------------
4 begin : July 2011
5 copyright : (C) 2011 by Martin Dobias
6 email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSBROWSERDOCKWIDGET_H
16#define QGSBROWSERDOCKWIDGET_H
17
18#include "qgsbrowsertreeview.h"
19#include "qgsdockwidget.h"
20#include "qgsmimedatautils.h"
21#include "qgis_gui.h"
22
23class QgsMessageBar;
25
30class GUI_EXPORT QgsBrowserDockWidget : public QgsDockWidget
31{
32 Q_OBJECT
33 public:
40 explicit QgsBrowserDockWidget( const QString &name, QgsBrowserGuiModel *browserModel, QWidget *parent SIP_TRANSFERTHIS = nullptr );
42
48 QgsBrowserWidget *browserWidget();
49
54 Q_DECL_DEPRECATED void addFavoriteDirectory( const QString &favDir, const QString &name = QString() ) SIP_DEPRECATED;
55
65 void setMessageBar( QgsMessageBar *bar );
66
74 QgsMessageBar *messageBar();
75
88 void setDisabledDataItemsKeys( const QStringList &filter );
89
90 public slots:
91
100 Q_DECL_DEPRECATED bool addLayerAtIndex( const QModelIndex &index ) SIP_DEPRECATED;
101
107 Q_DECL_DEPRECATED void showContextMenu( QPoint ) SIP_DEPRECATED;
108
113 Q_DECL_DEPRECATED void addFavorite() SIP_DEPRECATED;
114
119 Q_DECL_DEPRECATED void addFavoriteDirectory() SIP_DEPRECATED;
120
125 Q_DECL_DEPRECATED void removeFavorite() SIP_DEPRECATED;
126
130 void refresh();
131
137 Q_DECL_DEPRECATED void showFilterWidget( bool visible ) SIP_DEPRECATED;
138
144 Q_DECL_DEPRECATED void enablePropertiesWidget( bool enable ) SIP_DEPRECATED;
145
151 Q_DECL_DEPRECATED void setFilterSyntax( QAction * ) SIP_DEPRECATED;
152
158 Q_DECL_DEPRECATED void setCaseSensitive( bool caseSensitive ) SIP_DEPRECATED;
159
165 Q_DECL_DEPRECATED void setFilter() SIP_DEPRECATED;
166
172 Q_DECL_DEPRECATED void setActiveIndex( const QModelIndex &index ) SIP_DEPRECATED;
173
179 Q_DECL_DEPRECATED void updateProjectHome() SIP_DEPRECATED;
180
186 Q_DECL_DEPRECATED void addSelectedLayers() SIP_DEPRECATED;
187
193 Q_DECL_DEPRECATED void showProperties() SIP_DEPRECATED;
194
200 Q_DECL_DEPRECATED void hideItem() SIP_DEPRECATED;
201
206 Q_DECL_DEPRECATED void toggleFastScan() SIP_DEPRECATED;
207
213 Q_DECL_DEPRECATED void selectionChanged( const QItemSelection &selected, const QItemSelection &deselected ) SIP_DEPRECATED;
214
220 Q_DECL_DEPRECATED void splitterMoved() SIP_DEPRECATED;
221
222 signals:
224 void openFile( const QString &fileName, const QString &fileTypeHint = QString() );
226 void handleDropUriList( const QgsMimeDataUtils::UriList &uris );
228 void connectionsChanged();
229
230 private:
231 QgsBrowserWidget *mWidget = nullptr;
232};
233
234#endif // QGSBROWSERDOCKWIDGET_H
A dock widget containing a QgsBrowserWidget for navigating and managing data sources.
~QgsBrowserDockWidget() override
A model for showing available data sources and other items in a structured tree.
A widget showing a browser tree view along with toolbar and toggleable properties pane.
QgsDockWidget subclass with more fine-grained control over how the widget is closed or opened.
A bar for displaying non-blocking messages to the user.
Contains utility functions for working with MIME data.
#define SIP_DEPRECATED
Definition qgis_sip.h:106
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53