Eneboo - Documentación para desarrolladores
src/qt/tools/designer/plugins/kdevdlg/kdevdlg2ui.h
Ir a la documentación de este archivo.
00001 /**********************************************************************
00002 **
00003 ** Copyright (C) 2005-2007 Trolltech ASA.  All rights reserved.
00004 **
00005 ** This file is part of Qt Designer
00006 **
00007 ** This file may be distributed and/or modified under the terms of the
00008 ** GNU General Public License version 2 as published by the Free Software
00009 ** Foundation and appearing in the file LICENSE.GPL included in the
00010 ** packaging of this file.
00011 **
00012 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00013 ** licenses may use this file in accordance with the Qt Commercial License
00014 ** Agreement provided with the Software.
00015 **
00016 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00017 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 **
00019 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00020 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00021 **   information about Qt Commercial License Agreements.
00022 **
00023 ** Contact info@trolltech.com if any conditions of this licensing are
00024 ** not clear to you.
00025 **
00026 **********************************************************************/
00027 
00028 #ifndef KDEVDLG2UI_H
00029 #define KDEVDLG2UI_H
00030 
00031 #include <qtextstream.h>
00032 #include <qfile.h>
00033 #include <qstringlist.h>
00034 
00035 class KDEVDLG2UI
00036 {
00037 public:
00038     KDEVDLG2UI( QTextStream* input, const QString& name = "dialog" );
00039     ~KDEVDLG2UI();
00040 
00041     bool parse();
00042     bool parse ( QStringList& get );
00043 
00044     QStringList targetFiles;
00045 
00046 protected:
00047 
00048     bool writeDialog( const QString& name );
00049 
00050     QString className;
00051     QString line;
00052     QTextStream *in;
00053     QStringList target;
00054 
00055     void cleanString( QString* text );
00056 
00057     void indent();
00058     void undent();
00059     void wi();
00060 
00061     void writeClass( const QString& name );
00062     void writeCString( const QString& name, const QString& value );
00063     void writeString( const QString& name, const QString& value );
00064     void writeRect( const QString& name, int x, int y, int w, int h );
00065     void writeFont( const QString& family, int pointsize );
00066     void writeBool( const QString& name, bool value );
00067     void writeNumber( const QString& name, int value );
00068     void writeEnum( const QString& name, const QString& value );
00069     void writeSet( const QString& name, const QString& value );
00070     void writeItem( const QString& name, const QString& value );
00071     void writeColumn( const QString& name, const QString& value );
00072     void writeColor( const QString& name, const QString& value );
00073     void writeStyles( const QStringList styles, bool isFrame );
00074     void writeWidgetStart( const QString& qclass );
00075     void writeWidgetEnd();
00076     
00077 private:
00078     int indentation;
00079     bool writeToFile;
00080     QTextStream* out;
00081 };
00082 
00083 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'