17
17
18
18
#include " qgsnewvectorlayerdialog.h"
19
19
#include " qgsapplication.h"
20
- // #include "qgisapp.h" // <- for theme icons
21
20
#include " qgis.h"
22
21
#include " qgslogger.h"
23
22
#include " qgscoordinatereferencesystem.h"
@@ -38,22 +37,24 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
38
37
QSettings settings;
39
38
restoreGeometry ( settings.value ( " /Windows/NewVectorLayer/geometry" ).toByteArray () );
40
39
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" ) );
44
42
mTypeBox ->addItem ( tr ( " Text data" ), " String" );
45
43
mTypeBox ->addItem ( tr ( " Whole number" ), " Integer" );
46
44
mTypeBox ->addItem ( tr ( " Decimal number" ), " Real" );
45
+ mTypeBox ->addItem ( tr ( " Date" ), " Date" );
47
46
48
47
mWidth ->setValidator ( new QIntValidator ( 1 , 255 , this ) );
49
48
mPrecision ->setValidator ( new QIntValidator ( 0 , 15 , this ) );
50
49
51
50
mPointRadioButton ->setChecked ( true );
52
51
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
57
58
if ( mFileFormatComboBox ->count () == 1 )
58
59
{
59
60
mFileFormatComboBox ->setVisible ( false );
0 commit comments