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

TxqStringTableItem.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqStringTableItem.h
00004 //
00005 // Purpose: Class to create a QLineEdit widget to edit a String value
00006 //
00007 // Version: $Id: TxqStringTableItem.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_STRING_TABLE_ITEM_H
00016 #define TXQ_STRING_TABLE_ITEM_H
00017 
00018 // Qt includes
00019 #include <qtable.h>
00020 #include <qlineedit.h>
00021 
00022 // Txq includes
00023 #include "TxqTableItem.h"
00024 
00025 
00030 class TxqStringTableItem: public TxqTableItem
00031 {
00032 public:
00033 
00043    TxqStringTableItem( QTable *t, EditType e , TxAttributeSet *a,
00044                       const QString s, const QVariant &v, int r);
00045 
00049   virtual ~TxqStringTableItem() {}
00050 
00055    QWidget *createEditor() const;
00056 
00061    void setContentFromEditor( QWidget *w );
00062 
00067    void setText( const QString &newText );
00068 
00073   virtual void setAttribValue(); 
00074 
00078   int TxqStringTableItem::alignment() const {return AlignRight;}
00079     
00080 protected:
00086   virtual void setAttribValue(const TXSTD::string name, const TXSTD::string value);
00087 
00088 private:
00089 
00093    QGuardedPtr<QLineEdit> lineEdit;
00094    // QLineEdit *lineEdit;
00095 
00096 };
00097 
00098 
00099 #endif
Copyright Tech-X Corporation, all rights reserved.