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

TxqParamTableItem.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqParamTableItem.h
00004 //
00005 // Purpose: Class to create a QLineEdit widget to edit a Param value
00006 //
00007 // Version: $Id: TxqParamTableItem.h,v 1.2 2001/11/04 16:54:17 kgl Exp $
00008 //
00009 // Copyright (c) 2001 by Tech-X Corporation.  All rights reserved.
00010 //
00011 // Author:  Kelly G. Luetkemeyer
00012 //
00013 //--------------------------------------------------------------------
00014 
00015 #ifndef TXQ_PARAM_TABLE_ITEM_H
00016 #define TXQ_PARAM_TABLE_ITEM_H
00017 
00018 // Qt includes
00019 #include <qtable.h>
00020 #include <qlineedit.h>
00021 #include <qvalidator.h>
00022 
00023 // Txq includes
00024 #include "TxqTableItem.h"
00025 
00026 
00033 class TxqParamTableItem: public TxqTableItem
00034 {
00035 public:
00036 
00046    TxqParamTableItem( QTable *t, EditType e , TxAttributeSet *a,
00047                       const QString s, const QVariant &v, int r);
00048 
00052   virtual ~TxqParamTableItem() {}
00053 
00058    QWidget *createEditor() const;
00059 
00064    void setContentFromEditor( QWidget *w );
00065 
00070    void setText( const QString &newText );
00071 
00076   virtual void setAttribValue(); 
00077     
00078 protected:
00084   virtual void setAttribValue(const TXSTD::string name, const double value);
00085 
00086 private:
00087 
00091    // QLineEdit *dLineEdit;
00092    QGuardedPtr<QLineEdit> dLineEdit;
00093 
00094 };
00095 
00096 
00097 #endif
Copyright Tech-X Corporation, all rights reserved.