qse
0.5.4
Main Page
Related Pages
Classes
Files
File List
File Members
qse
qsedataexportpreview.cpp
Go to the documentation of this file.
1
#include "
qsedataexportpreview.h
"
2
3
#include <stdio.h>
4
5
QseDataExportPreview::QseDataExportPreview
(
QseDataExport
*exp, QObject *parent)
6
: QObject(parent),
7
m_Export(exp),
8
m_Files(),
9
m_Contents()
10
{
11
}
12
13
QseDataExportPreview::~QseDataExportPreview
()
14
{
15
}
16
17
void
QseDataExportPreview::clear
()
18
{
19
m_Files
.clear();
20
m_Contents
.clear();
21
}
22
23
int
QseDataExportPreview::appendNewFile
(QString name)
24
{
25
m_Files
.append(name);
26
27
m_Contents
.append(
""
);
28
29
return
countFiles
()-1;
30
}
31
32
void
QseDataExportPreview::appendLine
(
int
file, QString line)
33
{
34
// printf("QseDataExportPreview::appendLine(%d,\"%s\");\n", file, qPrintable(line));
35
36
if
((file >= 0) && (file <
m_Contents
.count())) {
37
m_Contents
[file].append(line);
38
m_Contents
[file].append(
"\n"
);
39
}
40
}
41
42
QString
QseDataExportPreview::getFile
(
int
n)
43
{
44
return
m_Files
[n];
45
}
46
47
void
QseDataExportPreview::setFile
(
int
n, QString nam)
48
{
49
m_Files
[n] = nam;
50
}
51
52
int
QseDataExportPreview::countFiles
()
53
{
54
return
m_Files
.count();
55
}
56
57
QString
QseDataExportPreview::getLines
(
int
file)
58
{
59
return
m_Contents
[file];
60
}
61
62
void
QseDataExportPreview::onDataChanged
()
63
{
64
emit
dataChanged
();
65
}
QseDataExportPreview::m_Contents
QStringList m_Contents
Definition:
qsedataexportpreview.h:32
QseDataExportPreview::appendLine
void appendLine(int file, QString line)
Definition:
qsedataexportpreview.cpp:32
QseDataExportPreview::countFiles
int countFiles()
Definition:
qsedataexportpreview.cpp:52
QseDataExportPreview::clear
void clear()
Definition:
qsedataexportpreview.cpp:17
QseDataExportPreview::setFile
void setFile(int n, QString nam)
Definition:
qsedataexportpreview.cpp:47
QseDataExportPreview::m_Files
QStringList m_Files
Definition:
qsedataexportpreview.h:31
QseDataExportPreview::getLines
QString getLines(int file)
Definition:
qsedataexportpreview.cpp:57
QseDataExportPreview::~QseDataExportPreview
~QseDataExportPreview()
Definition:
qsedataexportpreview.cpp:13
QseDataExportPreview::appendNewFile
int appendNewFile(QString name)
Definition:
qsedataexportpreview.cpp:23
QseDataExportPreview::QseDataExportPreview
QseDataExportPreview(QseDataExport *exp, QObject *parent=0)
Definition:
qsedataexportpreview.cpp:5
qsedataexportpreview.h
QseDataExportPreview::dataChanged
void dataChanged()
QseDataExport
Definition:
qsedataexport.h:15
QseDataExportPreview::onDataChanged
void onDataChanged()
Definition:
qsedataexportpreview.cpp:62
QseDataExportPreview::getFile
QString getFile(int n)
Definition:
qsedataexportpreview.cpp:42
Generated by
1.8.6