QGuiEleMain Class Reference
[Apollo GuiApollo]

List of all members.


Detailed Description

electronics control gui main window

Author:
Sergio Di Domizio

Public Member Functions

void CleanExit ()
void Closed ()
void UpdateBasket ()
 prompt user for new settings basket and updates all the graphical and batch informations accordingly

Private Member Functions

void Init ()
void CreateWindow ()
int SelectBasket () const
int PromptForBasket () const
 prompt user for new settings basket
int ReadBasketFromFile () const
 read settings basket from config file
void UpdateActiveChannels ()

Private Attributes

size_t fSettingsBasket
std::vector< int > fChannels
QGEControlFrame * fControlFrame

Member Function Documentation

void QGuiEleMain::Init (  )  [private]

fetches settings basket from somewhere (cfg file or prompt user), updates all the graphical and batch objects with the informations from the new basket and finally displays the graphical window

References CreateWindow(), QEleInterface::GetInstance(), SelectBasket(), QEleInterface::SetSettingsBasket(), and UpdateActiveChannels().

void QGuiEleMain::CreateWindow (  )  [private]

creates all subframes and maps window

References fControlFrame, and QGuiUtils::GetInstance().

Referenced by Init().

int QGuiEleMain::SelectBasket (  )  const [private]

try reading settings basket from config file and prompt user if this attempt fails

References PromptForBasket(), and ReadBasketFromFile().

Referenced by Init().

int QGuiEleMain::PromptForBasket (  )  const [private]

prompt user for new settings basket

Returns:
selected settings basket, 0 if the user canceled the selection, -1 in case of error

Referenced by SelectBasket(), and UpdateBasket().

int QGuiEleMain::ReadBasketFromFile (  )  const [private]

read settings basket from config file

Returns:
selected settings basket or -1 in case of error

Referenced by SelectBasket().

void QGuiEleMain::UpdateActiveChannels (  )  [private]

read list of active channels from db

References QApolloDb::GetActiveChannels(), and QDaqChannel::Mapping_s.

Referenced by Init(), and UpdateBasket().


Member Data Documentation

QGEControlFrame* QGuiEleMain::fControlFrame [private]

list of active channels in current basket

Referenced by CreateWindow(), and UpdateBasket().


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6