Public Member Functions
PtMotionPlugin Class Reference

#include <PtMotionPlugin.h>

Inheritance diagram for PtMotionPlugin:
GeopsyGui::GeopsyGuiInterface GeopsyCore::GeopsyCoreInterface

List of all members.

Public Member Functions

virtual ToolBasecreateTool (int id, QWidget *wsParent) const
virtual void createToolActions (QObject *toolFactory)
virtual const char * interfaceVersion () const
virtual QString tag () const
virtual QString title () const

Member Function Documentation

ToolBase * PtMotionPlugin::createTool ( int  id,
QWidget *  wsParent 
) const [virtual]

Implements GeopsyGui::GeopsyGuiInterface.

References TRACE.

{
  TRACE;
  switch (id) {
  case 0:
    return new ToolPtMotion(wsParent);
  default:
    return 0;
  }
}
void PtMotionPlugin::createToolActions ( QObject *  toolFactory) [virtual]

Implements GeopsyGui::GeopsyGuiInterface.

References GeopsyGui::GeopsyGuiInterface::addAction(), QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  QAction * a;

  a=new QAction(toolFactory);
  a->setText(tr("Particle Motion"));
  a->setIcon(QIcon(":/images/ptmotion-22x22.png"));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);
}
virtual const char* PtMotionPlugin::interfaceVersion ( ) const [inline, virtual]

Returns the geopsycore version of the plugin (at compile time)

Implements GeopsyCore::GeopsyCoreInterface.

{return GEOPSYCORE_VERSION;}
virtual QString PtMotionPlugin::tag ( ) const [inline, virtual]

Implements GeopsyCore::GeopsyCoreInterface.

{return "geopsyptmotion";}
virtual QString PtMotionPlugin::title ( ) const [inline, virtual]

Implements GeopsyCore::GeopsyCoreInterface.

References QGpCoreTools::tr().

{return tr("Particle motion");}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines