summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/set.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty/set.h')
-rw-r--r--lib/koproperty/set.h56
1 files changed, 29 insertions, 27 deletions
diff --git a/lib/koproperty/set.h b/lib/koproperty/set.h
index f7c455ed..567bcdad 100644
--- a/lib/koproperty/set.h
+++ b/lib/koproperty/set.h
@@ -23,8 +23,8 @@
#define KPROPERTY_SET_H
#include "koproperty_global.h"
-#include <qobject.h>
-#include <qasciidict.h>
+#include <tqobject.h>
+#include <tqasciidict.h>
namespace KoProperty {
@@ -37,13 +37,14 @@ class SetPrivate;
\author Alexander Dymo <cloudtemple@mskat.net>
\author Jaroslaw Staniek <js@iidea.pl>
*/
-class KOPROPERTY_EXPORT Set : public QObject
+class KOPROPERTY_EXPORT Set : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/*! \brief A class to iterate over a Set.
- It behaves like a QDictIterator. To use it:
+ It behaves like a TQDictIterator. To use it:
\code for(Set::Iterator it(set); it.current(); ++it) { .... }
\endcode
\author Cedric Pasteur <cedric.pasteur@free.fr>
@@ -56,32 +57,32 @@ class KOPROPERTY_EXPORT Set : public QObject
void operator ++();
Property* operator *() const;
- QCString currentKey() const;
+ TQCString currentKey() const;
Property* current() const;
private:
- QAsciiDictIterator<Property> *iterator;
+ TQAsciiDictIterator<Property> *iterator;
friend class Set;
};
- explicit Set(QObject *parent=0, const QString &typeName=QString::null);
+ explicit Set(TQObject *tqparent=0, const TQString &typeName=TQString());
/*! Constructs a deep copy of \a set.
- The new object will not have a QObject parent even if \a set has such parent. */
+ The new object will not have a TQObject tqparent even if \a set has such tqparent. */
explicit Set(const Set& set);
virtual ~Set();
/*! Adds the property to the set, in the group. You can use any group name, except "common"
(which is already used for basic group). */
- void addProperty(Property *property, QCString group = "common");
+ void addProperty(Property *property, TQCString group = "common");
/*! Removes property from the set. Emits aboutToDeleteProperty before removing.*/
void removeProperty(Property *property);
/*! Removes property with the given name from the set.
Emits aboutToDeleteProperty() before removing.*/
- void removeProperty(const QCString &name);
+ void removeProperty(const TQCString &name);
/*! Removes all properties from the property set and destroys them. */
virtual void clear();
@@ -106,63 +107,63 @@ class KOPROPERTY_EXPORT Set : public QObject
void setReadOnly(bool readOnly);
/*! \return true if the set contains property names \a name. */
- bool contains(const QCString &name) const;
+ bool tqcontains(const TQCString &name) const;
/*! \return property named with \a name. If no such property is found,
null property (Property::null) is returned. */
- Property& property( const QCString &name) const;
+ Property& property( const TQCString &name) const;
/*! Accesses a property by it's name.
Property reference is returned, so all property modifications are allowed.
If there is no such property, null property is returned,
- so it's good practice to use contains() is you're unsure if the property exists.
+ so it's good practice to use tqcontains() is you're unsure if the property exists.
For example, to set a value of a property, use:
/code
Set set;
...
- if (!set.contains("myProperty")) {
+ if (!set.tqcontains("myProperty")) {
dosomething;
}
set["myProperty"].setValue("My Value");
/endcode
\return \ref Property with given name. */
- Property& operator[](const QCString &name) const;
+ Property& operator[](const TQCString &name) const;
/*! Creates a deep copy of \a set and assigns it to this property set. */
const Set& operator= (const Set &set);
/*! Change the value of property whose key is \a property to \a value.
By default, it only calls Property::setValue(). */
- void changeProperty(const QCString &property, const QVariant &value);
+ void changeProperty(const TQCString &property, const TQVariant &value);
/*! Sets the i18n'ed string that will be shown in Editor to represent
\a group. */
- void setGroupDescription(const QCString &group, const QString& desc);
+ void setGroupDescription(const TQCString &group, const TQString& desc);
/*! \return the i18n'ed description string for \a group that will
be shown in Editor to represent \a group. If there is no special
description set for the group, \a group is just returned. */
- QString groupDescription(const QCString &group) const;
+ TQString groupDescription(const TQCString &group) const;
/*! Sets the icon name \a icon to be displayed for \a group. */
- void setGroupIcon(const QCString &group, const QString& icon);
+ void setGroupIcon(const TQCString &group, const TQString& icon);
/*! \return the icons name for \a group. */
- QString groupIcon(const QCString &group) const;
+ TQString groupIcon(const TQCString &group) const;
/*! \return a list of all group names. The order is the same as the order
of creation. */
- const QValueList<QCString>& groupNames() const;
+ const TQValueList<TQCString>& groupNames() const;
/*! \return a list of all property names. The order is the same as the order
of creation. */
- const QValueList<QCString>& propertyNamesForGroup(const QCString &group) const;
+ const TQValueList<TQCString>& propertyNamesForGroup(const TQCString &group) const;
/*! Used by property editor to preserve previous selection when this set
is assigned again. */
- QCString prevSelection() const;
+ TQCString prevSelection() const;
- void setPrevSelection(const QCString& prevSelection);
+ void setPrevSelection(const TQCString& prevSelection);
/*! A name of this property set type, that is usable when
we want to know if two property set objects have the same type.
@@ -170,7 +171,7 @@ class KOPROPERTY_EXPORT Set : public QObject
Also, this allows to know if two property set objects are compatible
by their property sets.
For comparing purposes, type names are case insensitive.*/
- QString typeName() const;
+ TQString typeName() const;
/*! Prints debug output for this set. */
void debug();
@@ -180,7 +181,7 @@ class KOPROPERTY_EXPORT Set : public QObject
Set(bool propertyOwner);
/*! Adds property to a group.*/
- void addToGroup(const QCString &group, Property *property);
+ void addToGroup(const TQCString &group, Property *property);
/*! Removes property from a group.*/
void removeFromGroup(Property *property);
@@ -189,7 +190,7 @@ class KOPROPERTY_EXPORT Set : public QObject
(which is already used for basic group). If \a updateSortingKey is true, the sorting key
will be set automatically to count().
@internal */
- void addPropertyInternal(Property *property, QCString group, bool updateSortingKey);
+ void addPropertyInternal(Property *property, TQCString group, bool updateSortingKey);
/*! @internal used to declare that \a property wants to be informed
that the set has been cleared (all properties are deleted) */
@@ -233,6 +234,7 @@ class KOPROPERTY_EXPORT Set : public QObject
class KOPROPERTY_EXPORT Buffer : public Set
{
Q_OBJECT
+ TQ_OBJECT
public:
Buffer();