Skip to content
Permalink
Browse files

automatic indentation update (r11227-r11370)

git-svn-id: http://svn.osgeo.org/qgis/trunk@11371 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 14, 2009
1 parent 3a9a34d commit 0bb8cb2adbf1b71e26a5ebeb1a9490a5e6e3d922
Showing with 300 additions and 295 deletions.
  1. +3 −3 src/app/composer/qgscomposerlabelwidget.cpp
  2. +6 −6 src/app/composer/qgscomposerlegendwidget.cpp
  3. +2 −2 src/app/composer/qgscompositionwidget.cpp
  4. +4 −4 src/app/ogr/qgsopenvectorlayerdialog.cpp
  5. +124 −124 src/app/qgisapp.cpp
  6. +6 −6 src/app/qgsgraduatedsymboldialog.cpp
  7. +1 −1 src/app/qgsmaptooladdvertex.h
  8. +1 −1 src/app/qgsmaptooldeletepart.h
  9. +1 −1 src/app/qgsmaptooldeletering.h
  10. +1 −1 src/app/qgsmaptooldeletevertex.h
  11. +1 −1 src/app/qgsmaptoolmovevertex.h
  12. +4 −4 src/app/qgsmaptoolnodetool.cpp
  13. +8 −8 src/app/qgsmeasuredialog.cpp
  14. +1 −1 src/app/qgsmeasuredialog.h
  15. +5 −3 src/app/qgsoptions.cpp
  16. +8 −8 src/app/qgsprojectproperties.cpp
  17. +1 −1 src/app/qgsprojectproperties.h
  18. +1 −1 src/app/qgsuniquevaluedialog.cpp
  19. +1 −1 src/app/qgsvectorlayerproperties.cpp
  20. +2 −2 src/core/composer/qgscomposerlabel.cpp
  21. +1 −1 src/core/composer/qgscomposerlabel.h
  22. +1 −1 src/core/composer/qgscomposermap.cpp
  23. +1 −1 src/core/qgis.h
  24. +28 −28 src/core/qgscoordinatereferencesystem.cpp
  25. +1 −1 src/core/qgscoordinatereferencesystem.h
  26. +3 −3 src/core/qgsexception.h
  27. +31 −31 src/core/qgsgeometry.cpp
  28. +1 −1 src/core/qgsmaplayer.cpp
  29. +2 −2 src/core/renderer/qgscontinuouscolorrenderer.cpp
  30. +1 −1 src/core/renderer/qgsgraduatedsymbolrenderer.cpp
  31. +1 −1 src/core/renderer/qgsrenderer.h
  32. +3 −3 src/core/renderer/qgsuniquevaluerenderer.cpp
  33. +2 −2 src/core/symbology/qgsmarkercatalogue.cpp
  34. +1 −1 src/core/symbology/qgsmarkercatalogue.h
  35. +4 −4 src/core/symbology/qgssymbol.cpp
  36. +5 −5 src/core/symbology/qgssymbol.h
  37. +9 −6 src/plugins/grass/qgsgrassattributes.cpp
  38. +1 −1 src/plugins/grass/qgsgrassattributes.h
  39. +1 −1 src/plugins/grass/qgsgrassedittools.cpp
  40. +1 −1 src/plugins/grass/qgsgrassmodule.h
  41. +1 −1 src/plugins/interpolation/Vector3D.h
  42. +1 −1 src/plugins/interpolation/qgstininterpolator.cpp
  43. +5 −5 src/plugins/scale_bar/plugin.cpp
  44. +1 −1 src/providers/ogr/qgsogrprovider.cpp
  45. +1 −1 src/providers/ogr/qgsogrprovider.h
  46. +2 −2 src/providers/osm/osmprovider.cpp
  47. +5 −5 src/providers/osm/osmprovider.h
  48. +1 −1 src/providers/osm/osmrenderer.cpp
  49. +4 −4 src/providers/postgres/qgspostgresprovider.cpp
@@ -50,9 +50,9 @@ void QgsComposerLabelWidget::on_mFontButton_clicked()
if ( mComposerLabel )
{
bool ok;
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this, QString(), QFontDialog::DontUseNativeDialog );
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this, QString(), QFontDialog::DontUseNativeDialog );
#else
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this );
#endif
@@ -132,8 +132,8 @@ void QgsComposerLegendWidget::on_mTitleFontButton_clicked()
if ( mLegend )
{
bool ok;
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
QFont newFont = QFontDialog::getFont( &ok, mLegend->titleFont(), this, QString(), QFontDialog::DontUseNativeDialog );
#else
QFont newFont = QFontDialog::getFont( &ok, mLegend->titleFont() );
@@ -152,8 +152,8 @@ void QgsComposerLegendWidget::on_mLayerFontButton_clicked()
if ( mLegend )
{
bool ok;
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
QFont newFont = QFontDialog::getFont( &ok, mLegend->layerFont(), this, QString(), QFontDialog::DontUseNativeDialog );
#else
QFont newFont = QFontDialog::getFont( &ok, mLegend->layerFont() );
@@ -172,8 +172,8 @@ void QgsComposerLegendWidget::on_mItemFontButton_clicked()
if ( mLegend )
{
bool ok;
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
QFont newFont = QFontDialog::getFont( &ok, mLegend->itemFont(), this, QString(), QFontDialog::DontUseNativeDialog );
#else
QFont newFont = QFontDialog::getFont( &ok, mLegend->itemFont() );
@@ -260,12 +260,12 @@ void QgsCompositionWidget::setSize( QLineEdit *le, double v )
if ( mPaperUnitsComboBox->currentIndex() == 0 )
{
// mm
le->setText( QString("%1").arg( v ) );
le->setText( QString( "%1" ).arg( v ) );
}
else
{
// inch (show width in inch)
le->setText( QString("%1").arg( v / 25.4 ) );
le->setText( QString( "%1" ).arg( v / 25.4 ) );
}
}

@@ -59,7 +59,7 @@ QgsOpenVectorLayerDialog::QgsOpenVectorLayerDialog( QWidget* parent, Qt::WFlags
QgsDebugMsg( "Database drivers :" + QgsProviderRegistry::instance()->databaseDrivers() );
QStringList dbDrivers = QgsProviderRegistry::instance()->databaseDrivers().split( ";" );

for ( int i = 0;i < dbDrivers.count();i++ )
for ( int i = 0; i < dbDrivers.count(); i++ )
{
QString dbDriver = dbDrivers.at( i );
if (( !dbDriver.isEmpty() ) && ( !dbDriver.isNull() ) )
@@ -68,7 +68,7 @@ QgsOpenVectorLayerDialog::QgsOpenVectorLayerDialog( QWidget* parent, Qt::WFlags

//add directory drivers
QStringList dirDrivers = QgsProviderRegistry::instance()->directoryDrivers().split( ";" );
for ( int i = 0;i < dirDrivers.count();i++ )
for ( int i = 0; i < dirDrivers.count(); i++ )
{
QString dirDriver = dirDrivers.at( i );
if (( !dirDriver.isEmpty() ) && ( !dirDriver.isNull() ) )
@@ -77,7 +77,7 @@ QgsOpenVectorLayerDialog::QgsOpenVectorLayerDialog( QWidget* parent, Qt::WFlags

//add protocol drivers
QStringList proDrivers = QgsProviderRegistry::instance()->protocolDrivers().split( ";" );
for ( int i = 0;i < proDrivers.count();i++ )
for ( int i = 0; i < proDrivers.count(); i++ )
{
QString proDriver = proDrivers.at( i );
if (( !proDriver.isEmpty() ) && ( !proDriver.isNull() ) )
@@ -284,7 +284,7 @@ void QgsOpenVectorLayerDialog::on_buttonSelectSrc_clicked()
//mType="file";
mDataSources = openFile();
filepath = "";
for ( int i = 0;i < mDataSources.count();i++ )
for ( int i = 0; i < mDataSources.count(); i++ )
filepath += mDataSources.at( i ) + ";";
inputSrcDataset->setText( filepath );
}
@@ -2007,123 +2007,123 @@ void QgisApp::about()

abt->setVersion( versionString );
QString whatsNew = "<html><body>" ;
whatsNew += "<h2>"+ tr( "Version" ) + " " + QString(QGis::QGIS_VERSION) + "</h2>";
whatsNew += "<h2>" + tr( "Version" ) + " " + QString( QGis::QGIS_VERSION ) + "</h2>";
whatsNew += "<h3>" + tr( "Whats new in Version 1.2.0?" ) + "</h3>"
+
"<p>"
+ tr("Please note that this is a release in our 'cutting edge' release series. As "
"such it contains new features and extends the programmatic interface over "
"QGIS 1.0.x and QGIS 1.1.0. If stability and long term support is more important to you "
"then cool new and untested features, we recommend that you use a copy "
"of QGIS from our stable 1.0.x release series.")
+
"</p><p>"
+
tr("This release includes over 140 bug fixes and enhancements "
"over the QGIS 1.1.0 release. In addition we have added "
"the following new features:")
+ "<pre>"
+ tr("Editing:\n"
"\n"
"Editing functionality in QGIS has had a major update in this release. This\n"
"includes the addition of new vector editing tools:\n"
"- delete part of multipart feature\n"
"- delete hole from polygon\n"
"- simplify feature\n"
"- Added a new node tool (in advanced digitizing toolbar).\n"
"- New functionality for merging features\n"
"- Added undo/redo functionality for vector layer editing.\n"
"- Added option to show only markers of selected features in editing mode.\n"
"- Change layer's icon in legend to reflext that the layer is editable.\n"
"\n"
"In addition, there are undo/redo actions in Edit menu, in Advanced digitizing toolbar\n"
"and there is a new dock widget displaying undo stack of active layer.\n"
"\n"
"About the node tool: It resembles a tool for editing paths by nodes that is\n"
"present in every vector editor. How does it work (in QGIS)? Click on a\n"
"feature, its nodes will be marked by small rectangles. Clicking and dragging a\n"
"node moves it. Double clicking a segment will add a new node. Pressing delete\n"
"key will remove active node. It's possible to select more active nodes at\n"
"once: by clicking and dragging a rectangle. It's possible to select a segment's\n"
"adjacent nodes by clicking on the segment. It's possible to add/remove active\n"
"nodes by using Ctrl when clicking a node or dragging a rectangle\n"
"\n"
"We recommend that you turn off vertex markers in QGIS options when working with\n"
"this tool: the redraws are much faster and the map is not cluttered with\n"
"markers. \n"
"\n"
"Keyboard shortcuts:\n"
"\n"
"New feature: configure shortcuts for actions within main window of qgis!\n"
"See menu Setting->Configure shortcuts\n"
"\n"
"Map Composer:\n"
"\n"
"It is now possible to lock/unlock composer item positions by right mouse click.\n"
"The width and height of the composer map will now remain fixed if user sets the\n"
"composer map extent to the map canvas extent. possibility to display\n"
"current date in composer label by typing (d 'June' yyyy) or similar.\n"
"It is now possible to keep the current layers in a composer map even if further\n"
"layers are added to the main map. Export to PDF in composer is now possible.\n"
"\n"
"Attribute tables:\n"
"\n"
"It is now possible to search the attribute table within selected records only.\n"
"General speedups have been made on the attribute table. Setting of field width\n"
"and precision when adding attributes is now possible. Handling of attribute\n"
"types in WFS provider has bee improved.\n"
"\n"
"Attribute aliases for vector layers are now available. The aliases are shown\n"
"instead of the original field names in the info tool and attribute table to\n"
"make things easier for end users. There is now a GUI for setting edit widgets\n"
"for layer attributes. A new dialog allows loading a value map from a layer\n"
"(could be non-spatial table too!). The edit widgets settings will also now\n"
"be respected in the attribute table.\n"
"\n"
"Plugins:\n"
"\n"
"- The order of layers in the WMS dialog can now be changed.\n"
"- The eVis plugin, version 1.1.0, has been added to the QGIS project and\n"
" included as a standard plugin. More information about eVis can be found here:\n"
" http://biodiversityinformatics.amnh.org/open_source/evis/documentation.php .\n"
"- The interpolation plugin now has the ability to use line layers as constrains\n"
" for triangulation in interpolation plugin. You can also now save the\n"
" triangulation to shape file.\n"
"- An new OpenStreetMap provider and plugin have been added to QGIS.\n"
"\n"
"Projects Management:\n"
"\n"
"QGIS now includes support for project relative position of file data sources\n"
"and svgs. The saving of relative paths of file data sources is optional.\n"
"\n"
"PostGIS & the PostgreSQL Provider:\n"
"\n"
"You can now select the SSL mode when adding a new DB connection. Turning off\n"
"SSL encryption can greatly improve performance of PostGIS data loading where\n"
"connection security is not required. Support has been added for more native\n"
"types and for setting of column comments.\n"
"\n"
"Symbology enhancements:\n"
"\n"
"- allow refresh of symbols via popup menu on the renderer's symbol selection\n"
"- add support for data defined symbol(name)s\n"
"- add support for font symbol markers (only data defined - no gui yet)\n"
"- add symbol size in map units (ie. symbols that keep the size in mapunits\n"
" independant of the mapscale)\n"
"\n"
"Command line arguments:\n"
"\n"
"Added command line argument support on windows.\n"
"Enhancement of command line arguments:\n"
"- allow given snapshot sizes\n"
"- allow suppression of splash screen\n"
"- capture map decorations from plugins on snapshots\n"
"\n"
"Grass:\n"
"\n"
"There is a new GRASS shell. Also there have been many cleanups and consistency\n"
"updates.")
+ "</pre></body></html>";
+
"<p>"
+ tr( "Please note that this is a release in our 'cutting edge' release series. As "
"such it contains new features and extends the programmatic interface over "
"QGIS 1.0.x and QGIS 1.1.0. If stability and long term support is more important to you "
"then cool new and untested features, we recommend that you use a copy "
"of QGIS from our stable 1.0.x release series." )
+
"</p><p>"
+
tr( "This release includes over 140 bug fixes and enhancements "
"over the QGIS 1.1.0 release. In addition we have added "
"the following new features:" )
+ "<pre>"
+ tr( "Editing:\n"
"\n"
"Editing functionality in QGIS has had a major update in this release. This\n"
"includes the addition of new vector editing tools:\n"
"- delete part of multipart feature\n"
"- delete hole from polygon\n"
"- simplify feature\n"
"- Added a new node tool (in advanced digitizing toolbar).\n"
"- New functionality for merging features\n"
"- Added undo/redo functionality for vector layer editing.\n"
"- Added option to show only markers of selected features in editing mode.\n"
"- Change layer's icon in legend to reflext that the layer is editable.\n"
"\n"
"In addition, there are undo/redo actions in Edit menu, in Advanced digitizing toolbar\n"
"and there is a new dock widget displaying undo stack of active layer.\n"
"\n"
"About the node tool: It resembles a tool for editing paths by nodes that is\n"
"present in every vector editor. How does it work (in QGIS)? Click on a\n"
"feature, its nodes will be marked by small rectangles. Clicking and dragging a\n"
"node moves it. Double clicking a segment will add a new node. Pressing delete\n"
"key will remove active node. It's possible to select more active nodes at\n"
"once: by clicking and dragging a rectangle. It's possible to select a segment's\n"
"adjacent nodes by clicking on the segment. It's possible to add/remove active\n"
"nodes by using Ctrl when clicking a node or dragging a rectangle\n"
"\n"
"We recommend that you turn off vertex markers in QGIS options when working with\n"
"this tool: the redraws are much faster and the map is not cluttered with\n"
"markers. \n"
"\n"
"Keyboard shortcuts:\n"
"\n"
"New feature: configure shortcuts for actions within main window of qgis!\n"
"See menu Setting->Configure shortcuts\n"
"\n"
"Map Composer:\n"
"\n"
"It is now possible to lock/unlock composer item positions by right mouse click.\n"
"The width and height of the composer map will now remain fixed if user sets the\n"
"composer map extent to the map canvas extent. possibility to display\n"
"current date in composer label by typing (d 'June' yyyy) or similar.\n"
"It is now possible to keep the current layers in a composer map even if further\n"
"layers are added to the main map. Export to PDF in composer is now possible.\n"
"\n"
"Attribute tables:\n"
"\n"
"It is now possible to search the attribute table within selected records only.\n"
"General speedups have been made on the attribute table. Setting of field width\n"
"and precision when adding attributes is now possible. Handling of attribute\n"
"types in WFS provider has bee improved.\n"
"\n"
"Attribute aliases for vector layers are now available. The aliases are shown\n"
"instead of the original field names in the info tool and attribute table to\n"
"make things easier for end users. There is now a GUI for setting edit widgets\n"
"for layer attributes. A new dialog allows loading a value map from a layer\n"
"(could be non-spatial table too!). The edit widgets settings will also now\n"
"be respected in the attribute table.\n"
"\n"
"Plugins:\n"
"\n"
"- The order of layers in the WMS dialog can now be changed.\n"
"- The eVis plugin, version 1.1.0, has been added to the QGIS project and\n"
" included as a standard plugin. More information about eVis can be found here:\n"
" http://biodiversityinformatics.amnh.org/open_source/evis/documentation.php .\n"
"- The interpolation plugin now has the ability to use line layers as constrains\n"
" for triangulation in interpolation plugin. You can also now save the\n"
" triangulation to shape file.\n"
"- An new OpenStreetMap provider and plugin have been added to QGIS.\n"
"\n"
"Projects Management:\n"
"\n"
"QGIS now includes support for project relative position of file data sources\n"
"and svgs. The saving of relative paths of file data sources is optional.\n"
"\n"
"PostGIS & the PostgreSQL Provider:\n"
"\n"
"You can now select the SSL mode when adding a new DB connection. Turning off\n"
"SSL encryption can greatly improve performance of PostGIS data loading where\n"
"connection security is not required. Support has been added for more native\n"
"types and for setting of column comments.\n"
"\n"
"Symbology enhancements:\n"
"\n"
"- allow refresh of symbols via popup menu on the renderer's symbol selection\n"
"- add support for data defined symbol(name)s\n"
"- add support for font symbol markers (only data defined - no gui yet)\n"
"- add symbol size in map units (ie. symbols that keep the size in mapunits\n"
" independant of the mapscale)\n"
"\n"
"Command line arguments:\n"
"\n"
"Added command line argument support on windows.\n"
"Enhancement of command line arguments:\n"
"- allow given snapshot sizes\n"
"- allow suppression of splash screen\n"
"- capture map decorations from plugins on snapshots\n"
"\n"
"Grass:\n"
"\n"
"There is a new GRASS shell. Also there have been many cleanups and consistency\n"
"updates." )
+ "</pre></body></html>";

abt->setWhatsNew( whatsNew );

@@ -3334,9 +3334,9 @@ void QgisApp::fileOpen()
{
if ( ! QgsProject::instance()->read() )
{
mMapCanvas->freeze( false );
mMapCanvas->refresh();
return;
mMapCanvas->freeze( false );
mMapCanvas->refresh();
return;
}
}
catch ( QgsProjectBadLayerException & e )
@@ -3368,7 +3368,7 @@ void QgisApp::fileOpen()
emit projectRead(); // let plug-ins know that we've read in a new
// project so that they can check any project
// specific plug-in state

// add this to the list of recently used project files
saveRecentProjectPath( fullPath, settings );

@@ -3405,7 +3405,7 @@ bool QgisApp::addProject( QString projectFile )
return false;
}
// Continue after last catch statement

}
catch ( QgsProjectBadLayerException & e )
{
@@ -3456,14 +3456,14 @@ bool QgisApp::addProject( QString projectFile )
QColor myColor = QColor( myRedInt, myGreenInt, myBlueInt );
mMapCanvas->setCanvasColor( myColor ); //this is fill colour before rendering starts
QgsDebugMsg( "Canvas background color restored..." );

mMapCanvas->updateScale();
QgsDebugMsg( "Scale restored..." );

emit projectRead(); // let plug-ins know that we've read in a new
// project so that they can check any project
// specific plug-in state

// add this to the list of recently used project files
QSettings settings;
saveRecentProjectPath( projectFile, settings );

0 comments on commit 0bb8cb2

Please sign in to comment.
You can’t perform that action at this time.