|
28 | 28 | #include "qgsconfig.h"
|
29 | 29 | #include <qmainwindow.h>
|
30 | 30 |
|
| 31 | +#include "qgseditorwidgetregistry.h" |
| 32 | +#include "qgsclassificationwidgetwrapperfactory.h" |
| 33 | +#include "qgsrangewidgetfactory.h" |
| 34 | +#include "qgsuniquevaluewidgetfactory.h" |
| 35 | +#include "qgsfilenamewidgetfactory.h" |
| 36 | +#include "qgsvaluemapwidgetfactory.h" |
| 37 | +#include "qgsenumerationwidgetfactory.h" |
| 38 | +#include "qgshiddenwidgetfactory.h" |
| 39 | +#include "qgscheckboxwidgetfactory.h" |
| 40 | +#include "qgstexteditwidgetfactory.h" |
| 41 | +#include "qgsvaluerelationwidgetfactory.h" |
| 42 | +#include "qgsuuidwidgetfactory.h" |
| 43 | +#include "qgsphotowidgetfactory.h" |
| 44 | +#include "qgswebviewwidgetfactory.h" |
| 45 | +#include "qgscolorwidgetfactory.h" |
| 46 | +#include "qgsrelationreferencefactory.h" |
| 47 | +#include "qgsdatetimeeditfactory.h" |
| 48 | + |
31 | 49 | int main( int argc, char ** argv )
|
32 | 50 | {
|
33 | 51 | QSettings settings;
|
@@ -58,5 +76,23 @@ int main( int argc, char ** argv )
|
58 | 76 |
|
59 | 77 | a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
|
60 | 78 |
|
| 79 | + QgsEditorWidgetRegistry* editorWidgetRegistry = QgsEditorWidgetRegistry::instance(); |
| 80 | + editorWidgetRegistry->registerWidget( "Classification", new QgsClassificationWidgetWrapperFactory( QObject::tr( "Classification" ) ) ); |
| 81 | + editorWidgetRegistry->registerWidget( "Range", new QgsRangeWidgetFactory( QObject::tr( "Range" ) ) ); |
| 82 | + editorWidgetRegistry->registerWidget( "UniqueValues", new QgsUniqueValueWidgetFactory( QObject::tr( "Unique Values" ) ) ); |
| 83 | + editorWidgetRegistry->registerWidget( "FileName", new QgsFileNameWidgetFactory( QObject::tr( "File Name" ) ) ); |
| 84 | + editorWidgetRegistry->registerWidget( "ValueMap", new QgsValueMapWidgetFactory( QObject::tr( "Value Map" ) ) ); |
| 85 | + editorWidgetRegistry->registerWidget( "Enumeration", new QgsEnumerationWidgetFactory( QObject::tr( "Enumeration" ) ) ); |
| 86 | + editorWidgetRegistry->registerWidget( "Hidden", new QgsHiddenWidgetFactory( QObject::tr( "Hidden" ) ) ); |
| 87 | + editorWidgetRegistry->registerWidget( "CheckBox", new QgsCheckboxWidgetFactory( QObject::tr( "Check Box" ) ) ); |
| 88 | + editorWidgetRegistry->registerWidget( "TextEdit", new QgsTextEditWidgetFactory( QObject::tr( "Text Edit" ) ) ); |
| 89 | + editorWidgetRegistry->registerWidget( "ValueRelation", new QgsValueRelationWidgetFactory( QObject::tr( "Value Relation" ) ) ); |
| 90 | + editorWidgetRegistry->registerWidget( "UuidGenerator", new QgsUuidWidgetFactory( QObject::tr( "Uuid Generator" ) ) ); |
| 91 | + editorWidgetRegistry->registerWidget( "Photo", new QgsPhotoWidgetFactory( QObject::tr( "Photo" ) ) ); |
| 92 | + editorWidgetRegistry->registerWidget( "WebView", new QgsWebViewWidgetFactory( QObject::tr( "Web View" ) ) ); |
| 93 | + editorWidgetRegistry->registerWidget( "Color", new QgsColorWidgetFactory( QObject::tr( "Color" ) ) ); |
| 94 | + editorWidgetRegistry->registerWidget( "RelationReference", new QgsRelationReferenceFactory( QObject::tr( "Relation Reference" ), 0, 0 ) ); |
| 95 | + editorWidgetRegistry->registerWidget( "DateTime", new QgsDateTimeEditFactory( QObject::tr( "Date/Time" ) ) ); |
| 96 | + |
61 | 97 | return a.exec();
|
62 | 98 | }
|
0 commit comments