BALL::VIEW::PubChemDialog Class Reference

#include <BALL/VIEW/DIALOGS/pubchemDialog.h>

Inheritance diagram for BALL::VIEW::PubChemDialog:
Inheritance graph
[legend]

List of all members.

Classes

struct  ParsedResult_

Public Slots

void show ()
 Show and raise dialog.
void generateButtonClicked ()
 Generate a structure from SMILES.
void queryPubChem ()
 Query PubChem.
void switchView (QTreeWidgetItem *item, int column)
void clearEntries ()
void finished ()
void updateDownloadProgress (qint64 done, qint64 total)
void downloadFinished (const QString &filename)

Public Member Functions

 PubChemDialog (QWidget *parent=NULL, const char *name="PubChemDialog")
 Default Constructor.
virtual ~PubChemDialog ()
 Destructor.
virtual void initializeWidget (MainControl &main_control)
virtual void checkMenu (MainControl &main_control)
void generateFromSMILES (const String &SMILES)

Protected Member Functions

void parseItemRecursive_ (const QDomNode &current_node, Position level, ParsedResult_ &result)
void insert_ (ParsedResult_ d, QTreeWidgetItem *parent, bool plot)

Protected Attributes

SmilesParser smiles_parser_
PubChemDownloaderpcd_
std::map< QTreeWidgetItem
*, System * > 
sd_systems_
std::map< QTreeWidgetItem
*, System * > 
original_systems_
std::map< QTreeWidgetItem
*, ParsedResult_
descriptions_
QActionaction1_
QActionaction2_
int current_request_id_
HashMap< int, QTreeWidgetItem * > esummary_request_ids_
QProgressBar * progress_
QPushButtonadd_button_
PubChemDialogPrivate::DownloadHelper downloader_

Friends

class PubChemDialogPrivate::DownloadHelper

Detailed Description

Dialog for querying PubChem and generating structures from a SMILES string

Definition at line 64 of file pubchemDialog.h.


Constructor & Destructor Documentation

BALL::VIEW::PubChemDialog::PubChemDialog ( QWidget parent = NULL,
const char *  name = "PubChemDialog" 
)

Default Constructor.

virtual BALL::VIEW::PubChemDialog::~PubChemDialog (  )  [virtual]

Destructor.


Member Function Documentation

virtual void BALL::VIEW::PubChemDialog::checkMenu ( MainControl main_control  )  [virtual]

Menu checking method. This method is called MainControl::checkMenus before a popup menu is shown. It should be used to update the state of menu entries (e.g. disable or enable entries).

Parameters:
main_control the MainControl object whose menus should be checked

Reimplemented from BALL::VIEW::ModularWidget.

void BALL::VIEW::PubChemDialog::clearEntries (  )  [slot]
void BALL::VIEW::PubChemDialog::downloadFinished ( const QString &  filename  )  [slot]
void BALL::VIEW::PubChemDialog::finished (  )  [slot]
void BALL::VIEW::PubChemDialog::generateButtonClicked (  )  [slot]

Generate a structure from SMILES.

void BALL::VIEW::PubChemDialog::generateFromSMILES ( const String SMILES  ) 
virtual void BALL::VIEW::PubChemDialog::initializeWidget ( MainControl main_control  )  [virtual]

Initialize the widget. This method is called automatically immediately before the main application is started. It should add the widget's menu entries and connections (if required). This method will be called by MainControl::show.

Parameters:
main_control the MainControl object to be initialized with this ModularWidget
See also:
finalizeWidget()

Reimplemented from BALL::VIEW::ModularWidget.

void BALL::VIEW::PubChemDialog::insert_ ( ParsedResult_  d,
QTreeWidgetItem parent,
bool  plot 
) [protected]
void BALL::VIEW::PubChemDialog::parseItemRecursive_ ( const QDomNode &  current_node,
Position  level,
ParsedResult_ result 
) [protected]
void BALL::VIEW::PubChemDialog::queryPubChem (  )  [slot]

Query PubChem.

void BALL::VIEW::PubChemDialog::show (  )  [slot]

Show and raise dialog.

void BALL::VIEW::PubChemDialog::switchView ( QTreeWidgetItem item,
int  column 
) [slot]
void BALL::VIEW::PubChemDialog::updateDownloadProgress ( qint64  done,
qint64  total 
) [slot]

Friends And Related Function Documentation

friend class PubChemDialogPrivate::DownloadHelper [friend]

Definition at line 71 of file pubchemDialog.h.


Member Data Documentation

Definition at line 138 of file pubchemDialog.h.

Definition at line 138 of file pubchemDialog.h.

Definition at line 145 of file pubchemDialog.h.

Definition at line 140 of file pubchemDialog.h.

Definition at line 136 of file pubchemDialog.h.

Definition at line 147 of file pubchemDialog.h.

Definition at line 142 of file pubchemDialog.h.

Definition at line 135 of file pubchemDialog.h.

Definition at line 132 of file pubchemDialog.h.

QProgressBar* BALL::VIEW::PubChemDialog::progress_ [protected]

Definition at line 143 of file pubchemDialog.h.

Definition at line 134 of file pubchemDialog.h.

Definition at line 119 of file pubchemDialog.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3