ndManager Class Reference

Main window class. More...

#include <ndmanager.h>

List of all members.

Public Slots

void updateGUI (Kate::View *view)
void updateGUI ()
void konsoleDockBeingClosed ()
void nbSpikeGroupsModified (int nbGroups)
void fileModification (QValueList< QString > extensions)
void checkBeforeLaunchingPrograms ()
void checkBeforeLaunchingScripts ()
void scriptModification (const QValueList< QString > &scriptNames)

Public Member Functions

 ndManager ()
 ~ndManager ()
void openDocumentFile (const KURL &url=0)
void createParameterView (QMap< int, QValueList< int > > &anatomicalGroups, QMap< QString, QMap< int, QString > > &attributes, QMap< int, QValueList< int > > &spikeGroups, QMap< int, QMap< QString, QString > > &spikeGroupsInformation, QMap< int, QValueList< QString > > &units, GeneralInformation &generalInformation, QMap< QString, int > &acquisitionSystemInfo, QMap< QString, float > &videoInformation, QValueList< FileInformation > &files, QValueList< ChannelColors > &channelColors, QMap< int, int > &channelOffsets, NeuroscopeVideoInfo &neuroscopeVideoInfo, QValueList< ProgramInformation > &programs, int lfpRate, float screenGain, int nbSamples, int peakSampleIndex)
ParameterViewgetParameterView ()

Protected Member Functions

void saveProperties (KConfig *)
void readProperties (KConfig *)


Detailed Description

Main window class.

This class serves as the main window for ndManager. It handles the menus, toolbars, and status bars. There is only one document open by application.

Author:
Lynn Hazan <lynn.hazan@myrealbox.com>
Version:
0.1


Constructor & Destructor Documentation

ndManager::ndManager (  ) 

Constructor.

ndManager::~ndManager (  ) 

Destructor


Member Function Documentation

void ndManager::openDocumentFile ( const KURL &  url = 0  ) 

Opens a file, only one document at the time is allowed. Asking for a new one will open a new instance of the application with it.

void ndManager::createParameterView ( QMap< int, QValueList< int > > &  anatomicalGroups,
QMap< QString, QMap< int, QString > > &  attributes,
QMap< int, QValueList< int > > &  spikeGroups,
QMap< int, QMap< QString, QString > > &  spikeGroupsInformation,
QMap< int, QValueList< QString > > &  units,
GeneralInformation generalInformation,
QMap< QString, int > &  acquisitionSystemInfo,
QMap< QString, float > &  videoInformation,
QValueList< FileInformation > &  files,
QValueList< ChannelColors > &  channelColors,
QMap< int, int > &  channelOffsets,
NeuroscopeVideoInfo neuroscopeVideoInfo,
QValueList< ProgramInformation > &  programs,
int  lfpRate,
float  screenGain,
int  nbSamples,
int  peakSampleIndex 
)

Creates a ParameterView.

Parameters:
anatomicalGroups map given the composition of the anatomical groups. The trash group is not included, channels which are not part of any group are in the trash group.
attributes map given the correspondance between the attribute names and a map given for each channel the value of the attribute.
spikeGroups map given the composition of the spike groups. The trash and undefined groups are not included, channels which are not part of any group nor the trash group (this group is common to the anatomical and spike groups) are in the undefined group.
spikeGroupsInformation map containing the additional information for each spike group except the trash and undefined groups.
generalInformation object storing the information contained in the General Information part of the parameter file.
acquisitionSystemInfo map given the information related to the acquisition system.
videoInformation map given the information related to the video recording system.
files list of object storing the information describing an additional file (filter and/or subset of the raw data file).
channelColors object storing the channel color information.
channelOffsets map storing the channel default offset information.
neuroscopeVideoInfo object storing the video information used by NeuroScope.
programs list of object storing the information describing a program to be used to process the raw data.
lfpRate rate of the local field potential file.
screenGain screen gain in milivolts by centimeters used to display the field potentiels in NeuroScope.
nbSamples the number of samples in a spike; value used by NeuroScope.
peakSampleIndex the sample index corresponding to the peak of the spike; value use dby NeuroScope

ParameterView* ndManager::getParameterView (  )  [inline]

returns a pointer on the ParameterView containing the parameter information.

Returns:
pointer on the ParameterView.

void ndManager::saveProperties ( KConfig *   )  [protected]

This function is called when it is time for the app to save its properties for session management purposes.

void ndManager::readProperties ( KConfig *   )  [protected]

This function is called when this app is restored. The KConfig object points to the session management config file that was saved with saveProperties

void ndManager::updateGUI ( Kate::View *  view  )  [slot]

Updates the menus and toolbars to take into account a Kate kPart.

void ndManager::updateGUI (  )  [slot]

Updates the menus and toolbars to remove a Kate kPart.

void ndManager::konsoleDockBeingClosed (  )  [slot]

Takes care of the closing of a Konsole.

void ndManager::nbSpikeGroupsModified ( int  nbGroups  )  [slot]

Triggers the update of the dropdown list containing the spike groups in the managerView.

Parameters:
nbGroups the new number of spike groups.

void ndManager::fileModification ( QValueList< QString >  extensions  )  [slot]

Triggers the update of the dropdown list containing the file extensions in the managerView.

Parameters:
extensions list containing the extensions of all the specific files.

void ndManager::checkBeforeLaunchingPrograms (  )  [slot]

Checks that everything is ok before launching a program. This includes that the modifications to the parameter file have been saved. This function informs the managerView of the status and gives it the current parameter file url.

void ndManager::checkBeforeLaunchingScripts (  )  [slot]

Checks that everything is ok before launching a script. This includes that the modifications to the parameter file have been saved. This function informs the managerView of the status and gives it the current parameter file url.

void ndManager::scriptModification ( const QValueList< QString > &  scriptNames  )  [slot]

Triggers the update of the dropdown list containing the script names in the managerView.

Parameters:
scriptNames list containing the names.


The documentation for this class was generated from the following files:
Generated on Sat Sep 15 16:04:45 2007 for ndmanager.kdevelop by  doxygen 1.5.1