Skip to content
Permalink
Browse files

Text string made easier to translate in georeferencer.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11181 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Jul 27, 2009
1 parent fde0c6f commit c04aef6422b44d1113a5294a50d9b3f2e2e97e31
@@ -2,7 +2,7 @@
# Files

SET (GEOREF_SRCS
plugin.cpp
qgsgeorefplugin.cpp
qgsgeorefdatapoint.cpp
qgsimagewarper.cpp
qgsleastsquares.cpp
@@ -20,7 +20,7 @@ SET (GEOREF_UIS
)

SET (GEOREF_MOC_HDRS
plugin.h
qgsgeorefplugin.h
qgspointdialog.h
mapcoordsdialog.h
qgsgeorefwarpoptionsdialog.h
@@ -20,4 +20,13 @@
QgsGeorefDescriptionDialog::QgsGeorefDescriptionDialog( QWidget* parent ): QDialog( parent )
{
setupUi( this );

textEdit->setText("<h2>Description</h2>"
"<p>This plugin can generate world files "
"for rasters. You select points on the "
"raster and give their world "
"coordinates, and the plugin will "
"compute the world file parameters. "
"The more coordinates you can "
"provide the better the result will be.</p>");
}
@@ -13,7 +13,6 @@
<string>Description georeferencer</string>
</property>
<property name="windowIcon" >
<iconset resource="georeferencer.qrc" >:/georeferencer.png</iconset>
</property>
<property name="modal" >
<bool>true</bool>
@@ -40,13 +39,6 @@
<property name="readOnly" >
<bool>true</bool>
</property>
<property name="html" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:12pt; font-weight:400; font-style:normal; text-decoration:none;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-size:11pt; font-weight:600;">Description&lt;/span>&lt;/p>
&lt;p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:9pt;">This plugin can generate world files for rasters. You select points on the raster and give their world coordinates, and the plugin will compute the world file parameters. The more coordinates you can provide the better the result will be.&lt;/p>&lt;/body>&lt;/html></string>
</property>
</widget>
</item>
<item row="0" column="0" >
@@ -30,8 +30,7 @@ void QgsLeastSquares::linear( std::vector<QgsPoint> mapCoords,
int n = mapCoords.size();
if ( n < 2 )
{
throw std::domain_error( QObject::tr( "Fit to a linear transform requires at "
"least 2 points." ).toLocal8Bit().constData() );
throw std::domain_error( QObject::tr( "Fit to a linear transform requires at least 2 points." ).toLocal8Bit().constData() );
}

double sumPx( 0 ), sumPy( 0 ), sumPx2( 0 ), sumPy2( 0 ), sumPxMx( 0 ), sumPyMy( 0 ),
@@ -72,8 +71,7 @@ void QgsLeastSquares::helmert( std::vector<QgsPoint> mapCoords,
int n = mapCoords.size();
if ( n < 2 )
{
throw std::domain_error( QObject::tr( "Fit to a Helmert transform requires at "
"least 2 points." ).toLocal8Bit().constData() );
throw std::domain_error( QObject::tr( "Fit to a Helmert transform requires at least 2 points." ).toLocal8Bit().constData() );
}

double A = 0, B = 0, C = 0, D = 0, E = 0, F = 0, G = 0, H = 0, I = 0, J = 0;
@@ -128,8 +126,7 @@ void QgsLeastSquares::affine( std::vector<QgsPoint> mapCoords,
int n = mapCoords.size();
if ( n < 4 )
{
throw std::domain_error( QObject::tr( "Fit to an affine transform requires at "
"least 4 points." ).toLocal8Bit().constData() );
throw std::domain_error( QObject::tr( "Fit to an affine transform requires at least 4 points." ).toLocal8Bit().constData() );
}

double A = 0, B = 0, C = 0, D = 0, E = 0, F = 0,
@@ -76,6 +76,7 @@ class QgsPointDialog : public QDialog, private Ui::QgsPointDialogBase
QString guessWorldFileName( const QString& raster );

void enableModifiedRasterControls( bool state );
void enableControls(bool state);
QIcon getThemeIcon( const QString theName );

QActionGroup* mMapToolGroup;
@@ -312,7 +312,7 @@
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="textLabel1" >
<widget class="QLabel" name="lblSelectWorldFile" >
<property name="text" >
<string>World file:</string>
</property>

0 comments on commit c04aef6

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