Abstract interface for GUI Geopsy plugins. More...
#include <GeopsyGuiInterface.h>
Public Member Functions | |
QAction * | action (int slot) const |
void | addActions (QWidget *w) const |
virtual void | addPreferenceTab (QTabWidget *parent) |
virtual QList< QAction * > | createImportActions (QObject *) const |
virtual ToolBase * | createTool (int id, QWidget *wsParent) const =0 |
virtual void | createToolActions (QObject *toolFactory)=0 |
virtual int | exec (SubSignalPool *subPool, int slot, int argc, char **argv) |
virtual void | setHelp (ApplicationHelp *h) |
virtual void | setPreferences () |
int | slotCount () const |
int | slotOf (QAction *a) |
QString | slotText (int id) |
Protected Member Functions | |
void | addAction (QAction *a) |
Abstract interface for GUI Geopsy plugins.
QAction* GeopsyGui::GeopsyGuiInterface::action | ( | int | slot | ) | const [inline] |
{return _actions[slot];}
void GeopsyGui::GeopsyGuiInterface::addAction | ( | QAction * | a | ) | [inline, protected] |
Referenced by ArrayPlugin::createToolActions(), NRPlugin::createToolActions(), TFAPlugin::createToolActions(), RefraPlugin::createToolActions(), PtMotionPlugin::createToolActions(), DampingPlugin::createToolActions(), HVPlugin::createToolActions(), StructureRatiosPlugin::createToolActions(), and ToolSeparator::createToolActions().
{_actions << a;}
void GeopsyGui::GeopsyGuiInterface::addActions | ( | QWidget * | w | ) | const |
void GeopsyGui::GeopsyGuiInterface::addPreferenceTab | ( | QTabWidget * | parent | ) | [virtual] |
virtual QList<QAction *> GeopsyGui::GeopsyGuiInterface::createImportActions | ( | QObject * | ) | const [inline, virtual] |
Reimplemented in ToolSeparator.
{return QList<QAction *>();}
virtual ToolBase* GeopsyGui::GeopsyGuiInterface::createTool | ( | int | id, |
QWidget * | wsParent | ||
) | const [pure virtual] |
Implemented in ToolSeparator, StructureRatiosPlugin, HVPlugin, ArrayPlugin, DampingPlugin, NRPlugin, PtMotionPlugin, RefraPlugin, and TFAPlugin.
Referenced by ToolFactory::exec().
virtual void GeopsyGui::GeopsyGuiInterface::createToolActions | ( | QObject * | toolFactory | ) | [pure virtual] |
Implemented in ToolSeparator, StructureRatiosPlugin, HVPlugin, ArrayPlugin, DampingPlugin, NRPlugin, PtMotionPlugin, RefraPlugin, and TFAPlugin.
int GeopsyGui::GeopsyGuiInterface::exec | ( | SubSignalPool * | subPool, |
int | slot, | ||
int | argc, | ||
char ** | argv | ||
) | [virtual] |
void GeopsyGui::GeopsyGuiInterface::setHelp | ( | ApplicationHelp * | h | ) | [virtual] |
Reimplemented in StructureRatiosPlugin, HVPlugin, ArrayPlugin, and DampingPlugin.
References TRACE.
{ TRACE; }
void GeopsyGui::GeopsyGuiInterface::setPreferences | ( | ) | [virtual] |
int GeopsyGui::GeopsyGuiInterface::slotCount | ( | ) | const [inline] |
Referenced by ToolFactory::infoTools().
{return _actions.count();}
int GeopsyGui::GeopsyGuiInterface::slotOf | ( | QAction * | a | ) | [inline] |
Referenced by ToolFactory::showTool().
{return _actions.indexOf(a);}
QString GeopsyGui::GeopsyGuiInterface::slotText | ( | int | id | ) | [inline] |
Referenced by ToolFactory::infoTools().
{return _actions[id]->text();}