65 |
65 |
switch ( type )
|
66 |
66 |
{
|
67 |
67 |
case QgsGrassSelect::VECTOR:
|
68 |
|
setCaption ( "Select GRASS Vector Layer" );
|
|
68 |
setCaption ( tr("Select GRASS Vector Layer") );
|
69 |
69 |
break;
|
70 |
70 |
|
71 |
71 |
case QgsGrassSelect::RASTER:
|
72 |
72 |
/* Remove layer combo box */
|
73 |
73 |
Layer->hide();
|
74 |
74 |
elayer->hide();
|
75 |
|
setCaption ( "Select GRASS Raster Layer" );
|
|
75 |
setCaption ( tr("Select GRASS Raster Layer") );
|
76 |
76 |
break;
|
77 |
77 |
|
78 |
78 |
case QgsGrassSelect::MAPCALC:
|
79 |
79 |
/* Remove layer combo box */
|
80 |
80 |
Layer->hide();
|
81 |
81 |
elayer->hide();
|
82 |
|
setCaption ( "Select GRASS mapcalc schema" );
|
|
82 |
setCaption ( tr("Select GRASS mapcalc schema") );
|
83 |
83 |
break;
|
84 |
84 |
|
85 |
85 |
case QgsGrassSelect::MAPSET:
|
... | ... | |
87 |
87 |
elayer->hide();
|
88 |
88 |
MapName->hide();
|
89 |
89 |
emap->hide();
|
90 |
|
setCaption ( "Select GRASS Mapset" );
|
|
90 |
setCaption ( tr("Select GRASS Mapset") );
|
91 |
91 |
break;
|
92 |
92 |
}
|
93 |
93 |
|
... | ... | |
404 |
404 |
|
405 |
405 |
if ( level < 2 ) {
|
406 |
406 |
std::cerr << "Cannot open vector on level 2" << std::endl;
|
407 |
|
QMessageBox::warning( 0, "Warning", "Cannot open vector on level 2 (topology not available)." );
|
|
407 |
QMessageBox::warning( 0, tr("Warning"), tr("Cannot open vector on level 2 (topology not available).") );
|
408 |
408 |
return list;
|
409 |
409 |
}
|
410 |
410 |
|
... | ... | |
462 |
462 |
{
|
463 |
463 |
|
464 |
464 |
QString Gisdbase = QFileDialog::getExistingDirectory( this,
|
465 |
|
"Choose existing GISDBASE", egisdbase->text() );
|
|
465 |
tr("Choose existing GISDBASE"), egisdbase->text() );
|
466 |
466 |
|
467 |
467 |
if ( !Gisdbase.isNull() )
|
468 |
468 |
{
|
... | ... | |
478 |
478 |
lastGisdbase = QString( gisdbase );
|
479 |
479 |
|
480 |
480 |
if ( elocation->count() == 0 ) {
|
481 |
|
QString msg = "Wrong GISDBASE, no locations available.";
|
482 |
|
QMessageBox::warning(this, "Wrong GISDBASE", msg);
|
|
481 |
QString msg = tr("Wrong GISDBASE, no locations available.");
|
|
482 |
QMessageBox::warning(this, tr("Wrong GISDBASE"), msg);
|
483 |
483 |
return;
|
484 |
484 |
}
|
485 |
485 |
|
... | ... | |
496 |
496 |
map = emap->currentText().stripWhiteSpace();
|
497 |
497 |
|
498 |
498 |
if ( type != QgsGrassSelect::MAPSET && map.isEmpty() ) {
|
499 |
|
QString msg = "Select a map.";
|
500 |
|
QMessageBox::warning(0, "No map", msg);
|
|
499 |
QString msg = tr("Select a map.");
|
|
500 |
QMessageBox::warning(0, tr("No map"), msg);
|
501 |
501 |
return;
|
502 |
502 |
}
|
503 |
503 |
|
... | ... | |
505 |
505 |
{
|
506 |
506 |
if ( elayer->count() == 0 )
|
507 |
507 |
{
|
508 |
|
QMessageBox::warning(0, "No layer",
|
509 |
|
"No layers available in this map");
|
|
508 |
QMessageBox::warning(0, tr("No layer"),
|
|
509 |
tr("No layers available in this map"));
|
510 |
510 |
return;
|
511 |
511 |
}
|
512 |
512 |
lastVectorMap = map;
|