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;