diff options
Diffstat (limited to 'bibletime/frontend/cdragdropmgr.h')
-rw-r--r-- | bibletime/frontend/cdragdropmgr.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/bibletime/frontend/cdragdropmgr.h b/bibletime/frontend/cdragdropmgr.h index 01f0ff3..904aa15 100644 --- a/bibletime/frontend/cdragdropmgr.h +++ b/bibletime/frontend/cdragdropmgr.h @@ -13,14 +13,14 @@ #define CDRAGDROPMGR_H //Qt includes -#include <qstring.h> -#include <qcstring.h> -#include <qdragobject.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqcstring.h> +#include <tqdragobject.h> +#include <tqvaluelist.h> //forward declarations -class QDropEvent; -class QWidget; +class TQDropEvent; +class TQWidget; /** This class is the drag'n' drop manager for BibleTime. * The dnd is managed by XML code, which defines the type of the drag/drop, the items and the action (moe, copy etc.). @@ -57,19 +57,19 @@ public: /** * Returns the key, ony valid if type() == Bookmark */ - const QString& bookmarkKey() const; + const TQString& bookmarkKey() const; /** * Returns the module name, ony valid if type() == Bookmark */ - const QString& bookmarkModule() const; + const TQString& bookmarkModule() const; /** * Returns the bookmark description, ony valid if type() == Bookmark */ - const QString& bookmarkDescription() const; + const TQString& bookmarkDescription() const; /** * Returns the text which is used by this DragDrop Item, only valid if type() == Text */ - const QString& text() const; + const TQString& text() const; // protected: friend class CDragDropMgr; @@ -82,69 +82,69 @@ public: * This constructor automatically sets the type member to Text * This is also the default constructor */ - Item(const QString& text = QString::null ); + Item(const TQString& text = TQString::null ); /** Constructor for a Bookmark item * This constructor automatically sets the type member to Bookmark */ - Item(const QString& moduleName, const QString& key, const QString& description); + Item(const TQString& moduleName, const TQString& key, const TQString& description); virtual ~Item(); private: Type m_type; //the member to save the type of the action - QString m_bookmarkModuleName; //the modules which is used by this item, only valid for type() == Bookmark - QString m_bookmarkKey; //the key of a bookmark, only valid if type() == Bookmark - QString m_bookmarkDescription; //the description of a bookmark, only valid if type() == Bookmark - QString m_text; //the text of this item, only valid if type() == Text + TQString m_bookmarkModuleName; //the modules which is used by this item, only valid for type() == Bookmark + TQString m_bookmarkKey; //the key of a bookmark, only valid if type() == Bookmark + TQString m_bookmarkDescription; //the description of a bookmark, only valid if type() == Bookmark + TQString m_text; //the text of this item, only valid if type() == Text } ; //end of class CDragDropMgr::Item //the item list we're using - typedef QValueList<Item> ItemList; + typedef TQValueList<Item> ItemList; /** Return whether the drop should be accepted * This functions tests whether the drop should be accepted or not. It returns true if the drop object * is supported by the CDragDropMgr and if it cotains valid data. Oterwise this function returns false. */ - static const bool canDecode( const QMimeSource* const mime ); + static const bool canDecode( const TQMimeSource* const mime ); /** * This function returns the drag object with the data which represents the items given as parameter * If the list is invalid or empty we return NULL. */ - static QDragObject* const dragObject( CDragDropMgr::ItemList& items, QWidget* dragSource ); + static TQDragObject* const dragObject( CDragDropMgr::ItemList& items, TQWidget* dragSource ); /** * Decodes the XML stuff we passed to the dragObject at creation time. * Returns a list of CDragDropMgr::Item objects. * If it's a wrong dropEvent we return an empty ist */ - static CDragDropMgr::ItemList decode( const QMimeSource* const src ); + static CDragDropMgr::ItemList decode( const TQMimeSource* const src ); /** * Returns which type the given drop event has, if it's a mixed one (both bookmarks and plain text), * which shouldn't happen, it return Item::Unknown. * It also returns Unknown if the drop event is not supported. */ - static CDragDropMgr::Item::Type dndType( const QMimeSource* e ); + static CDragDropMgr::Item::Type dndType( const TQMimeSource* e ); protected: //The class which represents our XML drag object stuff -class BTDrag : public QTextDrag { +class BTDrag : public TQTextDrag { public: - BTDrag( const QString& xml, QWidget* dragSource = 0, const char* name = 0); + BTDrag( const TQString& xml, TQWidget* dragSource = 0, const char* name = 0); //reimplemented static publoc function to provide functionality for BibleTime XML drags - static bool canDecode( const QMimeSource * e ); + static bool canDecode( const TQMimeSource * e ); virtual bool provides( const char* type ) const; virtual const char* format( int i = 0 ) const; - virtual QByteArray encodedData( const char* type ) const; + virtual TQByteArray encodedData( const char* type ) const; protected: friend class CDragDropMgr; //made protected because the BibleTime classes may not manage the data of BTDrag - // virtual void setText(const QString& text); + // virtual void setText(const TQString& text); //made protected because the BibleTime classes should not manage the DRag&Drop stuff themself - static bool decode(const QMimeSource* e, QString& str); - static bool decode(const QMimeSource* e, QString& str, QCString& subtype); + static bool decode(const TQMimeSource* e, TQString& str); + static bool decode(const TQMimeSource* e, TQString& str, TQCString& subtype); }; //protected constructor and destructor because we do not allow inheritance, functionality is provided by static functions |