~benomrane-b/avogadro/avogadro

« back to all changes in this revision

Viewing changes to libavogadro/src/plugin.cpp

  • Committer: benomrane_b at yahoo
  • Date: 2014-07-02 17:22:21 UTC
  • Revision ID: benomrane_b@yahoo.fr-20140702172221-vf3hdle85h6szhhf
Release version 1.1.1 2013-12-11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**********************************************************************
 
2
  Plugin - Avogadro Plugin Interface
 
3
 
 
4
  Copyright (C) 2007-2008 Donald Ephraim Curtis
 
5
 
 
6
  This file is part of the Avogadro molecular editor project.
 
7
  For more information, see <http://avogadro.openmolecules.net/>
 
8
 
 
9
  Avogadro is free software; you can redistribute it and/or modify
 
10
  it under the terms of the GNU General Public License as published by
 
11
  the Free Software Foundation; either version 2 of the License, or
 
12
  (at your option) any later version.
 
13
 
 
14
  Avogadro is distributed in the hope that it will be useful,
 
15
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
  GNU General Public License for more details.
 
18
 
 
19
  You should have received a copy of the GNU General Public License
 
20
  along with this program; if not, write to the Free Software
 
21
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
22
  02110-1301, USA.
 
23
 **********************************************************************/
 
24
 
 
25
#include "plugin.h"
 
26
 
 
27
#include <QAction>
 
28
#include <QIcon>
 
29
 
 
30
namespace Avogadro {
 
31
 
 
32
  Plugin::Plugin(QObject *parent) : QObject(parent)
 
33
  {
 
34
  }
 
35
 
 
36
  Plugin::~Plugin()
 
37
  {
 
38
  }
 
39
 
 
40
  QString Plugin::description() const
 
41
  {
 
42
    return QObject::tr("No Description");
 
43
  }
 
44
 
 
45
  QString Plugin::license() const
 
46
  {
 
47
    return tr("GPL2+", "Default license for all Avogadro plugins");
 
48
  }
 
49
 
 
50
  QWidget *Plugin::settingsWidget()
 
51
  {
 
52
    return NULL; // no settings widget
 
53
  }
 
54
 
 
55
  void Plugin::writeSettings(QSettings &settings) const
 
56
  {
 
57
    Q_UNUSED(settings)
 
58
    // needs to be implemented by the plugin
 
59
  }
 
60
 
 
61
  void Plugin::readSettings(QSettings &settings)
 
62
  {
 
63
    Q_UNUSED(settings)
 
64
    // needs to be implemented by the plugin
 
65
  }
 
66
 
 
67
} // end namespace