diff options
Diffstat (limited to 'src/gvcore/fileviewcontroller.h')
-rw-r--r-- | src/gvcore/fileviewcontroller.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/src/gvcore/fileviewcontroller.h b/src/gvcore/fileviewcontroller.h index 81d1269..8aae0d0 100644 --- a/src/gvcore/fileviewcontroller.h +++ b/src/gvcore/fileviewcontroller.h @@ -21,10 +21,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifndef FILEVIEWCONTROLLER_H #define FILEVIEWCONTROLLER_H -// Qt -#include <qdir.h> -#include <qslider.h> -#include <qwidget.h> +// TQt +#include <tqdir.h> +#include <tqslider.h> +#include <tqwidget.h> // KDE #include <kdirlister.h> @@ -33,9 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include <kurl.h> #include "libgwenview_export.h" -class QIconViewItem; -class QListViewItem; -class QPopupMenu; +class TQIconViewItem; +class TQListViewItem; +class TQPopupMenu; class KAccel; class KAction; @@ -54,20 +54,21 @@ class ImageLoader; class DirLister; -class LIBGWENVIEW_EXPORT FileViewController : public QWidget { +class LIBGWENVIEW_EXPORT FileViewController : public TQWidget { Q_OBJECT + TQ_OBJECT public: enum Mode { FILE_LIST, THUMBNAIL}; enum FilterMode { ALL, IMAGES_ONLY, VIDEOS_ONLY }; - FileViewController(QWidget* parent,KActionCollection*); + FileViewController(TQWidget* tqparent,KActionCollection*); ~FileViewController(); // Properties void setMode(Mode); - QString fileName() const; + TQString fileName() const; KURL url() const; KURL dirURL() const; uint fileCount() const; @@ -112,7 +113,7 @@ public: public slots: void setDirURL(const KURL&); - void setFileNameToSelect(const QString&); + void setFileNameToSelect(const TQString&); void slotSelectFirst(); void slotSelectLast(); @@ -129,9 +130,9 @@ public slots: void setShowFilterBar(bool); // 'int' suck, but I don't want to #include fileviewconfig.h void setFilterMode(int); - void setFilterName(const QString&); - void setFilterFromDate(const QDate&); - void setFilterToDate(const QDate&); + void setFilterName(const TQString&); + void setFilterFromDate(const TQDate&); + void setFilterToDate(const TQDate&); void applyFilter(); signals: @@ -147,7 +148,7 @@ signals: void imageDoubleClicked(); void shownFileItemRefreshed(const KFileItem*); void sortingChanged(); - void requestContextMenu(const QPoint& pos, bool onItem); + void requestContextMenu(const TQPoint& pos, bool onItem); private slots: void delayedDirListerCompleted(); @@ -161,9 +162,9 @@ private slots: void slotViewDoubleClicked(); // These two methods forward the context menu requests from either view to - // openContextMenu(const QPoint&); - void openContextMenu(KListView*, QListViewItem*, const QPoint&); - void openContextMenu(QIconViewItem*,const QPoint&); + // openContextMenu(const TQPoint&); + void openContextMenu(KListView*, TQListViewItem*, const TQPoint&); + void openContextMenu(TQIconViewItem*,const TQPoint&); // Get called by the thumbnail mode actions void updateViewMode(); @@ -173,7 +174,7 @@ private slots: void toggleShowDotFiles(); void setSorting(); - void updateSortMenu(QDir::SortSpec); + void updateSortMenu(TQDir::SortSpec); // Dir lister slots void dirListerDeleteItem(KFileItem* item); @@ -184,7 +185,7 @@ private slots: void dirListerCanceled(); void dirListerCompleted(); - void openDropURLMenu(QDropEvent*, KFileItem*); + void openDropURLMenu(TQDropEvent*, KFileItem*); void prefetchDone(); @@ -215,18 +216,18 @@ private: KRadioAction* mSideThumbnailMode; KRadioAction* mBottomThumbnailMode; - QSlider* mSizeSlider; + TQSlider* mSizeSlider; KToggleAction* mShowDotFiles; // Temp data used by the dir lister bool mThumbnailsNeedUpdate; - QString mFileNameToSelect; + TQString mFileNameToSelect; enum ChangeDirStatusVals { CHANGE_DIR_STATUS_NONE, CHANGE_DIR_STATUS_PREV, CHANGE_DIR_STATUS_NEXT - } mChangeDirStatus; + } mChangeDirtqStatus; bool mBrowsing; bool mSelecting; @@ -245,9 +246,9 @@ private: KFileItem* findLastImage() const; KFileItem* findPreviousImage() const; KFileItem* findNextImage() const; - KFileItem* findItemByFileName(const QString& fileName) const; + KFileItem* findItemByFileName(const TQString& fileName) const; - bool eventFilter(QObject*, QEvent*); + bool eventFilter(TQObject*, TQEvent*); }; |