moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / wqlwriter.h
blobcd6c77e527dc28223b929517f8a2ed63c5a95718
1 /***************************************************************************
2 wqlwriter.h - description
3 -------------------
4 copyright : (C) 2004 by Peter Hedlund
5 email : peter@peterandlinda.com
6 ***************************************************************************/
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 #ifndef WQLWRITER_H
17 #define WQLWRITER_H
19 #include <qfile.h>
20 #include <qtextstream.h>
21 #include <qfont.h>
23 /**
24 @author Peter Hedlund
26 class WqlWriter{
27 public:
28 WqlWriter(QFile *file);
30 ~WqlWriter();
31 void writeFont(const QFont & font);
32 void writeCharacters(const QString & s);
33 void writeGridInfo(int col0, int col1, int col2, int numRows);
34 void writeSelection(int lc, int tr, int rc, int br);
35 void writeFirstItem(const QString &ll, const QString &rl);
36 void writeItem(const QString &left, const QString &right, int rh);
37 private:
38 QFile *outputFile;
39 QTextStream outputStream;
42 #endif