author | insilmaril |
Wed Mar 15 13:53:53 2006 +0000 (2006-03-15) | |
changeset 247 | 5dfbe972d9df |
parent 166 | 325958acb69b |
child 408 | c2a05fa925a1 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef MISC_H |
insilmaril@0 | 2 |
#define MISC_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include <qpoint.h> |
insilmaril@163 | 5 |
#include <qdir.h> |
insilmaril@0 | 6 |
#include <iostream> |
insilmaril@0 | 7 |
|
insilmaril@0 | 8 |
using namespace std; |
insilmaril@0 | 9 |
|
insilmaril@0 | 10 |
|
insilmaril@0 | 11 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@129 | 12 |
QString qpointToString (const QPoint &p); |
insilmaril@0 | 13 |
extern ostream &operator<< (ostream &stream, QPoint const &p); |
insilmaril@0 | 14 |
float getAngle(const QPoint &); |
insilmaril@0 | 15 |
QPoint normalise (const QPoint &); |
insilmaril@0 | 16 |
QString quotemeta(const QString&); |
insilmaril@0 | 17 |
int max (int,int); |
insilmaril@0 | 18 |
class BranchObj; |
insilmaril@0 | 19 |
class MapEditor; |
insilmaril@0 | 20 |
|
insilmaril@0 | 21 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@0 | 22 |
class xmlObj |
insilmaril@0 | 23 |
{ |
insilmaril@0 | 24 |
public: |
insilmaril@0 | 25 |
xmlObj(); |
insilmaril@0 | 26 |
QString singleElement(QString,QString); |
insilmaril@0 | 27 |
QString beginElement(QString,QString); |
insilmaril@0 | 28 |
QString beginElement(QString); |
insilmaril@0 | 29 |
QString endElement (QString); |
insilmaril@0 | 30 |
QString attribut (QString,QString); |
insilmaril@0 | 31 |
QString valueElement(QString,QString); |
insilmaril@0 | 32 |
QString valueElement(QString,QString,QString); |
insilmaril@0 | 33 |
void incIndent(); |
insilmaril@0 | 34 |
void decIndent(); |
insilmaril@0 | 35 |
static int actindent; |
insilmaril@0 | 36 |
|
insilmaril@0 | 37 |
protected: |
insilmaril@0 | 38 |
QString indent(); |
insilmaril@0 | 39 |
int indentwidth; |
insilmaril@0 | 40 |
}; |
insilmaril@0 | 41 |
|
insilmaril@0 | 42 |
#endif |