Public Member Functions
StructureRatiosPlugin Class Reference

#include <StructureRatiosPlugin.h>

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

List of all members.

Public Member Functions

virtual void addPreferenceTab (QTabWidget *parent)
virtual ToolBasecreateTool (int id, QWidget *wsParent) const
virtual void createToolActions (QObject *toolFactory)
virtual const char * interfaceVersion () const
virtual void setHelp (ApplicationHelp *h)
virtual void setPreferences ()
 StructureRatiosPlugin ()
virtual QString tag () const
virtual QString title () const

Constructor & Destructor Documentation

{}

Member Function Documentation

void StructureRatiosPlugin::addPreferenceTab ( QTabWidget *  parent) [virtual]

Add a new tab to Preference tabWidget

Reimplemented from GeopsyGui::GeopsyGuiInterface.

References QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  _tab=new TabStructureRatiosPreferences();
  parent->addTab(_tab,tr("Structure"));
}
ToolBase * StructureRatiosPlugin::createTool ( int  id,
QWidget *  wsParent 
) const [virtual]

Implements GeopsyGui::GeopsyGuiInterface.

References TRACE.

{
  TRACE;
  switch (id) {
  case 0:
    return new ToolStructure(wsParent);
    break;
  default:
    break;
  }
  return 0;
}
void StructureRatiosPlugin::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("Structure spectrum"));
  a->setIcon(QIcon(":/images/structspec-22x22.png"));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);
}
virtual const char* StructureRatiosPlugin::interfaceVersion ( ) const [inline, virtual]

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

Implements GeopsyCore::GeopsyCoreInterface.

{return GEOPSYCORE_VERSION;}

Reimplemented from GeopsyGui::GeopsyGuiInterface.

References QGpCoreTools::ApplicationHelp::addGroup(), QGpCoreTools::ApplicationHelp::addOption(), tag(), QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  h->addGroup(tr("Structure Ratios (tag=%1, slot=0)").arg(tag()), "structure" );
  setCommonHelp(h);
  h->addOption("-curves <RES>","Output spectral curves for all windows.");
  h->addOption("-average <RES>","Output average spectral curve.\n\n"
                                "RES is a number between 0 and 2:\n"
                                "   0: (c2-c1)/c1\n"
                                "   1: (c2-c1)/c2\n"
                                "   2: c1/c2");
}

Set properties of the HV tab

Reimplemented from GeopsyGui::GeopsyGuiInterface.

References TabStructureRatiosPreferences::setPreferences(), and TRACE.

{
  TRACE;
  if(!_tab) return;
  _tab->setPreferences();
  _tab=0;
}
virtual QString StructureRatiosPlugin::tag ( ) const [inline, virtual]

Implements GeopsyCore::GeopsyCoreInterface.

Referenced by setHelp().

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

Implements GeopsyCore::GeopsyCoreInterface.

References QGpCoreTools::tr().

{return tr("Spectral ratios for structures");}

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