BALL
1.4.1
|
#include <BALL/VIEW/DIALOGS/pubchemDialog.h>
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 ¤t_node, Position level, ParsedResult_ &result) |
void | insert_ (ParsedResult_ d, QTreeWidgetItem *parent, bool plot) |
Protected Attributes | |
SmilesParser | smiles_parser_ |
PubChemDownloader * | pcd_ |
std::map< QTreeWidgetItem *, System * > | sd_systems_ |
std::map< QTreeWidgetItem *, System * > | original_systems_ |
std::map< QTreeWidgetItem *, ParsedResult_ > | descriptions_ |
QAction * | action1_ |
QAction * | action2_ |
int | current_request_id_ |
HashMap< int, QTreeWidgetItem * > | esummary_request_ids_ |
QProgressBar * | progress_ |
QPushButton * | add_button_ |
PubChemDialogPrivate::DownloadHelper | downloader_ |
Friends | |
class | PubChemDialogPrivate::DownloadHelper |
Dialog for querying PubChem and generating structures from a SMILES string
Definition at line 64 of file pubchemDialog.h.
BALL::VIEW::PubChemDialog::PubChemDialog | ( | QWidget * | parent = NULL , |
const char * | name = "PubChemDialog" |
||
) |
Default Constructor.
virtual BALL::VIEW::PubChemDialog::~PubChemDialog | ( | ) | [virtual] |
Destructor.
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).
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.
main_control | the MainControl object to be initialized with this ModularWidget |
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] |
friend class PubChemDialogPrivate::DownloadHelper [friend] |
Definition at line 71 of file pubchemDialog.h.
QAction* BALL::VIEW::PubChemDialog::action1_ [protected] |
Definition at line 138 of file pubchemDialog.h.
QAction * BALL::VIEW::PubChemDialog::action2_ [protected] |
Definition at line 138 of file pubchemDialog.h.
QPushButton* BALL::VIEW::PubChemDialog::add_button_ [protected] |
Definition at line 145 of file pubchemDialog.h.
int BALL::VIEW::PubChemDialog::current_request_id_ [protected] |
Definition at line 140 of file pubchemDialog.h.
std::map<QTreeWidgetItem*, ParsedResult_> BALL::VIEW::PubChemDialog::descriptions_ [protected] |
Definition at line 136 of file pubchemDialog.h.
Definition at line 147 of file pubchemDialog.h.
HashMap<int, QTreeWidgetItem*> BALL::VIEW::PubChemDialog::esummary_request_ids_ [protected] |
Definition at line 142 of file pubchemDialog.h.
std::map<QTreeWidgetItem*, System*> BALL::VIEW::PubChemDialog::original_systems_ [protected] |
Definition at line 135 of file pubchemDialog.h.
PubChemDownloader* BALL::VIEW::PubChemDialog::pcd_ [protected] |
Definition at line 132 of file pubchemDialog.h.
QProgressBar* BALL::VIEW::PubChemDialog::progress_ [protected] |
Definition at line 143 of file pubchemDialog.h.
std::map<QTreeWidgetItem*, System*> BALL::VIEW::PubChemDialog::sd_systems_ [protected] |
Definition at line 134 of file pubchemDialog.h.
Definition at line 119 of file pubchemDialog.h.