1717
1818#include " qgsnewvectorlayerdialog.h"
1919#include " qgsapplication.h"
20- // #include "qgisapp.h" // <- for theme icons
2120#include " qgis.h"
2221#include " qgslogger.h"
2322#include " qgscoordinatereferencesystem.h"
@@ -38,22 +37,24 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
3837 QSettings settings;
3938 restoreGeometry ( settings.value ( " /Windows/NewVectorLayer/geometry" ).toByteArray () );
4039
41- // TODO: do it without QgisApp
42- // mAddAttributeButton->setIcon( QgisApp::getThemeIcon( "/mActionNewAttribute.png" ) );
43- // mRemoveAttributeButton->setIcon( QgisApp::getThemeIcon( "/mActionDeleteAttribute.png" ) );
40+ mAddAttributeButton ->setIcon ( QgsApplication::getThemeIcon ( " /mActionNewAttribute.png" ) );
41+ mRemoveAttributeButton ->setIcon ( QgsApplication::getThemeIcon ( " /mActionDeleteAttribute.png" ) );
4442 mTypeBox ->addItem ( tr ( " Text data" ), " String" );
4543 mTypeBox ->addItem ( tr ( " Whole number" ), " Integer" );
4644 mTypeBox ->addItem ( tr ( " Decimal number" ), " Real" );
45+ mTypeBox ->addItem ( tr ( " Date" ), " Date" );
4746
4847 mWidth ->setValidator ( new QIntValidator ( 1 , 255 , this ) );
4948 mPrecision ->setValidator ( new QIntValidator ( 0 , 15 , this ) );
5049
5150 mPointRadioButton ->setChecked ( true );
5251 mFileFormatComboBox ->addItem ( tr ( " ESRI Shapefile" ), " ESRI Shapefile" );
53- /* Disabled until provider properly supports editing the created file formats */
54- // mFileFormatComboBox->addItem( tr( "Comma Separated Value" ), "Comma Separated Value" );
55- // mFileFormatComboBox->addItem(tr( "GML"), "GML" );
56- // mFileFormatComboBox->addItem(tr( "Mapinfo File" ), "Mapinfo File" );
52+ #if 0
53+ // Disabled until provider properly supports editing the created file formats
54+ mFileFormatComboBox->addItem( tr( "Comma Separated Value" ), "Comma Separated Value" );
55+ mFileFormatComboBox->addItem( tr( "GML" ), "GML" );
56+ mFileFormatComboBox->addItem( tr( "Mapinfo File" ), "Mapinfo File" );
57+ #endif
5758 if ( mFileFormatComboBox ->count () == 1 )
5859 {
5960 mFileFormatComboBox ->setVisible ( false );
0 commit comments