QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
virtual | ~QgsDevToolWidgetFactory ()=default |
virtual QgsDevToolWidget * | createWidget (QWidget *parent=nullptr) const =0 |
Factory function to create the widget on demand as needed by the dock. | |
virtual QIcon | icon () const |
Returns the icon that will be shown in the tool in the panel. | |
void | setIcon (const QIcon &icon) |
Sets the icon for the factory object, which will be shown for the tool in the panel. | |
void | setTitle (const QString &title) |
Set the translated title for the tool. | |
virtual QString | title () const |
Returns the (translated) title of the tool. | |
Factory class for creating custom developer/debugging tool pages.
Definition at line 33 of file qgsdevtoolwidgetfactory.h.
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.
|
virtualdefault |
|
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.
|
inlinevirtual |
Returns the icon that will be shown in the tool in the panel.
Definition at line 48 of file qgsdevtoolwidgetfactory.h.
|
inline |
Sets the icon for the factory object, which will be shown for the tool in the panel.
Definition at line 54 of file qgsdevtoolwidgetfactory.h.
|
inline |
Set the translated title for the tool.
Definition at line 65 of file qgsdevtoolwidgetfactory.h.
|
inlinevirtual |
Returns the (translated) title of the tool.
Definition at line 60 of file qgsdevtoolwidgetfactory.h.