1
/**********************************************************************
2
Plugin - Avogadro Plugin Interface
4
Copyright (C) 2007-2008 Donald Ephraim Curtis
6
This file is part of the Avogadro molecular editor project.
7
For more information, see <http://avogadro.openmolecules.net/>
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.
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.
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
23
**********************************************************************/
32
Plugin::Plugin(QObject *parent) : QObject(parent)
40
QString Plugin::description() const
42
return QObject::tr("No Description");
45
QString Plugin::license() const
47
return tr("GPL2+", "Default license for all Avogadro plugins");
50
QWidget *Plugin::settingsWidget()
52
return NULL; // no settings widget
55
void Plugin::writeSettings(QSettings &settings) const
58
// needs to be implemented by the plugin
61
void Plugin::readSettings(QSettings &settings)
64
// needs to be implemented by the plugin