Mercurial > hg > easaier-soundaccess
comparison data/fileio/CSVFileReader.cpp @ 189:6a31322cd9ed
compilation under linux: resolve bug with std::min
author | lbajardsilogic |
---|---|
date | Tue, 27 Nov 2007 13:11:44 +0000 |
parents | fc9323a41f5a |
children |
comparison
equal
deleted
inserted
replaced
188:56c167f3648a | 189:6a31322cd9ed |
---|---|
10 modify it under the terms of the GNU General Public License as | 10 modify it under the terms of the GNU General Public License as |
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 #include "system/System.h" |
16 #include "CSVFileReader.h" | 16 |
17 | 17 #include <iostream> |
18 #include "model/Model.h" | |
19 #include "base/RealTime.h" | |
20 #include "model/SparseOneDimensionalModel.h" | |
21 #include "model/SparseTimeValueModel.h" | |
22 #include "model/EditableDenseThreeDimensionalModel.h" | |
23 | 18 |
24 #include <QFile> | 19 #include <QFile> |
25 #include <QString> | 20 #include <QString> |
26 #include <QRegExp> | 21 #include <QRegExp> |
27 #include <QStringList> | 22 #include <QStringList> |
33 #include <QVBoxLayout> | 28 #include <QVBoxLayout> |
34 #include <QTableWidget> | 29 #include <QTableWidget> |
35 #include <QComboBox> | 30 #include <QComboBox> |
36 #include <QLabel> | 31 #include <QLabel> |
37 | 32 |
38 #include <iostream> | 33 #include "model/Model.h" |
34 #include "base/RealTime.h" | |
35 #include "model/SparseOneDimensionalModel.h" | |
36 #include "model/SparseTimeValueModel.h" | |
37 #include "model/EditableDenseThreeDimensionalModel.h" | |
38 | |
39 #include "CSVFileReader.h" | |
39 | 40 |
40 CSVFileReader::CSVFileReader(QString path, size_t mainModelSampleRate) : | 41 CSVFileReader::CSVFileReader(QString path, size_t mainModelSampleRate) : |
41 m_file(0), | 42 m_file(0), |
42 m_mainModelSampleRate(mainModelSampleRate) | 43 m_mainModelSampleRate(mainModelSampleRate) |
43 { | 44 { |
352 connect(m_windowSizeCombo, SIGNAL(editTextChanged(QString)), | 353 connect(m_windowSizeCombo, SIGNAL(editTextChanged(QString)), |
353 this, SLOT(windowSizeChanged(QString))); | 354 this, SLOT(windowSizeChanged(QString))); |
354 | 355 |
355 layout->addWidget(new QLabel(tr("\nExample data from file:")), 5, 0, 1, 4); | 356 layout->addWidget(new QLabel(tr("\nExample data from file:")), 5, 0, 1, 4); |
356 | 357 |
357 m_exampleWidget = new QTableWidget | 358 m_exampleWidget = new QTableWidget(MIN(10, m_example.size()), m_maxExampleCols); |
358 (min(10, m_example.size()), m_maxExampleCols); | |
359 | 359 |
360 layout->addWidget(m_exampleWidget, 6, 0, 1, 4); | 360 layout->addWidget(m_exampleWidget, 6, 0, 1, 4); |
361 layout->setColumnStretch(3, 10); | 361 layout->setColumnStretch(3, 10); |
362 layout->setRowStretch(4, 10); | 362 layout->setRowStretch(4, 10); |
363 | 363 |