VR-Forces 4.1 Class Documentation
symbolList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: symbolList.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSymbolList_H_
13 #define DtSymbolList_H_
14 
15 #include <QtCore/QObject>
16 #include <QtCore/QSet>
17 #include <QtCore/QList>
18 
19 #include "symbology/symbol.h"
20 
22 class DT_DLL_symbology DtSymbolList : public QObject, public QList<DtSymbol*>
23 {
24  Q_OBJECT
25 
26 public:
27  DtSymbolList(QObject* parent = NULL);
28 
29  virtual ~DtSymbolList();
30 
31  virtual DtSymbolList::iterator append(DtSymbol* symbol);
32  virtual DtSymbolList::iterator insert(int i, DtSymbol* symbol);
33  virtual bool remove(DtSymbol* symbol);
34  virtual bool remove(uint i);
35  virtual bool remove();
36 
37  virtual void clear();
38 
39  virtual void setAutoDelete(bool b);
40  bool autoDelete() const;
41 
42  DtSymbolList& operator=(const DtSymbolList& orig);
43  DtSymbolList(const DtSymbolList& orig);
44 
45  int findRef(DtSymbol*) const;
46  int find(DtSymbol* s) const { return findRef(s); };
47 
48 signals:
49  void symbolAdded(const DtSymbol* symbol);
50 
55  void symbolRemoved(const DtSymbol* symbol);
56 
57 protected:
59 };
60 
61 inline bool DtSymbolList::autoDelete() const
62 {
63  return myAutoDelete;
64 }
65 
66 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)