diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-25 20:03:28 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-25 20:03:28 +0100 |
commit | 2ee99ab520931c5efe91123c85ba10064a45e95d (patch) | |
tree | a367666e410de28d0f258aed77b11e17cafb28e4 /sidebar/dndlistbox.h | |
parent | cfa36e1a95e82492c17225ff376911abb3688f62 (diff) | |
download | tde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.tar.gz tde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'sidebar/dndlistbox.h')
-rw-r--r-- | sidebar/dndlistbox.h | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/sidebar/dndlistbox.h b/sidebar/dndlistbox.h index b84dbcc..25e6e85 100644 --- a/sidebar/dndlistbox.h +++ b/sidebar/dndlistbox.h @@ -7,50 +7,50 @@ #endif #include <klistbox.h> -#include <qptrlist.h> -#include <qstringlist.h> +#include <tqptrlist.h> +#include <tqstringlist.h> #include "baghirasidebariface.h" class DCOPClient; -class QDragEnterEvent; -class QDragMoveEvent; -class QDragLeaveEvent; -class QDropEvent; -class QKeyEvent; -class QPoint; +class TQDragEnterEvent; +class TQDragMoveEvent; +class TQDragLeaveEvent; +class TQDropEvent; +class TQKeyEvent; +class TQPoint; class KPopupMenu; class LinkConfig; class ListBoxLink; class ListBoxDevice; -class QResizeEvent; +class TQResizeEvent; class ResizingLinkBox : public KListBox { Q_OBJECT public: - ResizingLinkBox( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); + ResizingLinkBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); ~ResizingLinkBox(){}; - void insertItem( const QListBoxItem *, int index=-1 ); - void insertItem( const QListBoxItem *lbi, const QListBoxItem *after ); - void insertItem( const QString & icon, const QString & title, const QString & url ); - void insertItem( const QString &text, int index=-1 ) + void insertItem( const TQListBoxItem *, int index=-1 ); + void insertItem( const TQListBoxItem *lbi, const TQListBoxItem *after ); + void insertItem( const TQString & icon, const TQString & title, const TQString & url ); + void insertItem( const TQString &text, int index=-1 ) { - insertItem( new QListBoxText(text), index ); + insertItem( new TQListBoxText(text), index ); } - void insertItem( const QPixmap &pixmap, int index=-1 ) + void insertItem( const TQPixmap &pixmap, int index=-1 ) { - insertItem( new QListBoxPixmap(pixmap), index ); + insertItem( new TQListBoxPixmap(pixmap), index ); } - void insertItem( const QPixmap &pixmap, const QString &text, int index=-1 ){ - insertItem( new QListBoxPixmap(pixmap, text), index ); + void insertItem( const TQPixmap &pixmap, const TQString &text, int index=-1 ){ + insertItem( new TQListBoxPixmap(pixmap, text), index ); } void removeItem( int index ); protected: - void mousePressEvent ( QMouseEvent * ); - void mouseReleaseEvent ( QMouseEvent * ); - void contentsWheelEvent ( QWheelEvent * ); + void mousePressEvent ( TQMouseEvent * ); + void mouseReleaseEvent ( TQMouseEvent * ); + void contentsWheelEvent ( TQWheelEvent * ); KPopupMenu *popupMenu; uint size_; private slots: @@ -64,24 +64,24 @@ class MediaListBox : public ResizingLinkBox, virtual public BaghiraSidebarIface { Q_OBJECT public: - MediaListBox( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); + MediaListBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); ~MediaListBox(); - ListBoxDevice *createListBoxDevice(QStringList & deviceProperties, uint n = 0); - void mediumAdded(const QString &name); - void mediumRemoved(const QString &name); - void mediumChanged(const QString &name); - int index (const QString & name ); + ListBoxDevice *createListBoxDevice(TQStringList & deviceProperties, uint n = 0); + void mediumAdded(const TQString &name); + void mediumRemoved(const TQString &name); + void mediumChanged(const TQString &name); + int index (const TQString & name ); void removeItem( int index ); protected: - void mousePressEvent ( QMouseEvent * ); - void resizeEvent ( QResizeEvent * ); + void mousePressEvent ( TQMouseEvent * ); + void resizeEvent ( TQResizeEvent * ); private: KPopupMenu *devicePopup; DCOPClient *client; ListBoxDevice *currentFloppy; - typedef QPtrList<ListBoxDevice> DeviceList; + typedef TQPtrList<ListBoxDevice> DeviceList; DeviceList deviceList; - QStringList hiddenDevices; + TQStringList hiddenDevices; private slots: void kfloppy(); void toggleDevice(int id); @@ -92,31 +92,31 @@ class DnDListBox : public ResizingLinkBox Q_OBJECT public: - DnDListBox( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); + DnDListBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); /** destructor */ ~DnDListBox(); void poof(ListBoxLink *link); protected: - void mousePressEvent ( QMouseEvent * ); - void mouseReleaseEvent ( QMouseEvent * ); - void mouseMoveEvent ( QMouseEvent * e ); - void dragEnterEvent ( QDragEnterEvent * ); -// void dragMoveEvent ( QDragMoveEvent * ); -// void dragLeaveEvent ( QDragLeaveEvent * ); - void dropEvent ( QDropEvent * ); + void mousePressEvent ( TQMouseEvent * ); + void mouseReleaseEvent ( TQMouseEvent * ); + void mouseMoveEvent ( TQMouseEvent * e ); + void dragEnterEvent ( TQDragEnterEvent * ); +// void dragMoveEvent ( TQDragMoveEvent * ); +// void dragLeaveEvent ( TQDragLeaveEvent * ); + void dropEvent ( TQDropEvent * ); void startDrag(); private: ListBoxLink *currentItem; //TODO: unshadow int KListBox::currentItem() LinkConfig *dialog; bool dragging_; - void pasteURL(int mode, QListBoxItem *after = 0); + void pasteURL(int mode, TQListBoxItem *after = 0); bool _draggedMe; int _poofIndex; - QPixmap *_poofPix; - QPixmap *_poofAnimPix; - QWidget *_poof; + TQPixmap *_poofPix; + TQPixmap *_poofAnimPix; + TQWidget *_poof; private slots: void configureLink(); void updateLink(); |