SplitCollectionDialog Class Reference

The SplitCollectionDialog class provides a dialog and the DB logic to take a collection and automatically create training and test sets from it. More...

#include <splitcollectiondialog.h>

Inheritance diagram for SplitCollectionDialog:

AbstractDigestDbView AbstractView MvcBase List of all members.

Public Slots

void accept ()

Public Member Functions

 SplitCollectionDialog (int collectionId, DigestDbController *controller, QWidget *parent=0, Qt::WFlags f=0)

Protected Member Functions

DEFINE_CUSTOM_VIEWEVENT_HANDLER
void 
resetEvent (VEvent *)
void collectionsEvent (VCollectionsEvent *)

Detailed Description

The SplitCollectionDialog class provides a dialog and the DB logic to take a collection and automatically create training and test sets from it.

The dialog does not yet handle changes to the database while the window is open. Thus, it should only be executed as application-modal, not window-model.


Constructor & Destructor Documentation

SplitCollectionDialog::SplitCollectionDialog ( int  collectionId,
DigestDbController controller,
QWidget *  parent = 0,
Qt::WFlags  f = 0 
)

Constructs a new dialog for splitting collections.

Note: The collectionId must be a positive integer and the controller must be non-null.

Note: If the collectionId is not valid, the the user will be alerted with a critical error message, as this never be allowed to occur, but if it does, we wan't to fail gracefully.


Member Function Documentation

void SplitCollectionDialog::accept (  )  [slot]

void SplitCollectionDialog::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 SplitCollectionDialog::collectionsEvent ( VCollectionsEvent  )  [protected, virtual]

Reimplemented from AbstractDigestDbView.


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