BALL::VIEW::PubChemDialog Class Reference
#include <BALL/VIEW/DIALOGS/pubchemDialog.h>
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 ¤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 |
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" | |
|
) |
| | |
virtual BALL::VIEW::PubChemDialog::~PubChemDialog |
( |
|
) |
[virtual] |
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:
-
- See also:
- finalizeWidget()
Reimplemented from BALL::VIEW::ModularWidget.
void BALL::VIEW::PubChemDialog::parseItemRecursive_ |
( |
const QDomNode & |
current_node, |
|
|
Position |
level, |
|
|
ParsedResult_ & |
result | |
|
) |
| | [protected] |
void BALL::VIEW::PubChemDialog::queryPubChem |
( |
|
) |
[slot] |
void BALL::VIEW::PubChemDialog::show |
( |
|
) |
[slot] |
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
Member Data Documentation