diff options
Diffstat (limited to 'src/gvcore/fileviewcontroller.cpp')
-rw-r--r-- | src/gvcore/fileviewcontroller.cpp | 176 |
1 files changed, 88 insertions, 88 deletions
diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp index b5c073d..4426658 100644 --- a/src/gvcore/fileviewcontroller.cpp +++ b/src/gvcore/fileviewcontroller.cpp @@ -199,18 +199,18 @@ public: mFilterBar->mResetTo->setIconSet(resetIS); TQObject::connect( - mFilterBar->mResetNameCombo, TQT_SIGNAL(clicked()), - that, TQT_SLOT(resetNameFilter()) ); + mFilterBar->mResetNameCombo, TQ_SIGNAL(clicked()), + that, TQ_SLOT(resetNameFilter()) ); TQObject::connect( - mFilterBar->mResetFrom, TQT_SIGNAL(clicked()), - that, TQT_SLOT(resetFromFilter()) ); + mFilterBar->mResetFrom, TQ_SIGNAL(clicked()), + that, TQ_SLOT(resetFromFilter()) ); TQObject::connect( - mFilterBar->mResetTo, TQT_SIGNAL(clicked()), - that, TQT_SLOT(resetToFilter()) ); + mFilterBar->mResetTo, TQ_SIGNAL(clicked()), + that, TQ_SLOT(resetToFilter()) ); TQObject::connect( - mFilterBar->mFilterButton, TQT_SIGNAL(clicked()), - that, TQT_SLOT(applyFilter()) ); + mFilterBar->mFilterButton, TQ_SIGNAL(clicked()), + that, TQ_SLOT(applyFilter()) ); } void initFilterCombo() { @@ -223,16 +223,16 @@ public: mFilterComboBox->insertItem(i18n("Videos only"), VIDEOS_ONLY); TQObject::connect( - mFilterComboBox, TQT_SIGNAL(activated(int)), - that, TQT_SLOT(applyFilter()) ); + mFilterComboBox, TQ_SIGNAL(activated(int)), + that, TQ_SLOT(applyFilter()) ); mShowFilterBarCheckBox = new TQCheckBox(i18n("More"), mFilterHBox); TQObject::connect( - mShowFilterBarCheckBox, TQT_SIGNAL(toggled(bool)), - mFilterBar, TQT_SLOT(setShown(bool)) ); + mShowFilterBarCheckBox, TQ_SIGNAL(toggled(bool)), + mFilterBar, TQ_SLOT(setShown(bool)) ); TQObject::connect( - mShowFilterBarCheckBox, TQT_SIGNAL(toggled(bool)), - that, TQT_SLOT(applyFilter()) ); + mShowFilterBarCheckBox, TQ_SIGNAL(toggled(bool)), + that, TQ_SLOT(applyFilter()) ); } @@ -275,36 +275,36 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act // Actions mSelectFirst=new TDEAction(i18n("&First"), TQApplication::reverseLayout() ? "2rightarrow":"2leftarrow", Key_Home, - this,TQT_SLOT(slotSelectFirst()), actionCollection, "first"); + this,TQ_SLOT(slotSelectFirst()), actionCollection, "first"); mSelectLast=new TDEAction(i18n("&Last"), TQApplication::reverseLayout() ? "2leftarrow":"2rightarrow", Key_End, - this,TQT_SLOT(slotSelectLast()), actionCollection, "last"); + this,TQ_SLOT(slotSelectLast()), actionCollection, "last"); mSelectPrevious=new TDEAction(i18n("&Previous"), TQApplication::reverseLayout() ? "1rightarrow":"1leftarrow", Key_BackSpace, - this,TQT_SLOT(slotSelectPrevious()), actionCollection, "previous"); + this,TQ_SLOT(slotSelectPrevious()), actionCollection, "previous"); mSelectNext=new TDEAction(i18n("&Next"), TQApplication::reverseLayout() ? "1leftarrow":"1rightarrow", Key_Space, - this,TQT_SLOT(slotSelectNext()), actionCollection, "next"); + this,TQ_SLOT(slotSelectNext()), actionCollection, "next"); mSelectPreviousDir=new TDEAction(i18n("&Previous Folder"), TQApplication::reverseLayout() ? "media-seek-forward":"media-seek-backward", ALT + Key_BackSpace, - this,TQT_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder"); + this,TQ_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder"); mSelectNextDir=new TDEAction(i18n("&Next Folder"), TQApplication::reverseLayout() ? "media-seek-backward":"media-seek-forward", ALT + Key_Space, - this,TQT_SLOT(slotSelectNextDir()), actionCollection, "next_folder"); + this,TQ_SLOT(slotSelectNextDir()), actionCollection, "next_folder"); mSelectFirstSubDir=new TDEAction(i18n("&First Sub Folder"), "go-down", ALT + Key_Down, - this,TQT_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder"); + this,TQ_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder"); - mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,this,TQT_SLOT(updateViewMode()),actionCollection,"list_mode"); + mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,this,TQ_SLOT(updateViewMode()),actionCollection,"list_mode"); mListMode->setExclusiveGroup("thumbnails"); - mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,this,TQT_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode"); + mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,this,TQ_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode"); mSideThumbnailMode->setExclusiveGroup("thumbnails"); - mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,this,TQT_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode"); + mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,this,TQ_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode"); mBottomThumbnailMode->setExclusiveGroup("thumbnails"); // Size slider @@ -315,21 +315,21 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act ThumbnailSize::LARGE/SLIDER_RESOLUTION); mSizeSlider->setValue(FileViewConfig::thumbnailSize() / SLIDER_RESOLUTION); - connect(mSizeSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateThumbnailSize(int)) ); - connect(mListMode, TQT_SIGNAL(toggled(bool)), mSizeSlider, TQT_SLOT(setDisabled(bool)) ); + connect(mSizeSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateThumbnailSize(int)) ); + connect(mListMode, TQ_SIGNAL(toggled(bool)), mSizeSlider, TQ_SLOT(setDisabled(bool)) ); TDEAction* sliderAction=new KWidgetAction(mSizeSlider, i18n("Thumbnail Size"), 0, 0, 0, actionCollection, "size_slider"); d->mSliderTracker=new TipTracker("", mSizeSlider); // /Size slider - mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,this,TQT_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files"); + mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,this,TQ_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files"); - d->mSortAction=new TDESelectAction(i18n("Sort"), 0, this, TQT_SLOT(setSorting()), actionCollection, "view_sort"); + d->mSortAction=new TDESelectAction(i18n("Sort"), 0, this, TQ_SLOT(setSorting()), actionCollection, "view_sort"); TQStringList sortItems; sortItems << i18n("By Name") << i18n("By Date") << i18n("By Size"); d->mSortAction->setItems(sortItems); d->mSortAction->setCurrentItem(0); - d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, this, TQT_SLOT(setSorting()), actionCollection, "descending"); + d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, this, TQ_SLOT(setSorting()), actionCollection, "descending"); TQPopupMenu* sortMenu=d->mSortAction->popupMenu(); Q_ASSERT(sortMenu); sortMenu->insertSeparator(); @@ -338,85 +338,85 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act // Dir lister mDirLister=new DirLister; mDirLister->setMainWindow(topLevelWidget()); - connect(mDirLister,TQT_SIGNAL(clear()), - this,TQT_SLOT(dirListerClear()) ); + connect(mDirLister,TQ_SIGNAL(clear()), + this,TQ_SLOT(dirListerClear()) ); - connect(mDirLister,TQT_SIGNAL(newItems(const KFileItemList&)), - this,TQT_SLOT(dirListerNewItems(const KFileItemList&)) ); + connect(mDirLister,TQ_SIGNAL(newItems(const KFileItemList&)), + this,TQ_SLOT(dirListerNewItems(const KFileItemList&)) ); - connect(mDirLister,TQT_SIGNAL(deleteItem(KFileItem*)), - this,TQT_SLOT(dirListerDeleteItem(KFileItem*)) ); + connect(mDirLister,TQ_SIGNAL(deleteItem(KFileItem*)), + this,TQ_SLOT(dirListerDeleteItem(KFileItem*)) ); - connect(mDirLister,TQT_SIGNAL(refreshItems(const KFileItemList&)), - this,TQT_SLOT(dirListerRefreshItems(const KFileItemList&)) ); + connect(mDirLister,TQ_SIGNAL(refreshItems(const KFileItemList&)), + this,TQ_SLOT(dirListerRefreshItems(const KFileItemList&)) ); - connect(mDirLister,TQT_SIGNAL(started(const KURL&)), - this,TQT_SLOT(dirListerStarted()) ); + connect(mDirLister,TQ_SIGNAL(started(const KURL&)), + this,TQ_SLOT(dirListerStarted()) ); - connect(mDirLister,TQT_SIGNAL(completed()), - this,TQT_SLOT(dirListerCompleted()) ); + connect(mDirLister,TQ_SIGNAL(completed()), + this,TQ_SLOT(dirListerCompleted()) ); - connect(mDirLister,TQT_SIGNAL(canceled()), - this,TQT_SLOT(dirListerCanceled()) ); + connect(mDirLister,TQ_SIGNAL(canceled()), + this,TQ_SLOT(dirListerCanceled()) ); // Propagate canceled signals - connect(mDirLister,TQT_SIGNAL(canceled()), - this,TQT_SIGNAL(canceled()) ); + connect(mDirLister,TQ_SIGNAL(canceled()), + this,TQ_SIGNAL(canceled()) ); // File detail widget mFileDetailView=new FileDetailView(d->mStack, "filedetailview"); d->mStack->addWidget(mFileDetailView,0); mFileDetailView->viewport()->installEventFilter(this); - connect(mFileDetailView,TQT_SIGNAL(executed(TQListViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileDetailView,TQT_SIGNAL(returnPressed(TQListViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileDetailView,TQT_SIGNAL(currentChanged(TQListViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileDetailView,TQT_SIGNAL(selectionChanged()), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileDetailView,TQT_SIGNAL(clicked(TQListViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileDetailView,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), - this,TQT_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); - connect(mFileDetailView,TQT_SIGNAL(dropped(TQDropEvent*,KFileItem*)), - this,TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); - connect(mFileDetailView, TQT_SIGNAL(sortingChanged(TQDir::SortSpec)), - this, TQT_SLOT(updateSortMenu(TQDir::SortSpec)) ); - connect(mFileDetailView, TQT_SIGNAL(doubleClicked(TQListViewItem*)), - this, TQT_SLOT(slotViewDoubleClicked()) ); - connect(mFileDetailView, TQT_SIGNAL(selectionChanged()), - this, TQT_SIGNAL(selectionChanged()) ); + connect(mFileDetailView,TQ_SIGNAL(executed(TQListViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileDetailView,TQ_SIGNAL(returnPressed(TQListViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileDetailView,TQ_SIGNAL(currentChanged(TQListViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileDetailView,TQ_SIGNAL(selectionChanged()), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileDetailView,TQ_SIGNAL(clicked(TQListViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileDetailView,TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this,TQ_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); + connect(mFileDetailView,TQ_SIGNAL(dropped(TQDropEvent*,KFileItem*)), + this,TQ_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); + connect(mFileDetailView, TQ_SIGNAL(sortingChanged(TQDir::SortSpec)), + this, TQ_SLOT(updateSortMenu(TQDir::SortSpec)) ); + connect(mFileDetailView, TQ_SIGNAL(doubleClicked(TQListViewItem*)), + this, TQ_SLOT(slotViewDoubleClicked()) ); + connect(mFileDetailView, TQ_SIGNAL(selectionChanged()), + this, TQ_SIGNAL(selectionChanged()) ); // Thumbnail widget mFileThumbnailView=new FileThumbnailView(d->mStack); d->mStack->addWidget(mFileThumbnailView,1); mFileThumbnailView->viewport()->installEventFilter(this); - connect(mFileThumbnailView,TQT_SIGNAL(executed(TQIconViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileThumbnailView,TQT_SIGNAL(returnPressed(TQIconViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileThumbnailView,TQT_SIGNAL(currentChanged(TQIconViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileThumbnailView,TQT_SIGNAL(selectionChanged()), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileThumbnailView,TQT_SIGNAL(clicked(TQIconViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileThumbnailView,TQT_SIGNAL(contextMenuRequested(TQIconViewItem*,const TQPoint&)), - this,TQT_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) ); - connect(mFileThumbnailView,TQT_SIGNAL(dropped(TQDropEvent*,KFileItem*)), - this,TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); - connect(mFileThumbnailView, TQT_SIGNAL(doubleClicked(TQIconViewItem*)), - this, TQT_SLOT(slotViewDoubleClicked()) ); - connect(mFileThumbnailView, TQT_SIGNAL(selectionChanged()), - this, TQT_SIGNAL(selectionChanged()) ); + connect(mFileThumbnailView,TQ_SIGNAL(executed(TQIconViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileThumbnailView,TQ_SIGNAL(returnPressed(TQIconViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileThumbnailView,TQ_SIGNAL(currentChanged(TQIconViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileThumbnailView,TQ_SIGNAL(selectionChanged()), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileThumbnailView,TQ_SIGNAL(clicked(TQIconViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileThumbnailView,TQ_SIGNAL(contextMenuRequested(TQIconViewItem*,const TQPoint&)), + this,TQ_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) ); + connect(mFileThumbnailView,TQ_SIGNAL(dropped(TQDropEvent*,KFileItem*)), + this,TQ_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); + connect(mFileThumbnailView, TQ_SIGNAL(doubleClicked(TQIconViewItem*)), + this, TQ_SLOT(slotViewDoubleClicked()) ); + connect(mFileThumbnailView, TQ_SIGNAL(selectionChanged()), + this, TQ_SIGNAL(selectionChanged()) ); // Thumbnail details dialog - TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, mFileThumbnailView, TQT_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog"); - connect(mBottomThumbnailMode, TQT_SIGNAL(toggled(bool)), - thumbnailDetailsDialogAction, TQT_SLOT(setEnabled(bool)) ); + TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, mFileThumbnailView, TQ_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog"); + connect(mBottomThumbnailMode, TQ_SIGNAL(toggled(bool)), + thumbnailDetailsDialogAction, TQ_SLOT(setEnabled(bool)) ); // Fill toolbar mListMode->plug(d->mToolBar); @@ -543,7 +543,7 @@ void FileViewController::prefetch( KFileItem* item ) { prefetchDone(); if( item == NULL ) return; mPrefetch = ImageLoader::loader( item->url(), this, BUSY_PRELOADING ); - connect( mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); + connect( mPrefetch, TQ_SIGNAL( imageLoaded( bool )), TQ_SLOT( prefetchDone())); } void FileViewController::prefetchDone() { @@ -1088,7 +1088,7 @@ void FileViewController::dirListerCompleted() { LOG(""); // Delay the code to be executed when the dir lister has completed its job // to avoid crash in KDirLister (see bug #57991) - TQTimer::singleShot(0,this,TQT_SLOT(delayedDirListerCompleted())); + TQTimer::singleShot(0,this,TQ_SLOT(delayedDirListerCompleted())); } |