QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
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 
23 class QgsMessageBar;
24 class QgsBrowserWidget;
25 
31 class GUI_EXPORT QgsBrowserDockWidget : public QgsDockWidget
32 {
33  Q_OBJECT
34  public:
35 
42  explicit QgsBrowserDockWidget( const QString &name, QgsBrowserGuiModel *browserModel, QWidget *parent SIP_TRANSFERTHIS = nullptr );
44 
50  QgsBrowserWidget *browserWidget();
51 
56  Q_DECL_DEPRECATED void addFavoriteDirectory( const QString &favDir, const QString &name = QString() ) SIP_DEPRECATED;
57 
67  void setMessageBar( QgsMessageBar *bar );
68 
76  QgsMessageBar *messageBar();
77 
90  void setDisabledDataItemsKeys( const QStringList &filter );
91 
92  public slots:
93 
102  Q_DECL_DEPRECATED bool addLayerAtIndex( const QModelIndex &index ) SIP_DEPRECATED;
103 
109  Q_DECL_DEPRECATED void showContextMenu( QPoint ) SIP_DEPRECATED;
110 
115  Q_DECL_DEPRECATED void addFavorite() SIP_DEPRECATED;
116 
121  Q_DECL_DEPRECATED void addFavoriteDirectory() SIP_DEPRECATED;
122 
127  Q_DECL_DEPRECATED void removeFavorite() SIP_DEPRECATED;
128 
132  void refresh();
133 
139  Q_DECL_DEPRECATED void showFilterWidget( bool visible ) SIP_DEPRECATED;
140 
146  Q_DECL_DEPRECATED void enablePropertiesWidget( bool enable ) SIP_DEPRECATED;
147 
153  Q_DECL_DEPRECATED void setFilterSyntax( QAction * ) SIP_DEPRECATED;
154 
160  Q_DECL_DEPRECATED void setCaseSensitive( bool caseSensitive ) SIP_DEPRECATED;
161 
167  Q_DECL_DEPRECATED void setFilter() SIP_DEPRECATED;
168 
174  Q_DECL_DEPRECATED void setActiveIndex( const QModelIndex &index ) SIP_DEPRECATED;
175 
181  Q_DECL_DEPRECATED void updateProjectHome() SIP_DEPRECATED;
182 
188  Q_DECL_DEPRECATED void addSelectedLayers() SIP_DEPRECATED;
189 
195  Q_DECL_DEPRECATED void showProperties() SIP_DEPRECATED;
196 
202  Q_DECL_DEPRECATED void hideItem() SIP_DEPRECATED;
203 
208  Q_DECL_DEPRECATED void toggleFastScan() SIP_DEPRECATED;
209 
215  Q_DECL_DEPRECATED void selectionChanged( const QItemSelection &selected, const QItemSelection &deselected ) SIP_DEPRECATED;
216 
222  Q_DECL_DEPRECATED void splitterMoved() SIP_DEPRECATED;
223 
224  signals:
226  void openFile( const QString &fileName, const QString &fileTypeHint = QString() );
228  void handleDropUriList( const QgsMimeDataUtils::UriList & );
230  void connectionsChanged();
231 
232  private:
233 
234  QgsBrowserWidget *mWidget = nullptr;
235 };
236 
237 #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.
Definition: qgsdockwidget.h:32
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:61
#define SIP_DEPRECATED
Definition: qgis_sip.h:106
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53