1 | /**********************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2005-2007 Trolltech ASA. All rights reserved.
|
---|
4 | **
|
---|
5 | ** This file is part of Qt Designer.
|
---|
6 | **
|
---|
7 | ** This file may be distributed and/or modified under the terms of the
|
---|
8 | ** GNU General Public License version 2 as published by the Free Software
|
---|
9 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
10 | ** packaging of this file.
|
---|
11 | **
|
---|
12 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
---|
13 | ** licenses may use this file in accordance with the Qt Commercial License
|
---|
14 | ** Agreement provided with the Software.
|
---|
15 | **
|
---|
16 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
17 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
18 | **
|
---|
19 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
---|
20 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
21 | ** information about Qt Commercial License Agreements.
|
---|
22 | **
|
---|
23 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
24 | ** not clear to you.
|
---|
25 | **
|
---|
26 | **********************************************************************/
|
---|
27 |
|
---|
28 | #ifndef LANGUAGEINTERFACEIMPL_H
|
---|
29 | #define LANGUAGEINTERFACEIMPL_H
|
---|
30 |
|
---|
31 | #include <languageinterface.h>
|
---|
32 |
|
---|
33 | class LanguageInterfaceImpl : public LanguageInterface
|
---|
34 | {
|
---|
35 | public:
|
---|
36 | LanguageInterfaceImpl( QUnknownInterface *outer = 0 );
|
---|
37 |
|
---|
38 | ulong addRef();
|
---|
39 | ulong release();
|
---|
40 |
|
---|
41 | QRESULT queryInterface( const QUuid&, QUnknownInterface** );
|
---|
42 |
|
---|
43 | void functions( const QString &code, QValueList<Function> *funcs ) const;
|
---|
44 | void connections( const QString &, QValueList<Connection> * ) const {};
|
---|
45 | QString createFunctionStart( const QString &className, const QString &func,
|
---|
46 | const QString &returnType, const QString &access );
|
---|
47 | QStringList definitions() const;
|
---|
48 | QStringList definitionEntries( const QString &definition, QUnknownInterface *designerIface ) const;
|
---|
49 | void setDefinitionEntries( const QString &definition, const QStringList &entries, QUnknownInterface *designerIface );
|
---|
50 | QString createArguments( const QString & ) { return QString::null; }
|
---|
51 | QString createEmptyFunction();
|
---|
52 | bool supports( Support s ) const;
|
---|
53 | QStringList fileFilterList() const;
|
---|
54 | QStringList fileExtensionList() const;
|
---|
55 | void preferedExtensions( QMap<QString, QString> &extensionMap ) const;
|
---|
56 | void sourceProjectKeys( QStringList &keys ) const;
|
---|
57 | QString projectKeyForExtension( const QString &extension ) const;
|
---|
58 | QString cleanSignature( const QString &sig ) { return sig; } // #### implement me
|
---|
59 | void loadFormCode( const QString &, const QString &,
|
---|
60 | QValueList<Function> &,
|
---|
61 | QStringList &,
|
---|
62 | QValueList<Connection> & );
|
---|
63 | QString formCodeExtension() const { return ".h"; }
|
---|
64 | bool canConnect( const QString &signal, const QString &slot );
|
---|
65 | void compressProject( const QString &, const QString &, bool ) {}
|
---|
66 | QString uncompressProject( const QString &, const QString & ) { return QString::null; }
|
---|
67 | QString aboutText() const { return ""; }
|
---|
68 |
|
---|
69 | void addConnection( const QString &, const QString &,
|
---|
70 | const QString &, const QString &,
|
---|
71 | QString * ) {}
|
---|
72 | void removeConnection( const QString &, const QString &,
|
---|
73 | const QString &, const QString &,
|
---|
74 | QString * ) {}
|
---|
75 | QStrList signalNames( QObject *obj ) const;
|
---|
76 |
|
---|
77 | private:
|
---|
78 | QUnknownInterface *parent;
|
---|
79 | ulong ref;
|
---|
80 |
|
---|
81 | };
|
---|
82 |
|
---|
83 | #endif
|
---|