mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			65 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/settings/qgssettingseditorwidgetregistry.h                   *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsSettingsEditorWidgetRegistry
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
A registry that manages editor widgets for settings.
 | 
						|
 | 
						|
.. versionadded:: 3.32
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgssettingseditorwidgetregistry.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsSettingsEditorWidgetRegistry();
 | 
						|
%Docstring
 | 
						|
Constructor
 | 
						|
%End
 | 
						|
    ~QgsSettingsEditorWidgetRegistry();
 | 
						|
 | 
						|
    bool addWrapper( QgsSettingsEditorWidgetWrapper *wrapper /Transfer/ );
 | 
						|
%Docstring
 | 
						|
Adds an editor widget ``wrapper`` to the registry If an editor widget
 | 
						|
with same id already exists, the wrapper is deleted and ``False`` is
 | 
						|
returned.
 | 
						|
%End
 | 
						|
 | 
						|
    void addWrapperForSetting( QgsSettingsEditorWidgetWrapper *wrapper /Transfer/, const QgsSettingsEntryBase *setting /KeepReference/ );
 | 
						|
%Docstring
 | 
						|
Adds an editor widget ``wrapper`` for a specific setting to the registry
 | 
						|
 | 
						|
.. versionadded:: 3.40
 | 
						|
%End
 | 
						|
 | 
						|
    QgsSettingsEditorWidgetWrapper *createWrapper( const QString &id, QObject *parent ) const /Factory/;
 | 
						|
%Docstring
 | 
						|
Returns a new instance of the editor widget for the given ``id``
 | 
						|
%End
 | 
						|
 | 
						|
    QWidget *createEditor( const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList, QWidget *parent = 0 ) const /TransferBack/;
 | 
						|
%Docstring
 | 
						|
Creates an editor widget for the given ``setting`` using the
 | 
						|
corresponding registered wrapper
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/settings/qgssettingseditorwidgetregistry.h                   *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 |