HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
plugin_dot_viewer.cpp
Go to the documentation of this file.
2 
6 #include "gui/gui_globals.h"
7 
8 #include <memory>
9 #include <string>
10 
11 namespace hal
12 {
13  class AbstractExtensionInterface;
14 }
15 
16 namespace hal
17 {
18  extern std::unique_ptr<BasePluginInterface> create_plugin_instance()
19  {
20  return std::make_unique<DotViewerPlugin>();
21  }
22 
24  {
25  m_extensions.push_back(new GuiExtensionDotViewer);
26  }
27 
28  std::string DotViewerPlugin::get_name() const
29  {
30  return std::string( "dot_viewer" );
31  }
32 
33  std::string DotViewerPlugin::get_version() const
34  {
35  return std::string( "0.1" );
36  }
37 
39  {
40  return "DotViewer plugin for interactive display of graphviz .dot files";
41  }
42 
44  {
46  ExternalContent::instance()->append(dvFactory);
48  }
49 
51  {
52  QString pluginName = QString::fromStdString(get_name());
54  }
55 
57  {
58  }
59 
60  std::set<std::string> DotViewerPlugin::get_dependencies() const
61  {
62  std::set<std::string> retval;
63  retval.insert( "hal_gui" );
64  return retval;
65  }
66 } // namespace hal
std::vector< AbstractExtensionInterface * > m_extensions
void addExternalWidget(ContentFactory *factory)
void initialize() override
DotViewerPlugin()
Default constructor for DotViewerPlugin.
std::string get_description() const override
Get a short description of the plugin.
std::string get_name() const override
Get the name of the plugin.
void on_unload() override
std::string get_version() const override
Get the version of the plugin.
std::set< std::string > get_dependencies() const override
Get the plugin dependencies.
static ExternalContent * instance()
void removePlugin(const QString &pluginName)
Definition: defines.h:45
ContentManager * gContentManager
Definition: plugin_gui.cpp:78
std::unique_ptr< BasePluginInterface > create_plugin_instance()
Netlist * gNetlist
Definition: gui_globals.h:69
void append(const T &value)
QString fromStdString(const std::string &str)