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