diff options
Diffstat (limited to 'src/kvilib/tal/kvi_tal_listbox_qt3.h')
-rw-r--r-- | src/kvilib/tal/kvi_tal_listbox_qt3.h | 107 |
1 files changed, 54 insertions, 53 deletions
diff --git a/src/kvilib/tal/kvi_tal_listbox_qt3.h b/src/kvilib/tal/kvi_tal_listbox_qt3.h index d65b7929..dcc3c0d9 100644 --- a/src/kvilib/tal/kvi_tal_listbox_qt3.h +++ b/src/kvilib/tal/kvi_tal_listbox_qt3.h @@ -27,82 +27,83 @@ #include "kvi_settings.h" #include "kvi_qstring.h" -#include <qlistbox.h> +#include <tqlistbox.h> class KviTalListBoxItem; -class KVILIB_API KviTalListBox : public QListBox +class KVILIB_API KviTalListBox : public TQListBox { Q_OBJECT + TQ_OBJECT public: - KviTalListBox(QWidget * pParent,Qt::WFlags f = 0); + KviTalListBox(TQWidget * pParent,TQt::WFlags f = 0); virtual ~KviTalListBox() {}; public: - KviTalListBoxItem * firstItem() const { return (KviTalListBoxItem *)QListBox::firstItem(); }; - KviTalListBoxItem * selectedItem() const { return (KviTalListBoxItem *)QListBox::selectedItem(); }; - KviTalListBoxItem * item(int iIndex) const { return (KviTalListBoxItem *)QListBox::item(iIndex); }; + KviTalListBoxItem * firstItem() const { return (KviTalListBoxItem *)TQListBox::firstItem(); }; + KviTalListBoxItem * selectedItem() const { return (KviTalListBoxItem *)TQListBox::selectedItem(); }; + KviTalListBoxItem * item(int iIndex) const { return (KviTalListBoxItem *)TQListBox::item(iIndex); }; signals: void highlighted(KviTalListBoxItem *); void selected(KviTalListBoxItem *); void selectionChanged(KviTalListBoxItem * item); void currentChanged(KviTalListBoxItem * item); void clicked(KviTalListBoxItem * item); - void clicked(KviTalListBoxItem * item,const QPoint & pnt); + void clicked(KviTalListBoxItem * item,const TQPoint & pnt); void pressed(KviTalListBoxItem * item); - void pressed(KviTalListBoxItem * item,const QPoint & pnt); + void pressed(KviTalListBoxItem * item,const TQPoint & pnt); void doubleClicked(KviTalListBoxItem * item); void returnPressed(KviTalListBoxItem * item); - void rightButtonClicked(KviTalListBoxItem *, const QPoint &); - void rightButtonPressed(KviTalListBoxItem *, const QPoint &); - void mouseButtonPressed(int button,KviTalListBoxItem * item,const QPoint & pos); - void mouseButtonClicked(int button,KviTalListBoxItem * item,const QPoint & pos); - void contextMenuRequested(KviTalListBoxItem * item,const QPoint & pos); + void rightButtonClicked(KviTalListBoxItem *, const TQPoint &); + void rightButtonPressed(KviTalListBoxItem *, const TQPoint &); + void mouseButtonPressed(int button,KviTalListBoxItem * item,const TQPoint & pos); + void mouseButtonClicked(int button,KviTalListBoxItem * item,const TQPoint & pos); + void contextMenuRequested(KviTalListBoxItem * item,const TQPoint & pos); void onItem(KviTalListBoxItem * i); protected slots: - void redirect_highlighted(QListBoxItem *item); - void redirect_selected(QListBoxItem *item); - void redirect_selectionChanged(QListBoxItem * item); - void redirect_currentChanged(QListBoxItem * item); - void redirect_clicked(QListBoxItem * item); - void redirect_clicked(QListBoxItem * item,const QPoint & pnt); - void redirect_pressed(QListBoxItem * item); - void redirect_pressed(QListBoxItem * item,const QPoint & pnt); - void redirect_doubleClicked(QListBoxItem * item); - void redirect_returnPressed(QListBoxItem * item); - void redirect_rightButtonClicked(QListBoxItem * item, const QPoint &pnt); - void redirect_rightButtonPressed(QListBoxItem * item, const QPoint &pnt); - void redirect_mouseButtonPressed(int button,QListBoxItem * item,const QPoint & pos); - void redirect_mouseButtonClicked(int button,QListBoxItem * item,const QPoint & pos); - void redirect_contextMenuRequested(QListBoxItem * item,const QPoint & pos); - void redirect_onItem(QListBoxItem * i); + void redirect_highlighted(TQListBoxItem *item); + void redirect_selected(TQListBoxItem *item); + void redirect_selectionChanged(TQListBoxItem * item); + void redirect_currentChanged(TQListBoxItem * item); + void redirect_clicked(TQListBoxItem * item); + void redirect_clicked(TQListBoxItem * item,const TQPoint & pnt); + void redirect_pressed(TQListBoxItem * item); + void redirect_pressed(TQListBoxItem * item,const TQPoint & pnt); + void redirect_doubleClicked(TQListBoxItem * item); + void redirect_returnPressed(TQListBoxItem * item); + void redirect_rightButtonClicked(TQListBoxItem * item, const TQPoint &pnt); + void redirect_rightButtonPressed(TQListBoxItem * item, const TQPoint &pnt); + void redirect_mouseButtonPressed(int button,TQListBoxItem * item,const TQPoint & pos); + void redirect_mouseButtonClicked(int button,TQListBoxItem * item,const TQPoint & pos); + void redirect_contextMenuRequested(TQListBoxItem * item,const TQPoint & pos); + void redirect_onItem(TQListBoxItem * i); }; -class KVILIB_API KviTalListBoxItem : public QListBoxItem +class KVILIB_API KviTalListBoxItem : public TQListBoxItem { public: KviTalListBoxItem() - : QListBoxItem() {}; + : TQListBoxItem() {}; KviTalListBoxItem(KviTalListBox * pParent) - : QListBoxItem(pParent) {}; + : TQListBoxItem(pParent) {}; KviTalListBoxItem(KviTalListBox * pParent,KviTalListBoxItem * pAfter) - : QListBoxItem(pParent,pAfter) {}; + : TQListBoxItem(pParent,pAfter) {}; virtual ~KviTalListBoxItem() {}; public: - KviTalListBoxItem * next() const { return (KviTalListBoxItem *)QListBoxItem::next(); }; - KviTalListBoxItem * prev() const { return (KviTalListBoxItem *)QListBoxItem::prev(); }; - KviTalListBox * listBox() const { return (KviTalListBox *)QListBoxItem::listBox(); }; + KviTalListBoxItem * next() const { return (KviTalListBoxItem *)TQListBoxItem::next(); }; + KviTalListBoxItem * prev() const { return (KviTalListBoxItem *)TQListBoxItem::prev(); }; + KviTalListBox * listBox() const { return (KviTalListBox *)TQListBoxItem::listBox(); }; virtual int height(const KviTalListBox *) const { return 0; }; - int height(const QListBox *lb) const { return height((KviTalListBox *)lb); }; + int height(const TQListBox *lb) const { return height((KviTalListBox *)lb); }; virtual int width(const KviTalListBox *) const { return 0; }; - int width(const QListBox *lb) const { return width((KviTalListBox *)lb); }; + int width(const TQListBox *lb) const { return width((KviTalListBox *)lb); }; }; class KVILIB_API KviTalListBoxText : public KviTalListBoxItem { public: - KviTalListBoxText( KviTalListBox* listbox, const QString & text=QString::null ); - KviTalListBoxText( const QString & text=QString::null ); - KviTalListBoxText( KviTalListBox* listbox, const QString & text, KviTalListBoxItem *after ); + KviTalListBoxText( KviTalListBox* listbox, const TQString & text=TQString() ); + KviTalListBoxText( const TQString & text=TQString() ); + KviTalListBoxText( KviTalListBox* listbox, const TQString & text, KviTalListBoxItem *after ); ~KviTalListBoxText(); int height( const KviTalListBox * ) const; @@ -112,10 +113,10 @@ public: static int RTTI; protected: - virtual void paint( QPainter * ); + virtual void paint( TQPainter * ); private: // Disabled copy constructor and operator= -#if defined(Q_DISABLE_COPY) +#if defined(TQ_DISABLE_COPY) KviTalListBoxText( const KviTalListBoxText & ); KviTalListBoxText &operator=( const KviTalListBoxText & ); #endif @@ -125,15 +126,15 @@ private: // Disabled copy constructor and operator= class KVILIB_API KviTalListBoxPixmap : public KviTalListBoxItem { public: - KviTalListBoxPixmap( KviTalListBox* listbox, const QPixmap & ); - KviTalListBoxPixmap( const QPixmap & ); - KviTalListBoxPixmap( KviTalListBox* listbox, const QPixmap & pix, KviTalListBoxItem *after ); - KviTalListBoxPixmap( KviTalListBox* listbox, const QPixmap &, const QString& ); - KviTalListBoxPixmap( const QPixmap &, const QString& ); - KviTalListBoxPixmap( KviTalListBox* listbox, const QPixmap & pix, const QString&, KviTalListBoxItem *after ); + KviTalListBoxPixmap( KviTalListBox* listbox, const TQPixmap & ); + KviTalListBoxPixmap( const TQPixmap & ); + KviTalListBoxPixmap( KviTalListBox* listbox, const TQPixmap & pix, KviTalListBoxItem *after ); + KviTalListBoxPixmap( KviTalListBox* listbox, const TQPixmap &, const TQString& ); + KviTalListBoxPixmap( const TQPixmap &, const TQString& ); + KviTalListBoxPixmap( KviTalListBox* listbox, const TQPixmap & pix, const TQString&, KviTalListBoxItem *after ); ~KviTalListBoxPixmap(); - const QPixmap *pixmap() const { return ± } + const TQPixmap *pixmap() const { return ± } int height( const KviTalListBox * ) const; int width( const KviTalListBox * ) const; @@ -142,12 +143,12 @@ public: static int RTTI; protected: - virtual void paint( QPainter * ); + virtual void paint( TQPainter * ); private: - QPixmap pm; + TQPixmap pm; private: // Disabled copy constructor and operator= -#if defined(Q_DISABLE_COPY) +#if defined(TQ_DISABLE_COPY) KviTalListBoxPixmap( const KviTalListBoxPixmap & ); KviTalListBoxPixmap &operator=( const KviTalListBoxPixmap & ); #endif |