@ -357,7 +357,7 @@ void MainWindow::renameFile() {
} else {
url = mDocument - > url ( ) ;
}
FileOperation : : rename ( url , this , this , TQ T _SLOT( slotRenamed ( const TQString & ) ) ) ;
FileOperation : : rename ( url , this , this , TQ _SLOT( slotRenamed ( const TQString & ) ) ) ;
}
@ -493,7 +493,7 @@ void MainWindow::openFileViewControllerContextMenu(const TQPoint& pos, bool onIt
actionCollection ( ) - > action ( " view_sort " ) - > plug ( & menu ) ;
mGoUp - > plug ( & menu ) ;
menu . insertItem ( SmallIcon ( " folder-new " ) , i18n ( " New Folder... " ) , this , TQ T _SLOT( makeDir ( ) ) ) ;
menu . insertItem ( SmallIcon ( " folder-new " ) , i18n ( " New Folder... " ) , this , TQ _SLOT( makeDir ( ) ) ) ;
menu . insertSeparator ( ) ;
@ -664,12 +664,12 @@ void MainWindow::showConfigDialog() {
# else
ConfigDialog dialog ( this , 0 ) ;
# endif
connect ( & dialog , TQ T _SIGNAL( settingsChanged ( ) ) ,
mSlideShow , TQ T _SLOT( slotSettingsChanged ( ) ) ) ;
connect ( & dialog , TQ T _SIGNAL( settingsChanged ( ) ) ,
mImageViewController , TQ T _SLOT( updateFromSettings ( ) ) ) ;
connect ( & dialog , TQ T _SIGNAL( settingsChanged ( ) ) ,
mFileViewController , TQ T _SLOT( updateFromSettings ( ) ) ) ;
connect ( & dialog , TQ _SIGNAL( settingsChanged ( ) ) ,
mSlideShow , TQ _SLOT( slotSettingsChanged ( ) ) ) ;
connect ( & dialog , TQ _SIGNAL( settingsChanged ( ) ) ,
mImageViewController , TQ _SLOT( updateFromSettings ( ) ) ) ;
connect ( & dialog , TQ _SIGNAL( settingsChanged ( ) ) ,
mFileViewController , TQ _SLOT( updateFromSettings ( ) ) ) ;
dialog . exec ( ) ;
}
@ -690,7 +690,7 @@ void MainWindow::showKeyDialog() {
void MainWindow : : showToolBarDialog ( ) {
saveMainWindowSettings ( TDEGlobal : : config ( ) , " MainWindow " ) ;
KEditToolbar dlg ( actionCollection ( ) ) ;
connect ( & dlg , TQ T _SIGNAL( newToolbarConfig ( ) ) , this , TQ T _SLOT( applyMainWindowSettings ( ) ) ) ;
connect ( & dlg , TQ _SIGNAL( newToolbarConfig ( ) ) , this , TQ _SLOT( applyMainWindowSettings ( ) ) ) ;
dlg . exec ( ) ;
}
@ -880,15 +880,15 @@ void MainWindow::createWidgets() {
statusBar ( ) - > addWidget ( mSBDetailLabel , 0 ) ;
statusBar ( ) - > addWidget ( mSBHintLabel , 1 ) ;
mHintTimer = new TQTimer ( this ) ;
connect ( mHintTimer , TQ T _SIGNAL( timeout ( ) ) ,
mSBHintLabel , TQ T _SLOT( clear ( ) ) ) ;
connect ( mHintTimer , TQ _SIGNAL( timeout ( ) ) ,
mSBHintLabel , TQ _SLOT( clear ( ) ) ) ;
// Pixmap widget
mImageDock = mDockArea - > createDockWidget ( " Image " , SmallIcon ( " gwenview " ) , NULL , i18n ( " Image " ) ) ;
mImageViewController = new ImageViewController ( mImageDock , mDocument , actionCollection ( ) ) ;
mImageDock - > setWidget ( mImageViewController - > widget ( ) ) ;
connect ( mImageViewController , TQ T _SIGNAL( requestHintDisplay ( const TQString & ) ) ,
this , TQ T _SLOT( showHint ( const TQString & ) ) ) ;
connect ( mImageViewController , TQ _SIGNAL( requestHintDisplay ( const TQString & ) ) ,
this , TQ _SLOT( showHint ( const TQString & ) ) ) ;
// Folder widget
mFolderDock = mDockArea - > createDockWidget ( " Folders " , SmallIcon ( " folder_open " ) , NULL , i18n ( " Folders " ) ) ;
@ -962,55 +962,55 @@ void MainWindow::createWidgets() {
*/
void MainWindow : : createActions ( ) {
// Stack
mSwitchToBrowseMode = new TDERadioAction ( i18n ( " Browse " ) , " folder_image " , CTRL + Key_Return , this , TQ T _SLOT( slotToggleCentralStack ( ) ) , actionCollection ( ) , " switch_to_browse_mode " ) ;
mSwitchToBrowseMode = new TDERadioAction ( i18n ( " Browse " ) , " folder_image " , CTRL + Key_Return , this , TQ _SLOT( slotToggleCentralStack ( ) ) , actionCollection ( ) , " switch_to_browse_mode " ) ;
mSwitchToBrowseMode - > setExclusiveGroup ( " centralStackMode " ) ;
mSwitchToBrowseMode - > setChecked ( true ) ;
mSwitchToViewMode = new TDERadioAction ( i18n ( " View Image " ) , " image-x-generic " , 0 , this , TQ T _SLOT( slotToggleCentralStack ( ) ) , actionCollection ( ) , " switch_to_view_mode " ) ;
mSwitchToViewMode = new TDERadioAction ( i18n ( " View Image " ) , " image-x-generic " , 0 , this , TQ _SLOT( slotToggleCentralStack ( ) ) , actionCollection ( ) , " switch_to_view_mode " ) ;
mSwitchToViewMode - > setExclusiveGroup ( " centralStackMode " ) ;
// File
KStdAction : : open ( this , TQ T _SLOT( showFileDialog ( ) ) , actionCollection ( ) ) ;
mSaveFile = KStdAction : : save ( mDocument , TQ T _SLOT( save ( ) ) , actionCollection ( ) ) ;
mSaveFileAs = KStdAction : : saveAs ( mDocument , TQ T _SLOT( saveAs ( ) ) , actionCollection ( ) ) ;
mFilePrint = KStdAction : : print ( this , TQ T _SLOT( printFile ( ) ) , actionCollection ( ) ) ;
mRenameFile = new TDEAction ( i18n ( " &Rename... " ) , Key_F2 , this , TQ T _SLOT( renameFile ( ) ) , actionCollection ( ) , " file_rename " ) ;
mCopyFiles = new TDEAction ( i18n ( " &Copy To... " ) , Key_F7 , this , TQ T _SLOT( copyFiles ( ) ) , actionCollection ( ) , " file_copy " ) ;
mMoveFiles = new TDEAction ( i18n ( " &Move To... " ) , Key_F8 , this , TQ T _SLOT( moveFiles ( ) ) , actionCollection ( ) , " file_move " ) ;
mLinkFiles = new TDEAction ( i18n ( " &Link To... " ) , Key_F9 , this , TQ T _SLOT( linkFiles ( ) ) , actionCollection ( ) , " file_link " ) ;
mDeleteFiles = new TDEAction ( i18n ( " &Delete " ) , " edit-delete " , Key_Delete , this , TQ T _SLOT( deleteFiles ( ) ) , actionCollection ( ) , " file_delete " ) ;
mShowFileProperties = new TDEAction ( i18n ( " Properties " ) , 0 , this , TQ T _SLOT( showFileProperties ( ) ) , actionCollection ( ) , " file_properties " ) ;
KStdAction : : quit ( kapp , TQ T _SLOT ( closeAllWindows ( ) ) , actionCollection ( ) ) ;
KStdAction : : open ( this , TQ _SLOT( showFileDialog ( ) ) , actionCollection ( ) ) ;
mSaveFile = KStdAction : : save ( mDocument , TQ _SLOT( save ( ) ) , actionCollection ( ) ) ;
mSaveFileAs = KStdAction : : saveAs ( mDocument , TQ _SLOT( saveAs ( ) ) , actionCollection ( ) ) ;
mFilePrint = KStdAction : : print ( this , TQ _SLOT( printFile ( ) ) , actionCollection ( ) ) ;
mRenameFile = new TDEAction ( i18n ( " &Rename... " ) , Key_F2 , this , TQ _SLOT( renameFile ( ) ) , actionCollection ( ) , " file_rename " ) ;
mCopyFiles = new TDEAction ( i18n ( " &Copy To... " ) , Key_F7 , this , TQ _SLOT( copyFiles ( ) ) , actionCollection ( ) , " file_copy " ) ;
mMoveFiles = new TDEAction ( i18n ( " &Move To... " ) , Key_F8 , this , TQ _SLOT( moveFiles ( ) ) , actionCollection ( ) , " file_move " ) ;
mLinkFiles = new TDEAction ( i18n ( " &Link To... " ) , Key_F9 , this , TQ _SLOT( linkFiles ( ) ) , actionCollection ( ) , " file_link " ) ;
mDeleteFiles = new TDEAction ( i18n ( " &Delete " ) , " edit-delete " , Key_Delete , this , TQ _SLOT( deleteFiles ( ) ) , actionCollection ( ) , " file_delete " ) ;
mShowFileProperties = new TDEAction ( i18n ( " Properties " ) , 0 , this , TQ _SLOT( showFileProperties ( ) ) , actionCollection ( ) , " file_properties " ) ;
KStdAction : : quit ( kapp , TQ _SLOT ( closeAllWindows ( ) ) , actionCollection ( ) ) ;
// Edit
mRotateLeft = new TDEAction ( i18n ( " Rotate &Left " ) , " rotate_left " , CTRL + Key_L , this , TQ T _SLOT( rotateLeft ( ) ) , actionCollection ( ) , " rotate_left " ) ;
mRotateRight = new TDEAction ( i18n ( " Rotate &Right " ) , " rotate_right " , CTRL + Key_R , this , TQ T _SLOT( rotateRight ( ) ) , actionCollection ( ) , " rotate_right " ) ;
mMirror = new TDEAction ( i18n ( " &Mirror " ) , " mirror " , 0 , this , TQ T _SLOT( mirror ( ) ) , actionCollection ( ) , " mirror " ) ;
mFlip = new TDEAction ( i18n ( " &Flip " ) , " flip " , 0 , this , TQ T _SLOT( flip ( ) ) , actionCollection ( ) , " flip " ) ;
mRotateLeft = new TDEAction ( i18n ( " Rotate &Left " ) , " rotate_left " , CTRL + Key_L , this , TQ _SLOT( rotateLeft ( ) ) , actionCollection ( ) , " rotate_left " ) ;
mRotateRight = new TDEAction ( i18n ( " Rotate &Right " ) , " rotate_right " , CTRL + Key_R , this , TQ _SLOT( rotateRight ( ) ) , actionCollection ( ) , " rotate_right " ) ;
mMirror = new TDEAction ( i18n ( " &Mirror " ) , " mirror " , 0 , this , TQ _SLOT( mirror ( ) ) , actionCollection ( ) , " mirror " ) ;
mFlip = new TDEAction ( i18n ( " &Flip " ) , " flip " , 0 , this , TQ _SLOT( flip ( ) ) , actionCollection ( ) , " flip " ) ;
// View
mReload = new TDEAction ( i18n ( " Reload " ) , " reload " , Key_F5 , mDocument , TQ T _SLOT( reload ( ) ) , actionCollection ( ) , " reload " ) ;
mReload = new TDEAction ( i18n ( " Reload " ) , " reload " , Key_F5 , mDocument , TQ _SLOT( reload ( ) ) , actionCollection ( ) , " reload " ) ;
mReload - > setEnabled ( false ) ;
mToggleFullScreen = KStdAction : : fullScreen ( this , TQ T _SLOT( toggleFullScreen ( ) ) , actionCollection ( ) , 0 ) ;
mToggleSlideShow = new TDEAction ( i18n ( " Slide Show " ) , " slideshow_play " , 0 , this , TQ T _SLOT( toggleSlideShow ( ) ) , actionCollection ( ) , " slideshow " ) ;
mToggleFullScreen = KStdAction : : fullScreen ( this , TQ _SLOT( toggleFullScreen ( ) ) , actionCollection ( ) , 0 ) ;
mToggleSlideShow = new TDEAction ( i18n ( " Slide Show " ) , " slideshow_play " , 0 , this , TQ _SLOT( toggleSlideShow ( ) ) , actionCollection ( ) , " slideshow " ) ;
mFullScreenLabelAction = new TDEToolBarLabelAction ( " " , 0 , 0 , 0 , actionCollection ( ) , " fullscreen_label " ) ;
// Go
mGoUp = new TDEToolBarPopupAction ( i18n ( " Up " ) , " go-up " , ALT + Key_Up , this , TQ T _SLOT( goUp ( ) ) , actionCollection ( ) , " go_up " ) ;
new TDEAction ( i18n ( " Home " ) , " go-home " , TDEStdAccel : : shortcut ( TDEStdAccel : : Home ) , this , TQ T _SLOT( goHome ( ) ) , actionCollection ( ) , " go_home " ) ;
mGoUp = new TDEToolBarPopupAction ( i18n ( " Up " ) , " go-up " , ALT + Key_Up , this , TQ _SLOT( goUp ( ) ) , actionCollection ( ) , " go_up " ) ;
new TDEAction ( i18n ( " Home " ) , " go-home " , TDEStdAccel : : shortcut ( TDEStdAccel : : Home ) , this , TQ _SLOT( goHome ( ) ) , actionCollection ( ) , " go_home " ) ;
// Window
mResetDockWidgets = new TDEAction ( i18n ( " Reset " ) , 0 , this , TQ T _SLOT( resetDockWidgets ( ) ) , actionCollection ( ) , " reset_dock_widgets " ) ;
mResetDockWidgets = new TDEAction ( i18n ( " Reset " ) , 0 , this , TQ _SLOT( resetDockWidgets ( ) ) , actionCollection ( ) , " reset_dock_widgets " ) ;
// Settings
mShowConfigDialog =
KStdAction : : preferences ( this , TQ T _SLOT( showConfigDialog ( ) ) , actionCollection ( ) ) ;
KStdAction : : preferences ( this , TQ _SLOT( showConfigDialog ( ) ) , actionCollection ( ) ) ;
mShowKeyDialog =
KStdAction : : keyBindings ( this , TQ T _SLOT( showKeyDialog ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( this , TQ _SLOT( showKeyDialog ( ) ) , actionCollection ( ) ) ;
( void ) new TDEAction ( i18n ( " Configure External Tools... " ) , " configure " , 0 ,
this , TQ T _SLOT( showExternalToolDialog ( ) ) , actionCollection ( ) , " configure_tools " ) ;
this , TQ _SLOT( showExternalToolDialog ( ) ) , actionCollection ( ) , " configure_tools " ) ;
( void ) KStdAction : : configureToolbars (
this , TQ T _SLOT( showToolBarDialog ( ) ) , actionCollection ( ) ) ;
this , TQ _SLOT( showToolBarDialog ( ) ) , actionCollection ( ) ) ;
actionCollection ( ) - > readShortcutSettings ( ) ;
}
@ -1059,11 +1059,11 @@ void MainWindow::createObjectInteractions() {
}
// Make sure file actions are correctly updated
connect ( mFileViewController , TQ T _SIGNAL( selectionChanged ( ) ) ,
this , TQ T _SLOT( updateImageActions ( ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( selectionChanged ( ) ) ,
this , TQ _SLOT( updateImageActions ( ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( requestContextMenu ( const TQPoint & , bool ) ) ,
this , TQ T _SLOT( openFileViewControllerContextMenu ( const TQPoint & , bool ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( requestContextMenu ( const TQPoint & , bool ) ) ,
this , TQ _SLOT( openFileViewControllerContextMenu ( const TQPoint & , bool ) ) ) ;
// Bookmarks
TQString file = locate ( " data " , " tdefile/bookmarks.xml " ) ;
@ -1081,11 +1081,11 @@ void MainWindow::createObjectInteractions() {
TDEActionMenu * bookmark = new TDEActionMenu ( i18n ( " &Bookmarks " ) , " bookmark " , actionCollection ( ) , " bookmarks " ) ;
new KBookmarkMenu ( manager , bookmarkOwner , bookmark - > popupMenu ( ) , 0 , true ) ;
connect ( bookmarkOwner , TQ T _SIGNAL( openURL ( const KURL & ) ) ,
mFileViewController , TQ T _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( bookmarkOwner , TQ _SIGNAL( openURL ( const KURL & ) ) ,
mFileViewController , TQ _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( directoryChanged ( const KURL & ) ) ,
bookmarkOwner , TQ T _SLOT( setURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( directoryChanged ( const KURL & ) ) ,
bookmarkOwner , TQ _SLOT( setURL ( const KURL & ) ) ) ;
}
@ -1097,7 +1097,7 @@ void MainWindow::createHideShowAction(KDockWidget* dock) {
caption = i18n ( " Show %1 " ) . arg ( dock - > caption ( ) ) ;
}
TDEAction * action = new TDEAction ( caption , 0 , dock , TQ T _SLOT( changeHideShowState ( ) ) , ( TQObject * ) 0 ) ;
TDEAction * action = new TDEAction ( caption , 0 , dock , TQ _SLOT( changeHideShowState ( ) ) , ( TQObject * ) 0 ) ;
if ( dock - > icon ( ) ) {
action - > setIconSet ( TQIconSet ( * dock - > icon ( ) ) ) ;
}
@ -1116,91 +1116,91 @@ void MainWindow::updateWindowActions() {
void MainWindow : : createConnections ( ) {
connect ( mGoUp - > popupMenu ( ) , TQ T _SIGNAL( aboutToShow ( ) ) ,
this , TQ T _SLOT( fillGoUpMenu ( ) ) ) ;
connect ( mGoUp - > popupMenu ( ) , TQ _SIGNAL( aboutToShow ( ) ) ,
this , TQ _SLOT( fillGoUpMenu ( ) ) ) ;
connect ( mGoUp - > popupMenu ( ) , TQ T _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( goUpTo ( int ) ) ) ;
connect ( mGoUp - > popupMenu ( ) , TQ _SIGNAL( activated ( int ) ) ,
this , TQ _SLOT( goUpTo ( int ) ) ) ;
// Slideshow connections
connect ( mSlideShow , TQ T _SIGNAL( nextURL ( const KURL & ) ) ,
TQ T _SLOT( openURL ( const KURL & ) ) ) ;
connect ( mSlideShow , TQ T _SIGNAL( stateChanged ( bool ) ) ,
TQ T _SLOT( slotSlideShowChanged ( bool ) ) ) ;
connect ( mSlideShow , TQ _SIGNAL( nextURL ( const KURL & ) ) ,
TQ _SLOT( openURL ( const KURL & ) ) ) ;
connect ( mSlideShow , TQ _SIGNAL( stateChanged ( bool ) ) ,
TQ _SLOT( slotSlideShowChanged ( bool ) ) ) ;
// Dir view connections
connect ( mDirViewController , TQ T _SIGNAL( urlChanged ( const KURL & ) ) ,
mFileViewController , TQ T _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( mDirViewController , TQ T _SIGNAL( urlRenamed ( const KURL & , const KURL & ) ) ,
this , TQ T _SLOT( slotDirRenamed ( const KURL & , const KURL & ) ) ) ;
connect ( mDirViewController , TQ _SIGNAL( urlChanged ( const KURL & ) ) ,
mFileViewController , TQ _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( mDirViewController , TQ _SIGNAL( urlRenamed ( const KURL & , const KURL & ) ) ,
this , TQ _SLOT( slotDirRenamed ( const KURL & , const KURL & ) ) ) ;
// Bookmark view connections
connect ( mBookmarkViewController , TQ T _SIGNAL( openURL ( const KURL & ) ) ,
mFileViewController , TQ T _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( directoryChanged ( const KURL & ) ) ,
mBookmarkViewController , TQ T _SLOT( setURL ( const KURL & ) ) ) ;
connect ( mBookmarkViewController , TQ _SIGNAL( openURL ( const KURL & ) ) ,
mFileViewController , TQ _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( directoryChanged ( const KURL & ) ) ,
mBookmarkViewController , TQ _SLOT( setURL ( const KURL & ) ) ) ;
// Pixmap view connections
connect ( mImageViewController , TQ T _SIGNAL( selectPrevious ( ) ) ,
mFileViewController , TQ T _SLOT( slotSelectPrevious ( ) ) ) ;
connect ( mImageViewController , TQ T _SIGNAL( selectNext ( ) ) ,
mFileViewController , TQ T _SLOT( slotSelectNext ( ) ) ) ;
connect ( mImageViewController , TQ T _SIGNAL( doubleClicked ( ) ) ,
mToggleFullScreen , TQ T _SLOT( activate ( ) ) ) ;
connect ( mImageViewController , TQ _SIGNAL( selectPrevious ( ) ) ,
mFileViewController , TQ _SLOT( slotSelectPrevious ( ) ) ) ;
connect ( mImageViewController , TQ _SIGNAL( selectNext ( ) ) ,
mFileViewController , TQ _SLOT( slotSelectNext ( ) ) ) ;
connect ( mImageViewController , TQ _SIGNAL( doubleClicked ( ) ) ,
mToggleFullScreen , TQ _SLOT( activate ( ) ) ) ;
// File view connections
connect ( mFileViewController , TQ T _SIGNAL( urlChanged ( const KURL & ) ) ,
mDocument , TQ T _SLOT( setURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( directoryChanged ( const KURL & ) ) ,
this , TQ T _SLOT( slotDirURLChanged ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( directoryChanged ( const KURL & ) ) ,
mDirViewController , TQ T _SLOT( setURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( directoryChanged ( const KURL & ) ) ,
mHistory , TQ T _SLOT( addURLToHistory ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( completed ( ) ) ,
this , TQ T _SLOT( updateStatusInfo ( ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( canceled ( ) ) ,
this , TQ T _SLOT( updateStatusInfo ( ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( imageDoubleClicked ( ) ) ,
mToggleFullScreen , TQ T _SLOT( activate ( ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( shownFileItemRefreshed ( const KFileItem * ) ) ,
this , TQ T _SLOT( slotShownFileItemRefreshed ( const KFileItem * ) ) ) ;
connect ( mFileViewController , TQ T _SIGNAL( sortingChanged ( ) ) ,
this , TQ T _SLOT( updateStatusInfo ( ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( urlChanged ( const KURL & ) ) ,
mDocument , TQ _SLOT( setURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( directoryChanged ( const KURL & ) ) ,
this , TQ _SLOT( slotDirURLChanged ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( directoryChanged ( const KURL & ) ) ,
mDirViewController , TQ _SLOT( setURL ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( directoryChanged ( const KURL & ) ) ,
mHistory , TQ _SLOT( addURLToHistory ( const KURL & ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( completed ( ) ) ,
this , TQ _SLOT( updateStatusInfo ( ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( canceled ( ) ) ,
this , TQ _SLOT( updateStatusInfo ( ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( imageDoubleClicked ( ) ) ,
mToggleFullScreen , TQ _SLOT( activate ( ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( shownFileItemRefreshed ( const KFileItem * ) ) ,
this , TQ _SLOT( slotShownFileItemRefreshed ( const KFileItem * ) ) ) ;
connect ( mFileViewController , TQ _SIGNAL( sortingChanged ( ) ) ,
this , TQ _SLOT( updateStatusInfo ( ) ) ) ;
// History connections
connect ( mHistory , TQ T _SIGNAL( urlChanged ( const KURL & ) ) ,
mFileViewController , TQ T _SLOT( setDirURL ( const KURL & ) ) ) ;
connect ( mHistory , TQ _SIGNAL( urlChanged ( const KURL & ) ) ,
mFileViewController , TQ _SLOT( setDirURL ( const KURL & ) ) ) ;
// Document connections
connect ( mDocument , TQ T _SIGNAL( loading ( ) ) ,
this , TQ T _SLOT( slotImageLoading ( ) ) ) ;
connect ( mDocument , TQ T _SIGNAL( loaded ( const KURL & ) ) ,
this , TQ T _SLOT( slotImageLoaded ( ) ) ) ;
connect ( mDocument , TQ T _SIGNAL( saved ( const KURL & ) ) ,
mFileViewController , TQ T _SLOT( updateThumbnail ( const KURL & ) ) ) ;
connect ( mDocument , TQ T _SIGNAL( reloaded ( const KURL & ) ) ,
mFileViewController , TQ T _SLOT( updateThumbnail ( const KURL & ) ) ) ;
connect ( mDocument , TQ _SIGNAL( loading ( ) ) ,
this , TQ _SLOT( slotImageLoading ( ) ) ) ;
connect ( mDocument , TQ _SIGNAL( loaded ( const KURL & ) ) ,
this , TQ _SLOT( slotImageLoaded ( ) ) ) ;
connect ( mDocument , TQ _SIGNAL( saved ( const KURL & ) ) ,
mFileViewController , TQ _SLOT( updateThumbnail ( const KURL & ) ) ) ;
connect ( mDocument , TQ _SIGNAL( reloaded ( const KURL & ) ) ,
mFileViewController , TQ _SLOT( updateThumbnail ( const KURL & ) ) ) ;
// Location bar
connect ( mURLEdit , TQ T _SIGNAL( activated ( const TQString & ) ) ,
this , TQ T _SLOT( slotGo ( ) ) ) ;
connect ( mURLEdit , TQ T _SIGNAL( returnPressed ( ) ) ,
this , TQ T _SLOT( slotGo ( ) ) ) ;
connect ( mURLEdit , TQ _SIGNAL( activated ( const TQString & ) ) ,
this , TQ _SLOT( slotGo ( ) ) ) ;
connect ( mURLEdit , TQ _SIGNAL( returnPressed ( ) ) ,
this , TQ _SLOT( slotGo ( ) ) ) ;
// Non configurable stop-fullscreen accel
TQAccel * accel = new TQAccel ( this ) ;
accel - > connectItem ( accel - > insertItem ( Key_Escape ) , this , TQ T _SLOT( escapePressed ( ) ) ) ;
accel - > connectItem ( accel - > insertItem ( Key_Escape ) , this , TQ _SLOT( escapePressed ( ) ) ) ;
// Dock related
connect ( mDockArea - > manager ( ) , TQ T _SIGNAL( change ( ) ) ,
this , TQ T _SLOT( updateWindowActions ( ) ) ) ;
connect ( mDockArea - > manager ( ) , TQ _SIGNAL( change ( ) ) ,
this , TQ _SLOT( updateWindowActions ( ) ) ) ;
// Plugin menu
TQPopupMenu * popup = static_cast < TQPopupMenu * > (
factory ( ) - > container ( " plugins " , this ) ) ;
connect ( popup , TQ T _SIGNAL( aboutToShow ( ) ) , this , TQ T _SLOT( loadPlugins ( ) ) ) ;
connect ( popup , TQ _SIGNAL( aboutToShow ( ) ) , this , TQ _SLOT( loadPlugins ( ) ) ) ;
}
@ -1232,15 +1232,15 @@ void MainWindow::createLocationToolBar() {
// Clear button
( void ) new TDEAction ( i18n ( " Clear Location Bar " ) ,
TQApplication : : reverseLayout ( ) ? " clear_left " : " locationbar_erase " ,
0 , this , TQ T _SLOT( clearLocationLabel ( ) ) , actionCollection ( ) , " clear_location " ) ;
0 , this , TQ _SLOT( clearLocationLabel ( ) ) , actionCollection ( ) , " clear_location " ) ;
// URL Label
TDEToolBarLabelAction * locationAction = new TDEToolBarLabelAction ( i18n ( " L&ocation: " ) ,
Key_F6 , this , TQ T _SLOT( activateLocationLabel ( ) ) , actionCollection ( ) , " location_label " ) ;
Key_F6 , this , TQ _SLOT( activateLocationLabel ( ) ) , actionCollection ( ) , " location_label " ) ;
locationAction - > setBuddy ( mURLEdit ) ;
// Go button
( void ) new TDEAction ( i18n ( " Go " ) , " key_enter " , 0 , this , TQ T _SLOT( slotGo ( ) ) , actionCollection ( ) , " location_go " ) ;
( void ) new TDEAction ( i18n ( " Go " ) , " key_enter " , 0 , this , TQ _SLOT( slotGo ( ) ) , actionCollection ( ) , " location_go " ) ;
}
@ -1266,7 +1266,7 @@ void MainWindow::loadPlugins() {
// Sets up the plugin interface, and load the plugins
KIPIInterface * interface = new KIPIInterface ( this , mFileViewController ) ;
mPluginLoader = new KIPI : : PluginLoader ( TQStringList ( ) , interface ) ;
connect ( mPluginLoader , TQ T _SIGNAL( replug ( ) ) , this , TQ T _SLOT( slotReplug ( ) ) ) ;
connect ( mPluginLoader , TQ _SIGNAL( replug ( ) ) , this , TQ _SLOT( slotReplug ( ) ) ) ;
mPluginLoader - > loadPlugins ( ) ;
}