CSV import

Miika Turkia miika.turkia at gmail.com
Tue Dec 24 01:34:56 UTC 2013


Take a look at dives/TestAPDLogViewer.csv. It is a log file from APD Log
Viewer, included in Subsurface sources for testing purposes. I do also have
a sample of XP5 but it'll have to wait a few hours before I can dig that
out.

Just select "Import-Imprt CSV" from the menus and take a look. If needed, I
can give you some more info in a few hours...

miika


On Tue, Dec 24, 2013 at 11:26 AM, Willem Ferguson <
willemferguson at zoology.up.ac.za> wrote:

> 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);
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131224/a25bfdce/attachment.html>


More information about the subsurface mailing list