Workspace 6.21.5
|
Plugin providing a help implementation. More...
#include <Workspace/Application/Help/helpplugin.h>
Public Member Functions | |
HelpPlugin () | |
~HelpPlugin () override | |
QString | getPackageURI () const override |
const PreviousVersionNameMap & | getPreviousNames () const override |
bool | isVisible () const override |
bool | setup () override |
Public Member Functions inherited from WorkspacePlugin | |
WorkspacePlugin (const QString &name, const QString &displayName, const QString &version, const QString &buildDescription=QString::null) | |
WorkspacePlugin (const QString &name, const QString &displayName, int versionMajor, int versionMinor, int versionRevision, const QString &buildDescription=QString::null) | |
virtual | ~WorkspacePlugin () |
virtual PluginConfig & | createPluginConfig () |
virtual PluginMenu & | createPluginMenu () |
const QString & | getBuildDescription () const |
virtual QStringList | getCustomWidgetPaths () const |
virtual const DataExecution::DataFactory * | getDataFactory (const QString &dataType) const |
const DataExecution::DataFactory * | getDataFactory (size_type index) const |
virtual QString | getDefaultHelpPagePath () const |
virtual QString | getDefaultIconPath () const |
virtual WorkspacePluginList | getDependencies () const |
const QString & | getDisplayName () const |
virtual QString | getHelpFile () const |
const QString & | getLibraryFileName () const |
virtual QStringList | getLicensePaths () const |
const QString & | getName () const |
size_type | getNumDataFactories () const |
size_type | getNumOperationFactories () const |
size_type | getNumWidgetFactories () const |
virtual const DataExecution::OperationFactory * | getOperationFactory (const QString &opType, bool ignoreAliasedOperations=false) const |
const DataExecution::OperationFactory * | getOperationFactory (size_type index) const |
virtual QString | getPackageURI () const |
virtual const PreviousVersionNameMap & | getPreviousNames () const |
const QString & | getVersion () const |
const Widgets::WidgetFactory * | getWidgetFactory (size_type index) const |
virtual bool | isVisible () const |
void | logText (const QString &message) |
virtual void | onWorkspaceClose () |
void | setLibraryFileName (const QString &fileName) |
virtual bool | setup ()=0 |
virtual bool | setupAuthenticationProvider (Authentication::ProviderManager &manager) |
virtual bool | setupSchedulerProvider (DataExecution::SchedulerProviderManager &manager) |
void | showHelp (const QMap< QString, QUrl > &links, const QString &keyword="") |
void | showHelp (const QString &keyword) |
void | showHelp (const QUrl &url) |
bool | wasPreviouslyNamed (const QString &oldName) const |
Static Public Member Functions | |
static HelpPlugin & | getInstance () |
Additional Inherited Members | |
Public Types inherited from WorkspacePlugin | |
using | PreviousVersionNameMap = QMap< QString, QString > |
using | size_type = size_t |
using | WorkspacePluginList = QList< WorkspacePlugin * > |
Static Public Attributes inherited from WorkspacePlugin | |
static const QString | DEFAULT_ICON_PATH = "images:/Workspace/core/operation_icon.png" |
Protected Member Functions inherited from WorkspacePlugin | |
bool | addFactory (const DataExecution::DataFactory &factory) |
bool | addFactory (const DataExecution::OperationFactory &factory) |
bool | addFactory (const DataExecution::TypeAdaptorFactory &factory, bool replaceExisting=false) |
bool | addFactory (const Widgets::WidgetFactory &factory) |
bool | addTranslation (const QString &fileName="") |
void | addWorkspaceCollection (const QString &location) |
const DataExecution::DataFactory * | forwardDataFactoryRequest (const QString &pluginName, const QString &dataType) const |
const DataExecution::OperationFactory * | forwardOperationFactoryRequest (const QString &pluginName, const QString &opType) const |
virtual const DataExecution::DataFactory * | getAliasedDataFactory (const QString &dataType) const |
virtual const DataExecution::OperationFactory * | getAliasedOperationFactory (const QString &opType) const |
HelpPlugin | ( | ) |
|
override |
|
static |
The first call to this function is not thread-safe, since it creates the plugin instance. All subsequent calls are then thread-safe. Given that the workspace application will call this function on startup when only one thread is active, client code can therefore call this function with the assumption that it is thread-safe.
|
overridevirtual |
An example implementation might be: return getName() + "/" + getVersion() + "/" + System::Utilities::getPlatformString() + "/" + System::Utilities::getPlatformArchitectureString();
Reimplemented from WorkspacePlugin.
|
overridevirtual |
Reimplemented from WorkspacePlugin.
|
overridevirtual |
A plugin may be made invisible when it is an implementation detail. One example of this is when a plugin is refactored or renamed, but the developer wants to allow old workspaces to keep working. In such a case, the plugin is retained but made invisible, and all its getOperationFactory() and getDataFactory() functions forward to the new plugin(s). The old plugin would not add any data or operation factories of its own.
Reimplemented from WorkspacePlugin.
|
overridevirtual |
This function will be called by the workspace application when the plugin is loaded. The function must register all factories it supplies (operations, data objects, etc.) with calls to addFactory(). Note that this function is the only place where addFactory() should be called (ie never in a plugin's constructor). A plugin may also do any other processing it requires in setup() before the plugin is used.
Implements WorkspacePlugin.