QGIS API Documentation 3.41.0-Master (45a0abf3bec)
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:
34
41 explicit QgsBrowserDockWidget( const QString &name, QgsBrowserGuiModel *browserModel, QWidget *parent SIP_TRANSFERTHIS = nullptr );
43
49 QgsBrowserWidget *browserWidget();
50
55 Q_DECL_DEPRECATED void addFavoriteDirectory( const QString &favDir, const QString &name = QString() ) SIP_DEPRECATED;
56
66 void setMessageBar( QgsMessageBar *bar );
67
75 QgsMessageBar *messageBar();
76
89 void setDisabledDataItemsKeys( const QStringList &filter );
90
91 public slots:
92
101 Q_DECL_DEPRECATED bool addLayerAtIndex( const QModelIndex &index ) SIP_DEPRECATED;
102
108 Q_DECL_DEPRECATED void showContextMenu( QPoint ) SIP_DEPRECATED;
109
114 Q_DECL_DEPRECATED void addFavorite() SIP_DEPRECATED;
115
120 Q_DECL_DEPRECATED void addFavoriteDirectory() SIP_DEPRECATED;
121
126 Q_DECL_DEPRECATED void removeFavorite() SIP_DEPRECATED;
127
131 void refresh();
132
138 Q_DECL_DEPRECATED void showFilterWidget( bool visible ) SIP_DEPRECATED;
139
145 Q_DECL_DEPRECATED void enablePropertiesWidget( bool enable ) SIP_DEPRECATED;
146
152 Q_DECL_DEPRECATED void setFilterSyntax( QAction * ) SIP_DEPRECATED;
153
159 Q_DECL_DEPRECATED void setCaseSensitive( bool caseSensitive ) SIP_DEPRECATED;
160
166 Q_DECL_DEPRECATED void setFilter() SIP_DEPRECATED;
167
173 Q_DECL_DEPRECATED void setActiveIndex( const QModelIndex &index ) SIP_DEPRECATED;
174
180 Q_DECL_DEPRECATED void updateProjectHome() SIP_DEPRECATED;
181
187 Q_DECL_DEPRECATED void addSelectedLayers() SIP_DEPRECATED;
188
194 Q_DECL_DEPRECATED void showProperties() SIP_DEPRECATED;
195
201 Q_DECL_DEPRECATED void hideItem() SIP_DEPRECATED;
202
207 Q_DECL_DEPRECATED void toggleFastScan() SIP_DEPRECATED;
208
214 Q_DECL_DEPRECATED void selectionChanged( const QItemSelection &selected, const QItemSelection &deselected ) SIP_DEPRECATED;
215
221 Q_DECL_DEPRECATED void splitterMoved() SIP_DEPRECATED;
222
223 signals:
225 void openFile( const QString &fileName, const QString &fileTypeHint = QString() );
227 void handleDropUriList( const QgsMimeDataUtils::UriList &uris );
229 void connectionsChanged();
230
231 private:
232
233 QgsBrowserWidget *mWidget = nullptr;
234};
235
236#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