00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqOptVecTableItem.h 00004 // 00005 // Purpose: Class to create a QTableItem to edit a TxAttributeSet 00006 // OptVec value. An OptVec is a vector of integers 00007 // in a TxAttributeSet. 00008 // 00009 // Version: $Id: TxqOptVecTableItem.h,v 1.2 2001/11/04 16:54:17 kgl Exp $ 00010 // 00011 // Copyright (c) 2001 by Tech-X Corporation. All rights reserved. 00012 // 00013 // Author: Kelly G. Luetkemeyer 00014 // 00015 //-------------------------------------------------------------------- 00016 00017 #ifndef TXQ_OPT_VEC_TABLE_ITEM_H 00018 #define TXQ_OPT_VEC_TABLE_ITEM_H 00019 00020 // std includes 00021 #include <vector.h> 00022 00023 // Qt includes 00024 #include <qapplication.h> 00025 00026 // Txq includes 00027 #include "TxqOptionTableItem.h" 00028 #include "TxqEditTable.h" 00029 00034 class TxqOptVecTableItem: public TxqTableItem 00035 { 00036 Q_OBJECT 00037 public: 00038 00048 TxqOptVecTableItem( QTable *t, EditType e , TxAttributeSet *a, 00049 const QString s, const vector<int> &v, int r); 00050 00054 virtual ~TxqOptVecTableItem() {} 00055 00056 protected: 00057 00061 virtual void createActionMaps(); 00062 00066 virtual int getVecSize() {return (int)values.size();} 00067 00073 virtual bool checkLabel(int section); 00074 00080 virtual void addSubItem(int index, int row); 00081 00082 protected slots: 00083 00084 private: 00088 vector<int> values; 00089 00090 }; 00091 00092 00093 #endif
Copyright Tech-X Corporation, all rights reserved.