[QGIS Commit] r9388 - trunk/external_plugins/cdp2/src/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Sep 23 09:58:12 EDT 2008
Author: timlinux
Date: 2008-09-23 09:58:12 -0400 (Tue, 23 Sep 2008)
New Revision: 9388
Modified:
trunk/external_plugins/cdp2/src/gui/climatedataprocessorgui.cpp
Log:
Wired up all file selectors
Modified: trunk/external_plugins/cdp2/src/gui/climatedataprocessorgui.cpp
===================================================================
--- trunk/external_plugins/cdp2/src/gui/climatedataprocessorgui.cpp 2008-09-23 13:47:40 UTC (rev 9387)
+++ trunk/external_plugins/cdp2/src/gui/climatedataprocessorgui.cpp 2008-09-23 13:58:12 UTC (rev 9388)
@@ -145,29 +145,64 @@
}
void ClimateDataProcessorGui::on_pbnMinTemp_clicked()
{
- leMinTemp->setText("hello world");
+ QString myFileName =
+ getFileName(leMinTemp->text(), tr("Choose the min temp file"));
+ if (!myFileName.isEmpty())
+ {
+ leMinTemp->setText(myFileName);
+ }
}
void ClimateDataProcessorGui::on_pbnMaxTemp_clicked()
{
- leMaxTemp->setText("hello world");
+ QString myFileName =
+ getFileName(leMaxTemp->text(), tr("Choose the max temp file"));
+ if (!myFileName.isEmpty())
+ {
+ leMaxTemp->setText(myFileName);
+ }
}
void ClimateDataProcessorGui::on_pbnDiurnalTemp_clicked()
{
- leDiurnalTemp->setText("hello world");
+ QString myFileName =
+ getFileName(leDiurnalTemp->text(), tr("Choose the diurnal temp file"));
+ if (!myFileName.isEmpty())
+ {
+ leDiurnalTemp->setText(myFileName);
+ }
}
void ClimateDataProcessorGui::on_pbnMeanPrecipitation_clicked()
{
- leMeanPrecipitation->setText("hello world");
+ QString myFileName =
+ getFileName(leMeanPrecipitation->text(), tr("Choose the mean precipitation file"));
+ if (!myFileName.isEmpty())
+ {
+ leMeanPrecipitation->setText(myFileName);
+ }
}
void ClimateDataProcessorGui::on_pbnFrostDays_clicked()
{
- leFrostDays->setText("hello world");
+ QString myFileName =
+ getFileName(leFrostDays->text(), tr("Choose the frost days file"));
+ if (!myFileName.isEmpty())
+ {
+ leFrostDays->setText(myFileName);
+ }
}
void ClimateDataProcessorGui::on_pbnTotalSolarRad_clicked()
{
- leTotalSolarRadiation->setText("hello world");
+ QString myFileName =
+ getFileName(leTotalSolarRadiation->text(), tr("Choose the total solar radiation file"));
+ if (!myFileName.isEmpty())
+ {
+ leTotalSolarRadiation->setText(myFileName);
+ }
}
void ClimateDataProcessorGui::on_pbnOutputPath_clicked()
{
- leOutputPath->setText("hello world");
+ QString myFileName =
+ getDirName(leOutputPath->text(), tr("Choose the output directory"));
+ if (!myFileName.isEmpty())
+ {
+ leOutputPath->setText(myFileName);
+ }
}
More information about the QGIS-commit
mailing list