QGIS API Documentation  2.99.0-Master (9caa722)
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
QgsBrowserDockWidget Class Reference

The QgsBrowserDockWidget class. More...

#include <qgsbrowserdockwidget.h>

Inheritance diagram for QgsBrowserDockWidget:
Inheritance graph
[legend]

Public Slots

void addFavorite ()
 Add current item to favorite. More...
 
void addFavoriteDirectory ()
 Add directory from file dialog to favorite. More...
 
void addLayerAtIndex (const QModelIndex &index)
 Add layer at index. More...
 
void addSelectedLayers ()
 Add selected layers to the project. More...
 
void enablePropertiesWidget (bool enable)
 Enable/disable properties widget. More...
 
void hideItem ()
 Hide current item. More...
 
void refresh ()
 Refresh browser view model (and view) More...
 
void removeFavorite ()
 Remove from favorite. More...
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 Selection has changed. More...
 
void setCaseSensitive (bool caseSensitive)
 Set filter case sensitivity. More...
 
void setFilter ()
 Apply filter to the model. More...
 
void setFilterSyntax (QAction *)
 Set filter syntax. More...
 
void showContextMenu (QPoint)
 Show context menu. More...
 
void showFilterWidget (bool visible)
 Show/hide filter widget. More...
 
void showProperties ()
 Show the layer properties. More...
 
void splitterMoved ()
 Splitter has been moved. More...
 
void toggleFastScan ()
 Toggle fast scan. More...
 
void updateProjectHome ()
 Update project home directory. More...
 
- Public Slots inherited from QgsDockWidget
bool isUserVisible () const
 Returns true if the dock is both opened and raised to the front (ie not hidden by any other tabs. More...
 
void setUserVisible (bool visible)
 Sets the dock widget as visible to a user, ie both shown and raised to the front. More...
 

Signals

void connectionsChanged ()
 Connections changed in the browser. More...
 
void handleDropUriList (const QgsMimeDataUtils::UriList &)
 Emitted when drop uri list needs to be handled. More...
 
void openFile (const QString &)
 Emitted when a file needs to be opened. More...
 
- Signals inherited from QgsDockWidget
void closed ()
 Emitted when dock widget is closed. More...
 
void closedStateChanged (bool wasClosed)
 Emitted when dock widget is closed (or opened). More...
 
void opened ()
 Emitted when dock widget is opened. More...
 
void openedStateChanged (bool wasOpened)
 Emitted when dock widget is opened (or closed). More...
 

Public Member Functions

 QgsBrowserDockWidget (const QString &name, QgsBrowserModel *browserModel, QWidget *parent=nullptr)
 Constructor for QgsBrowserDockWidget. More...
 
 ~QgsBrowserDockWidget ()
 
void addFavoriteDirectory (const QString &favDir)
 Add directory to favorites. More...
 
- Public Member Functions inherited from QgsDockWidget
 QgsDockWidget (QWidget *parent=nullptr, Qt::WindowFlags flags=0)
 Constructor for QgsDockWidget. More...
 
 QgsDockWidget (const QString &title, QWidget *parent=nullptr, Qt::WindowFlags flags=0)
 Constructor for QgsDockWidget. More...
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 Show event override. More...
 
- Protected Member Functions inherited from QgsDockWidget
virtual void closeEvent (QCloseEvent *) override
 

Detailed Description

The QgsBrowserDockWidget class.

Since
QGIS 3.0

Definition at line 42 of file qgsbrowserdockwidget.h.

Constructor & Destructor Documentation

◆ QgsBrowserDockWidget()

QgsBrowserDockWidget::QgsBrowserDockWidget ( const QString &  name,
QgsBrowserModel browserModel,
QWidget *  parent = nullptr 
)
explicit

Constructor for QgsBrowserDockWidget.

Parameters
namename of the widget
browserModelinstance of the (shared) browser model
parentparent widget

Definition at line 41 of file qgsbrowserdockwidget.cpp.

◆ ~QgsBrowserDockWidget()

QgsBrowserDockWidget::~QgsBrowserDockWidget ( )

Definition at line 104 of file qgsbrowserdockwidget.cpp.

Member Function Documentation

◆ addFavorite

void QgsBrowserDockWidget::addFavorite ( )
slot

Add current item to favorite.

Definition at line 230 of file qgsbrowserdockwidget.cpp.

◆ addFavoriteDirectory() [1/2]

void QgsBrowserDockWidget::addFavoriteDirectory ( const QString &  favDir)

Add directory to favorites.

Definition at line 253 of file qgsbrowserdockwidget.cpp.

◆ addFavoriteDirectory [2/2]

void QgsBrowserDockWidget::addFavoriteDirectory ( )
slot

Add directory from file dialog to favorite.

Definition at line 244 of file qgsbrowserdockwidget.cpp.

◆ addLayerAtIndex

void QgsBrowserDockWidget::addLayerAtIndex ( const QModelIndex &  index)
slot

Add layer at index.

Definition at line 318 of file qgsbrowserdockwidget.cpp.

◆ addSelectedLayers

void QgsBrowserDockWidget::addSelectedLayers ( )
slot

Add selected layers to the project.

Definition at line 345 of file qgsbrowserdockwidget.cpp.

◆ connectionsChanged

void QgsBrowserDockWidget::connectionsChanged ( )
signal

Connections changed in the browser.

◆ enablePropertiesWidget

void QgsBrowserDockWidget::enablePropertiesWidget ( bool  enable)
slot

Enable/disable properties widget.

Definition at line 528 of file qgsbrowserdockwidget.cpp.

◆ handleDropUriList

void QgsBrowserDockWidget::handleDropUriList ( const QgsMimeDataUtils::UriList )
signal

Emitted when drop uri list needs to be handled.

◆ hideItem

void QgsBrowserDockWidget::hideItem ( )
slot

Hide current item.

Definition at line 383 of file qgsbrowserdockwidget.cpp.

◆ openFile

void QgsBrowserDockWidget::openFile ( const QString &  )
signal

Emitted when a file needs to be opened.

◆ refresh

void QgsBrowserDockWidget::refresh ( )
slot

Refresh browser view model (and view)

Definition at line 263 of file qgsbrowserdockwidget.cpp.

◆ removeFavorite

void QgsBrowserDockWidget::removeFavorite ( )
slot

Remove from favorite.

Definition at line 258 of file qgsbrowserdockwidget.cpp.

◆ selectionChanged

void QgsBrowserDockWidget::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
slot

Selection has changed.

Definition at line 487 of file qgsbrowserdockwidget.cpp.

◆ setCaseSensitive

void QgsBrowserDockWidget::setCaseSensitive ( bool  caseSensitive)
slot

Set filter case sensitivity.

Definition at line 470 of file qgsbrowserdockwidget.cpp.

◆ setFilter

void QgsBrowserDockWidget::setFilter ( )
slot

Apply filter to the model.

Definition at line 450 of file qgsbrowserdockwidget.cpp.

◆ setFilterSyntax

void QgsBrowserDockWidget::setFilterSyntax ( QAction *  action)
slot

Set filter syntax.

Definition at line 463 of file qgsbrowserdockwidget.cpp.

◆ showContextMenu

void QgsBrowserDockWidget::showContextMenu ( QPoint  pt)
slot

Show context menu.

Definition at line 170 of file qgsbrowserdockwidget.cpp.

◆ showEvent()

void QgsBrowserDockWidget::showEvent ( QShowEvent *  event)
overrideprotectedvirtual

Show event override.

Reimplemented from QgsDockWidget.

Definition at line 112 of file qgsbrowserdockwidget.cpp.

◆ showFilterWidget

void QgsBrowserDockWidget::showFilterWidget ( bool  visible)
slot

Show/hide filter widget.

Definition at line 436 of file qgsbrowserdockwidget.cpp.

◆ showProperties

void QgsBrowserDockWidget::showProperties ( )
slot

Show the layer properties.

Definition at line 396 of file qgsbrowserdockwidget.cpp.

◆ splitterMoved

void QgsBrowserDockWidget::splitterMoved ( )
slot

Splitter has been moved.

Definition at line 541 of file qgsbrowserdockwidget.cpp.

◆ toggleFastScan

void QgsBrowserDockWidget::toggleFastScan ( )
slot

Toggle fast scan.

Definition at line 411 of file qgsbrowserdockwidget.cpp.

◆ updateProjectHome

void QgsBrowserDockWidget::updateProjectHome ( )
slot

Update project home directory.

Definition at line 457 of file qgsbrowserdockwidget.cpp.


The documentation for this class was generated from the following files: