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

TxqOptionTableItem.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqOptionTableItem.h
00004 //
00005 // Purpose: Class to create a QLineEdit widget to edit a Option value
00006 //
00007 // Version: $Id: TxqOptionTableItem.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_OPTION_TABLE_ITEM_H
00016 #define TXQ_OPTION_TABLE_ITEM_H
00017 
00018 // Qt includes
00019 #include <qtable.h>
00020 #include <qspinbox.h>
00021 #include <qvalidator.h>
00022 
00023 // Txq includes
00024 #include "TxqTableItem.h"
00025 
00026 
00033 class TxqOptionTableItem: public TxqTableItem
00034 {
00035 public:
00036 
00046    TxqOptionTableItem( QTable *t, EditType e , TxAttributeSet *a, const QString s, const QVariant &v, int r);
00047 
00051    virtual ~TxqOptionTableItem() {}
00056    QWidget *createEditor() const;
00057 
00062    void setContentFromEditor( QWidget *w );
00063 
00068    void setText( const QString &newText );
00069 
00074   virtual void setAttribValue();
00075     
00076 protected:
00077 
00083   virtual void setAttribValue(const TXSTD::string name, const int value);
00084 
00085 private:
00086 
00090    QGuardedPtr<QSpinBox> spinBox;
00091    // QSpinBox *spinBox;
00092 
00093 };
00094 
00095 
00096 #endif
Copyright Tech-X Corporation, all rights reserved.