A widget showing a browser tree view along with toolbar and toggleable properties pane.
More...
#include <qgsbrowserwidget.h>
|
| void | refresh () |
| | Refreshes the browser model and view.
|
| void | setActiveIndex (const QModelIndex &index) |
| | Sets the selection to index and expands it.
|
| void | updateProjectHome () |
| | Update project home directory.
|
| void | acceptPanel () |
| | Accept the panel.
|
| void | openPanel (QgsPanelWidget *panel) |
| | Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event.
|
|
| | QgsBrowserWidget (QgsBrowserGuiModel *browserModel, QWidget *parent=nullptr) |
| | Constructor for QgsBrowserWidget.
|
| | ~QgsBrowserWidget () override |
| QgsMapCanvas * | mapCanvas () |
| | Returns the map canvas associated with the widget.
|
| QgsMessageBar * | messageBar () |
| | Returns the message bar associated with the widget.
|
| void | setDisabledDataItemsKeys (const QStringList &filter) |
| | Sets the customization for data items based on item's data provider key.
|
| void | setMapCanvas (QgsMapCanvas *canvas) |
| | Sets a map canvas to use alongside the widget.
|
| void | setMessageBar (QgsMessageBar *bar) |
| | Sets a message bar to use alongside the widget.
|
| | QgsPanelWidget (QWidget *parent=nullptr) |
| | Base class for any widget that can be shown as an inline panel.
|
| virtual bool | applySizeConstraintsToStack () const |
| | Returns true if the size constraints and hints for the panel widget should be applied to the parent QgsPanelWidgetStack which this panel is shown in.
|
| bool | autoDelete () const |
| | The the auto delete property on the widget.
|
| void | connectChildPanel (QgsPanelWidget *panel) |
| | Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user.
|
| void | connectChildPanels (const QList< QgsPanelWidget * > &panels) |
| | Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user.
|
| bool | dockMode () const |
| | Returns the dock mode state.
|
| virtual QMenu * | menuButtonMenu () |
| | Returns the menu to use for the menu button for this panel, or nullptr if no menu button is required.
|
| virtual QString | menuButtonTooltip () const |
| | Returns the (translated) tooltip text to use for the menu button for this panel.
|
| QString | panelTitle () const |
| | The title of the panel.
|
| void | setAutoDelete (bool autoDelete) |
| | The the auto delete property on the widget.
|
| virtual void | setDockMode (bool dockMode) |
| | Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
|
| void | setPanelTitle (const QString &panelTitle) |
| | Set the title of the panel when shown in the interface.
|
|
| void | showEvent (QShowEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
| | Overridden key press event to handle the esc event on the widget.
|
A widget showing a browser tree view along with toolbar and toggleable properties pane.
- Since
- QGIS 3.22
Definition at line 41 of file qgsbrowserwidget.h.
◆ QgsBrowserWidget()
| QgsBrowserWidget::QgsBrowserWidget |
( |
QgsBrowserGuiModel * | browserModel, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
◆ ~QgsBrowserWidget()
| QgsBrowserWidget::~QgsBrowserWidget |
( |
| ) |
|
|
overridedefault |
◆ connectionsChanged
| void QgsBrowserWidget::connectionsChanged |
( |
| ) |
|
|
signal |
Connections changed in the browser.
◆ handleDropUriList
Emitted when drop uri list needs to be handled.
◆ mapCanvas()
◆ messageBar()
◆ openFile
| void QgsBrowserWidget::openFile |
( |
const QString & | fileName, |
|
|
const QString & | fileTypeHint = QString() ) |
|
signal |
Emitted when a file needs to be opened.
◆ refresh
| void QgsBrowserWidget::refresh |
( |
| ) |
|
|
slot |
◆ setActiveIndex
| void QgsBrowserWidget::setActiveIndex |
( |
const QModelIndex & | index | ) |
|
|
slot |
Sets the selection to index and expands it.
- Note
- Not available in Python bindings.
Definition at line 544 of file qgsbrowserwidget.cpp.
◆ setDisabledDataItemsKeys()
| void QgsBrowserWidget::setDisabledDataItemsKeys |
( |
const QStringList & | filter | ) |
|
Sets the customization for data items based on item's data provider key.
By default browser model shows all items from all available data items provider and few special items (e.g. Favorites). To customize the behavior, set the filter to not load certain data items. The items that are not based on data item providers (e.g. Favorites, Home) have prefix "special:"
Used in the proxy browser model to hide items
Definition at line 287 of file qgsbrowserwidget.cpp.
◆ setMapCanvas()
| void QgsBrowserWidget::setMapCanvas |
( |
QgsMapCanvas * | canvas | ) |
|
Sets a map canvas to use alongside the widget.
Setting this allows items to utilize the canvas during GUI operations.
- See also
- mapCanvas()
- Since
- QGIS 3.44
Definition at line 276 of file qgsbrowserwidget.cpp.
◆ setMessageBar()
Sets a message bar to use alongside the widget.
Setting this allows items to utilize the message bar to provide non-blocking feedback to users, e.g. success or failure of actions.
- See also
- messageBar()
Definition at line 265 of file qgsbrowserwidget.cpp.
◆ showEvent()
| void QgsBrowserWidget::showEvent |
( |
QShowEvent * | event | ) |
|
|
overrideprotected |
◆ updateProjectHome
| void QgsBrowserWidget::updateProjectHome |
( |
| ) |
|
|
slot |
Update project home directory.
- Note
- Not available in Python bindings.
Definition at line 441 of file qgsbrowserwidget.cpp.
◆ QgsBrowserDockWidget
◆ TestQgsCustomization
| friend class TestQgsCustomization |
|
friend |
The documentation for this class was generated from the following files: