00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqStringEvent.h 00004 // 00005 // Purpose: Implementation of a QCustomEvent to include a QSring 00006 // and an index number. 00007 // 00008 // Version: $Id: TxqStringEvent.h,v 1.2 2002/02/08 23:28:26 kgl Exp $ 00009 // 00010 // Copyright (c) 2002 by Tech-X Corporation. All rights reserved. 00011 // 00012 // Author: Kelly G. Luetkemeyer 00013 // 00014 //-------------------------------------------------------------------- 00015 // 00016 00017 #ifndef TXQ_STRING_EVENT_H 00018 #define TXQ_STRING_EVENT_H 00019 00020 // Qt includes 00021 #include <qevent.h> 00022 00023 class TxqStringEvent: public QCustomEvent 00024 { 00025 public: 00026 00040 TxqStringEvent(int eventNumber, int i, QString s) : QCustomEvent(eventNumber) { 00041 index = i; 00042 label = s; 00043 } 00044 00049 QString getLabel() {return label;} 00050 00055 int getIndex() {return index;} 00056 00057 private: 00058 00062 QString label; 00063 00067 int index; 00068 }; 00069 00070 #endif
Copyright Tech-X Corporation, all rights reserved.