misc.h
author insilmaril
Wed Mar 01 14:39:04 2006 +0000 (2006-03-01)
changeset 225 d5c70aaca22d
parent 166 325958acb69b
child 408 c2a05fa925a1
permissions -rw-r--r--
1.7.10 includeImagesHorizontally implemented
     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