Main Page   Class Hierarchy   Compound List   File List   Compound Members  

GUIMainImpl Class Reference

#include <GUIMainImpl.h>

Inheritance diagram for GUIMainImpl:

Inheritance graph
[legend]
Collaboration diagram for GUIMainImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GUIMainImpl (QWidget *parent=0, const char *name=0)
void openAboutForm ()
void AudioDirViewFolderSelected (QString *file)
void AudioClassifySamplePressed (void)
void AudioRecordPressed ()
void AudioRecordFileSelectPressed ()
void AudioPlayPressed ()
void AudioProcessingInterleavingChanged (int interleaving)
void AudioProcessingFactorChanged (int factor)
void AudioNumberOfWindowsChanged (int nowindows)
void SetManagerTrainingSetNewSetPressed ()
void SetManagerTrainingSetLoadSet ()
void SetManagerTrainingSetSaveSetPressed ()
void SetManagerTrainingSetNameChanged (const QString &setname)
void SetManagerAddToTrainingPressed ()
void SetManagerRemoveFromTrainingPressed ()
void SetManagerMoveFromTrainingToTestingPressed ()
void SetManagerTestingSetNewSetPressed ()
void SetManagerTestingSetLoadSet ()
void SetManagerTestingSetSaveSetPressed ()
void SetManagerTestingSetNameChanged (const QString &setname)
void SetManagerAddToTestPressed ()
void SetManagerRemoveFromTestPressed ()
void SetManagerMoveFromTestingToTrainingPressed ()
void NeuralNetGenerateSystemPressed (void)
void NeuralNetLoadSystemPressed ()
void NeuralNetSaveSystemPressed ()
void NeuralNetNetwork0NumberOfLayersChanged (int layers)
void NeuralNetNetwork0ChangeLayerChanged (int layer)
void NeuralNetNetwork0NumberOfNeuronsChanged (int neurons)
void NeuralNetNetwork1NumberOfLayersChanged (int layers)
void NeuralNetNetwork1ChangeLayerChanged (int layer)
void NeuralNetNetwork1NumberOfNeuronsChanged (int neurons)
void NeuralNetNetwork2NumberOfLayersChanged (int layers)
void NeuralNetNetwork2ChangeLayerChanged (int layer)
void NeuralNetNetwork2NumberOfNeuronsChanged (int neurons)
void startLearningPressed (void)
void initializeOutputWidgetsClassify (void)
void initializeOutputWidgetsLearning (void)
void OutputDisplayWeightMatrix (void)
void displayClassification (const VowelClassification &vclass)
void displayWeightMatrix (void)
void OutputMatrixLayer1SetValue (int value)
void OutputMatrixLayer0SetValue (int value)
void setOutputLayerSelectorMaximum ()

Private Slots

void learnEpoch (void)

Private Member Functions

double getMaximum (const vector< double > &val) const
void setLearnResultPercentage (void)
void updateAudioSettingsChanged (void)
void reloadSets (void)

Static Private Member Functions

void reloadSetsProgressHandler (void *user)

Private Attributes

VowelSampleVowelSampleDisplayed
vector< unsigned int > initnet [3]
unsigned int learn_epochs
char ostr_all_train [64]
char ostr_net0_train [64]
char ostr_net1_train [64]
char ostr_net2_train [64]
char ostr_all_test [64]
char ostr_net0_test [64]
char ostr_net1_test [64]
char ostr_net2_test [64]
bool audio_settings_changed
unsigned int reload_count
QProgressDialog * reimport_progress

Detailed Description

Main GUI Widget.

Constructs the main window application. All standard widgets set with QT-Designer are implemented in this class.


Constructor & Destructor Documentation

GUIMainImpl::GUIMainImpl QWidget *    parent = 0,
const char *    name = 0
 

Main Constructor for GUIMainImpl.


Member Function Documentation

void GUIMainImpl::AudioClassifySamplePressed void   
 

Start the classify process for a single file.

void GUIMainImpl::AudioDirViewFolderSelected QString *    file
 

Actualize the file-information widgets, the waveform-widget and the windowedform-widget is a new file is selected or something like interleaving, factor or the nuber of windows changed.

Parameters:
file selected file

void GUIMainImpl::AudioNumberOfWindowsChanged int    nowindows
 

Update the vowelmanager-prep_template and actualize the drawings using AudioDirViewFolderSelected().

Parameters:
nowindows number of windows

void GUIMainImpl::AudioPlayPressed  
 

Play the file selected in audiodirview

void GUIMainImpl::AudioProcessingFactorChanged int    factor
 

Update the vowelmanager-prep_template and actualize the drawings using AudioDirViewFolderSelected().

Parameters:
factor new factor, set as an index number.

void GUIMainImpl::AudioProcessingInterleavingChanged int    interleaving
 

Update the vowelmanager-prep_template and actualize the drawings using AudioDirViewFolderSelected().

Parameters:
interleaving new value for interleaving

void GUIMainImpl::AudioRecordFileSelectPressed  
 

Open a savefiledialog, so the usercan select a filename.

void GUIMainImpl::AudioRecordPressed  
 

Record a new file using the informations given in the audiorecord-groupbox.

void GUIMainImpl::displayClassification const VowelClassification   vclass
 

Display the results of a single-vowel classification within the output tab.

Parameters:
vclass The results to be displayed.

void GUIMainImpl::displayWeightMatrix void   
 

Display the correct WeightMatrix layer from the selected network.

double GUIMainImpl::getMaximum const vector< double > &    val const [private]
 

Find the absolute maximum of all values within a vector.

Parameters:
val The vector to be skimmed.
Returns:
The absolute maximum value within val.

void GUIMainImpl::initializeOutputWidgetsClassify void   
 

Initialize the output widgets for use with single vowel classification.

void GUIMainImpl::initializeOutputWidgetsLearning void   
 

Initialize the output widgets for use with the learning process.

void GUIMainImpl::learnEpoch void    [private, slot]
 

Learn one epoch and update widgets afterwards. Called due to the idle timer.

void GUIMainImpl::NeuralNetGenerateSystemPressed void   
 

Generate a new vowel classifier from the three individual network descriptions.

void GUIMainImpl::NeuralNetLoadSystemPressed  
 

Open a openfiledialog and load a vowel classifier from a given filename.

void GUIMainImpl::NeuralNetNetwork0ChangeLayerChanged int    layer
 

Update the numberofneurons-input, so the correct information is shown when then number of the layer to change is changed in network0.

Parameters:
layer number of active layer

void GUIMainImpl::NeuralNetNetwork0NumberOfLayersChanged int    layers
 

Update the initnet and set the maxvalue of the changelayer-input when the number of layers is changed in network0.

Parameters:
layers number of layers

void GUIMainImpl::NeuralNetNetwork0NumberOfNeuronsChanged int    neurons
 

Set the numbers of neurons in network0.

Parameters:
neurons number of neurons

void GUIMainImpl::NeuralNetNetwork1ChangeLayerChanged int    layer
 

Update the numberofneurons-input, so the correct information is shown when then number of the layer to change is changed in network1.

Parameters:
layer number of active layer

void GUIMainImpl::NeuralNetNetwork1NumberOfLayersChanged int    layers
 

Update the initnet and set the maxvalue of the changelayer-input when the number of layers is changed in network1.

Parameters:
layers number of layers

void GUIMainImpl::NeuralNetNetwork1NumberOfNeuronsChanged int    neurons
 

Set the numbers of neurons in network1.

Parameters:
neurons number of neurons

void GUIMainImpl::NeuralNetNetwork2ChangeLayerChanged int    layer
 

Update the numberofneurons-input, so the correct information is shown when then number of the layer to change is changed in network2.

Parameters:
layer number of active layer

void GUIMainImpl::NeuralNetNetwork2NumberOfLayersChanged int    layers
 

Update the initnet and set the maxvalue of the changelayer-input when the number of layers is changed in network2.

Parameters:
layers number of layers

void GUIMainImpl::NeuralNetNetwork2NumberOfNeuronsChanged int    neurons
 

Set the numbers of neurons in network2.

Parameters:
neurons number of neurons

void GUIMainImpl::NeuralNetSaveSystemPressed  
 

Open a savefiledialog and save a vowel classifier to a given filename.

void GUIMainImpl::openAboutForm  
 

opens the AboutForm-Dialog with some informations about this program. The dialog itself is made with QT-Designer.

void GUIMainImpl::OutputDisplayWeightMatrix void   
 

Re-display the weight matrix.

void GUIMainImpl::OutputMatrixLayer0SetValue int    value
 

Adjust the other value for the layernumbers, between which the weightmatrix should be shown, so that the difference is always 1

void GUIMainImpl::OutputMatrixLayer1SetValue int    value
 

Adjust the other value for the layernumbers, between which the weightmatrix should be shown, so that the difference is always 1

void GUIMainImpl::reloadSets void    [private]
 

Reload both the training and test sets by saving them to a temporary file and restoring the set from that file. Do this to reprocess all files with the updated audio preprocessing template.

void GUIMainImpl::reloadSetsProgressHandler void *    user [static, private]
 

Handle the progress bar display while reloading all samples.

Parameters:
user The this pointer to the GUIMainImpl main object.

void GUIMainImpl::setLearnResultPercentage void    [private]
 

Add the final result percentages to all output graph widgets.

void GUIMainImpl::SetManagerAddToTestPressed  
 

add a selected file to the testingset.

void GUIMainImpl::SetManagerAddToTrainingPressed  
 

add a selected file to the trainingset.

void GUIMainImpl::SetManagerMoveFromTestingToTrainingPressed  
 

move a selected file from testingset to the trainingset.

void GUIMainImpl::SetManagerMoveFromTrainingToTestingPressed  
 

move a selected file from trainingset to the testset.

void GUIMainImpl::SetManagerRemoveFromTestPressed  
 

remove a selected file from the testingset.

void GUIMainImpl::SetManagerRemoveFromTrainingPressed  
 

remove a selected file from the trainingset.

void GUIMainImpl::SetManagerTestingSetLoadSet  
 

Open an openfiledialog and load the selected testingset.

void GUIMainImpl::SetManagerTestingSetNameChanged const QString &    setname
 

Update the vowelmanagerobject if the setname was changed

Parameters:
setname name of the set

void GUIMainImpl::SetManagerTestingSetNewSetPressed  
 

Clear the testingset and reset setname.

void GUIMainImpl::SetManagerTestingSetSaveSetPressed  
 

Open a savefiledialog and save the actual set.

void GUIMainImpl::SetManagerTrainingSetLoadSet  
 

Open an openfiledialog and load the selected trainingset.

void GUIMainImpl::SetManagerTrainingSetNameChanged const QString &    setname
 

Update the vowelmanagerobject if the setname was changed

Parameters:
setname name of the set

void GUIMainImpl::SetManagerTrainingSetNewSetPressed  
 

Clear the trainingset and reset setname.

void GUIMainImpl::SetManagerTrainingSetSaveSetPressed  
 

Open a savefiledialog and save the actual set.

void GUIMainImpl::setOutputLayerSelectorMaximum  
 

Set maximum values for layerselection of the weightmatrix if another network has been selected.

void GUIMainImpl::startLearningPressed void   
 

Initialize the learn settings and start the train process.

void GUIMainImpl::updateAudioSettingsChanged void    [private]
 

Update the audio_settings_changed variable when necessary.

Check if there are samples loaded within the setmanager, and update the reload flag in case there are.


Member Data Documentation

bool GUIMainImpl::audio_settings_changed [private]
 

Used to show the audio preprocessing settings have been changed.

vector<unsigned int> GUIMainImpl::initnet[3] [private]
 

Contains the Initialization values for the Neural Network, needed by GenerateSystem

unsigned int GUIMainImpl::learn_epochs [private]
 

Number of epochs to learn.

char GUIMainImpl::ostr_all_test[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_all_train[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_net0_test[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_net0_train[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_net1_test[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_net1_train[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_net2_test[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

char GUIMainImpl::ostr_net2_train[64] [private]
 

Per object static-like string objects used for the final result percentage in the output window graph widgets.

QProgressDialog* GUIMainImpl::reimport_progress [private]
 

When a sample-processing related progressbar is displayed, this object pointer is used.

unsigned int GUIMainImpl::reload_count [private]
 

When reloading the samples due to changed audio settings, this keeps track of the samples imported and updates the reimport_progress progressbar object.

VowelSample* GUIMainImpl::VowelSampleDisplayed [private]
 

The vowel sample that is displayed right now in the audio tab, or NULL when there is none.


The documentation for this class was generated from the following files:
Generated on Mon Feb 24 19:37:45 2003 by doxygen1.3-rc3