Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4BrowserOptions.ui.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 /****************************************************************************
00017 ** ui.h extension file, included from the uic-generated form implementation.
00018 **
00019 ** If you wish to add, delete or rename slots use Qt Designer which will
00020 ** update this file, preserving your code. Create an init() slot in place of
00021 ** a constructor, and a destroy() slot in place of a destructor.
00022 *****************************************************************************/
00023 
00024 void TGo4BrowserOptions::init()
00025 {
00026 }
00027 
00028 void TGo4BrowserOptions::StartWorking()
00029 {
00030    AddLink("","Browser");
00031    UpdateView();
00032 }
00033 
00034 void TGo4BrowserOptions::UpdateView()
00035 {
00036    int interval = Browser()->MonitoringPeriod()/1000;
00037    StartMonitorBtn->setEnabled(interval<=0);
00038    StopMonitorBtn->setEnabled(interval>0);
00039 }
00040 
00041 void TGo4BrowserOptions::linkedObjectUpdated(const char* linkname, TObject* obj)
00042 {
00043    if (strcmp(linkname,"Browser")==0)
00044       UpdateView();
00045 }
00046 
00047 void TGo4BrowserOptions::RefreshBtn_clicked()
00048 {
00049    TGo4AnalysisProxy* an = Browser()->FindAnalysis();
00050    if (an!=0) an->RefreshNamesList();
00051    Browser()->UpdateVisibleAnalysisObjects(false);
00052 }
00053 
00054 void TGo4BrowserOptions::StartMonitorBtn_clicked()
00055 {
00056    int period = IntervalSpin->value();
00057 
00058    Browser()->ToggleMonitoring(period*1000);
00059 
00060    UpdateView();
00061 }
00062 
00063 void TGo4BrowserOptions::StopMonitorBtn_clicked()
00064 {
00065    Browser()->ToggleMonitoring(0);
00066 
00067    UpdateView();
00068 }
00069 
00070 void TGo4BrowserOptions::FilterBox_activated(int indx)
00071 {
00072    Browser()->SetItemsFilter(indx);
00073 }
00074 
00075 
00076 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:20 2008 for Go4-v3.04-1 by  doxygen 1.4.2