kalgebra
Go to the documentation of this file.
19 #include <analitzagui/operatorsmodel.h>
20 #include <QApplication>
21 #include <QStringList>
23 #include <QTextDocument>
24 #include <QtCore/QTextStream>
26 int main(
int argc,
char** argv)
28 QApplication app(argc, argv);
31 QFile f(app.arguments().last());
32 bool fileopened = f.open(QFile::WriteOnly);
36 str.setCodec(
"UTF-8");
38 str <<
"<!-- this file is autogenerated, if any change has to be done, please "
39 "fix kdeedu/kalgebra/utils/main.cpp and its dependencies. "
40 "Thank you, Aleix Pol -->";
41 str <<
"<chapter id='commands'>\n"
42 "<title>Commands supported by KAlgebra</title>\n";
44 int rows = m.rowCount(), cols = m.columnCount();
45 QStringList colHeaders;
46 for(
int i=0; i<cols; i++)
47 colHeaders += m.headerData(i, Qt::Horizontal).toString();
49 for(
int i=0; i<rows; i++) {
50 QString
id = m.index(i,0).data().toString();
51 str <<
"\t<sect1 id='" <<
id <<
"'><title>" <<
id <<
"</title><itemizedlist>\n";
52 for(
int c=0; c<cols; c++)
53 str << QString(
"\t\t<listitem><para>%1: %2</para></listitem>").arg(colHeaders[c]).arg(Qt::escape(m.index(i,c).data().toString())) <<
'\n';
55 str <<
"\t</itemizedlist></sect1>\n";
57 str <<
"</chapter>\n";
int main(int argc, char **argv)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:27 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.