summaryrefslogtreecommitdiffstats
path: root/bibletime/frontend/display/cdisplay.h
diff options
context:
space:
mode:
Diffstat (limited to 'bibletime/frontend/display/cdisplay.h')
-rw-r--r--bibletime/frontend/display/cdisplay.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/bibletime/frontend/display/cdisplay.h b/bibletime/frontend/display/cdisplay.h
index d37692c..1d34f9e 100644
--- a/bibletime/frontend/display/cdisplay.h
+++ b/bibletime/frontend/display/cdisplay.h
@@ -17,9 +17,9 @@
#include "backend/cswordbackend.h"
//Qt includes
-#include <qobject.h>
-#include <qstring.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqmap.h>
class CDisplayConnections;
@@ -31,7 +31,7 @@ class CReadDisplay;
class CWriteDisplay;
-class QPopupMenu;
+class TQPopupMenu;
/** The base class for all display widgets.
* @author The BibleTime team
@@ -43,8 +43,8 @@ public:
PlainTextDisplay
};
- static CReadDisplay* createReadInstance(CReadWindow* readWindow, QWidget* parent = 0);
- static CWriteDisplay* createWriteInstance( CWriteWindow* writeWindow, const WriteDisplayType& type = PlainTextDisplay, QWidget* parent = 0 );
+ static CReadDisplay* createReadInstance(CReadWindow* readWindow, TQWidget* parent = 0);
+ static CWriteDisplay* createWriteInstance( CWriteWindow* writeWindow, const WriteDisplayType& type = PlainTextDisplay, TQWidget* parent = 0 );
enum TextType {
HTMLText, /* Used for HTML markup */
@@ -72,11 +72,11 @@ public:
/** Returns the text in the given format.
*
*/
- virtual const QString text( const CDisplay::TextType format = CDisplay::HTMLText, const CDisplay::TextPart part = CDisplay::Document ) = 0;
+ virtual const TQString text( const CDisplay::TextType format = CDisplay::HTMLText, const CDisplay::TextPart part = CDisplay::Document ) = 0;
/**
* Sets the new text for this display widget.
*/
- virtual void setText( const QString& newText ) = 0;
+ virtual void setText( const TQString& newText ) = 0;
/**
* Returns true if the display widget has a selection. Otherwise false.
*/
@@ -84,7 +84,7 @@ public:
/**
* Returns the view of this display widget.
*/
- virtual QWidget* view() = 0;
+ virtual TQWidget* view() = 0;
/**
* Selects the document text.
*/
@@ -101,11 +101,11 @@ public:
/**
* Installs the popup which should be opened when the right mouse button was pressed.
*/
- void installPopup( QPopupMenu* popup );
+ void installPopup( TQPopupMenu* popup );
/**
* Returns the popup menu which was set by installPopupMenu()
*/
- QPopupMenu* const installedPopup();
+ TQPopupMenu* const installedPopup();
virtual void zoomIn() {}
virtual void zoomOut() {}
@@ -116,19 +116,19 @@ public:
};
- virtual QMap<NodeInfoType, QString> getCurrentNodeInfo() {
- return QMap<NodeInfoType, QString>();
+ virtual TQMap<NodeInfoType, TQString> getCurrentNodeInfo() {
+ return TQMap<NodeInfoType, TQString>();
}
protected:
/**
* Used when a reference was dropped onto the widget.
*/
- void emitReferenceDropped( const QString& reference );
+ void emitReferenceDropped( const TQString& reference );
/**
* Emits the signal which used when a reference was clicked.
*/
- void emitReferenceClicked( const QString& reference );
+ void emitReferenceClicked( const TQString& reference );
protected:
CDisplay(CDisplayWindow* parent);
@@ -137,18 +137,18 @@ protected:
private:
CDisplayWindow* m_parentWindow;
CDisplayConnections* m_connections;
- QPopupMenu* m_popup;
+ TQPopupMenu* m_popup;
};
-class CDisplayConnections : public QObject {
+class CDisplayConnections : public TQObject {
Q_OBJECT
public:
CDisplayConnections( CDisplay* parent );
public slots:
virtual void selectAll();
- void emitReferenceClicked( const QString& module, const QString& key);
- void emitReferenceDropped( const QString& key );
+ void emitReferenceClicked( const TQString& module, const TQString& key);
+ void emitReferenceDropped( const TQString& key );
void emitTextChanged();
//stuff which works in every CDisplay
@@ -173,16 +173,16 @@ public slots:
void openFindTextDialog();
signals:
- void referenceClicked(const QString& module, const QString& key);
- void referenceDropped(const QString& key);
+ void referenceClicked(const TQString& module, const TQString& key);
+ void referenceDropped(const TQString& key);
void textChanged();
private:
CDisplay* m_display;
struct {
- QString module;
- QString key;
+ TQString module;
+ TQString key;
} m_referenceClickedCache;
};