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

QFitNamedWidget.cpp

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 #include "QFitNamedWidget.h"
00017 
00018 #include "qlabel.h"
00019 
00020 #include "QGo4LineEdit.h"
00021 #include "QFitItem.h"
00022 #include "TGo4FitPanel.h"
00023 
00024 QFitNamedWidget::QFitNamedWidget( QWidget* parent,  const char* name )
00025     : QFitWidget( parent, name )
00026 {
00027     if (name==0) setName( "QFitNamedWidget" );
00028 
00029     NameEdt = new QGo4LineEdit( this, "NameEdt" );
00030     NameEdt->setGeometry( QRect( 61, 36, 100, 27 ) );
00031     NameEdt->setMinimumSize( QSize( 100, 0 ) );
00032     NameEdt->setMaximumSize( QSize( 100, 32767 ) );
00033 
00034     ClassNameLbl = new QLabel( "ClassNameLbl", this, "ClassNameLbl" );
00035     ClassNameLbl->setGeometry( QRect( 12, 12, 155, 18 ) );
00036 
00037     TextLabel1 = new QLabel( "Name", this, "TextLabel1" );
00038     TextLabel1->setGeometry( QRect( 12, 36, 49, 27 ) );
00039 
00040     TextLabel2 = new QLabel( "Title", this, "TextLabel2" );
00041     TextLabel2->setGeometry( QRect( 12, 69, 49, 27 ) );
00042 
00043     FullNameLbl = new QLabel( "FullNameLbl", this, "FullNameLbl" );
00044     FullNameLbl->setGeometry( QRect( 173, 36, 95, 27 ) );
00045 
00046     TitleEdt = new QGo4LineEdit( this, "TitleEdt" );
00047     TitleEdt->setGeometry( QRect( 61, 69, 410, 27 ) );
00048     TitleEdt->setMinimumSize( QSize( 200, 0 ) );
00049 
00050     resize( QSize(550, 404).expandedTo(minimumSizeHint()) );
00051     clearWState( WState_Polished );
00052 
00053     // signals and slots connections
00054     connect( NameEdt, SIGNAL( textChanged(const QString&) ), this, SLOT( NameEdt_textChanged(const QString&) ) );
00055     connect( TitleEdt, SIGNAL( textChanged(const QString&) ), this, SLOT( TitleEdt_textChanged(const QString&) ) );
00056 }
00057 
00058 QFitNamedWidget::~QFitNamedWidget()
00059 {
00060 }
00061 
00062 void QFitNamedWidget::FillSpecificData()
00063 {
00064    if (fxPanel!=0)
00065      fxPanel->FillNamedWidget(this);
00066 }
00067 
00068 void QFitNamedWidget::ChangeName(const QString & name)
00069 {
00070   if (name.length()>0)
00071     NameEdt->setText(name);
00072 }
00073 
00074 void QFitNamedWidget::NameEdt_textChanged(const QString & name)
00075 {
00076   if (!fbFillWidget && (fxPanel!=0))
00077     fxPanel->ChangeObjectName(this, name.latin1());
00078 }
00079 
00080 void QFitNamedWidget::TitleEdt_textChanged(const QString & title)
00081 {
00082    if(!fbFillWidget && (fxPanel!=0))
00083       fxPanel->ChangeObjectTitle(this, title.latin1());
00084 }
00085 
00086 //----------------------------END OF GO4 SOURCE FILE ---------------------

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