~ubuntu-branches/ubuntu/quantal/marble/quantal

« back to all changes in this revision

Viewing changes to src/plugins/designer/marblewidget/MarbleWidgetPlugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-11 15:43:02 UTC
  • Revision ID: james.westby@ubuntu.com-20110711154302-lq69ftcx125g1jx5
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// This file is part of the Marble Virtual Globe.
 
3
//
 
4
// This program is free software licensed under the GNU LGPL. You can
 
5
// find a copy of this license in LICENSE.txt in the top directory of
 
6
// the source code.
 
7
//
 
8
// Copyright 2005-2007 Torsten Rahn <tackat@kde.org>
 
9
// Copyright 2007      Inge Wallin   <ingwa@kde.org>
 
10
//
 
11
 
 
12
//
 
13
// This class is responsible for offering plugin capabilities.
 
14
//
 
15
 
 
16
#ifndef MARBLEWIDGETPLUGIN_H
 
17
#define MARBLEWIDGETPLUGIN_H
 
18
 
 
19
// Workaround: moc on osx is unable to find this file, when prefix with QtDesigner/
 
20
// moc also doesn't respect Q_OS_* macros, otherwise I could ifdef this.
 
21
#include <QtDesigner/QDesignerCustomWidgetInterface>
 
22
 
 
23
class MarbleWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
 
24
{
 
25
    Q_OBJECT
 
26
    Q_INTERFACES(QDesignerCustomWidgetInterface)
 
27
 
 
28
public:
 
29
    explicit MarbleWidgetPlugin(QObject *parent = 0);
 
30
    virtual ~MarbleWidgetPlugin();
 
31
 
 
32
    bool isContainer() const;
 
33
    bool isInitialized() const;
 
34
    QIcon icon() const;
 
35
    QString domXml() const;
 
36
    QString name() const;
 
37
    QString group() const;
 
38
    QString includeFile() const;
 
39
    QString toolTip() const;
 
40
    QString whatsThis() const;
 
41
    QWidget *createWidget(QWidget *parent);
 
42
 
 
43
    void initialize(QDesignerFormEditorInterface *core);
 
44
 
 
45
private:
 
46
    bool initialized;
 
47
};
 
48
 
 
49
#endif