21 #include <QApplication>
30 : QDialog( parent, fl )
35 restoreGeometry( settings.value(
"/Windows/ProjectionSelector/geometry" ).toByteArray() );
45 if ( theMessage.isEmpty() )
48 QString format(
"<h1>%1</h1>%2 %3" );
49 QString header =
tr(
"Define this layer's coordinate reference system:" );
50 QString sentence1 =
tr(
"This layer appears to have no projection specification." );
51 QString sentence2 =
tr(
"By default, this layer will now have its projection set to that of the project, "
52 "but you may override this by selecting a different projection below." );
53 theMessage = format.arg( header ).arg( sentence1 ).arg( sentence2 );
57 theMessage =
"<head><style>" + myStyle +
"</style></head><body>" + theMessage +
"</body>";
58 textEdit->setHtml( theMessage );
65 settings.setValue(
"/Windows/ProjectionSelector/geometry", saveGeometry() );
70 projectionSelector->setSelectedCrsName( theName );
75 projectionSelector->setSelectedCrsId( theID );
80 projectionSelector->setSelectedAuthId( theID );
86 return projectionSelector->selectedCrsId();
91 return projectionSelector->selectedAuthId();
96 projectionSelector->setOgcWmsCrsFilter( crsFilter );