diff options
Diffstat (limited to 'src/itemgroup.h')
-rw-r--r-- | src/itemgroup.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/itemgroup.h b/src/itemgroup.h index 6913165..bf31cc1 100644 --- a/src/itemgroup.h +++ b/src/itemgroup.h @@ -11,7 +11,7 @@ #ifndef ITEMGROUP_H #define ITEMGROUP_H -#include <qguardedptr.h> +#include <tqguardedptr.h> class Item; class ICNDocument; @@ -21,19 +21,20 @@ class ItemGroup; class MechanicsDocument; class Variant; -typedef QValueList<QGuardedPtr<Item> > ItemList; +typedef TQValueList<TQGuardedPtr<Item> > ItemList; -class QCanvasItem; -class QCanvasItemList; +class TQCanvasItem; +class TQCanvasItemList; /** Generic base class for controlling a selection of Item. Provides some functionality such as for dealing with item data @author David Saxton */ -class ItemGroup : public QObject +class ItemGroup : public TQObject { Q_OBJECT + TQ_OBJECT public: ItemGroup( ItemDocument *view, const char *name = 0 ); virtual ~ItemGroup(); @@ -45,10 +46,10 @@ public: */ Item *activeItem() const { return m_activeItem; } uint itemCount() const { return m_itemList.count(); } - virtual bool addQCanvasItem( QCanvasItem *qcanvasItem ) = 0; - virtual void setItems( QCanvasItemList list ) = 0; - virtual void removeQCanvasItem( QCanvasItem *qcanvasItem ) = 0; - virtual bool contains( QCanvasItem *qcanvasItem ) const = 0; + virtual bool addTQCanvasItem( TQCanvasItem *qcanvasItem ) = 0; + virtual void setItems( TQCanvasItemList list ) = 0; + virtual void removeTQCanvasItem( TQCanvasItem *qcanvasItem ) = 0; + virtual bool tqcontains( TQCanvasItem *qcanvasItem ) const = 0; virtual uint count() const = 0; bool isEmpty() const { return (count() == 0); } virtual void mergeGroup( ItemGroup *group ) = 0; @@ -56,7 +57,7 @@ public: virtual void deleteAllItems() = 0; /** * Returns a list of all the Items in the group. - * @param excludeParented whether to return items whose (grand-) parents are + * @param excludeParented whether to return items whose (grand-) tqparents are * already in the list. */ ItemList items( bool excludeParented = true ) const; @@ -74,7 +75,7 @@ public: * Returns truee iff either there are no items, or itemsAreSameType and the * value of the data with the given id is the same for each item */ - bool itemsHaveSameDataValue( const QString &id ) const; + bool itemsHaveSameDataValue( const TQString &id ) const; /** * Returns true iff all the iff itemsHaveSameData() returns true and the * value of the data are the defaults @@ -123,7 +124,7 @@ protected: * Subclasses must call this to unregister the item with the data interface */ void unregisterItem( Item *item ); - void updateAreSameStatus(); + void updateAreSametqStatus(); ItemList m_itemList; bool b_itemsAreSameType; |