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

TxqPrmVecTableItem.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqPrmVecTableItem.h
00004 //
00005 // Purpose: Class to create a QTableItem to edit a PrmVec value
00006 //
00007 // Version: $Id: TxqPrmVecTableItem.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_PRMVEC_TABLE_ITEM_H
00016 #define TXQ_PRMVEC_TABLE_ITEM_H
00017 
00018 // std includes
00019 #include <vector.h>
00020 
00021 // Qt includes
00022 #include <qapplication.h> 
00023 
00024 // Txq includes
00025 #include "TxqParamTableItem.h"
00026 #include "TxqEditTable.h"
00027 
00032 class TxqPrmVecTableItem: public TxqTableItem
00033 {
00034   Q_OBJECT
00035 public:
00036 
00046    TxqPrmVecTableItem( QTable *t, EditType e , TxAttributeSet *a,
00047                       const QString s, const vector<double> &v, int r);
00048 
00052   virtual ~TxqPrmVecTableItem() {}
00053 
00054 protected:
00055 
00059   virtual void createActionMaps();
00060 
00064   virtual int getVecSize() {return (int)values.size();}
00065 
00071   virtual bool checkLabel(int section); 
00072 
00078   virtual void addSubItem(int index, int row);
00079 
00080 protected slots:
00081 
00082 private:
00083 
00087   vector<double> values;
00088 
00089 };
00090 
00091 
00092 #endif
Copyright Tech-X Corporation, all rights reserved.