mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-04 00:39:53 +02:00
80 lines
1.8 KiB
C++
80 lines
1.8 KiB
C++
|
|
/*
|
|
|
|
KLayout Layout Viewer
|
|
Copyright (C) 2006-2022 Matthias Koefferlein
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "layD25View.h"
|
|
#include "layDispatcher.h"
|
|
|
|
#include "layPlugin.h"
|
|
|
|
#include <QSurfaceFormat>
|
|
|
|
namespace lay
|
|
{
|
|
|
|
class D25PluginDeclaration
|
|
: public lay::PluginDeclaration
|
|
{
|
|
public:
|
|
D25PluginDeclaration ()
|
|
{
|
|
// .. nothing yet ..
|
|
}
|
|
|
|
virtual void get_options (std::vector < std::pair<std::string, std::string> > & /*options*/) const
|
|
{
|
|
// .. nothing yet ..
|
|
}
|
|
|
|
virtual lay::ConfigPage *config_page (QWidget * /*parent*/, std::string & /*title*/) const
|
|
{
|
|
// .. nothing yet ..
|
|
return 0;
|
|
}
|
|
|
|
virtual void get_menu_entries (std::vector<lay::MenuEntry> & /*menu_entries*/) const
|
|
{
|
|
// .. nothing yet ..
|
|
}
|
|
|
|
virtual bool configure (const std::string & /*name*/, const std::string & /*value*/)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
virtual void config_finalize ()
|
|
{
|
|
// .. nothing yet ..
|
|
}
|
|
|
|
lay::Plugin *create_plugin (db::Manager *, lay::Dispatcher *root, lay::LayoutViewBase *view) const
|
|
{
|
|
return new D25View (root, view);
|
|
}
|
|
};
|
|
|
|
static tl::RegisteredClass<lay::PluginDeclaration> config_decl (new lay::D25PluginDeclaration (), 3100, "lay::D25Plugin");
|
|
|
|
}
|
|
|