QGuiControlWindow Class Reference

List of all members.


Detailed Description

main window for run control

Author:
Sergio Di Domizio

Public Member Functions

 QGuiControlWindow (const TGWindow *parent, Int_t w, Int_t h)
 ctor
virtual ~QGuiControlWindow ()
 dtor
void HandleStartStop ()
 slot function triggered when start/stop button is clicked
void HandleQuit ()
 slot function triggered when start/stop button is clicked
void HandleMonitor ()
 slot function triggered when monitor window button is clicked
void HandleScope ()
 slot function triggered when start scope button is clicked
void HandleScopeClosed ()
 slot function triggered when the scope window is closed
void HandleMonitorClosed ()
 slot function triggered when the monitor window is closed
void Update ()
 slot function triggered when update timer expires
void CloseWindow ()
 close window and emit signal when the close button is clicked
void SetLogLevel (MsgLevel level)
 set log level for logger window
void SetLogFile (std::ostream &os)
 set stream associated to log file

Private Types

enum  GuiStatus { QGuiBlockedStatus, QGuiIdleStatus, QGuiRunningStatus }
 possible gui statuses More...

Private Member Functions

void CreateFrames ()
void MakeConnections ()
void UpdateDaqStatus ()
void SetFormattedMessage (const std::string &message, MsgLevel level=InfoMsg)
void SetFormattedMessage (const QLogInfo &info)
void SetMessage (const std::string &message)
void UpdateGuiStatus ()
void UpdateStatusBar ()
void StartUpdateTimer ()
Bool_t StartRun ()
Bool_t StopRun ()
void CheckAuth ()
void UpdateAuth ()
Bool_t Authenticate ()

Private Attributes

Int_t fRun
Int_t fBasket
std::string fRunType
QGUIDataCollectorfCollector
QGuiScopefScope
QGUIHistogramDisplayfMonitor
MsgLevel fLogLevel
GuiStatus fGuiStatus
std::ostream * fLogFile
TTimer * fTimer
std::pair< std::string,
std::string > 
fAuthInfo
TGTextButton * fStartStopButton
TGTextButton * fQuitButton
TGTextButton * fMonitorButton
TGTextButton * fScopeButton
TGTextView * fLogger
TGStatusBar * fStatusBar
const Int_t kStatusBarHeight

Member Enumeration Documentation

possible gui statuses

Author:
Sergio Di Domizio
Enumerator:
QGuiBlockedStatus  all buttons disabled but quit
QGuiIdleStatus  apollo is idle
QGuiRunningStatus  apollo is running


Member Function Documentation

void QGuiControlWindow::CreateFrames (  )  [private]

void QGuiControlWindow::MakeConnections (  )  [private]

perform signal/slot connections

References fMonitorButton, fQuitButton, fScopeButton, and fStartStopButton.

Referenced by QGuiControlWindow().

void QGuiControlWindow::UpdateDaqStatus (  )  [private]

void QGuiControlWindow::SetFormattedMessage ( const std::string &  message,
MsgLevel  level = InfoMsg 
) [private]

void QGuiControlWindow::SetFormattedMessage ( const QLogInfo info  )  [private]

void QGuiControlWindow::SetMessage ( const std::string &  message  )  [private]

add message to the logger

References fLogger.

Referenced by QGuiControlWindow(), and SetFormattedMessage().

void QGuiControlWindow::UpdateGuiStatus (  )  [private]

void QGuiControlWindow::UpdateStatusBar (  )  [private]

void QGuiControlWindow::StartUpdateTimer (  )  [private]

setup and start update timer

References fTimer.

Referenced by QGuiControlWindow().

Bool_t QGuiControlWindow::StartRun (  )  [private]

Bool_t QGuiControlWindow::StopRun (  )  [private]

void QGuiControlWindow::CheckAuth (  )  [private]

check authentication status

References fAuthInfo, QAuthManager::GetInstance(), QAuthManager::IsAuthenticated(), and SetFormattedMessage().

Referenced by Authenticate(), and Update().

void QGuiControlWindow::UpdateAuth (  )  [private]

Bool_t QGuiControlWindow::Authenticate (  )  [private]


Member Data Documentation

Int_t QGuiControlWindow::fRun [private]

current or next run number

Referenced by QGuiControlWindow(), Update(), UpdateDaqStatus(), and UpdateStatusBar().

Int_t QGuiControlWindow::fBasket [private]

current settings basket

Referenced by UpdateDaqStatus(), and UpdateStatusBar().

std::string QGuiControlWindow::fRunType [private]

run type string

Referenced by UpdateDaqStatus(), and UpdateStatusBar().

stores run configuration infos

Referenced by Authenticate(), CloseWindow(), QGuiControlWindow(), StartRun(), StopRun(), and UpdateDaqStatus().

software oscilloscope

Referenced by CloseWindow(), HandleScope(), HandleScopeClosed(), StopRun(), and UpdateGuiStatus().

monitor histograms window

Referenced by CloseWindow(), HandleMonitor(), HandleMonitorClosed(), StopRun(), and UpdateGuiStatus().

MsgLevel QGuiControlWindow::fLogLevel [private]

log level for logger window

Referenced by SetFormattedMessage(), and SetLogLevel().

std::ostream* QGuiControlWindow::fLogFile [private]

log file ostream

Referenced by SetFormattedMessage(), and SetLogFile().

TTimer* QGuiControlWindow::fTimer [private]

std::pair<std::string, std::string> QGuiControlWindow::fAuthInfo [private]

TGTextButton* QGuiControlWindow::fStartStopButton [private]

start/stop button

Referenced by CreateFrames(), MakeConnections(), and UpdateGuiStatus().

TGTextButton* QGuiControlWindow::fQuitButton [private]

quit button

Referenced by CreateFrames(), and MakeConnections().

TGTextButton* QGuiControlWindow::fMonitorButton [private]

TGTextButton* QGuiControlWindow::fScopeButton [private]

TGTextView* QGuiControlWindow::fLogger [private]

logger window

Referenced by CreateFrames(), and SetMessage().

TGStatusBar* QGuiControlWindow::fStatusBar [private]

bottom status bar

Referenced by CreateFrames(), and UpdateStatusBar().

const Int_t QGuiControlWindow::kStatusBarHeight [private]

status bar height

Referenced by CreateFrames().


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