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

/Go4GUI/TGo4SetScaleValues.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 void TGo4SetScaleValues::init()
00027 {
00028 fiDimension=1;
00029 }
00030 
00031 
00032 double TGo4SetScaleValues::GetXmin()
00033 {
00034     QString XminValue=XminV->text();
00035     return XminValue.toDouble();
00036 }
00037 
00038 
00039 double TGo4SetScaleValues::GetXmax()
00040 {
00041    QString XmaxValue=XmaxV->text();
00042     return XmaxValue.toDouble();
00043 }
00044 
00045 
00046 double TGo4SetScaleValues::GetYmin()
00047 {
00048     QString YminValue=YminV->text();
00049     return YminValue.toDouble();
00050 }
00051 
00052 double TGo4SetScaleValues::GetYmax()
00053 {
00054    QString YmaxValue=YmaxV->text();
00055     return YmaxValue.toDouble();
00056 }
00057 
00058 
00059 
00060 
00061 bool TGo4SetScaleValues::IsAutoScale()
00062 {
00063 return AutoScaleButton->isChecked();
00064 }
00065 
00066 
00067 void TGo4SetScaleValues::SetAutoScale( bool val )
00068 {
00069 AutoScaleButton->setChecked(val);
00070 }
00071 
00072 
00073 void TGo4SetScaleValues::AutoscaleChanged( bool on )
00074 {
00075     switch(fiDimension)
00076     {
00077      case 1:
00078          YminV->setDisabled(on);
00079          YmaxV->setDisabled(on);
00080          ZminV->setDisabled(true);
00081          ZmaxV->setDisabled(true);
00082         break;
00083     case 2:
00084         YminV->setDisabled(false);
00085         YmaxV->setDisabled(false);
00086         ZminV->setDisabled(on);
00087         ZmaxV->setDisabled(on);
00088         break;
00089     default:
00090         YminV->setDisabled(false);
00091         YmaxV->setDisabled(false);
00092         ZminV->setDisabled(false);
00093         ZmaxV->setDisabled(false);
00094     break;
00095     };
00096 }
00097 
00098 
00099 
00100 
00101 
00102 
00103 double TGo4SetScaleValues::GetZmax()
00104 {
00105 QString ZmaxValue=ZmaxV->text();
00106     return ZmaxValue.toDouble();
00107 }
00108 
00109 
00110 double TGo4SetScaleValues::GetZmin()
00111 {
00112 QString ZminValue=ZminV->text();
00113     return ZminValue.toDouble();
00114 }
00115 
00116 
00117 void TGo4SetScaleValues::SetDimension( int dimension )
00118 {
00119 fiDimension=dimension;
00120 }
00121 
00122 //----------------------------END OF GO4 SOURCE FILE ---------------------

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