Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::DownloadPDBFile Class Reference
[QT Dialogs]

Dialog to search for and download structure files from the PDB data bank. More...

#include <downloadPDBFile.h>

Inheritance diagram for VIEW::DownloadPDBFile:

VIEW::ModularWidget Embeddable VIEW::ConnectionObject List of all members.

Public Slots

void slotDownload ()
void idChanged ()
virtual void abort ()

Public Member Functions

 DownloadPDBFile (QWidget *parent=0, const char *name="DownloadPDBFileDialog", bool modal=FALSE, Qt::WFlags fl=0) throw ()
virtual void initializeWidget (VIEW::MainControl &main_control) throw ()
virtual void fetchPreferences (INIFile &inifile) throw ()
 Fetch the widgets preferences from the INIFile.
virtual void writePreferences (INIFile &inifile) throw ()
 Writes the widgets preferences to the INIFile.
void setPrefix (String s)
 Set the prefix for the PDB.org url
Standard: http://www.rcsb.org/pdb/files/.
void setSuffix (String s)
 Set the suffix for the PDB.org url
Standard: (.pdb).
void checkMenu (MainControl &mc) throw ()
 Menu checking method.

Protected Member Functions

void downloadStarted_ () throw ()
void downloadEnded_ () throw ()
bool threadedDownload_ (const String &url)
void removeFile_ (const String &filename)
void setProxyAndTransfer_ (TCPTransfer &tcp)

Protected Attributes

FetchHTMLThreadthread_
bool aborted_
bool error_
HashMap< String, QImage > image_cache_
HashSet< Stringunsupported_images_
QAction * menu_id_
String prefix_
String suffix_

Detailed Description

Dialog to search for and download structure files from the PDB data bank.


Member Function Documentation

void VIEW::DownloadPDBFile::checkMenu MainControl mc  )  throw () [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 VIEW::ModularWidget.

virtual void VIEW::DownloadPDBFile::fetchPreferences INIFile inifile  )  throw () [virtual]
 

Fetch the widgets preferences from the INIFile.

This method is called automatically by MainControl::show() at the start of the application.

Parameters:
inifile the INIFile that contains the needed values
See also:
writePreferences

Reimplemented from VIEW::ModularWidget.

virtual void VIEW::DownloadPDBFile::writePreferences INIFile inifile  )  throw () [virtual]
 

Writes the widgets preferences to the INIFile.

This method is called automatically by MainControl::aboutToExit at the end of the application.

Parameters:
inifile the INIFile to contain the values
See also:
fetchPreferences

Reimplemented from VIEW::ModularWidget.