CSV import
Willem Ferguson
willemferguson at zoology.up.ac.za
Tue Dec 24 01:26:46 UTC 2013
Mikia, are you pepared at all to give me bit of detail about .CSV import
and perhaps send me a sample .cvs file? The manual needs some
information here. It looks like Subsurface reads at most 6 variables
from a .csv file. I assume unused variables get a column number of 0 or
have unchecked checkboxes. Perhaps it would be advantageous to include
import from Seemann XP5 in the appropriate appendix of the manual? Do
you know of anyone using either XP5 or Inspiration or similar with
Subsurface?
Kind regards, willemf
On 24/12/2013 10:27, Miika Turkia wrote:
> This allows user to view any file on CSV import dialog, not only the
> ones ending with .csv. Of course, the default still shows only the .csv
> files and user needs to change the filter to view the rest.
>
> Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
> ---
> qt-ui/csvimportdialog.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/qt-ui/csvimportdialog.cpp b/qt-ui/csvimportdialog.cpp
> index b3392f4..3182d9c 100644
> --- a/qt-ui/csvimportdialog.cpp
> +++ b/qt-ui/csvimportdialog.cpp
> @@ -68,7 +68,7 @@ void CSVImportDialog::on_buttonBox_accepted()
>
> void CSVImportDialog::on_CSVFileSelector_clicked()
> {
> - QString filename = QFileDialog::getOpenFileName(this, tr("Open CSV Log File"), ".", tr("CSV Files (*.csv)"));
> + QString filename = QFileDialog::getOpenFileName(this, tr("Open CSV Log File"), ".", tr("CSV Files (*.csv);;All Files(*)"));
> ui->CSVFile->setText(filename);
> if (filename.isEmpty())
> ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
More information about the subsurface
mailing list