#include <StructureRatiosPlugin.h>
Public Member Functions | |
virtual void | addPreferenceTab (QTabWidget *parent) |
virtual ToolBase * | createTool (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 |
StructureRatiosPlugin::StructureRatiosPlugin | ( | ) | [inline] |
{}
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.
virtual const char* StructureRatiosPlugin::interfaceVersion | ( | ) | const [inline, virtual] |
Returns the geopsycore version of the plugin (at compile time)
Implements GeopsyCore::GeopsyCoreInterface.
{return GEOPSYCORE_VERSION;}
void StructureRatiosPlugin::setHelp | ( | ApplicationHelp * | h | ) | [virtual] |
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"); }
void StructureRatiosPlugin::setPreferences | ( | ) | [virtual] |
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] |
virtual QString StructureRatiosPlugin::title | ( | ) | const [inline, virtual] |
Implements GeopsyCore::GeopsyCoreInterface.
References QGpCoreTools::tr().
{return tr("Spectral ratios for structures");}