misc.h
author insilmaril
Tue, 05 Sep 2006 09:47:13 +0000
changeset 365 1cc73bd7ee1f
parent 176 f75489896084
child 408 c2a05fa925a1
permissions -rw-r--r--
Moved the qt4-port branch to HEAD
     1 #ifndef MISC_H
     2 #define MISC_H
     3 
     4 #include <qpoint.h>
     5 #include <qdir.h>
     6 #include <iostream>
     7 
     8 using namespace std;
     9 
    10 
    11 /////////////////////////////////////////////////////////////////////////////
    12 QString qpointToString (const QPoint &p);
    13 extern ostream &operator<< (ostream &stream, QPoint const &p);
    14 float getAngle(const QPoint &);
    15 QPoint normalise (const QPoint &);
    16 QString quotemeta(const QString&);	
    17 int max (int,int);
    18 class BranchObj;
    19 class MapEditor;
    20 
    21 /////////////////////////////////////////////////////////////////////////////
    22 class xmlObj
    23 {
    24 public:
    25     xmlObj();
    26     QString singleElement(QString,QString);
    27     QString beginElement(QString,QString);
    28     QString beginElement(QString);
    29     QString endElement  (QString);
    30     QString attribut    (QString,QString);
    31     QString valueElement(QString,QString);
    32     QString valueElement(QString,QString,QString);
    33     void incIndent();
    34     void decIndent();
    35     static int actindent;
    36 
    37 protected:  
    38     QString indent();
    39     int indentwidth;
    40 };
    41 
    42 #endif