source: mmcs/csvreader.H @ 9d6942d

matrices
Last change on this file since 9d6942d was 44d1e60, checked in by Jose Ruiz <joseruiz@…>, 9 years ago

commit inicial

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2Copyright (c) 2013, Ronie P. Martinez <ronmarti18@gmail.com>
3All rights reserved.
4
5Permission to use, copy, modify, and/or distribute this software for any purpose
6with or without fee is hereby granted, provided that the above copyright notice
7and this permission notice appear in all copies.
8
9THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
12OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
13OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
14ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
17#ifndef CSVREADER_H
18#define CSVREADER_H
19
20#include <QMainWindow>
21#include <QFile>
22#include <QFileDialog>
23#include <QTextStream>
24#include <QDebug>
25#include <QString>
26#include <QStandardItemModel>
27
28namespace Ui {
29class CsvReader;
30}
31
32class CsvReader : public QMainWindow
33{
34    Q_OBJECT
35
36public:
37    explicit CsvReader(QWidget *parent = 0);
38    ~CsvReader();
39
40private slots:
41    void on_action_Open_triggered();
42    void checkString(QString &temp, QChar character = 0);
43
44private:
45    Ui::CsvReader *ui;
46    QList<QStringList> csv;
47    QStandardItemModel *model;
48    QList<QStandardItem*> standardItemList;
49
50};
51
52#endif // CSVREADER_H
Note: See TracBrowser for help on using the repository browser.