QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsDevToolWidgetFactory Class Referenceabstract

Factory class for creating custom developer/debugging tool pages. More...

#include <qgsdevtoolwidgetfactory.h>

Public Member Functions

 QgsDevToolWidgetFactory (const QString &title=QString(), const QIcon &icon=QIcon())
 Constructor for a QgsDevToolWidgetFactory with the specified title and icon. More...
 
virtual ~QgsDevToolWidgetFactory ()=default
 
virtual QgsDevToolWidgetcreateWidget (QWidget *parent=nullptr) const =0
 Factory function to create the widget on demand as needed by the dock. More...
 
virtual QIcon icon () const
 Returns the icon that will be shown in the tool in the panel. More...
 
void setIcon (const QIcon &icon)
 Sets the icon for the factory object, which will be shown for the tool in the panel. More...
 
void setTitle (const QString &title)
 Set the translated title for the tool. More...
 
virtual QString title () const
 Returns the (translated) title of the tool. More...
 

Detailed Description

Factory class for creating custom developer/debugging tool pages.

Since
QGIS 3.14

Definition at line 33 of file qgsdevtoolwidgetfactory.h.

Constructor & Destructor Documentation

◆ QgsDevToolWidgetFactory()

QgsDevToolWidgetFactory::QgsDevToolWidgetFactory ( const QString &  title = QString(),
const QIcon &  icon = QIcon() 
)

Constructor for a QgsDevToolWidgetFactory with the specified title and icon.

Definition at line 18 of file qgsdevtoolwidgetfactory.cpp.

◆ ~QgsDevToolWidgetFactory()

virtual QgsDevToolWidgetFactory::~QgsDevToolWidgetFactory ( )
virtualdefault

Member Function Documentation

◆ createWidget()

virtual QgsDevToolWidget* QgsDevToolWidgetFactory::createWidget ( QWidget *  parent = nullptr) const
pure virtual

Factory function to create the widget on demand as needed by the dock.

The parent argument gives the correct parent for the newly created widget.

◆ icon()

virtual QIcon QgsDevToolWidgetFactory::icon ( ) const
inlinevirtual

Returns the icon that will be shown in the tool in the panel.

See also
setIcon()

Definition at line 48 of file qgsdevtoolwidgetfactory.h.

◆ setIcon()

void QgsDevToolWidgetFactory::setIcon ( const QIcon &  icon)
inline

Sets the icon for the factory object, which will be shown for the tool in the panel.

See also
icon()

Definition at line 54 of file qgsdevtoolwidgetfactory.h.

◆ setTitle()

void QgsDevToolWidgetFactory::setTitle ( const QString &  title)
inline

Set the translated title for the tool.

Definition at line 65 of file qgsdevtoolwidgetfactory.h.

◆ title()

virtual QString QgsDevToolWidgetFactory::title ( ) const
inlinevirtual

Returns the (translated) title of the tool.

See also
setTitle()

Definition at line 60 of file qgsdevtoolwidgetfactory.h.


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