TarzaNN
TarzaNN neural network simulator
Public Slots | Public Member Functions
UI_FilterProp Class Reference

#include <UI_FilterProp.h>

List of all members.

Public Slots

void slotOkButtonPressed ()
void slotCancelButtonPressed ()
void slotUpdatePreviewImage ()
void slotDisplayDynamicList (const QString &newFilterType)

Public Member Functions

 UI_FilterProp (FeaturePlaneInput *theInput, FeaturePlaneAbstract *theFPSource, FeaturePlaneAbstract *theFPDest, QStringList *planeNames, Network *theNetwork, FeaturePlaneAbstract **theFPDestReference, FeaturePlaneInput **theOutsideReference, QWidget *p=0, const char *name=0)
 ~UI_FilterProp ()

Detailed Description

UI_FilterProp is the add/edit dialog box for feature plane inputs. The dialog box has two parts. The first is the general properties panel, which contains the common properties to all FeaturePlaneInput types. The second is a dynamically generated type-specific properties panel which displays properties specific to a certain type of FeaturePlaneInput. If FeaturePlaneInput passed to the constructor is NULL, UI_FilterProp displays an add dialog with default properties, otherwise it displays an edit dialog with the properties of the UI_FilterProp. Inherits from QDialog.


Constructor & Destructor Documentation

UI_FilterProp::UI_FilterProp ( FeaturePlaneInput theInput,
FeaturePlaneAbstract theFPSource,
FeaturePlaneAbstract theFPDest,
QStringList *  planeNames,
Network theNetwork,
FeaturePlaneAbstract **  theFPDestReference,
FeaturePlaneInput **  theOutsideReference,
QWidget *  p = 0,
const char *  name = 0 
)

Creates a new UI_FilterProp.

Parameters:
theInputThe FeaturePlaneInput which properties will be displayed
theFPSourceThe source FeaturePlaneAbstract
theFPDestThe destination FeaturePlaneAbstract
planeNamesThe names of the potential destination FeaturePlaneAbstract objects
theNetworkThe neural network
theFPDestReferenceThe pointer which points to the theFPDest
theOutsideReferenceThe pointer which points to the theInput
parentThe parent of this canvas
nameThe name of this canvas

The parent and name are passed on to the QDialog constructor.

UI_FilterProp::~UI_FilterProp ( )

Destroys the object and frees any allocated resources.


Member Function Documentation

void UI_FilterProp::slotCancelButtonPressed ( ) [slot]

Responds to the Cancel button press and closes the dialog box.

void UI_FilterProp::slotDisplayDynamicList ( const QString &  newFilterType) [slot]

Displays the dynamic type-specific properties according to the newFilterType parameter.

Parameters:
newFilterTypeThe type which properties are to be displayed
Todo:
we should save the edited parameter list - right now we dump everything
void UI_FilterProp::slotOkButtonPressed ( ) [slot]

Responds to the OK button press and updates the input's properties. Does input validation and if the input is valid creates a new FeaturePlaneInput with the modified properties and points the outsideReference to it.

void UI_FilterProp::slotUpdatePreviewImage ( ) [slot]

Updates the preview image of the filter. Called when one of the parameters is changed.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines