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

/Go4GUI/TGo4CreateNewCondition.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 /****************************************************************************
00017 ** ui.h extension file, included from the uic-generated form implementation.
00018 **
00019 ** If you wish to add, delete or rename functions or slots use
00020 ** Qt Designer which will update this file, preserving your code. Create an
00021 ** init() function in place of a constructor, and a destroy() function in
00022 ** place of a destructor.
00023 *****************************************************************************/
00024 
00025 
00026 QString TGo4CreateNewCondition::GetConditionName()
00027 {
00028     return CondName->text();
00029 }
00030 
00031 QString TGo4CreateNewCondition::GetConditionClass()
00032 {
00033     switch (ClassnameCombo->currentItem())
00034     {
00035         case 0:
00036             return "TGo4WinCond";
00037         case 1:
00038             return "TGo4PolyCond";
00039         default:
00040             return "TGo4WinCond";
00041      }
00042 return "";
00043 }
00044 
00045 bool TGo4CreateNewCondition::IsArray()
00046 {
00047     return ArraySwitch->isChecked();
00048 }
00049 
00050 int TGo4CreateNewCondition::GetDimension()
00051 {
00052     return DimSpin->value();
00053 }
00054 
00055 int TGo4CreateNewCondition::GetArraySize()
00056 {
00057     return ArraySize->value();
00058 }
00059 
00060 
00061 void TGo4CreateNewCondition::SwitchClass( int typ )
00062 {
00063  switch (typ)
00064     {
00065         case 0:
00066             //"TGo4WinCond";
00067          DimSpin->setEnabled(true);
00068          DimSpin->setValue(1);
00069          break;
00070         case 1:
00071             //"TGo4PolyCond";
00072          DimSpin->setEnabled(false);
00073          DimSpin->setValue(2);
00074          break;
00075         default:
00076          break;
00077      }
00078 }
00079 
00080 
00081 void TGo4CreateNewCondition::SetConditionName( const char * txt )
00082 {
00083     CondName->setText(txt);
00084 }
00085 
00086 //----------------------------END OF GO4 SOURCE FILE ---------------------

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