BALL::VIEW::FileObserver Class Reference
[Modular Widgets]
#include <BALL/VIEW/WIDGETS/fileObserver.h>
List of all members.
Detailed Description
Class for observing changes in a molecular file. When the file changes, all current Systems are deleted and the new content of the observed molecular file is shown. Supported are all files from the MolecularFileDialog. A MolecularFileDialog must have been inserted into the MainControl.
Usage: (in from MainControl derived class)
Constructor & Destructor Documentation
BALL::VIEW::FileObserver::FileObserver |
( |
QWidget * |
parent = 0 , |
|
|
const char * |
name = 0 | |
|
) |
| | |
virtual BALL::VIEW::FileObserver::~FileObserver |
( |
|
) |
[virtual] |
Member Function Documentation
virtual void BALL::VIEW::FileObserver::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::FileObserver::chooseFile |
( |
|
) |
[slot] |
Choose a file and start the observer.
String BALL::VIEW::FileObserver::getFileName |
( |
|
) |
const |
virtual void BALL::VIEW::FileObserver::initializeWidget |
( |
MainControl & |
main_control |
) |
[virtual] |
void BALL::VIEW::FileObserver::setFileName |
( |
String |
filename |
) |
|
Set the name of the molecular file to be observed.
void BALL::VIEW::FileObserver::setUpdateInterval |
( |
Size |
msec |
) |
|
Set the update interval in milli seconds.
void BALL::VIEW::FileObserver::start |
( |
|
) |
[slot] |
void BALL::VIEW::FileObserver::stop |
( |
|
) |
[slot] |
void BALL::VIEW::FileObserver::updateFile |
( |
|
) |
[slot] |
Look for updates in the file.
Member Data Documentation