~ubuntu-branches/ubuntu/precise/kalzium/precise

« back to all changes in this revision

Viewing changes to src/tools/moleculewidgetplugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-03 12:28:58 UTC
  • Revision ID: james.westby@ubuntu.com-20110703122858-q1yyxncs89e4w0hs
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
#ifndef MOLECULEWIDGETPLUGIN_H
 
2
#define MOLECULEWIDGETPLUGIN_H
 
3
/***************************************************************************
 
4
 *   Copyright (C) 2007 by Carsten Niehaus                                 *
 
5
 *   cniehaus@kde.org                                                      *
 
6
 *                                                                         *
 
7
 *   This program is free software; you can redistribute it and/or modify  *
 
8
 *   it under the terms of the GNU General Public License as published by  *
 
9
 *   the Free Software Foundation; either version 2 of the License, or     *
 
10
 *   (at your option) any later version.                                   *
 
11
 *                                                                         *
 
12
 *   This program is distributed in the hope that it will be useful,       *
 
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
15
 *   GNU General Public License for more details.                          *
 
16
 *                                                                         *
 
17
 *   You should have received a copy of the GNU General Public License     *
 
18
 *   along with this program; if not, write to the                         *
 
19
 *   Free Software Foundation, Inc.,                                       *
 
20
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 
21
 ***************************************************************************/
 
22
#include <QDesignerCustomWidgetInterface>
 
23
 
 
24
class MoleculeWidgetPlugin : public QObject,
 
25
                                                         public QDesignerCustomWidgetInterface
 
26
{
 
27
        Q_OBJECT
 
28
                Q_INTERFACES( QDesignerCustomWidgetInterface )
 
29
 
 
30
        public:
 
31
                MoleculeWidgetPlugin( QObject *parent = 0 );
 
32
 
 
33
                bool isContainer() const;
 
34
                bool isInitialized() const;
 
35
                QIcon icon() const;
 
36
                QString domXml() const;
 
37
                QString group() const;
 
38
                QString includeFile() const;
 
39
                QString name() const;
 
40
                QString toolTip() const;
 
41
                QString whatsThis() const;
 
42
                QWidget *createWidget( QWidget *parent );
 
43
                void initialize( QDesignerFormEditorInterface *core );
 
44
 
 
45
        private:
 
46
                bool initialized;
 
47
};
 
48
#endif // MOLECULEWIDGETPLUGIN_H