diff options
Diffstat (limited to 'bibletime/frontend/searchdialog/csearchanalysis.h')
-rw-r--r-- | bibletime/frontend/searchdialog/csearchanalysis.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/bibletime/frontend/searchdialog/csearchanalysis.h b/bibletime/frontend/searchdialog/csearchanalysis.h index 013efaa..6fed8ea 100644 --- a/bibletime/frontend/searchdialog/csearchanalysis.h +++ b/bibletime/frontend/searchdialog/csearchanalysis.h @@ -24,11 +24,11 @@ //Qt includes -#include <qwidget.h> -#include <qstring.h> -#include <qcanvas.h> -#include <qdict.h> -#include <qtooltip.h> +#include <tqwidget.h> +#include <tqstring.h> +#include <tqcanvas.h> +#include <tqdict.h> +#include <tqtooltip.h> //KDE includes #include <kdialog.h> @@ -36,7 +36,7 @@ #include <klistview.h> -class QTextEdit; +class TQTextEdit; namespace Search { namespace Analysis { @@ -50,26 +50,26 @@ class CSearchAnalysisView; * CSearchDialogAnaylsis shows the graphical analysis of the search result. * @author The BibleTime Team */ -class CSearchAnalysis : public QCanvas { +class CSearchAnalysis : public TQCanvas { Q_OBJECT public: - CSearchAnalysis(QObject *parent=0, const char *name=0); + CSearchAnalysis(TQObject *parent=0, const char *name=0); virtual ~CSearchAnalysis(); /** * Starts the analysis of the search result. * This should be called only once because - * QCanvas handles the updates automatically. + * TQCanvas handles the updates automatically. */ void analyse(ListCSwordModuleInfo modules); /** * This function returns a color for each module * @return The color at position index in the list */ - static QColor getColor(int index); + static TQColor getColor(int index); /* * This function returns a pointer to the list of AnalysisItems */ - QDict<CSearchAnalysisItem>* getSearchAnalysisItemList(); + TQDict<CSearchAnalysisItem>* getSearchAnalysisItemList(); void reset(); protected slots: // Protected slots @@ -85,11 +85,11 @@ private: /** * Returns the count of the book in the module */ - const unsigned int getCount( const QString book, CSwordModuleInfo* module ); + const unsigned int getCount( const TQString book, CSwordModuleInfo* module ); ListCSwordModuleInfo m_moduleList; - QDict<CSearchAnalysisItem> m_canvasItemList; - QMap<CSwordModuleInfo*,unsigned int> m_lastPosList; + TQDict<CSearchAnalysisItem> m_canvasItemList; + TQMap<CSwordModuleInfo*,unsigned int> m_lastPosList; int m_maxCount; double m_scaleFactor; CSearchAnalysisLegendItem* m_legend; @@ -102,12 +102,12 @@ public slots: // Public slots class CSearchAnalysisDialog : public KDialogBase { Q_OBJECT public: - CSearchAnalysisDialog(ListCSwordModuleInfo modules, QWidget* parentDialog); + CSearchAnalysisDialog(ListCSwordModuleInfo modules, TQWidget* parentDialog); ~CSearchAnalysisDialog(); protected: // Protected methods /** - * Initializes the widgets SIGNAL and SLOT connections,. + * Initializes the widgets TQT_SIGNAL and TQT_SLOT connections,. */ void initConnections(); @@ -128,12 +128,12 @@ private: /** Paints the bars for one book for one or more modules * */ -class CSearchAnalysisItem : public QCanvasRectangle { +class CSearchAnalysisItem : public TQCanvasRectangle { public: /** * Standard constructor. */ - CSearchAnalysisItem(QCanvas* parent, const int moduleCount, const QString& bookname, double *scaleFactor, ListCSwordModuleInfo* modules); + CSearchAnalysisItem(TQCanvas* parent, const int moduleCount, const TQString& bookname, double *scaleFactor, ListCSwordModuleInfo* modules); virtual ~CSearchAnalysisItem(); /** * Sets the resultcount of this item @@ -151,66 +151,66 @@ public: /** * Returns the tooltip for this item. */ - const QString getToolTip(); + const TQString getToolTip(); private: - virtual void draw (QPainter & painter); + virtual void draw (TQPainter & painter); ListCSwordModuleInfo* m_moduleList; double *m_scaleFactor; - QString m_bookName; + TQString m_bookName; int m_moduleCount; - QMemArray<int> m_resultCountArray; - QPixmap* m_bufferPixmap; + TQMemArray<int> m_resultCountArray; + TQPixmap* m_bufferPixmap; }; -class CSearchAnalysisLegendItem : public QCanvasRectangle { +class CSearchAnalysisLegendItem : public TQCanvasRectangle { public: - CSearchAnalysisLegendItem(QCanvas* parent, ListCSwordModuleInfo* list ); + CSearchAnalysisLegendItem(TQCanvas* parent, ListCSwordModuleInfo* list ); private: - virtual void draw (QPainter & painter); + virtual void draw (TQPainter & painter); ListCSwordModuleInfo* m_moduleList; }; //---------------------------------------------------------- //---------------------------------------------------------- -class CSearchAnalysisView : public QCanvasView { +class CSearchAnalysisView : public TQCanvasView { Q_OBJECT public: /** * Standard constructor */ - CSearchAnalysisView(QCanvas* canvas, QWidget* parent); + CSearchAnalysisView(TQCanvas* canvas, TQWidget* parent); /** * Returns the sizeHint for this view * We give back the size of the parent widgetas default. - * This is a reimplementation from QCanvasView::sizeHint(). + * This is a reimplementation from TQCanvasView::sizeHint(). */ - virtual QSize sizeHint(); + virtual TQSize sizeHint(); /** * Returns the item at position p. * If there no item at that point return 0. */ - CSearchAnalysisItem* itemAt( const QPoint& p ); + CSearchAnalysisItem* itemAt( const TQPoint& p ); protected: /** * Reimplementation. */ - virtual void resizeEvent(QResizeEvent* e); + virtual void resizeEvent(TQResizeEvent* e); private: - class ToolTip : public QToolTip { + class ToolTip : public TQToolTip { public: - ToolTip(QWidget* parent); + ToolTip(TQWidget* parent); virtual ~ToolTip() {} ; /** * Displays a tooltip for position p */ - virtual void maybeTip(const QPoint &pos); + virtual void maybeTip(const TQPoint &pos); }; ToolTip* m_toolTip; |