Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4GUI/TGo4AnalysisStatusMonitor.ui.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 //#include "Go4LockGuard/TGo4LockGuard.h"
00017 
00018 void TGo4AnalysisStatusMonitor::init()
00019 {
00020    // TGo4LockGuard glob;
00021     TGo4GUIRegistry *fxTGo4GUIRegistry;
00022     fxTGo4GUIRegistry = TGo4GUIRegistry::Instance();
00023     fxTGo4AnalysisStatusMonitorSlots = (TGo4AnalysisStatusMonitorSlots *) fxTGo4GUIRegistry->GetSlotClass("TGo4AnalysisStatusMonitorSlots");
00024     if(fxTGo4AnalysisStatusMonitorSlots !=0) {
00025       fxTGo4AnalysisStatusMonitorSlots->SetGUI(this);
00026     }else{
00027       fxTGo4AnalysisStatusMonitorSlots = new TGo4AnalysisStatusMonitorSlots ("TGo4AnalysisStatusMonitorSlots", "Slots Class for Qt GUI", this);
00028     }
00029       fxTGo4AnalysisStatusMonitorStatus = (TGo4AnalysisStatusMonitorStatus *)  fxTGo4AnalysisStatusMonitorSlots->GetStatus();
00030 
00031 }
00032 
00033 
00034 
00035 void TGo4AnalysisStatusMonitor::SetEventNo ( int NoOfEvents)
00036 {
00037    // TGo4LockGuard glob;
00038     LCDProcessedEvents->display(NoOfEvents);
00039 }
00040 
00041 void TGo4AnalysisStatusMonitor::SetAvRate( double Avrate )
00042 {
00043    // TGo4LockGuard glob;
00044     if(Avrate > 10)LCDAverageRate->display(floor( Avrate));
00045     else           LCDAverageRate->display( Avrate);
00046 }
00047 
00048 void TGo4AnalysisStatusMonitor::SetRate( double Rate )
00049 {
00050    // TGo4LockGuard glob;
00051     if(Rate > 10)LCDCurrentRate->display(floor(Rate));
00052     else         LCDCurrentRate->display(Rate);
00053     if(Rate <= 0)    LCDCurrentRate->setPaletteBackgroundColor( QColor(  255,0, 0 ) );
00054     else LCDCurrentRate->setPaletteBackgroundColor( QColor(0,255, 0 ) );
00055 
00056 }
00057 
00058 void TGo4AnalysisStatusMonitor::SetTime( double t )
00059 {
00060    // TGo4LockGuard glob;
00061     int fxtime= (int) t;
00062     LCDTime->display(fxtime);
00063 }
00064 
00065 
00066 void TGo4AnalysisStatusMonitor::closeEvent( QCloseEvent * ce )
00067 {
00068 // TGo4LockGuard glob;
00069   ce->accept();
00070   delete this;
00071 }
00072 
00073 void TGo4AnalysisStatusMonitor::destroy()
00074 {
00075    // TGo4LockGuard glob;
00076     fxTGo4AnalysisStatusMonitorSlots->SetGUI(0);
00077 }
00078 
00079 void TGo4AnalysisStatusMonitor::SetDateString( const char * d )
00080 {
00081     DateLabel->setText(d);
00082 }
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:59 2005 for Go4-v2.10-5 by doxygen1.2.15