source: trunk/tools/designer/shared/domtool.h@ 10

Last change on this file since 10 was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qt Designer.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
12** licenses may use this file in accordance with the Qt Commercial License
13** Agreement provided with the Software.
14**
15** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17**
18** See http://www.trolltech.com/gpl/ for GPL licensing information.
19** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
20** information about Qt Commercial License Agreements.
21**
22** Contact info@trolltech.com if any conditions of this licensing are
23** not clear to you.
24**
25**********************************************************************/
26
27#ifndef DOMTOOL_H
28#define DOMTOOL_H
29
30#include <qvariant.h>
31#include <qnamespace.h>
32
33class QDomElement;
34class QDomDocument;
35
36class DomTool : public Qt
37{
38public:
39 static QVariant readProperty( const QDomElement& e, const QString& name, const QVariant& defValue );
40 static QVariant readProperty( const QDomElement& e, const QString& name, const QVariant& defValue, QString& comment );
41 static bool hasProperty( const QDomElement& e, const QString& name );
42 static QStringList propertiesOfType( const QDomElement& e, const QString& type );
43 static QVariant elementToVariant( const QDomElement& e, const QVariant& defValue );
44 static QVariant elementToVariant( const QDomElement& e, const QVariant& defValue, QString &comment );
45 static QVariant readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue );
46 static QVariant readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue, QString& comment );
47 static bool hasAttribute( const QDomElement& e, const QString& name );
48 static QColor readColor( const QDomElement &e );
49 static void fixDocument( QDomDocument& );
50};
51
52
53#endif // DOMTOOL_H
Note: See TracBrowser for help on using the repository browser.