VR-Forces 4.0.4 Class Documentation
include/symbology/symbolList.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2003 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: symbolList.h,v $ $Revision: 1.6 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtSymbolList_H_
00013 #define DtSymbolList_H_
00014 
00015 #include <QtCore/QObject>
00016 #include <QtCore/QSet>
00017 #include <QtCore/QList>
00018 
00019 #include "symbology/symbol.h"
00020 
00021 #include "symbology/symbologyDefines.h"
00022 class DT_DLL_symbology DtSymbolList : public QObject, public QList<DtSymbol*>
00023 {
00024    Q_OBJECT
00025 
00026 public:
00027    DtSymbolList(QObject* parent = NULL);
00028 
00029    virtual ~DtSymbolList();
00030 
00031    virtual DtSymbolList::iterator append(DtSymbol* symbol);
00032    virtual DtSymbolList::iterator insert(int i, DtSymbol* symbol);
00033    virtual bool remove(DtSymbol* symbol);
00034    virtual bool remove(uint i);
00035    virtual bool remove();
00036 
00037    virtual void clear();
00038 
00039    virtual void setAutoDelete(bool b);
00040    bool autoDelete() const;
00041 
00042    DtSymbolList& operator=(const DtSymbolList& orig);
00043    DtSymbolList(const DtSymbolList& orig);
00044 
00045    int findRef(DtSymbol*) const;
00046    int find(DtSymbol* s) const { return findRef(s); };
00047 
00048 signals:
00049    void symbolAdded(const DtSymbol* symbol);
00050 
00055    void symbolRemoved(const DtSymbol* symbol);
00056 
00057 protected:
00058    bool  myAutoDelete;
00059 };
00060 
00061 inline bool DtSymbolList::autoDelete() const
00062 {
00063    return myAutoDelete;
00064 }
00065 
00066 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)