#include <BALL/VIEW/DIALOGS/downloadPDBFile.h>
Public Slots | |
void | slotDownload () |
void | idChanged () |
virtual void | abort () |
void | downloadFinished () |
void | downloadProgress (qint64 received, qint64 total) |
Public Member Functions | |
DownloadPDBFile (QWidget *parent=0, const char *name="DownloadPDBFileDialog", bool modal=FALSE, Qt::WFlags fl=0) | |
~DownloadPDBFile () | |
virtual void | initializeWidget (VIEW::MainControl &main_control) |
virtual void | fetchPreferences (INIFile &inifile) |
virtual void | writePreferences (INIFile &inifile) |
void | setPrefix (String s) |
void | setSuffix (String s) |
void | checkMenu (MainControl &mc) |
Protected Member Functions | |
void | downloadStarted_ () |
void | downloadEnded_ () |
bool | threadedDownload_ (const String &url) |
void | removeFile_ (const String &filename) |
Protected Attributes | |
bool | aborted_ |
bool | error_ |
HashMap< String, QImage > | image_cache_ |
HashSet< String > | unsupported_images_ |
QAction * | menu_id_ |
String | prefix_ |
String | suffix_ |
QNetworkReply * | current_reply_ |
QProgressBar * | progress_bar_ |
QNetworkAccessManager * | network_manager_ |
Dialog to search for and download structure files from the PDB data bank.
Definition at line 34 of file downloadPDBFile.h.
BALL::VIEW::DownloadPDBFile::DownloadPDBFile | ( | QWidget * | parent = 0 , |
|
const char * | name = "DownloadPDBFileDialog" , |
|||
bool | modal = FALSE , |
|||
Qt::WFlags | fl = 0 | |||
) |
BALL::VIEW::DownloadPDBFile::~DownloadPDBFile | ( | ) |
virtual void BALL::VIEW::DownloadPDBFile::abort | ( | ) | [virtual, slot] |
void BALL::VIEW::DownloadPDBFile::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::DownloadPDBFile::downloadEnded_ | ( | ) | [protected] |
void BALL::VIEW::DownloadPDBFile::downloadFinished | ( | ) | [slot] |
void BALL::VIEW::DownloadPDBFile::downloadProgress | ( | qint64 | received, | |
qint64 | total | |||
) | [slot] |
void BALL::VIEW::DownloadPDBFile::downloadStarted_ | ( | ) | [protected] |
virtual void BALL::VIEW::DownloadPDBFile::fetchPreferences | ( | INIFile & | inifile | ) | [virtual] |
Fetch the widgets preferences from the INIFile. This method is called automatically by MainControl::show() at the start of the application.
inifile | the INIFile that contains the needed values |
Reimplemented from BALL::VIEW::ModularWidget.
void BALL::VIEW::DownloadPDBFile::idChanged | ( | ) | [slot] |
virtual void BALL::VIEW::DownloadPDBFile::initializeWidget | ( | VIEW::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::DownloadPDBFile::removeFile_ | ( | const String & | filename | ) | [protected] |
void BALL::VIEW::DownloadPDBFile::setPrefix | ( | String | s | ) | [inline] |
Set the prefix for the PDB.org url
Standard: http://www.rcsb.org/pdb/files/
Definition at line 62 of file downloadPDBFile.h.
void BALL::VIEW::DownloadPDBFile::setSuffix | ( | String | s | ) | [inline] |
Set the suffix for the PDB.org url
Standard: (.pdb)
Definition at line 67 of file downloadPDBFile.h.
void BALL::VIEW::DownloadPDBFile::slotDownload | ( | ) | [slot] |
virtual void BALL::VIEW::DownloadPDBFile::writePreferences | ( | INIFile & | inifile | ) | [virtual] |
Writes the widgets preferences to the INIFile. This method is called automatically by MainControl::aboutToExit at the end of the application.
inifile | the INIFile to contain the values |
Reimplemented from BALL::VIEW::ModularWidget.
bool BALL::VIEW::DownloadPDBFile::aborted_ [protected] |
Definition at line 100 of file downloadPDBFile.h.
QNetworkReply* BALL::VIEW::DownloadPDBFile::current_reply_ [protected] |
Definition at line 112 of file downloadPDBFile.h.
bool BALL::VIEW::DownloadPDBFile::error_ [protected] |
Definition at line 101 of file downloadPDBFile.h.
HashMap<String, QImage> BALL::VIEW::DownloadPDBFile::image_cache_ [protected] |
Definition at line 103 of file downloadPDBFile.h.
QAction* BALL::VIEW::DownloadPDBFile::menu_id_ [protected] |
Definition at line 108 of file downloadPDBFile.h.
QNetworkAccessManager* BALL::VIEW::DownloadPDBFile::network_manager_ [protected] |
Definition at line 116 of file downloadPDBFile.h.
String BALL::VIEW::DownloadPDBFile::prefix_ [protected] |
Definition at line 109 of file downloadPDBFile.h.
QProgressBar* BALL::VIEW::DownloadPDBFile::progress_bar_ [protected] |
Definition at line 115 of file downloadPDBFile.h.
String BALL::VIEW::DownloadPDBFile::suffix_ [protected] |
Definition at line 109 of file downloadPDBFile.h.
Definition at line 106 of file downloadPDBFile.h.