ExperimentBrowser Class Reference

The ExperimentBrowser class provides a graphical interface for browsing through, adding and removing experiment records. More...

#include <experimentbrowser.h>

Inheritance diagram for ExperimentBrowser:

GuiDbComponentDialog AbstractDigestDbView AbstractView MvcBase List of all members.

Public Slots

void refreshExperimentsModel ()

Public Member Functions

 ExperimentBrowser (DigestDbController *digestDbController, SettingsController *settingsController, JavaVM *jvm, QWidget *parent=0, Qt::WindowFlags flags=0)
 ~ExperimentBrowser ()

Protected Member Functions

void showEvent (QShowEvent *)
void resetEvent (VEvent *)
void experimentsEvent (VExperimentsEvent *)

Detailed Description

The ExperimentBrowser class provides a graphical interface for browsing through, adding and removing experiment records.


Constructor & Destructor Documentation

ExperimentBrowser::ExperimentBrowser ( DigestDbController digestDbController,
SettingsController settingsController,
JavaVM *  jvm,
QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

ExperimentBrowser::~ExperimentBrowser (  ) 


Member Function Documentation

void ExperimentBrowser::refreshExperimentsModel (  )  [slot]

void ExperimentBrowser::showEvent ( QShowEvent *  event  )  [protected, virtual]

Re-syncs the GUI with the database if digestDbModel() is non-null, as it may have changed for some unknown reason without sending update events to us.

Users tend to expect a refresh if a window is hidden and then shown again.

It then then passes event onto GuiDbComponentDialog.

Reimplemented from GuiDbComponentDialog.

void ExperimentBrowser::resetEvent ( VEvent  )  [protected, virtual]

A view receives this event when the controller() needs to reset / synchronise the view's knowledge (and possibly display) of the model().

When the view receives a VModelChangedEvent, a reset event will automatically be posted to the view by the modelChangedEvent() handler if the model is non-null.

This implementation does nothing.

It should be re-implemented it to suit the specific view sub-classs.

Reimplemented from AbstractDigestDbView.

void ExperimentBrowser::experimentsEvent ( VExperimentsEvent  )  [protected, virtual]

Reimplemented from AbstractDigestDbView.


The documentation for this class was generated from the following files:
Generated on Mon Jul 30 09:46:52 2007 for Digest by  doxygen 1.5.2