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

/Go4FitGUI/QFitNamedWidget.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 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 
00025 void QFitNamedWidget::FillSpecificData() {
00026 
00027   if (GetObject()) {
00028     ClassNameLbl->setText(QString("Class name: ")+GetObject()->ClassName());
00029     ClassNameLbl->adjustSize();
00030     NameEdt->setText(GetObject()->GetName());
00031     TitleEdt->setText(GetObject()->GetTitle());
00032     TNamed* n = dynamic_cast<TNamed*> (GetObject());
00033     NameEdt->setReadOnly(n==0);
00034     TitleEdt->setReadOnly(n==0);
00035     UpdateFullNameLbl();
00036   }
00037 }
00038 
00039 void QFitNamedWidget::UpdateFullNameLbl() {
00040   TGo4FitNamed* go4n = dynamic_cast<TGo4FitNamed*> (GetObject());
00041 
00042   if(go4n && go4n->GetOwner()) FullNameLbl->setText(QString("Full name: ")+go4n->GetFullName());
00043                           else FullNameLbl->setText("");
00044   FullNameLbl->adjustSize();
00045 }
00046 
00047 void QFitNamedWidget::ChangeName( const QString & name) {
00048   if (name.length()>0)
00049     NameEdt->setText(name);
00050 }
00051 
00052 void QFitNamedWidget::NameEdt_textChanged( const QString & name)
00053 {
00054   if (fbFillWidget) return;
00055 
00056   if (fxSlots->ChangeObjectName(GetItem(), name)) {
00057      fxSlots->SetItemText(GetItem(), TRUE);
00058      UpdateFullNameLbl();
00059   }
00060 }
00061 
00062 
00063 void QFitNamedWidget::TitleEdt_textChanged( const QString & title)
00064 {
00065    if(fbFillWidget) return;
00066    TNamed* n = dynamic_cast<TNamed*> (GetObject());
00067    if (n!=0) n->SetTitle(title);
00068 }
00069 
00070 //----------------------------END OF GO4 SOURCE FILE ---------------------

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