GLIMSView Source Code Documentation

PluginSet Class Reference

#include <pluginset.h>

Inheritance diagram for PluginSet:

Inheritance graph
[legend]

List of all members.


Detailed Description

This holds all plugins available to the application.

These include all plugins that are defined in the ./plugins/plugcfg.xml file. If the plugin is not loadable, it will fail to open. This is also the user interface dialog that allows the user to import and view the descriptions of plugins.

Definition at line 30 of file pluginset.h.


Public Slots

void importPlugin ()
void rescanDir ()
void showPluginCfg ()
void pluginChosen (ViewPopupAction *)
void selectedPluginChanged (QListViewItem *)

Public Member Functions

 PluginSet (QWidget *parent, QPopupMenu *menuparent)
virtual bool fromXML (QDomElement &elem)
virtual bool toXML (QDomDocument &doc, QDomElement &elem, std::string id="")
void setProj (GLIMSProject *proj)
virtual bool toXMLFile (std::string fname, std::string docname)
virtual bool fromXMLFile (std::string fname, std::string docname)
virtual void setCurrentVersion (std::string versionString)
virtual void setCurrentVersion (QDate versionQDate)
virtual QDate getCurrentVersion ()
virtual std::string getCurrentVersionStr ()

Protected Member Functions

void buildWidget ()
void loadMenu ()
void loadList ()
virtual bool writeTextTag (QDomDocument &doc, QDomElement &elem, std::string tagName, std::string text, std::string id="")
virtual bool writeIntTag (QDomDocument &doc, QDomElement &elem, std::string tagName, int val, std::string id="")
virtual bool writeDoubleTag (QDomDocument &doc, QDomElement &elem, std::string tagName, double val, std::string id="")
virtual std::string readTextTag (QDomElement elem, std::string tagName="", std::string id="")
virtual int readIntTag (QDomElement elem, std::string tagName="", std::string id="")
virtual double readDoubleTag (QDomElement elem, std::string tagName="", std::string id="")
virtual QDomElement createBaseTag (QDomDocument &doc, QDomElement &elem, std::string id, std::string tagName)
virtual QDomElement getElemByTagName (QDomElement &elem, std::string name)
virtual std::string qDateToString (const QDate *aQDate)
virtual bool stringToQDate (const std::string aStrDate, QDate *aQDate)
virtual std::string qDateTimeToString (const QDateTime *aQDateTime)
virtual bool stringToQDateTime (const std::string aStrDateTime, QDateTime *aQDateTime)

Protected Attributes

const std::string PLUGCFG_FNAME
std::vector< PluginmPlugSet
QActionGroup * mMenuGroup
QListView * mPlugList
QMultiLineEdit * mDescBox
QPopupMenu * mMenuParent
GLIMSProjectmProj
QDate mCurrentVersion

Constructor & Destructor Documentation

PluginSet::PluginSet ( QWidget parent,
QPopupMenu *  menuparent 
)

Definition at line 4 of file pluginset.cpp.

References buildWidget(), XMLSerializeable::fromXMLFile(), loadList(), loadMenu(), mMenuGroup, mProj, PLUGCFG_FNAME, and showPluginCfg().

Here is the call graph for this function:


Member Function Documentation

void PluginSet::buildWidget (  )  [protected]

Definition at line 30 of file pluginset.cpp.

References importPlugin(), main(), mDescBox, mPlugList, rescanDir(), and selectedPluginChanged().

Referenced by PluginSet().

Here is the call graph for this function:

void PluginSet::loadMenu (  )  [protected]

Definition at line 142 of file pluginset.cpp.

References mMenuGroup, mMenuParent, mPlugSet, and pluginChosen().

Referenced by importPlugin(), and PluginSet().

void PluginSet::loadList (  )  [protected]

Definition at line 173 of file pluginset.cpp.

References mPlugList, and mPlugSet.

Referenced by importPlugin(), and PluginSet().

bool PluginSet::fromXML ( QDomElement &  elem  )  [virtual]

Implements XMLSerializeable.

Definition at line 89 of file pluginset.cpp.

References Plugin::fromXML(), and mPlugSet.

Here is the call graph for this function:

bool PluginSet::toXML ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id = "" 
) [virtual]

Implements XMLSerializeable.

Definition at line 75 of file pluginset.cpp.

References mPlugSet.

void PluginSet::setProj ( GLIMSProject proj  )  [inline]

Definition at line 54 of file pluginset.h.

References mProj.

Referenced by MainToolbar::setupProj().

void PluginSet::importPlugin (  )  [slot]

void PluginSet::rescanDir (  )  [slot]

Definition at line 138 of file pluginset.cpp.

Referenced by buildWidget().

void PluginSet::showPluginCfg (  )  [slot]

Definition at line 168 of file pluginset.cpp.

Referenced by PluginSet().

void PluginSet::pluginChosen ( ViewPopupAction action  )  [slot]

Definition at line 183 of file pluginset.cpp.

References mPlugSet, and mProj.

Referenced by loadMenu().

void PluginSet::selectedPluginChanged ( QListViewItem *  item  )  [slot]

Definition at line 202 of file pluginset.cpp.

References mDescBox, mPlugList, and mPlugSet.

Referenced by buildWidget().

bool XMLSerializeable::writeTextTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
std::string  text,
std::string  id = "" 
) [protected, virtual, inherited]

virtual bool XMLSerializeable::writeIntTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
int  val,
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual bool XMLSerializeable::writeDoubleTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
double  val,
std::string  id = "" 
) [inline, protected, virtual, inherited]

std::string XMLSerializeable::readTextTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [protected, virtual, inherited]

virtual int XMLSerializeable::readIntTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual double XMLSerializeable::readDoubleTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual QDomElement XMLSerializeable::createBaseTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id,
std::string  tagName 
) [inline, protected, virtual, inherited]

QDomElement XMLSerializeable::getElemByTagName ( QDomElement &  elem,
std::string  name 
) [protected, virtual, inherited]

Definition at line 119 of file xmlserializeable.cpp.

Referenced by GlacierIDDef::fromXML().

std::string XMLSerializeable::qDateToString ( const QDate *  aQDate  )  [protected, virtual, inherited]

bool XMLSerializeable::stringToQDate ( const std::string  aStrDate,
QDate *  aQDate 
) [protected, virtual, inherited]

std::string XMLSerializeable::qDateTimeToString ( const QDateTime *  aQDateTime  )  [protected, virtual, inherited]

Definition at line 149 of file xmlserializeable.cpp.

References XMLSerializeable::qDateToString().

Here is the call graph for this function:

bool XMLSerializeable::stringToQDateTime ( const std::string  aStrDateTime,
QDateTime *  aQDateTime 
) [protected, virtual, inherited]

Definition at line 205 of file xmlserializeable.cpp.

References XMLSerializeable::stringToQDate().

Here is the call graph for this function:

bool XMLSerializeable::toXMLFile ( std::string  fname,
std::string  docname 
) [virtual, inherited]

bool XMLSerializeable::fromXMLFile ( std::string  fname,
std::string  docname 
) [virtual, inherited]

void XMLSerializeable::setCurrentVersion ( std::string  versionString  )  [virtual, inherited]

Definition at line 249 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion, and XMLSerializeable::stringToQDate().

Referenced by MainToolbar::setupProj().

Here is the call graph for this function:

void XMLSerializeable::setCurrentVersion ( QDate  versionQDate  )  [virtual, inherited]

Definition at line 254 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion.

QDate XMLSerializeable::getCurrentVersion (  )  [virtual, inherited]

Definition at line 258 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion.

std::string XMLSerializeable::getCurrentVersionStr (  )  [virtual, inherited]

Definition at line 262 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion, and XMLSerializeable::qDateToString().

Here is the call graph for this function:


Member Data Documentation

const std::string PluginSet::PLUGCFG_FNAME [protected]

Definition at line 35 of file pluginset.h.

Referenced by importPlugin(), and PluginSet().

std::vector<Plugin> PluginSet::mPlugSet [protected]

QActionGroup* PluginSet::mMenuGroup [protected]

Definition at line 37 of file pluginset.h.

Referenced by loadMenu(), and PluginSet().

QListView* PluginSet::mPlugList [protected]

Definition at line 38 of file pluginset.h.

Referenced by buildWidget(), loadList(), and selectedPluginChanged().

QMultiLineEdit* PluginSet::mDescBox [protected]

Definition at line 39 of file pluginset.h.

Referenced by buildWidget(), and selectedPluginChanged().

QPopupMenu* PluginSet::mMenuParent [protected]

Definition at line 40 of file pluginset.h.

Referenced by loadMenu().

Definition at line 41 of file pluginset.h.

Referenced by pluginChosen(), PluginSet(), and setProj().

QDate XMLSerializeable::mCurrentVersion [protected, inherited]


The documentation for this class was generated from the following files:

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov