5 #ifndef BALL_VIEW_DIALOGSPUBCHEMDIALOG_H
6 #define BALL_VIEW_DIALOGSPUBCHEMDIALOG_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
16 #ifndef BALL_STRUCTURE_SMILESPARSER_H
20 #include <QtGui/QDialog>
23 #include <boost/unordered_map.hpp>
25 class QNetworkAccessManager;
32 class PubChemDialogData;
58 virtual void initializeWidget (
MainControl& main_control );
61 virtual void checkMenu (
MainControl& main_control );
64 void generateFromSMILES (
const String& SMILES );
71 void generateButtonClicked();
86 void updateDownloadProgress ( qint64 done, qint64 total );
89 void downloadFinished ( QNetworkReply* reply );
92 Ui::PubChemDialogData*
ui_;
108 bool handleDownloadError_ ( QNetworkReply* reply);
109 void buildInformationTemplates_();
110 QString buildHeaderTemplate_(InfoDisplayStyle style,
const char* str)
const;
boost::unordered_map< String, QString > information_templates_
QNetworkAccessManager * network_manager_
Ui::PubChemDialogData * ui_
HashMap< int, QTreeWidgetItem * > esummary_request_ids_
std::map< QTreeWidgetItem *, ParsedResult_ > descriptions_
QPushButton * add_button_
#define BALL_EMBEDDABLE(TYPE, BASE)
std::map< QTreeWidgetItem *, System * > original_systems_
SmilesParser smiles_parser_
std::map< QTreeWidgetItem *, System * > sd_systems_