Showing with 889 additions and 432 deletions.
  1. +4 −4 CMakeLists.txt
  2. +1 −1 cmake/modules/FindHDF5.cmake
  3. +6 −0 old_datasources/dmc/kstdata_dmc.desktop
  4. +8 −2 old_datasources/healpix/kstdata_healpix.desktop
  5. +8 −2 old_datasources/lfiio/kstdata_lfiio.desktop
  6. +3 −1 old_datasources/plankIDEF/kstdata_planckIDEF.desktop
  7. +3 −2 src/datasources/ascii/asciidatareader.cpp
  8. +9 −0 src/datasources/ascii/asciifilebuffer.cpp
  9. +1 −0 src/datasources/ascii/asciifilebuffer.h
  10. +3 −3 src/datasources/ascii/asciifiledata.cpp
  11. +1 −1 src/datasources/ascii/asciifiledata.h
  12. +54 −36 src/datasources/ascii/asciisource.cpp
  13. +3 −2 src/datasources/ascii/asciisource.h
  14. +1 −1 src/datasources/ascii/kst_atof.cpp
  15. +7 −1 src/datasources/ascii/kstdata_ascii.desktop
  16. +2 −0 src/datasources/bis/kstdata_bissource.desktop
  17. +8 −2 src/datasources/dirfilesource/kstdata_dirfilesource.desktop
  18. +11 −2 src/datasources/fitsimage/fitsimage.cpp
  19. +6 −0 src/datasources/fitsimage/kstdata_fitsimage.desktop
  20. +7 −1 src/datasources/fitstable/kstdata_fitstable.desktop
  21. +9 −1 src/datasources/hdf5/hdf5.cpp
  22. +2 −2 src/datasources/hdf5/hdf5.h
  23. +6 −0 src/datasources/hdf5/kstdata_hdf5.desktop
  24. +2 −0 src/datasources/its/kstdata_itssource.desktop
  25. +8 −2 src/datasources/matlab/kstdata_matlab.desktop
  26. +11 −11 src/datasources/matlab/matlab.cpp
  27. +10 −3 src/datasources/netcdf/kstdata_netcdf.desktop
  28. +8 −2 src/datasources/qimagesource/kstdata_qimagesource.desktop
  29. +6 −0 src/datasources/sampledatasource/kstdata_sampledatasource.desktop
  30. +2 −0 src/datasources/sourcelist/kstdata_sourcelist.desktop
  31. +7 −1 src/datasources/tiff16source/kstdata_tiff16source.desktop
  32. BIN src/images/svg_icons/kst_changenpts.svgz
  33. +8 −2 src/kst/kst2.desktop
  34. +4 −3 src/kst/main.cpp
  35. +7 −1 src/kst/x-kst.xml
  36. +1 −1 src/libkst/datacollection.h
  37. +1 −1 src/libkst/datasource.cpp
  38. +1 −1 src/libkst/datasourcepluginmanager.cpp
  39. +11 −12 src/libkst/datavector.cpp
  40. +1 −1 src/libkst/matrix.cpp
  41. +3 −3 src/libkst/namedobject.cpp
  42. +0 −2 src/libkst/object.cpp
  43. +16 −11 src/libkst/updatemanager.cpp
  44. +1 −1 src/libkst/updatemanager.h
  45. +2 −2 src/libkst/vector.cpp
  46. +1 −1 src/libkstapp/applicationsettings.cpp
  47. +8 −6 src/libkstapp/bugreportwizard.cpp
  48. +1 −1 src/libkstapp/commandlineparser.cpp
  49. +3 −3 src/libkstapp/datamanager.cpp
  50. +7 −7 src/libkstapp/datawizard.cpp
  51. +1 −1 src/libkstapp/document.cpp
  52. +1 −1 src/libkstapp/formatgridhelper.cpp
  53. +2 −2 src/libkstapp/labelrenderer.h
  54. +6 −2 src/libkstapp/logdialog.cpp
  55. +7 −7 src/libkstapp/plotaxis.cpp
  56. +8 −8 src/libkstapp/plotitem.cpp
  57. +2 −2 src/libkstapp/plotitemmanager.cpp
  58. +4 −4 src/libkstapp/plotrenderitem.cpp
  59. +1 −1 src/libkstapp/plotrenderitem.h
  60. +5 −4 src/libkstapp/sessionmodel.cpp
  61. +2 −2 src/libkstapp/sharedaxisboxitem.cpp
  62. +5 −3 src/libkstapp/vectormodel.cpp
  63. +3 −3 src/libkstapp/view.cpp
  64. +3 −3 src/libkstapp/viewitem.cpp
  65. +3 −2 src/libkstapp/viewvectordialog.cpp
  66. +1 −1 src/libkstmath/colorsequence.cpp
  67. +2 −2 src/libkstmath/dataobject.cpp
  68. +13 −13 src/libkstmath/escan.cpp
  69. +0 −1 src/libkstmath/image.cpp
  70. +2 −2 src/libkstmath/relation.cpp
  71. +6 −1 src/plugins/dataobject/activitylevel/kstplugin_activitylevel.desktop
  72. +6 −2 src/plugins/dataobject/bin/kstplugin_bin.desktop
  73. +7 −3 src/plugins/dataobject/chop/kstplugin_chop.desktop
  74. +7 −3 src/plugins/dataobject/convolution/convolve/kstplugin_convolve.desktop
  75. +7 −3 src/plugins/dataobject/convolution/deconvolve/kstplugin_deconvolve.desktop
  76. +6 −2 src/plugins/dataobject/correlation/autocorrelation/kstplugin_autocorrelation.desktop
  77. +7 −3 src/plugins/dataobject/correlation/crosscorrelation/kstplugin_crosscorrelation.desktop
  78. +7 −3 src/plugins/dataobject/crossspectrum/kstplugin_crossspectrum.desktop
  79. +9 −3 src/plugins/dataobject/effectivebandwidth/kstplugin_effectivebandwidth.desktop
  80. +9 −3 src/plugins/dataobject/genericfilter/kstplugin_genericfilter.desktop
  81. +9 −3 src/plugins/dataobject/interpolations/akima/kstplugin_akima.desktop
  82. +9 −3 src/plugins/dataobject/interpolations/akimaperiodic/kstplugin_akimaperiodic.desktop
  83. +9 −3 src/plugins/dataobject/interpolations/cspline/kstplugin_akima.desktop
  84. +9 −3 src/plugins/dataobject/interpolations/csplineperiodic/kstplugin_csplineperiodic.desktop
  85. +9 −3 src/plugins/dataobject/interpolations/linear/kstplugin_linear.desktop
  86. +9 −3 src/plugins/dataobject/interpolations/polynomial/kstplugin_polynomial.desktop
  87. +9 −3 src/plugins/dataobject/linefit/kstplugin_linefit.desktop
  88. +9 −3 src/plugins/dataobject/lockin/kstplugin_lockin.desktop
  89. +9 −3 src/plugins/dataobject/noiseaddition/kstplugin_noiseaddition.desktop
  90. +9 −3 src/plugins/dataobject/periodogram/kstplugin_periodogram.desktop
  91. +9 −3 src/plugins/dataobject/phase/kstplugin_phase.desktop
  92. +7 −1 src/plugins/dataobject/shift/kstplugin_shift.desktop
  93. +9 −3 src/plugins/dataobject/statistics/kstplugin_statistics.desktop
  94. +9 −3 src/plugins/dataobject/syncbin/kstplugin_syncbin.desktop
  95. +9 −3 src/plugins/filters/butterworth_bandpass/kstplugin_filter_butterworth_bandpass.desktop
  96. +9 −3 src/plugins/filters/butterworth_bandstop/kstplugin_filter_butterworth_bandstop.desktop
  97. +9 −3 src/plugins/filters/butterworth_highpass/kstplugin_filter_butterworth_highpass.desktop
  98. +9 −3 src/plugins/filters/butterworth_lowpass/kstplugin_filter_butterworth_lowpass.desktop
  99. +11 −5 src/plugins/filters/cumulativeaverage/kstplugin_cumulativeaverage.desktop
  100. +1 −1 src/plugins/filters/cumulativesum/cumulativesum.cpp
  101. +11 −5 src/plugins/filters/cumulativesum/kstplugin_cumulativesum.desktop
  102. +9 −3 src/plugins/filters/despike/kstplugin_filter_despike.desktop
  103. +9 −3 src/plugins/filters/differentiation/kstplugin_differentiation.desktop
  104. +9 −3 src/plugins/filters/flag/kstplugin_filter_flag.desktop
  105. +9 −3 src/plugins/filters/unwind/kstplugin_filter_unwind.desktop
  106. +9 −2 src/plugins/filters/window/kstplugin_filter_window.desktop
  107. +9 −3 src/plugins/fits/exponential_unweighted/kstplugin_fits_exponential_unweighted.desktop
  108. +9 −3 src/plugins/fits/exponential_weighted/kstplugin_fits_exponential_weighted.desktop
  109. +9 −3 src/plugins/fits/gaussian_unweighted/kstplugin_fits_gaussian_unweighted.desktop
  110. +9 −3 src/plugins/fits/gaussian_weighted/kstplugin_fits_gaussian_weighted.desktop
  111. +9 −3 src/plugins/fits/gradient_unweighted/kstplugin_fits_gradient_unweighted.desktop
  112. +9 −3 src/plugins/fits/gradient_weighted/kstplugin_fits_gradient_weighted.desktop
  113. +9 −3 src/plugins/fits/kneefrequency/kstplugin_fits_kneefrequency.desktop
  114. +9 −3 src/plugins/fits/linear_unweighted/kstplugin_fits_linear_unweighted.desktop
  115. +9 −3 src/plugins/fits/linear_weighted/kstplugin_fits_linear_weighted.desktop
  116. +9 −3 src/plugins/fits/lorentzian_unweighted/kstplugin_fits_lorentzian_unweighted.desktop
  117. +9 −3 src/plugins/fits/lorentzian_weighted/kstplugin_fits_lorentzian_weighted.desktop
  118. +2 −2 src/plugins/fits/non_linear_weighted.h
  119. +9 −3 src/plugins/fits/polynomial_unweighted/kstplugin_fits_polynomial_unweighted.desktop
  120. +9 −3 src/plugins/fits/polynomial_weighted/kstplugin_fits_polynomial_weighted.desktop
  121. +9 −3 src/plugins/fits/sinusoid_unweighted/kstplugin_fits_sinusoid_unweighted.desktop
  122. +9 −3 src/plugins/fits/sinusoid_weighted/kstplugin_fits_sinusoid_weighted.desktop
  123. +9 −3 src/plugins/sampleplugin/kstplugin_sampleplugin.desktop
  124. +2 −2 src/widgets/cclineedit.cpp
  125. +1 −1 src/widgets/curveplacement.cpp
  126. +2 −5 src/widgets/curveplacement.ui
  127. +4 −4 src/widgets/curveselector.cpp
  128. +13 −22 src/widgets/datasourceselectordialog.cpp
  129. +1 −0 src/widgets/datasourceselectordialog.h
  130. +1 −1 src/widgets/dialogdefaults.cpp
  131. +2 −3 src/widgets/gradienteditor.cpp
  132. +9 −8 src/widgets/labelbuilder.cpp
  133. +3 −3 src/widgets/matrixselector.cpp
  134. +12 −3 src/widgets/matrixselector.ui
  135. +8 −8 src/widgets/scalarselector.cpp
  136. +2 −2 src/widgets/scalarselector.ui
  137. +3 −3 src/widgets/stringselector.cpp
  138. +12 −3 src/widgets/stringselector.ui
  139. +5 −5 src/widgets/vectorselector.cpp
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 3.0.0)

if(kst_clang)
set(CMAKE_C_COMPILER "clang")
Expand Down Expand Up @@ -33,7 +33,7 @@ set(kst_binary_name kst2)

kst_option_init()
kst_option(string "" all version_string "Version string")
kst_option(bool OFF all release "Build release version: optimize for speed, don't embedded debug symbols")
kst_option(bool ON all release "Build release version: optimize for speed, don't embedded debug symbols")
kst_option(bool OFF gcc deploy "Deploy into install dir")
kst_option(bool OFF all merge_files "Merge files to speedup build about factor 5")
kst_option(bool OFF all merge_rebuild "Rebuild generated files from merged files build")
Expand All @@ -55,8 +55,8 @@ kst_option(bool OFF all python_depend "Download and build NumPy/SciPy then
kst_option(string "" all python_prefix "Path for installing python bindings")
kst_option(string OFF all cross "Cross-compile on Linux for Windows")
kst_option(string "" all qt4 "Use cross compiled Qt4 at given path")
kst_option(string "" all qt5 "Use Qt5")
kst_option(bool ON all qt5base_only "Only use Qt5 features available in qtbase")
kst_option(string ON all qt5 "Use Qt5")
kst_option(bool OFF all qt5base_only "Only use Qt5 features available in qtbase")
kst_option(bool OFF all clang "Use Clang compiler")
kst_option(bool OFF all sanitize "Use Clang's sanitizers")
kst_option(bool OFF all dbgsym "Build with debug symbols enabled")
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/FindHDF5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(NOT HDF5_INCLUDEDIR OR HDF5_INCLUDEDIR STREQUAL "HDF5_INCLUDEDIR-NOTFOUND")

if(NOT kst_cross)
include(FindPkgConfig)
pkg_check_modules(PKGHDF5 QUIET hdf5 hdf5-serial hdf5-cpp)
pkg_check_modules(PKGHDF5 QUIET hdf5 hdf5-cpp)
endif()

if(NOT PKGHDF5_LIBRARIES)
Expand Down
6 changes: 6 additions & 0 deletions old_datasources/dmc/kstdata_dmc.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Name[ca@valencia]=Connector DMC de PLANCK
Name[de]=PLANCK-DMC-Modul
Name[el]=PLANCK DMC Plugin
Name[en_GB]=PLANCK DMC Plugin
Name[eo]=PLANCK DMC Kromaĵo
Name[es]=Complemento PLANCK DMC
Name[et]=PLANCK DMC plugin
Name[fi]=PLANK DMC -liitännäinen
Name[fr]=Module « PLANCK DMC »
Name[gl]=Complemento de PLANCK DMC
Name[hu]=PLANCK DMC bővítmény
Expand All @@ -25,6 +27,7 @@ Name[pt_BR]=Plugin de DMC do PLANCK
Name[sk]=Plugin PLANCK DMC
Name[sl]=Vtičnik PLANCK DMC
Name[sv]=PLANCK DMC-insticksprogram
Name[tr]=PLANCK DMC Eklentisi
Name[uk]=Додаток PLANCK DMC
Name[x-test]=xxPLANCK DMC Pluginxx
Comment=Plugin to read PLANCK DMC data.
Expand All @@ -34,8 +37,10 @@ Comment[ca@valencia]=Connector per a llegir les dades DMC de PLANCK.
Comment[de]=Modul zum Lesen von PLANCK-DMC-Daten
Comment[el]=Πρόσθετο για την ανάγνωση PLANCK DMC δεδομένων
Comment[en_GB]=Plugin to read PLANCK DMC data.
Comment[eo]=Kromaĵo por legi datumojn de PLANCK DMC.
Comment[es]=Complemento para leer datos PLANCK DMC.
Comment[et]=Plugin PLANCK DMS andmete lugemiseks.
Comment[fi]=PLANC DMC -tietoa lukeva liitännäinen.
Comment[fr]=Module pour lire les données « PLANCK DMC ».
Comment[gl]=Complemento para ler datos de PLANCK DMC.
Comment[hu]=Bővítmény a PLANCK DMC adatok olvasásához.
Expand All @@ -48,5 +53,6 @@ Comment[pt_BR]=Plugin para ler os dados DMC do PLANCK.
Comment[sk]=Plugin na čítanie údajov PLANCK DMC.
Comment[sl]=Vtičnik za branje podatkov PLANCK DMC.
Comment[sv]=Insticksprogram för att läsa en PLANCK DMC-data.
Comment[tr]=PLANCK DMC verisi okumak için eklenti.
Comment[uk]=Додаток для читання даних PLANCK DMC.
Comment[x-test]=xxPlugin to read PLANCK DMC data.xx
10 changes: 8 additions & 2 deletions old_datasources/healpix/kstdata_healpix.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ Name[ca@valencia]=Lector de fitxers Healpix
Name[de]=Healpix-Dateileser
Name[el]=Healpix πρόγραμμα ανάγνωσης αρχείων
Name[en_GB]=Healpix File Reader
Name[eo]=Healpix Dosiera Leganto
Name[es]=Lector de archivos de Healpix
Name[et]=Healpixi faili lugeja
Name[fr]=Lecteur de fichier Healpix
Name[fi]=Healpix-tiedostolukija
Name[fr]=Lecteur de fichier « Healpix »
Name[gl]=Lector de ficheiros Healpix
Name[hu]=Healpix fájlolvasó
Name[it]=Lettore di file Healpix
Expand All @@ -25,6 +27,7 @@ Name[pt_BR]=Leitor de arquivos do Healpix
Name[sk]=Čítač súborov Healpix
Name[sl]=Bralnik datotek Healpix
Name[sv]=Healpix-filläsare
Name[tr]=Healpix Dosyası Okuyucusu
Name[uk]=Засіб читання файлів Healpix
Name[x-test]=xxHealpix File Readerxx
Comment=Plugin to read Healpix FITS files.
Expand All @@ -34,9 +37,11 @@ Comment[ca@valencia]=Connector per a llegir els fitxers FITS de Healpix.
Comment[de]=Modul zum Lesen von Healpix FITS-Bildern
Comment[el]=Πρόσθετο για την ανάγνωση αρχείων FITS με το Healpix
Comment[en_GB]=Plugin to read Healpix FITS files.
Comment[eo]=Kromaĵo por legi Healpix FITS-dosierojn.
Comment[es]=Complemento para leer archivos FITS de Healpix.
Comment[et]=Plugin Healpixi FITS-failide lugemiseks.
Comment[fr]=Module pour lire une des fichiers Healpix FITS.
Comment[fi]=Healpixin FITS-tiedostoja lukeva liitännäinen.
Comment[fr]=Module externe de lecture de fichiers « Healpix ».
Comment[gl]=Complemento para ler ficheiros FITS Healpix.
Comment[hu]=Bővítmény a Healpix FITS fájlok olvasásához.
Comment[it]=Estensione per leggere i file FITS di Healpix.
Expand All @@ -48,5 +53,6 @@ Comment[pt_BR]=Plugin para ler arquivos do FITS no Healpix.
Comment[sk]=Plugin na čítanie súborov Healpix FITS.
Comment[sl]=Vtičnik za branje datotek Healpix FITS.
Comment[sv]=Insticksprogram för att läsa Healpix FITS-filer.
Comment[tr]=Healpix FITS dosyalarını okumak için eklenti.
Comment[uk]=Додаток для читання файлів FITS Healpix.
Comment[x-test]=xxPlugin to read Healpix FITS files.xx
10 changes: 8 additions & 2 deletions old_datasources/lfiio/kstdata_lfiio.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ Name[ca@valencia]=Lector LFIIO
Name[de]=LFIIO-Betrachter
Name[el]=Πρόγραμμα ανάγνωσης LFIIO
Name[en_GB]=LFIIO Reader
Name[eo]=LFIIO Leganto
Name[es]=Lector LFIIO
Name[et]=LFIIO lugeja
Name[fr]=Lecteur LFIIO
Name[fi]=LFIIO-lukija
Name[fr]=Lecteur « LFIIO »
Name[gl]=Lector de LFIIO
Name[hu]=LFIIO olvasó
Name[it]=Lettore LFIIO
Expand All @@ -25,17 +27,20 @@ Name[pt_BR]=Leitor do LFIIO
Name[sk]=LFIIO čítač
Name[sl]=Bralnik LFIIO
Name[sv]=LFIIO-läsare
Name[tr]=LFIIO Okuyucusu
Name[uk]=Засіб читання LFIIO
Name[x-test]=xxLFIIO Readerxx
Comment=Implements support for reading FITS files into Kst.
Comment[bs]=Implementira podršku za čitanje FITS datoteka u Kst.
Comment[ca]=Implementació que permet llegir fitxers FITS en el Kst.
Comment[ca@valencia]=Implementació que permet llegir fitxers FITS en el Kst.
Comment[ca@valencia]=Implementació que permet llegir fitxers FITS en Kst.
Comment[de]=Unterstützung für das Einlesen von FITS-Dateien in Kst
Comment[el]=Υλοποιεί την υποστήριξη ανάγνωσης αρχείων FITS σε Kst.
Comment[en_GB]=Implements support for reading FITS files into Kst.
Comment[eo]=Realigas subtenon por legi FITS-dosierojn en Kst.
Comment[es]=Implementa la lectura de archivos FITS en Kst.
Comment[et]=Kst FITS-failide lugemise toetus.
Comment[fi]=Toteuttaa Kst:hen FITS-tiedostojen lukutuen.
Comment[fr]=Implémente la prise en charge de la lecture de fichiers FITS dans Kst.
Comment[gl]=Permite ler ficheiros FITS en Kst.
Comment[hu]=Támogatást valósít meg a FITS fájlok olvasásához a Kst-be.
Expand All @@ -48,5 +53,6 @@ Comment[pt_BR]=Implementa o suporte para leitura de arquivos do FITS no Kst.
Comment[sk]=Implementuje podporu pre čítanie súborov FITS do Kst.
Comment[sl]=Izvaja podporo za branje datotek FITS v Kst.
Comment[sv]=Implementerar stöd för att läsa FITS-filer i Kst.
Comment[tr]=Kst içine FITS dosyalarını okumak için destek ekler.
Comment[uk]=Реалізує підтримку читання файлів FITS у Kst.
Comment[x-test]=xxImplements support for reading FITS files into Kst.xx
4 changes: 3 additions & 1 deletion old_datasources/plankIDEF/kstdata_planckIDEF.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ Name[ca@valencia]=Lector de format d'intercanvi IDIS DMC de Planck
Name[de]=Planck-IDIS-DMC-Austauschformatleser
Name[el]=Planck IDIS DMC πρόγραμμα ανάγνωσης για ανταλλαγή συνεργαζόμενων αρχείων
Name[en_GB]=Planck IDIS DMC Exchange Format Reader
Name[eo]=Planck IDIS DMC Exchange Format Reader
Name[es]=Lector del formato de intercambio IDIS DMC de Planck
Name[et]=Planck IDIS DMC Exchange vormingu lugeja
Name[fr]=Lecteur de format Planck IDIS DMC Exchange
Name[fr]=Lecteur de format « Planck IDIS DMC Exchange »
Name[gl]=Lector para o formato de intercambio Planck IDIS DMC
Name[it]=Lettore del formato di scambio di Planck IDIS DMC
Name[nb]=Leser for Planck IDIS DMC utvekslingsformat
Expand All @@ -23,6 +24,7 @@ Name[pt]=Leitor do Formato de Intercâmbio do IDIS DMC do Planck
Name[pt_BR]=Leitor do formato de intercâmbio do IDIS DMC do Planck
Name[sl]=Bralnik formatov izmenjave Planck IDIS DMC
Name[sv]=Läsare av Planck IDIS DMC-utbytesformat
Name[tr]=Planck IDIS DMC Exchange Biçimi Okuyucusu
Name[uk]=Засіб читання даних у форматі обміну Planck IDIS DMC
Name[x-test]=xxPlanck IDIS DMC Exchange Format Readerxx

5 changes: 3 additions & 2 deletions src/datasources/ascii/asciidatareader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
#include "asciidatareader.h"
#include "asciisourceconfig.h"

#include "math_kst.h"
//#include "math_kst.h"
#include "kst_inf.h"

#include "kst_atof.h"
#include "measuretime.h"
//#include "measuretime.h"

#include <QFile>
#include <QDebug>
Expand Down Expand Up @@ -258,6 +258,7 @@ qint64 AsciiDataReader::progressRows()
//-------------------------------------------------------------------------------------------
int AsciiDataReader::readField(const AsciiFileData& buf, int col, double *v, const QString& field, int s, int n)
{
(void)field; // remove unused parameter warning. This reads by column number (int col), not field name.
if (_config._columnType == AsciiSourceConfig::Fixed) {
//MeasureTime t("AsciiSource::readField: same width for all columns");
const LexicalCast& lexc = LexicalCast::instance();
Expand Down
9 changes: 9 additions & 0 deletions src/datasources/ascii/asciifilebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ bool AsciiFileBuffer::openFile(QFile &file)
return file.open(QIODevice::ReadOnly);
}

//-------------------------------------------------------------------------------------------
bool AsciiFileBuffer::reOpenFile(QFile &file)
{
// Don't use 'QIODevice::Text'!
// Because CR LF line ending breaks row offset calculation
file.close();
return file.open(QIODevice::ReadOnly);
}

//-------------------------------------------------------------------------------------------
void AsciiFileBuffer::clear()
{
Expand Down
1 change: 1 addition & 0 deletions src/datasources/ascii/asciifilebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class AsciiFileBuffer
QVector<QVector<AsciiFileData> >& fileData() { return _fileData; }

static bool openFile(QFile &file);
static bool reOpenFile(QFile &file);

private:
QFile* _file;
Expand Down
6 changes: 3 additions & 3 deletions src/datasources/ascii/asciifiledata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ char* AsciiFileData::data()
}

//-------------------------------------------------------------------------------------------
const char* const AsciiFileData::constPointer() const
const char* AsciiFileData::constPointer() const
{
return _array->data();
}
Expand Down Expand Up @@ -210,8 +210,8 @@ void AsciiFileData::logData() const
QString this_str;
QString data_str;

this_str.sprintf("%p", this);
data_str.sprintf("%p", _array.data());
this_str.asprintf("%p", this);
data_str.asprintf("%p", _array.data());
qDebug() << QString("AsciiFileData %1, array %2, byte %3 ... %4 (%8), row %5 ... %6 (%9), lazy: %7")
.arg(this_str)
.arg(data_str)
Expand Down
2 changes: 1 addition & 1 deletion src/datasources/ascii/asciifiledata.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AsciiFileData
qint64 read(QFile&, qint64 start, qint64 numberOfBytes, qint64 maximalBytes = -1);

char* data();
const char* const constPointer() const;
const char* constPointer() const;
const Array& constArray() const;

bool resize(qint64 size);
Expand Down
Loading