Skip to content

Commit

Permalink
fix #2815 - including more missing translation strings
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13744 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 17, 2010
1 parent 6a9bc7a commit e4b856d
Show file tree
Hide file tree
Showing 26 changed files with 99 additions and 91 deletions.
3 changes: 2 additions & 1 deletion python/core/symbology-ng-core.sip
Expand Up @@ -774,9 +774,10 @@ class QgsSymbolLayerV2AbstractMetadata


public: public:
/** construct metadata */ /** construct metadata */
QgsSymbolLayerV2AbstractMetadata( QString name, QgsSymbolV2::SymbolType type ); QgsSymbolLayerV2AbstractMetadata( QString name, QString visibleName, QgsSymbolV2::SymbolType type );


QString name() const; QString name() const;
QString visibleName() const;
QgsSymbolV2::SymbolType type() const; QgsSymbolV2::SymbolType type() const;


/** create a symbol layer of this type given the map of properties. */ /** create a symbol layer of this type given the map of properties. */
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -3760,7 +3760,7 @@ void QgisApp::labeling()
QgsMapLayer* layer = activeLayer(); QgsMapLayer* layer = activeLayer();
if ( layer == NULL || layer->type() != QgsMapLayer::VectorLayer ) if ( layer == NULL || layer->type() != QgsMapLayer::VectorLayer )
{ {
QMessageBox::warning( this, "Labeling", "Please select a vector layer first." ); QMessageBox::warning( this, tr( "Labeling" ), tr( "Please select a vector layer first." ) );
return; return;
} }
QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer*>( layer ); QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer*>( layer );
Expand Down Expand Up @@ -4190,7 +4190,7 @@ void QgisApp::mergeSelectedFeatures()
const QgsFeatureIds& featureIdSet = vl->selectedFeaturesIds(); const QgsFeatureIds& featureIdSet = vl->selectedFeaturesIds();
if ( featureIdSet.size() < 2 ) if ( featureIdSet.size() < 2 )
{ {
QMessageBox::information( 0, "Not enough features selected", tr( "The merge tool requires at least two selected features" ) ); QMessageBox::information( 0, tr( "Not enough features selected" ), tr( "The merge tool requires at least two selected features" ) );
return; return;
} }


Expand All @@ -4212,7 +4212,7 @@ void QgisApp::mergeSelectedFeatures()
QGis::WkbType newType = unionGeom->wkbType(); QGis::WkbType newType = unionGeom->wkbType();
if ( providerChecksTypeStrictly && unionGeom->wkbType() != vl->wkbType() ) if ( providerChecksTypeStrictly && unionGeom->wkbType() != vl->wkbType() )
{ {
QMessageBox::critical( 0, "Union operation canceled", tr( "The union operation would result in a geometry type that is not compatible with the current layer and therefore is canceled" ) ); QMessageBox::critical( 0, tr( "Union operation canceled" ), tr( "The union operation would result in a geometry type that is not compatible with the current layer and therefore is canceled" ) );
delete unionGeom; delete unionGeom;
return; return;
} }
Expand All @@ -4229,7 +4229,7 @@ void QgisApp::mergeSelectedFeatures()


if ( featureListAfter.size() < 2 ) if ( featureListAfter.size() < 2 )
{ {
QMessageBox::information( 0, "Not enough features selected", tr( "The merge tool requires at least two selected features" ) ); QMessageBox::information( 0, tr( "Not enough features selected" ), tr( "The merge tool requires at least two selected features" ) );
delete unionGeom; delete unionGeom;
return; return;
} }
Expand Down
14 changes: 7 additions & 7 deletions src/app/qgscustomprojectiondialog.cpp
Expand Up @@ -344,7 +344,7 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
//cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId)); //cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId));
leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) ); leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) );
mCurrentRecordLong = 1; mCurrentRecordLong = 1;
lblRecordNo->setText( QString::number( mCurrentRecordLong ) + " of " + QString::number( mRecordCountLong ) ); lblRecordNo->setText( tr( "%1 of %2" ).arg( mCurrentRecordLong ).arg( mRecordCountLong ) );
} }
} }
else else
Expand Down Expand Up @@ -416,7 +416,7 @@ void QgsCustomProjectionDialog::on_pbnPrevious_clicked()
//cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId)); //cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId));
leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) ), leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) ),
--mCurrentRecordLong; --mCurrentRecordLong;
lblRecordNo->setText( QString::number( mCurrentRecordLong ) + " of " + QString::number( mRecordCountLong ) ); lblRecordNo->setText( tr( "%1 of %2" ).arg( mCurrentRecordLong ).arg( mRecordCountLong ) );
} }
} }
else else
Expand Down Expand Up @@ -489,7 +489,7 @@ void QgsCustomProjectionDialog::on_pbnNext_clicked()
//cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId)); //cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId));
leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) ); leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) );
++mCurrentRecordLong; ++mCurrentRecordLong;
lblRecordNo->setText( QString::number( mCurrentRecordLong ) + " of " + QString::number( mRecordCountLong ) ); lblRecordNo->setText( tr( "%1 of %2" ).arg( mCurrentRecordLong ).arg( mRecordCountLong ) );
} }
} }
else else
Expand Down Expand Up @@ -558,7 +558,7 @@ void QgsCustomProjectionDialog::on_pbnLast_clicked()
//cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId)); //cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId));
leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) ); leParameters->setText( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 4 ) ) );
mCurrentRecordLong = mRecordCountLong; mCurrentRecordLong = mRecordCountLong;
lblRecordNo->setText( QString::number( mCurrentRecordLong ) + " of " + QString::number( mRecordCountLong ) ); lblRecordNo->setText( tr( "%1 of %2" ).arg( mCurrentRecordLong ).arg( mRecordCountLong ) );
} }
} }
else else
Expand Down Expand Up @@ -620,7 +620,7 @@ void QgsCustomProjectionDialog::on_pbnNew_clicked()
leParameters->setText( "" ); leParameters->setText( "" );
//cboProjectionFamily->setCurrentItem(0); //cboProjectionFamily->setCurrentItem(0);
//cboEllipsoid->setCurrentItem(0); //cboEllipsoid->setCurrentItem(0);
lblRecordNo->setText( "* of " + QString::number( mRecordCountLong ) ); lblRecordNo->setText( tr( "* of %1" ).arg( mRecordCountLong ) );
//remember the rec we are on in case the user aborts //remember the rec we are on in case the user aborts
mLastRecordLong = mCurrentRecordLong; mLastRecordLong = mCurrentRecordLong;
mCurrentRecordId = ""; mCurrentRecordId = "";
Expand Down Expand Up @@ -898,8 +898,8 @@ void QgsCustomProjectionDialog::on_pbnCalculate_clicked()
int projResult = pj_transform( wgs84Proj, myProj, 1, 0, &easthing, &northing, &z ); int projResult = pj_transform( wgs84Proj, myProj, 1, 0, &easthing, &northing, &z );
if ( projResult != 0 ) if ( projResult != 0 )
{ {
projectedX->setText( "Error" ); projectedX->setText( tr( "Error" ) );
projectedY->setText( "Error" ); projectedY->setText( tr( "Error" ) );
QgsDebugMsg( pj_strerrno( projResult ) ); QgsDebugMsg( pj_strerrno( projResult ) );
} }
else else
Expand Down
6 changes: 3 additions & 3 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -145,9 +145,9 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer *lyr, QWidget *p
//cboxClassificationMode->addItem( tr( "Quantiles" ) ); //cboxClassificationMode->addItem( tr( "Quantiles" ) );


QStringList headerLabels; QStringList headerLabels;
headerLabels << "Value"; headerLabels << tr( "Value" );
headerLabels << "Color"; headerLabels << tr( "Color" );
headerLabels << "Label"; headerLabels << tr( "Label" );
mColormapTreeWidget->setHeaderLabels( headerLabels ); mColormapTreeWidget->setHeaderLabels( headerLabels );


//disable colormap tab completely until 'Colormap' is selected (and only for type GrayOrUndefined) //disable colormap tab completely until 'Colormap' is selected (and only for type GrayOrUndefined)
Expand Down
5 changes: 3 additions & 2 deletions src/app/qgssinglesymboldialog.cpp
Expand Up @@ -256,9 +256,10 @@ void QgsSingleSymbolDialog::selectFillColor()
//should this method have a different name? //should this method have a different name?
void QgsSingleSymbolDialog::selectTextureImage() void QgsSingleSymbolDialog::selectTextureImage()
{ {
QString fileName = QFileDialog::getOpenFileName( this, "Open File", QString fileName = QFileDialog::getOpenFileName( this,
tr( "Open File" ),
mTexturePath, mTexturePath,
"Images (*.png *.xpm *.jpg)" ); //should we allow other types of images? tr( "Images (*.png *.xpm *.jpg)" ) ); //should we allow other types of images?


if ( !fileName.isNull() ) if ( !fileName.isNull() )
{ //only process the string if the user clicked OK { //only process the string if the user clicked OK
Expand Down
1 change: 1 addition & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -238,6 +238,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsvectorlayer.h qgsvectorlayer.h
qgsrasterdataprovider.h qgsrasterdataprovider.h
qgsnetworkaccessmanager.h qgsnetworkaccessmanager.h
qgsvectordataprovider.h


composer/qgscomposerlegend.h composer/qgscomposerlegend.h
composer/qgscomposermap.h composer/qgscomposermap.h
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsapplication.cpp
Expand Up @@ -91,7 +91,7 @@ bool QgsApplication::notify( QObject * receiver, QEvent * event )
} }
catch ( ... ) catch ( ... )
{ {
QMessageBox::critical( activeWindow(), tr( "Exception" ), "unknown exception" ); QMessageBox::critical( activeWindow(), tr( "Exception" ), tr( "unknown exception" ) );
} }
return done; return done;
} }
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -582,7 +582,7 @@ QString QgsMapLayer::loadNamedStyle( const QString theURI, bool &theResultFlag )
QDomElement myRoot = myDocument.firstChildElement( "qgis" ); QDomElement myRoot = myDocument.firstChildElement( "qgis" );
if ( myRoot.isNull() ) if ( myRoot.isNull() )
{ {
myErrorMessage = "Error: qgis element could not be found in " + theURI; myErrorMessage = tr( "Error: qgis element could not be found in %1" ).arg( theURI );
theResultFlag = false; theResultFlag = false;
return myErrorMessage; return myErrorMessage;
} }
Expand Down
15 changes: 6 additions & 9 deletions src/core/qgssearchtreenode.cpp
Expand Up @@ -289,7 +289,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
// this error should be caught when checking syntax, but for sure... // this error should be caught when checking syntax, but for sure...
if ( mType != tOperator ) if ( mType != tOperator )
{ {
mError = "Expected operator, got scalar value!"; mError = QObject::tr( "Expected operator, got scalar value!" );
return false; return false;
} }


Expand Down Expand Up @@ -352,7 +352,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
case opGE: return ( res >= 0 ); case opGE: return ( res >= 0 );
case opLE: return ( res <= 0 ); case opLE: return ( res <= 0 );
default: default:
mError = "Unexpected state when evaluating operator!"; mError = QObject::tr( "Unexpected state when evaluating operator!" );
return false; return false;
} }


Expand Down Expand Up @@ -392,8 +392,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
} }


default: default:
mError = "Unknown operator: "; mError = QObject::tr( "Unknown operator: %1" ).arg( mOp );
mError += QString::number( mOp );
return false; return false;
} }
} }
Expand All @@ -414,15 +413,13 @@ bool QgsSearchTreeNode::getValue( QgsSearchTreeValue& value, QgsSearchTreeNode*


// these should never happen (no need to translate) // these should never happen (no need to translate)
case 3: case 3:
mError = "Unknown operator: "; mError = QObject::tr( "Unknown operator: %1" ).arg( value.string() );
mError += value.string();
break; break;
case 4: case 4:
mError = "Unknown token: "; mError = QObject::tr( "Unknown token: %1" ).arg( value.string() );
mError += value.string();
break; break;
default: default:
mError = "Unknown error!"; mError = QObject::tr( "Unknown error!" );
break; break;
} }
return false; return false;
Expand Down
16 changes: 8 additions & 8 deletions src/core/qgsvectordataprovider.cpp
Expand Up @@ -163,50 +163,50 @@ QString QgsVectorDataProvider::capabilitiesString() const


if ( abilities & QgsVectorDataProvider::AddFeatures ) if ( abilities & QgsVectorDataProvider::AddFeatures )
{ {
abilitiesList += "Add Features"; abilitiesList += tr( "Add Features" );
QgsDebugMsg( "Capability: Add Features" ); QgsDebugMsg( "Capability: Add Features" );
} }


if ( abilities & QgsVectorDataProvider::DeleteFeatures ) if ( abilities & QgsVectorDataProvider::DeleteFeatures )
{ {
abilitiesList += "Delete Features"; abilitiesList += tr( "Delete Features" );
QgsDebugMsg( "Capability: Delete Features" ); QgsDebugMsg( "Capability: Delete Features" );
} }


if ( abilities & QgsVectorDataProvider::ChangeAttributeValues ) if ( abilities & QgsVectorDataProvider::ChangeAttributeValues )
{ {
abilitiesList += "Change Attribute Values"; abilitiesList += tr( "Change Attribute Values" );
QgsDebugMsg( "Capability: Change Attribute Values" ); QgsDebugMsg( "Capability: Change Attribute Values" );
} }


if ( abilities & QgsVectorDataProvider::AddAttributes ) if ( abilities & QgsVectorDataProvider::AddAttributes )
{ {
abilitiesList += "Add Attributes"; abilitiesList += tr( "Add Attributes" );
QgsDebugMsg( "Capability: Add Attributes" ); QgsDebugMsg( "Capability: Add Attributes" );
} }


if ( abilities & QgsVectorDataProvider::DeleteAttributes ) if ( abilities & QgsVectorDataProvider::DeleteAttributes )
{ {
abilitiesList += "Delete Attributes"; abilitiesList += tr( "Delete Attributes" );
QgsDebugMsg( "Capability: Delete Attributes" ); QgsDebugMsg( "Capability: Delete Attributes" );
} }


if ( abilities & QgsVectorDataProvider::CreateSpatialIndex ) if ( abilities & QgsVectorDataProvider::CreateSpatialIndex )
{ {
// TODO: Tighten up this test. See QgsOgrProvider for details. // TODO: Tighten up this test. See QgsOgrProvider for details.
abilitiesList += "Create Spatial Index"; abilitiesList += tr( "Create Spatial Index" );
QgsDebugMsg( "Capability: Create Spatial Index" ); QgsDebugMsg( "Capability: Create Spatial Index" );
} }


if ( abilities & QgsVectorDataProvider::SelectAtId ) if ( abilities & QgsVectorDataProvider::SelectAtId )
{ {
abilitiesList += "Fast Access to Features at ID"; abilitiesList += tr( "Fast Access to Features at ID" );
QgsDebugMsg( "Capability: Select at ID" ); QgsDebugMsg( "Capability: Select at ID" );
} }


if ( abilities & QgsVectorDataProvider::ChangeGeometries ) if ( abilities & QgsVectorDataProvider::ChangeGeometries )
{ {
abilitiesList += "Change Geometries"; abilitiesList += tr( "Change Geometries" );
QgsDebugMsg( "Capability: Change Geometries" ); QgsDebugMsg( "Capability: Change Geometries" );
} }


Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectordataprovider.h
Expand Up @@ -38,6 +38,8 @@ class QTextCodec;
*/ */
class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
{ {
Q_OBJECT

public: public:


// If you add to this, please also add to capabilitiesString() // If you add to this, please also add to capabilitiesString()
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -2844,14 +2844,14 @@ bool QgsVectorLayer::writeSymbology( QDomNode& node, QDomDocument& doc, QString&
{ {
if ( !myRenderer->writeXML( node, doc, *this ) ) if ( !myRenderer->writeXML( node, doc, *this ) )
{ {
errorMessage = "renderer failed to save"; errorMessage = tr( "renderer failed to save" );
return false; return false;
} }
} }
else else
{ {
QgsDebugMsg( "no renderer" ); QgsDebugMsg( "no renderer" );
errorMessage = "no renderer"; errorMessage = tr( "no renderer" );
return false; return false;
} }
} }
Expand Down
16 changes: 8 additions & 8 deletions src/core/symbology-ng/qgssymbollayerv2registry.cpp
Expand Up @@ -10,23 +10,23 @@ QgsSymbolLayerV2Registry* QgsSymbolLayerV2Registry::mInstance = NULL;
QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry() QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry()
{ {
// init registry with known symbol layers // init registry with known symbol layers
addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SimpleLine", QgsSymbolV2::Line, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SimpleLine", QObject::tr( "Simple line" ), QgsSymbolV2::Line,
QgsSimpleLineSymbolLayerV2::create ) ); QgsSimpleLineSymbolLayerV2::create ) );
addSymbolLayerType( new QgsSymbolLayerV2Metadata( "MarkerLine", QgsSymbolV2::Line, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "MarkerLine", QObject::tr( "Marker line" ), QgsSymbolV2::Line,
QgsMarkerLineSymbolLayerV2::create ) ); QgsMarkerLineSymbolLayerV2::create ) );
addSymbolLayerType( new QgsSymbolLayerV2Metadata( "LineDecoration", QgsSymbolV2::Line, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "LineDecoration", QObject::tr( "Line decoration" ), QgsSymbolV2::Line,
QgsLineDecorationSymbolLayerV2::create ) ); QgsLineDecorationSymbolLayerV2::create ) );


addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SimpleMarker", QgsSymbolV2::Marker, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SimpleMarker", QObject::tr( "Simple marker" ), QgsSymbolV2::Marker,
QgsSimpleMarkerSymbolLayerV2::create ) ); QgsSimpleMarkerSymbolLayerV2::create ) );
addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SvgMarker", QgsSymbolV2::Marker, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SvgMarker", QObject::tr( "SVG marker" ), QgsSymbolV2::Marker,
QgsSvgMarkerSymbolLayerV2::create ) ); QgsSvgMarkerSymbolLayerV2::create ) );
addSymbolLayerType( new QgsSymbolLayerV2Metadata( "FontMarker", QgsSymbolV2::Marker, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "FontMarker", QObject::tr( "Font marker" ), QgsSymbolV2::Marker,
QgsFontMarkerSymbolLayerV2::create ) ); QgsFontMarkerSymbolLayerV2::create ) );


addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SimpleFill", QgsSymbolV2::Fill, addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SimpleFill", QObject::tr( "Simple fill" ), QgsSymbolV2::Fill,
QgsSimpleFillSymbolLayerV2::create ) ); QgsSimpleFillSymbolLayerV2::create ) );
addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SVGFill", QgsSymbolV2::Fill, QgsSVGFillSymbolLayer::create ) ); addSymbolLayerType( new QgsSymbolLayerV2Metadata( "SVGFill", QObject::tr( "SVG fill" ), QgsSymbolV2::Fill, QgsSVGFillSymbolLayer::create ) );
} }


QgsSymbolLayerV2Registry::~QgsSymbolLayerV2Registry() QgsSymbolLayerV2Registry::~QgsSymbolLayerV2Registry()
Expand Down
11 changes: 7 additions & 4 deletions src/core/symbology-ng/qgssymbollayerv2registry.h
Expand Up @@ -14,10 +14,11 @@
class CORE_EXPORT QgsSymbolLayerV2AbstractMetadata class CORE_EXPORT QgsSymbolLayerV2AbstractMetadata
{ {
public: public:
QgsSymbolLayerV2AbstractMetadata( QString name, QgsSymbolV2::SymbolType type ) QgsSymbolLayerV2AbstractMetadata( QString name, QString visibleName, QgsSymbolV2::SymbolType type )
: mName( name ), mType( type ) {} : mName( name ), mVisibleName( visibleName ), mType( type ) {}


QString name() const { return mName; } QString name() const { return mName; }
QString visibleName() const { return mVisibleName; }
QgsSymbolV2::SymbolType type() const { return mType; } QgsSymbolV2::SymbolType type() const { return mType; }


/** create a symbol layer of this type given the map of properties. */ /** create a symbol layer of this type given the map of properties. */
Expand All @@ -27,6 +28,7 @@ class CORE_EXPORT QgsSymbolLayerV2AbstractMetadata


protected: protected:
QString mName; QString mName;
QString mVisibleName;
QgsSymbolV2::SymbolType mType; QgsSymbolV2::SymbolType mType;
}; };


Expand All @@ -39,10 +41,11 @@ typedef QgsSymbolLayerV2Widget*( *QgsSymbolLayerV2WidgetFunc )();
class CORE_EXPORT QgsSymbolLayerV2Metadata : public QgsSymbolLayerV2AbstractMetadata class CORE_EXPORT QgsSymbolLayerV2Metadata : public QgsSymbolLayerV2AbstractMetadata
{ {
public: public:
QgsSymbolLayerV2Metadata( QString name, QgsSymbolV2::SymbolType type, QgsSymbolLayerV2Metadata( QString name, QString visibleName,
QgsSymbolV2::SymbolType type,
QgsSymbolLayerV2CreateFunc pfCreate, QgsSymbolLayerV2CreateFunc pfCreate,
QgsSymbolLayerV2WidgetFunc pfWidget = NULL ) QgsSymbolLayerV2WidgetFunc pfWidget = NULL )
: QgsSymbolLayerV2AbstractMetadata( name, type ), mCreateFunc( pfCreate ), mWidgetFunc( pfWidget ) {} : QgsSymbolLayerV2AbstractMetadata( name, visibleName, type ), mCreateFunc( pfCreate ), mWidgetFunc( pfWidget ) {}


QgsSymbolLayerV2CreateFunc createFunction() const { return mCreateFunc; } QgsSymbolLayerV2CreateFunc createFunction() const { return mCreateFunc; }
QgsSymbolLayerV2WidgetFunc widgetFunction() const { return mWidgetFunc; } QgsSymbolLayerV2WidgetFunc widgetFunction() const { return mWidgetFunc; }
Expand Down
1 change: 1 addition & 0 deletions src/gui/CMakeLists.txt
Expand Up @@ -74,6 +74,7 @@ symbology-ng/qgsvectorrandomcolorrampv2dialog.h
symbology-ng/qgsvectorcolorbrewercolorrampv2dialog.h symbology-ng/qgsvectorcolorbrewercolorrampv2dialog.h
symbology-ng/characterwidget.h symbology-ng/characterwidget.h
symbology-ng/qgspenstylecombobox.h symbology-ng/qgspenstylecombobox.h
symbology-ng/qgsbrushstylecombobox.h


qgsattributeeditor.h qgsattributeeditor.h
qgscomposerview.h qgscomposerview.h
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscomposerview.cpp
Expand Up @@ -127,7 +127,7 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
case AddLabel: case AddLabel:
{ {
QgsComposerLabel* newLabelItem = new QgsComposerLabel( composition() ); QgsComposerLabel* newLabelItem = new QgsComposerLabel( composition() );
newLabelItem->setText( "Quantum GIS" ); newLabelItem->setText( tr( "Quantum GIS" ) );
newLabelItem->adjustSizeToText(); newLabelItem->adjustSizeToText();
newLabelItem->setSceneRect( QRectF( snappedScenePoint.x(), snappedScenePoint.y(), newLabelItem->rect().width(), newLabelItem->rect().height() ) ); newLabelItem->setSceneRect( QRectF( snappedScenePoint.x(), snappedScenePoint.y(), newLabelItem->rect().width(), newLabelItem->rect().height() ) );
addComposerLabel( newLabelItem ); addComposerLabel( newLabelItem );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsencodingfiledialog.cpp
Expand Up @@ -90,7 +90,7 @@ void QgsEncodingFileDialog::addCancelAll()
{ {
if ( ! mCancelAllButton ) if ( ! mCancelAllButton )
{ {
mCancelAllButton = new QPushButton( "Cancel &All", NULL ); mCancelAllButton = new QPushButton( tr( "Cancel &All" ), NULL );
layout()->addWidget( mCancelAllButton ); // Ownership transfered, no need to delete later on layout()->addWidget( mCancelAllButton ); // Ownership transfered, no need to delete later on
connect( mCancelAllButton, SIGNAL( clicked() ), this, SLOT( pbnCancelAll_clicked() ) ); connect( mCancelAllButton, SIGNAL( clicked() ), this, SLOT( pbnCancelAll_clicked() ) );
} }
Expand Down

0 comments on commit e4b856d

Please sign in to comment.