@ -52,8 +52,8 @@
# include <kstandarddirs.h>
# include <kstandarddirs.h>
# include <krun.h>
# include <krun.h>
# include < qclipboard.h>
# include < t qclipboard.h>
# include < qdragobject.h>
# include < t qdragobject.h>
# include "urlnavigator.h"
# include "urlnavigator.h"
# include "viewpropertiesdialog.h"
# include "viewpropertiesdialog.h"
@ -132,7 +132,7 @@ void Dolphin::dropURLs(const KURL::List& urls,
popup . insertItem ( SmallIcon ( " stop " ) , i18n ( " Cancel " ) , 3 ) ;
popup . insertItem ( SmallIcon ( " stop " ) , i18n ( " Cancel " ) , 3 ) ;
popup . setAccel ( i18n ( " Escape " ) , 3 ) ;
popup . setAccel ( i18n ( " Escape " ) , 3 ) ;
selectedIndex = popup . exec ( QCursor: : pos ( ) ) ;
selectedIndex = popup . exec ( T QCursor: : pos ( ) ) ;
}
}
if ( selectedIndex < 0 ) {
if ( selectedIndex < 0 ) {
@ -267,10 +267,10 @@ void Dolphin::slotSortingChanged(DolphinView::Sorting sorting)
}
}
}
}
void Dolphin : : slotSortOrderChanged ( Qt: : SortOrder order )
void Dolphin : : slotSortOrderChanged ( T Qt: : SortOrder order )
{
{
KToggleAction * descending = static_cast < KToggleAction * > ( actionCollection ( ) - > action ( " descending " ) ) ;
KToggleAction * descending = static_cast < KToggleAction * > ( actionCollection ( ) - > action ( " descending " ) ) ;
const bool sortDescending = ( order = = Qt: : Descending ) ;
const bool sortDescending = ( order = = T Qt: : Descending ) ;
descending - > setChecked ( sortDescending ) ;
descending - > setChecked ( sortDescending ) ;
}
}
@ -292,7 +292,7 @@ void Dolphin::slotSelectionChanged()
emit selectionChanged ( ) ;
emit selectionChanged ( ) ;
}
}
void Dolphin : : closeEvent ( QCloseEvent* event )
void Dolphin : : closeEvent ( T QCloseEvent* event )
{
{
KConfig * config = kapp - > config ( ) ;
KConfig * config = kapp - > config ( ) ;
config - > setGroup ( " General " ) ;
config - > setGroup ( " General " ) ;
@ -363,8 +363,8 @@ void Dolphin::createFolder()
DolphinStatusBar * statusBar = m_activeView - > statusBar ( ) ;
DolphinStatusBar * statusBar = m_activeView - > statusBar ( ) ;
const KURL baseURL ( m_activeView - > url ( ) ) ;
const KURL baseURL ( m_activeView - > url ( ) ) ;
QString name ( i18n ( " New Folder " ) ) ;
T QString name ( i18n ( " New Folder " ) ) ;
if ( baseURL . isLocalFile ( ) & & QFileInfo( baseURL . path ( + 1 ) + name ) . exists ( ) ) {
if ( baseURL . isLocalFile ( ) & & T QFileInfo( baseURL . path ( + 1 ) + name ) . exists ( ) ) {
name = KIO : : RenameDlg : : suggestName ( baseURL , i18n ( " New Folder " ) ) ;
name = KIO : : RenameDlg : : suggestName ( baseURL , i18n ( " New Folder " ) ) ;
}
}
@ -395,7 +395,7 @@ void Dolphin::createFolder()
// TODO: provide message type hint
// TODO: provide message type hint
if ( ok ) {
if ( ok ) {
statusBar - > setMessage ( i18n ( " Created folder %1. " ) . arg( url . path ( ) ) ,
statusBar - > setMessage ( i18n ( " Created folder %1. " ) . tq arg( url . path ( ) ) ,
DolphinStatusBar : : OperationCompleted ) ;
DolphinStatusBar : : OperationCompleted ) ;
DolphinCommand command ( DolphinCommand : : CreateFolder , KURL : : List ( ) , url ) ;
DolphinCommand command ( DolphinCommand : : CreateFolder , KURL : : List ( ) , url ) ;
@ -405,11 +405,11 @@ void Dolphin::createFolder()
// Creating of the folder has been failed. Check whether the creating
// Creating of the folder has been failed. Check whether the creating
// has been failed because a folder with the same name exists...
// has been failed because a folder with the same name exists...
if ( KIO : : NetAccess : : exists ( url , true , this ) ) {
if ( KIO : : NetAccess : : exists ( url , true , this ) ) {
statusBar - > setMessage ( i18n ( " A folder named %1 already exists. " ) . arg( url . path ( ) ) ,
statusBar - > setMessage ( i18n ( " A folder named %1 already exists. " ) . tq arg( url . path ( ) ) ,
DolphinStatusBar : : Error ) ;
DolphinStatusBar : : Error ) ;
}
}
else {
else {
statusBar - > setMessage ( i18n ( " Creating of folder %1 failed. " ) . arg( url . path ( ) ) ,
statusBar - > setMessage ( i18n ( " Creating of folder %1 failed. " ) . tq arg( url . path ( ) ) ,
DolphinStatusBar : : Error ) ;
DolphinStatusBar : : Error ) ;
}
}
@ -426,12 +426,12 @@ void Dolphin::createFile()
clearStatusBar ( ) ;
clearStatusBar ( ) ;
// TODO: const Entry& entry = m_createFileTemplates[ QString(sender->name())];
// TODO: const Entry& entry = m_createFileTemplates[ T QString(sender->name())];
// should be enough. Anyway: the implemantation of [] does a linear search internally too.
// should be enough. Anyway: the implemantation of [] does a linear search internally too.
KSortableValueList < CreateFileEntry , QString> : : ConstIterator it = m_createFileTemplates . begin ( ) ;
KSortableValueList < CreateFileEntry , T QString> : : ConstIterator it = m_createFileTemplates . begin ( ) ;
KSortableValueList < CreateFileEntry , QString> : : ConstIterator end = m_createFileTemplates . end ( ) ;
KSortableValueList < CreateFileEntry , T QString> : : ConstIterator end = m_createFileTemplates . end ( ) ;
const QString senderName ( sender( ) - > name ( ) ) ;
const T QString senderName ( TQT_TQOBJECT( sender( ) ) - > name ( ) ) ;
bool found = false ;
bool found = false ;
CreateFileEntry entry ;
CreateFileEntry entry ;
while ( ! found & & ( it ! = end ) ) {
while ( ! found & & ( it ! = end ) ) {
@ -445,30 +445,30 @@ void Dolphin::createFile()
}
}
DolphinStatusBar * statusBar = m_activeView - > statusBar ( ) ;
DolphinStatusBar * statusBar = m_activeView - > statusBar ( ) ;
if ( ! found | | ! QFile: : exists ( entry . templatePath ) ) {
if ( ! found | | ! T QFile: : exists ( entry . templatePath ) ) {
statusBar - > setMessage ( i18n ( " Could not create file. " ) , DolphinStatusBar : : Error ) ;
statusBar - > setMessage ( i18n ( " Could not create file. " ) , DolphinStatusBar : : Error ) ;
return ;
return ;
}
}
// Get the source path of the template which should be copied.
// Get the source path of the template which should be copied.
// The source path is part of the URL entry of the desktop file.
// The source path is part of the URL entry of the desktop file.
const int pos = entry . templatePath . findRev( ' / ' ) ;
const int pos = entry . templatePath . tq findRev( ' / ' ) ;
QString sourcePath ( entry . templatePath . left ( pos + 1 ) ) ;
T QString sourcePath ( entry . templatePath . left ( pos + 1 ) ) ;
sourcePath + = KDesktopFile ( entry . templatePath , true ) . readPathEntry ( " URL " ) ;
sourcePath + = KDesktopFile ( entry . templatePath , true ) . readPathEntry ( " URL " ) ;
QString name ( i18n ( entry . name . ascii ( ) ) ) ;
T QString name ( i18n ( entry . name . ascii ( ) ) ) ;
// Most entry names end with "..." (e. g. "HTML File..."), which is ok for
// Most entry names end with "..." (e. g. "HTML File..."), which is ok for
// menus but no good choice for a new file name -> remove the dots...
// menus but no good choice for a new file name -> remove the dots...
name . replace( " ... " , QString: : null ) ;
name . tq replace( " ... " , TQString( ) ) ;
// add the file extension to the name
// add the file extension to the name
name . append ( sourcePath . right ( sourcePath . length ( ) - sourcePath . findRev( ' . ' ) ) ) ;
name . append ( sourcePath . right ( sourcePath . length ( ) - sourcePath . tq findRev( ' . ' ) ) ) ;
// Check whether a file with the current name already exists. If yes suggest automatically
// Check whether a file with the current name already exists. If yes suggest automatically
// a unique file name (e. g. "HTML File" will be replaced by "HTML File_1").
// a unique file name (e. g. "HTML File" will be replaced by "HTML File_1").
const KURL viewURL ( m_activeView - > url ( ) ) ;
const KURL viewURL ( m_activeView - > url ( ) ) ;
const bool fileExists = viewURL . isLocalFile ( ) & &
const bool fileExists = viewURL . isLocalFile ( ) & &
QFileInfo( viewURL . path ( + 1 ) + KIO : : encodeFileName ( name ) ) . exists ( ) ;
T QFileInfo( viewURL . path ( + 1 ) + KIO : : encodeFileName ( name ) ) . exists ( ) ;
if ( fileExists ) {
if ( fileExists ) {
name = KIO : : RenameDlg : : suggestName ( viewURL , name ) ;
name = KIO : : RenameDlg : : suggestName ( viewURL , name ) ;
}
}
@ -487,10 +487,10 @@ void Dolphin::createFile()
// before copying the template to the destination path check whether a file
// before copying the template to the destination path check whether a file
// with the given name already exists
// with the given name already exists
const QString destPath ( viewURL . prettyURL ( ) + " / " + KIO : : encodeFileName ( name ) ) ;
const T QString destPath ( viewURL . prettyURL ( ) + " / " + KIO : : encodeFileName ( name ) ) ;
const KURL destURL ( destPath ) ;
const KURL destURL ( destPath ) ;
if ( KIO : : NetAccess : : exists ( destURL , false , this ) ) {
if ( KIO : : NetAccess : : exists ( destURL , false , this ) ) {
statusBar - > setMessage ( i18n ( " A file named %1 already exists. " ) . arg( name ) ,
statusBar - > setMessage ( i18n ( " A file named %1 already exists. " ) . tq arg( name ) ,
DolphinStatusBar : : Error ) ;
DolphinStatusBar : : Error ) ;
return ;
return ;
}
}
@ -500,7 +500,7 @@ void Dolphin::createFile()
KIO : : CopyJob * job = KIO : : copyAs ( sourceURL , destURL ) ;
KIO : : CopyJob * job = KIO : : copyAs ( sourceURL , destURL ) ;
job - > setDefaultPermissions ( true ) ;
job - > setDefaultPermissions ( true ) ;
if ( KIO : : NetAccess : : synchronousRun ( job , this ) ) {
if ( KIO : : NetAccess : : synchronousRun ( job , this ) ) {
statusBar - > setMessage ( i18n ( " Created file %1. " ) . arg( name ) ,
statusBar - > setMessage ( i18n ( " Created file %1. " ) . tq arg( name ) ,
DolphinStatusBar : : OperationCompleted ) ;
DolphinStatusBar : : OperationCompleted ) ;
KURL : : List list ;
KURL : : List list ;
@ -510,7 +510,7 @@ void Dolphin::createFile()
}
}
else {
else {
statusBar - > setMessage ( i18n ( " Creating of file %1 failed. " ) . arg( name ) ,
statusBar - > setMessage ( i18n ( " Creating of file %1 failed. " ) . tq arg( name ) ,
DolphinStatusBar : : Error ) ;
DolphinStatusBar : : Error ) ;
}
}
}
}
@ -537,26 +537,26 @@ void Dolphin::deleteItems()
const uint itemCount = list . count ( ) ;
const uint itemCount = list . count ( ) ;
assert ( itemCount > = 1 ) ;
assert ( itemCount > = 1 ) ;
QString text ;
T QString text ;
if ( itemCount > 1 ) {
if ( itemCount > 1 ) {
text = i18n ( " Do you really want to delete the %1 selected items? " ) . arg( itemCount ) ;
text = i18n ( " Do you really want to delete the %1 selected items? " ) . tq arg( itemCount ) ;
}
}
else {
else {
const KURL & url = list . first ( ) ;
const KURL & url = list . first ( ) ;
text = i18n ( " Do you really want to delete '%1'? " ) . arg( url . fileName ( ) ) ;
text = i18n ( " Do you really want to delete '%1'? " ) . tq arg( url . fileName ( ) ) ;
}
}
const bool del = KMessageBox : : warningContinueCancel ( this ,
const bool del = KMessageBox : : warningContinueCancel ( this ,
text ,
text ,
QString: : null ,
TQString( ) ,
KGuiItem ( i18n ( " Delete " ) , SmallIcon ( " editdelete " ) )
KGuiItem ( i18n ( " Delete " ) , SmallIcon ( " editdelete " ) )
) = = KMessageBox : : Continue ;
) = = KMessageBox : : Continue ;
if ( del ) {
if ( del ) {
KIO : : Job * job = KIO : : del ( list ) ;
KIO : : Job * job = KIO : : del ( list ) ;
connect ( job , SIGNAL( result ( KIO : : Job * ) ) ,
connect ( job , TQT_ SIGNAL( result ( KIO : : Job * ) ) ,
this , SLOT( slotHandleJobError ( KIO : : Job * ) ) ) ;
this , TQT_ SLOT( slotHandleJobError ( KIO : : Job * ) ) ) ;
connect ( job , SIGNAL( result ( KIO : : Job * ) ) ,
connect ( job , TQT_ SIGNAL( result ( KIO : : Job * ) ) ,
this , SLOT( slotDeleteFileFinished ( KIO : : Job * ) ) ) ;
this , TQT_ SLOT( slotDeleteFileFinished ( KIO : : Job * ) ) ) ;
}
}
}
}
@ -613,7 +613,7 @@ void Dolphin::slotUndoAvailable(bool available)
}
}
}
}
void Dolphin : : slotUndoTextChanged ( const QString& text )
void Dolphin : : slotUndoTextChanged ( const T QString& text )
{
{
KAction * undoAction = actionCollection ( ) - > action ( KStdAction : : stdName ( KStdAction : : Undo ) ) ;
KAction * undoAction = actionCollection ( ) - > action ( KStdAction : : stdName ( KStdAction : : Undo ) ) ;
if ( undoAction ! = 0 ) {
if ( undoAction ! = 0 ) {
@ -629,7 +629,7 @@ void Dolphin::slotRedoAvailable(bool available)
}
}
}
}
void Dolphin : : slotRedoTextChanged ( const QString& text )
void Dolphin : : slotRedoTextChanged ( const T QString& text )
{
{
KAction * redoAction = actionCollection ( ) - > action ( KStdAction : : stdName ( KStdAction : : Redo ) ) ;
KAction * redoAction = actionCollection ( ) - > action ( KStdAction : : stdName ( KStdAction : : Redo ) ) ;
if ( redoAction ! = 0 ) {
if ( redoAction ! = 0 ) {
@ -640,23 +640,23 @@ void Dolphin::slotRedoTextChanged(const QString& text)
void Dolphin : : cut ( )
void Dolphin : : cut ( )
{
{
m_clipboardContainsCutData = true ;
m_clipboardContainsCutData = true ;
QDragObject* data = new KURLDrag ( m_activeView - > selectedURLs ( ) ,
T QDragObject* data = new KURLDrag ( m_activeView - > selectedURLs ( ) ,
widget ( ) ) ;
widget ( ) ) ;
QApplication: : clipboard( ) - > setData ( data ) ;
T QApplication: : tq clipboard( ) - > setData ( data ) ;
}
}
void Dolphin : : copy ( )
void Dolphin : : copy ( )
{
{
m_clipboardContainsCutData = false ;
m_clipboardContainsCutData = false ;
QDragObject* data = new KURLDrag ( m_activeView - > selectedURLs ( ) ,
T QDragObject* data = new KURLDrag ( m_activeView - > selectedURLs ( ) ,
widget ( ) ) ;
widget ( ) ) ;
QApplication: : clipboard( ) - > setData ( data ) ;
T QApplication: : tq clipboard( ) - > setData ( data ) ;
}
}
void Dolphin : : paste ( )
void Dolphin : : paste ( )
{
{
QClipboard* clipboard = QApplication: : clipboard( ) ;
T QClipboard* clipboard = T QApplication: : tq clipboard( ) ;
QMimeSource* data = clipboard - > data ( ) ;
T QMimeSource* data = clipboard - > data ( ) ;
if ( ! KURLDrag : : canDecode ( data ) ) {
if ( ! KURLDrag : : canDecode ( data ) ) {
return ;
return ;
}
}
@ -702,9 +702,9 @@ void Dolphin::updatePasteAction()
return ;
return ;
}
}
QString text ( i18n ( " Paste " ) ) ;
T QString text ( i18n ( " Paste " ) ) ;
QClipboard* clipboard = QApplication: : clipboard( ) ;
T QClipboard* clipboard = T QApplication: : tq clipboard( ) ;
QMimeSource* data = clipboard - > data ( ) ;
T QMimeSource* data = clipboard - > data ( ) ;
if ( KURLDrag : : canDecode ( data ) ) {
if ( KURLDrag : : canDecode ( data ) ) {
pasteAction - > setEnabled ( true ) ;
pasteAction - > setEnabled ( true ) ;
@ -715,7 +715,7 @@ void Dolphin::updatePasteAction()
pasteAction - > setText ( i18n ( " Paste 1 File " ) ) ;
pasteAction - > setText ( i18n ( " Paste 1 File " ) ) ;
}
}
else {
else {
pasteAction - > setText ( i18n ( " Paste %1 Files " ) . arg( count ) ) ;
pasteAction - > setText ( i18n ( " Paste %1 Files " ) . tq arg( count ) ) ;
}
}
}
}
else {
else {
@ -786,9 +786,9 @@ void Dolphin::sortByDate()
void Dolphin : : toggleSortOrder ( )
void Dolphin : : toggleSortOrder ( )
{
{
const Qt: : SortOrder order = ( m_activeView - > sortOrder ( ) = = Qt: : Ascending ) ?
const T Qt: : SortOrder order = ( m_activeView - > sortOrder ( ) = = T Qt: : Ascending ) ?
Qt: : Descending :
T Qt: : Descending :
Qt: : Ascending ;
T Qt: : Ascending ;
m_activeView - > setSortOrder ( order ) ;
m_activeView - > setSortOrder ( order ) ;
}
}
@ -803,7 +803,7 @@ void Dolphin::toggleSplitView()
m_view [ PrimaryIdx ] - > mode ( ) ,
m_view [ PrimaryIdx ] - > mode ( ) ,
m_view [ PrimaryIdx ] - > isShowHiddenFilesEnabled ( ) ) ;
m_view [ PrimaryIdx ] - > isShowHiddenFilesEnabled ( ) ) ;
QValueList< int > list = m_splitter - > sizes ( ) ;
T QValueList< int > list = m_splitter - > sizes ( ) ;
assert ( ! list . isEmpty ( ) ) ;
assert ( ! list . isEmpty ( ) ) ;
list . pop_back ( ) ;
list . pop_back ( ) ;
list . append ( newWidth ) ;
list . append ( newWidth ) ;
@ -922,7 +922,7 @@ void Dolphin::goHome()
void Dolphin : : openTerminal ( )
void Dolphin : : openTerminal ( )
{
{
QString command ( " konsole --workdir \" " ) ;
T QString command ( " konsole --workdir \" " ) ;
command . append ( m_activeView - > url ( ) . path ( ) ) ;
command . append ( m_activeView - > url ( ) . path ( ) ) ;
command . append ( ' \" ' ) ;
command . append ( ' \" ' ) ;
@ -931,7 +931,7 @@ void Dolphin::openTerminal()
void Dolphin : : findFile ( )
void Dolphin : : findFile ( )
{
{
KRun : : run ( " k find" , m_activeView - > url ( ) ) ;
KRun : : run ( " k tq find" , m_activeView - > url ( ) ) ;
}
}
void Dolphin : : compareFiles ( )
void Dolphin : : compareFiles ( )
@ -980,7 +980,7 @@ void Dolphin::compareFiles()
}
}
}
}
QString command ( " kompare -c \" " ) ;
T QString command ( " kompare -c \" " ) ;
command . append ( urlA . prettyURL ( ) ) ;
command . append ( urlA . prettyURL ( ) ) ;
command . append ( " \" \" " ) ;
command . append ( " \" \" " ) ;
command . append ( urlB . prettyURL ( ) ) ;
command . append ( urlB . prettyURL ( ) ) ;
@ -1005,8 +1005,8 @@ void Dolphin::addUndoOperation(KIO::Job* job)
const int id = job - > progressId ( ) ;
const int id = job - > progressId ( ) ;
// set iterator to the executed command with the current id...
// set iterator to the executed command with the current id...
QValueList< UndoInfo > : : Iterator it = m_pendingUndoJobs . begin ( ) ;
T QValueList< UndoInfo > : : Iterator it = m_pendingUndoJobs . begin ( ) ;
const QValueList< UndoInfo > : : Iterator end = m_pendingUndoJobs . end ( ) ;
const T QValueList< UndoInfo > : : Iterator end = m_pendingUndoJobs . end ( ) ;
bool found = false ;
bool found = false ;
while ( ! found & & ( it ! = end ) ) {
while ( ! found & & ( it ! = end ) ) {
if ( ( * it ) . id = = id ) {
if ( ( * it ) . id = = id ) {
@ -1024,7 +1024,7 @@ void Dolphin::addUndoOperation(KIO::Job* job)
// all source URLs must be updated with the trash URL. E. g. when moving
// all source URLs must be updated with the trash URL. E. g. when moving
// a file "test.txt" and a second file "test.txt" to the trash,
// a file "test.txt" and a second file "test.txt" to the trash,
// then the filenames in the trash are "0-test.txt" and "1-test.txt".
// then the filenames in the trash are "0-test.txt" and "1-test.txt".
QMap< QString, QString> metaData = job - > metaData ( ) ;
T QMap< T QString, T QString> metaData = job - > metaData ( ) ;
KURL : : List newSourceURLs ;
KURL : : List newSourceURLs ;
KURL : : List sourceURLs = command . source ( ) ;
KURL : : List sourceURLs = command . source ( ) ;
@ -1032,7 +1032,7 @@ void Dolphin::addUndoOperation(KIO::Job* job)
const KURL : : List : : Iterator sourceEnd = sourceURLs . end ( ) ;
const KURL : : List : : Iterator sourceEnd = sourceURLs . end ( ) ;
while ( sourceIt ! = sourceEnd ) {
while ( sourceIt ! = sourceEnd ) {
QMap< QString, QString> : : ConstIterator metaIt = metaData . find( " trashURL- " + ( * sourceIt ) . path ( ) ) ;
T QMap< T QString, T QString> : : ConstIterator metaIt = metaData . tq find( " trashURL- " + ( * sourceIt ) . path ( ) ) ;
if ( metaIt ! = metaData . end ( ) ) {
if ( metaIt ! = metaData . end ( ) ) {
newSourceURLs . append ( KURL ( metaIt . data ( ) ) ) ;
newSourceURLs . append ( KURL ( metaIt . data ( ) ) ) ;
}
}
@ -1095,7 +1095,7 @@ void Dolphin::init()
setAcceptDrops ( true ) ;
setAcceptDrops ( true ) ;
m_splitter = new QSplitter( this ) ;
m_splitter = new T QSplitter( this ) ;
DolphinSettings & settings = DolphinSettings : : instance ( ) ;
DolphinSettings & settings = DolphinSettings : : instance ( ) ;
@ -1144,9 +1144,9 @@ void Dolphin::init()
stateChanged ( " new_file " ) ;
stateChanged ( " new_file " ) ;
setAutoSaveSettings ( ) ;
setAutoSaveSettings ( ) ;
QClipboard* clipboard = QApplication: : clipboard( ) ;
T QClipboard* clipboard = T QApplication: : tq clipboard( ) ;
connect ( clipboard , SIGNAL( dataChanged ( ) ) ,
connect ( clipboard , TQT_ SIGNAL( dataChanged ( ) ) ,
this , SLOT( updatePasteAction ( ) ) ) ;
this , TQT_ SLOT( updatePasteAction ( ) ) ) ;
updatePasteAction ( ) ;
updatePasteAction ( ) ;
updateGoActions ( ) ;
updateGoActions ( ) ;
@ -1177,173 +1177,173 @@ void Dolphin::setupActions()
{
{
// setup 'File' menu
// setup 'File' menu
KAction * createFolder = new KAction ( i18n ( " Folder... " ) , " Ctrl+N " ,
KAction * createFolder = new KAction ( i18n ( " Folder... " ) , " Ctrl+N " ,
this , SLOT( createFolder ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( createFolder ( ) ) ,
actionCollection ( ) , " create_folder " ) ;
actionCollection ( ) , " create_folder " ) ;
createFolder - > setIcon ( " folder " ) ;
createFolder - > setIcon ( " folder " ) ;
new KAction ( i18n ( " Rename " ) , KKey ( Key_F2 ) ,
new KAction ( i18n ( " Rename " ) , KKey ( Key_F2 ) ,
this , SLOT( rename ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( rename ( ) ) ,
actionCollection ( ) , " rename " ) ;
actionCollection ( ) , " rename " ) ;
KAction * moveToTrashAction = new KAction ( i18n ( " Move to Trash " ) , KKey ( Key_Delete ) ,
KAction * moveToTrashAction = new KAction ( i18n ( " Move to Trash " ) , KKey ( Key_Delete ) ,
this , SLOT( moveToTrash ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( moveToTrash ( ) ) ,
actionCollection ( ) , " move_to_trash " ) ;
actionCollection ( ) , " move_to_trash " ) ;
moveToTrashAction - > setIcon ( " edittrash " ) ;
moveToTrashAction - > setIcon ( " edittrash " ) ;
KAction * deleteAction = new KAction ( i18n ( " Delete " ) , " Shift+Delete " ,
KAction * deleteAction = new KAction ( i18n ( " Delete " ) , " Shift+Delete " ,
this , SLOT( deleteItems ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( deleteItems ( ) ) ,
actionCollection ( ) , " delete " ) ;
actionCollection ( ) , " delete " ) ;
deleteAction - > setIcon ( " editdelete " ) ;
deleteAction - > setIcon ( " editdelete " ) ;
new KAction ( i18n ( " Propert&ies " ) , " Alt+Return " ,
new KAction ( i18n ( " Propert&ies " ) , " Alt+Return " ,
this , SLOT( properties ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( properties ( ) ) ,
actionCollection ( ) , " properties " ) ;
actionCollection ( ) , " properties " ) ;
KStdAction : : quit ( this , SLOT( quit ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_ SLOT( quit ( ) ) , actionCollection ( ) ) ;
// setup 'Edit' menu
// setup 'Edit' menu
UndoManager & undoManager = UndoManager : : instance ( ) ;
UndoManager & undoManager = UndoManager : : instance ( ) ;
KStdAction : : undo ( & undoManager ,
KStdAction : : undo ( & undoManager ,
SLOT( undo ( ) ) ,
TQT_ SLOT( undo ( ) ) ,
actionCollection ( ) ) ;
actionCollection ( ) ) ;
connect ( & undoManager , SIGNAL( undoAvailable ( bool ) ) ,
connect ( & undoManager , TQT_ SIGNAL( undoAvailable ( bool ) ) ,
this , SLOT( slotUndoAvailable ( bool ) ) ) ;
TQT_TQOBJECT ( this ) , TQT_ SLOT( slotUndoAvailable ( bool ) ) ) ;
connect ( & undoManager , SIGNAL( undoTextChanged ( const QString& ) ) ,
connect ( & undoManager , TQT_ SIGNAL( undoTextChanged ( const T QString& ) ) ,
this , SLOT( slotUndoTextChanged ( const QString& ) ) ) ;
TQT_TQOBJECT ( this ) , TQT_ SLOT( slotUndoTextChanged ( const T QString& ) ) ) ;
KStdAction : : redo ( & undoManager ,
KStdAction : : redo ( & undoManager ,
SLOT( redo ( ) ) ,
TQT_ SLOT( redo ( ) ) ,
actionCollection ( ) ) ;
actionCollection ( ) ) ;
connect ( & undoManager , SIGNAL( redoAvailable ( bool ) ) ,
connect ( & undoManager , TQT_ SIGNAL( redoAvailable ( bool ) ) ,
this , SLOT( slotRedoAvailable ( bool ) ) ) ;
TQT_TQOBJECT ( this ) , TQT_ SLOT( slotRedoAvailable ( bool ) ) ) ;
connect ( & undoManager , SIGNAL( redoTextChanged ( const QString& ) ) ,
connect ( & undoManager , TQT_ SIGNAL( redoTextChanged ( const T QString& ) ) ,
this , SLOT( slotRedoTextChanged ( const QString& ) ) ) ;
TQT_TQOBJECT ( this ) , TQT_ SLOT( slotRedoTextChanged ( const T QString& ) ) ) ;
KStdAction : : cut ( this , SLOT( cut ( ) ) , actionCollection ( ) ) ;
KStdAction : : cut ( TQT_TQOBJECT ( this ) , TQT_ SLOT( cut ( ) ) , actionCollection ( ) ) ;
KStdAction : : copy ( this , SLOT( copy ( ) ) , actionCollection ( ) ) ;
KStdAction : : copy ( TQT_TQOBJECT ( this ) , TQT_ SLOT( copy ( ) ) , actionCollection ( ) ) ;
KStdAction : : paste ( this , SLOT( paste ( ) ) , actionCollection ( ) ) ;
KStdAction : : paste ( TQT_TQOBJECT ( this ) , TQT_ SLOT( paste ( ) ) , actionCollection ( ) ) ;
new KAction ( i18n ( " Select All " ) , " Ctrl+A " ,
new KAction ( i18n ( " Select All " ) , " Ctrl+A " ,
this , SLOT( selectAll ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( selectAll ( ) ) ,
actionCollection ( ) , " select_all " ) ;
actionCollection ( ) , " select_all " ) ;
new KAction ( i18n ( " Invert Selection " ) , " Ctrl+Shift+A " ,
new KAction ( i18n ( " Invert Selection " ) , " Ctrl+Shift+A " ,
this , SLOT( invertSelection ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( invertSelection ( ) ) ,
actionCollection ( ) , " invert_selection " ) ;
actionCollection ( ) , " invert_selection " ) ;
// setup 'View' menu
// setup 'View' menu
KStdAction : : zoomIn ( this ,
KStdAction : : zoomIn ( TQT_TQOBJECT ( this ) ,
SLOT( zoomIn ( ) ) ,
TQT_ SLOT( zoomIn ( ) ) ,
actionCollection ( ) ) ;
actionCollection ( ) ) ;
KStdAction : : zoomOut ( this ,
KStdAction : : zoomOut ( TQT_TQOBJECT ( this ) ,
SLOT( zoomOut ( ) ) ,
TQT_ SLOT( zoomOut ( ) ) ,
actionCollection ( ) ) ;
actionCollection ( ) ) ;
KRadioAction * iconsView = new KRadioAction ( i18n ( " Icons " ) , " Ctrl+1 " ,
KRadioAction * iconsView = new KRadioAction ( i18n ( " Icons " ) , " Ctrl+1 " ,
this , SLOT( setIconsView ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( setIconsView ( ) ) ,
actionCollection ( ) , " icons " ) ;
actionCollection ( ) , " icons " ) ;
iconsView - > setExclusiveGroup ( " view_mode " ) ;
iconsView - > setExclusiveGroup ( " view_mode " ) ;
iconsView - > setIcon ( " view_icon " ) ;
iconsView - > setIcon ( " view_icon " ) ;
KRadioAction * detailsView = new KRadioAction ( i18n ( " Details " ) , " Ctrl+2 " ,
KRadioAction * detailsView = new KRadioAction ( i18n ( " Details " ) , " Ctrl+2 " ,
this , SLOT( setDetailsView ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( setDetailsView ( ) ) ,
actionCollection ( ) , " details " ) ;
actionCollection ( ) , " details " ) ;
detailsView - > setExclusiveGroup ( " view_mode " ) ;
detailsView - > setExclusiveGroup ( " view_mode " ) ;
detailsView - > setIcon ( " view_text " ) ;
detailsView - > setIcon ( " view_text " ) ;
KRadioAction * previewsView = new KRadioAction ( i18n ( " Previews " ) , " Ctrl+3 " ,
KRadioAction * previewsView = new KRadioAction ( i18n ( " Previews " ) , " Ctrl+3 " ,
this , SLOT( setPreviewsView ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( setPreviewsView ( ) ) ,
actionCollection ( ) , " previews " ) ;
actionCollection ( ) , " previews " ) ;
previewsView - > setExclusiveGroup ( " view_mode " ) ;
previewsView - > setExclusiveGroup ( " view_mode " ) ;
previewsView - > setIcon ( " gvdirpart " ) ;
previewsView - > setIcon ( " gvdirpart " ) ;
KRadioAction * sortByName = new KRadioAction ( i18n ( " By Name " ) , 0 ,
KRadioAction * sortByName = new KRadioAction ( i18n ( " By Name " ) , 0 ,
this , SLOT( sortByName ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( sortByName ( ) ) ,
actionCollection ( ) , " by_name " ) ;
actionCollection ( ) , " by_name " ) ;
sortByName - > setExclusiveGroup ( " sort " ) ;
sortByName - > setExclusiveGroup ( " sort " ) ;
KRadioAction * sortBySize = new KRadioAction ( i18n ( " By Size " ) , 0 ,
KRadioAction * sortBySize = new KRadioAction ( i18n ( " By Size " ) , 0 ,
this , SLOT( sortBySize ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( sortBySize ( ) ) ,
actionCollection ( ) , " by_size " ) ;
actionCollection ( ) , " by_size " ) ;
sortBySize - > setExclusiveGroup ( " sort " ) ;
sortBySize - > setExclusiveGroup ( " sort " ) ;
KRadioAction * sortByDate = new KRadioAction ( i18n ( " By Date " ) , 0 ,
KRadioAction * sortByDate = new KRadioAction ( i18n ( " By Date " ) , 0 ,
this , SLOT( sortByDate ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( sortByDate ( ) ) ,
actionCollection ( ) , " by_date " ) ;
actionCollection ( ) , " by_date " ) ;
sortByDate - > setExclusiveGroup ( " sort " ) ;
sortByDate - > setExclusiveGroup ( " sort " ) ;
new KToggleAction ( i18n ( " Descending " ) , 0 , this , SLOT( toggleSortOrder ( ) ) ,
new KToggleAction ( i18n ( " Descending " ) , 0 , TQT_TQOBJECT ( this ) , TQT_ SLOT( toggleSortOrder ( ) ) ,
actionCollection ( ) , " descending " ) ;
actionCollection ( ) , " descending " ) ;
new KToggleAction ( i18n ( " Show Hidden Files " ) , " Alt+. " ,
new KToggleAction ( i18n ( " Show Hidden Files " ) , " Alt+. " ,
this , SLOT( showHiddenFiles ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( showHiddenFiles ( ) ) ,
actionCollection ( ) , " show_hidden_files " ) ;
actionCollection ( ) , " show_hidden_files " ) ;
KToggleAction * splitAction = new KToggleAction ( i18n ( " Split View " ) , " F10 " ,
KToggleAction * splitAction = new KToggleAction ( i18n ( " Split View " ) , " F10 " ,
this , SLOT( toggleSplitView ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( toggleSplitView ( ) ) ,
actionCollection ( ) , " split_view " ) ;
actionCollection ( ) , " split_view " ) ;
splitAction - > setIcon ( " view_left_right " ) ;
splitAction - > setIcon ( " view_left_right " ) ;
KAction * reloadAction = new KAction ( i18n ( " Reload " ) , " F5 " ,
KAction * reloadAction = new KAction ( i18n ( " Reload " ) , " F5 " ,
this , SLOT( reloadView ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( reloadView ( ) ) ,
actionCollection ( ) , " reload " ) ;
actionCollection ( ) , " reload " ) ;
reloadAction - > setIcon ( " reload " ) ;
reloadAction - > setIcon ( " reload " ) ;
KAction * stopAction = new KAction ( i18n ( " Stop " ) , 0 ,
KAction * stopAction = new KAction ( i18n ( " Stop " ) , 0 ,
this , SLOT( stopLoading ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( stopLoading ( ) ) ,
actionCollection ( ) , " stop " ) ;
actionCollection ( ) , " stop " ) ;
stopAction - > setIcon ( " stop " ) ;
stopAction - > setIcon ( " stop " ) ;
new KAction ( i18n ( " Edit Location " ) , " Ctrl+L " ,
new KAction ( i18n ( " Edit Location " ) , " Ctrl+L " ,
this , SLOT( editLocation ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( editLocation ( ) ) ,
actionCollection ( ) , " edit_location " ) ;
actionCollection ( ) , " edit_location " ) ;
new KAction ( i18n ( " Browse " ) , " Ctrl+B " ,
new KAction ( i18n ( " Browse " ) , " Ctrl+B " ,
this , SLOT( browse ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( browse ( ) ) ,
actionCollection ( ) , " browse " ) ;
actionCollection ( ) , " browse " ) ;
new KToggleAction ( i18n ( " Left Sidebar " ) , " F8 " ,
new KToggleAction ( i18n ( " Left Sidebar " ) , " F8 " ,
this , SLOT( toggleleftSidebar ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( toggleleftSidebar ( ) ) ,
actionCollection ( ) , " leftsidebar " ) ;
actionCollection ( ) , " leftsidebar " ) ;
new KToggleAction ( i18n ( " Right Sidebar " ) , " F9 " ,
new KToggleAction ( i18n ( " Right Sidebar " ) , " F9 " ,
this , SLOT( togglerightSidebar ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( togglerightSidebar ( ) ) ,
actionCollection ( ) , " rightsidebar " ) ;
actionCollection ( ) , " rightsidebar " ) ;
new KAction ( i18n ( " Adjust View Properties... " ) , 0 ,
new KAction ( i18n ( " Adjust View Properties... " ) , 0 ,
this , SLOT( adjustViewProperties ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( adjustViewProperties ( ) ) ,
actionCollection ( ) , " view_properties " ) ;
actionCollection ( ) , " view_properties " ) ;
// setup 'Go' menu
// setup 'Go' menu
KStdAction : : back ( this , SLOT( goBack ( ) ) , actionCollection ( ) ) ;
KStdAction : : back ( TQT_TQOBJECT ( this ) , TQT_ SLOT( goBack ( ) ) , actionCollection ( ) ) ;
KStdAction : : forward ( this , SLOT( goForward ( ) ) , actionCollection ( ) ) ;
KStdAction : : forward ( TQT_TQOBJECT ( this ) , TQT_ SLOT( goForward ( ) ) , actionCollection ( ) ) ;
KStdAction : : up ( this , SLOT( goUp ( ) ) , actionCollection ( ) ) ;
KStdAction : : up ( TQT_TQOBJECT ( this ) , TQT_ SLOT( goUp ( ) ) , actionCollection ( ) ) ;
KStdAction : : home ( this , SLOT( goHome ( ) ) , actionCollection ( ) ) ;
KStdAction : : home ( TQT_TQOBJECT ( this ) , TQT_ SLOT( goHome ( ) ) , actionCollection ( ) ) ;
// setup 'Tools' menu
// setup 'Tools' menu
KAction * openTerminalAction = new KAction ( i18n ( " Open Terminal " ) , " F4 " ,
KAction * openTerminalAction = new KAction ( i18n ( " Open Terminal " ) , " F4 " ,
this , SLOT( openTerminal ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( openTerminal ( ) ) ,
actionCollection ( ) , " open_terminal " ) ;
actionCollection ( ) , " open_terminal " ) ;
openTerminalAction - > setIcon ( " konsole " ) ;
openTerminalAction - > setIcon ( " konsole " ) ;
KAction * findFileAction = new KAction ( i18n ( " Find File... " ) , " Ctrl+F " ,
KAction * findFileAction = new KAction ( i18n ( " Find File... " ) , " Ctrl+F " ,
this , SLOT( findFile ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( findFile ( ) ) ,
actionCollection ( ) , " find_file " ) ;
actionCollection ( ) , " find_file " ) ;
findFileAction - > setIcon ( " file find" ) ;
findFileAction - > setIcon ( " file tq find" ) ;
new KToggleAction ( i18n ( " Show Filter Bar " ) , " filter " , " / " ,
new KToggleAction ( i18n ( " Show Filter Bar " ) , " filter " , " / " ,
this , SLOT( showFilterBar ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( showFilterBar ( ) ) ,
actionCollection ( ) , " show_filter_bar " ) ;
actionCollection ( ) , " show_filter_bar " ) ;
KAction * compareFilesAction = new KAction ( i18n ( " Compare Files " ) , 0 ,
KAction * compareFilesAction = new KAction ( i18n ( " Compare Files " ) , 0 ,
this , SLOT( compareFiles ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_ SLOT( compareFiles ( ) ) ,
actionCollection ( ) , " compare_files " ) ;
actionCollection ( ) , " compare_files " ) ;
compareFilesAction - > setIcon ( " kompare " ) ;
compareFilesAction - > setIcon ( " kompare " ) ;
compareFilesAction - > setEnabled ( false ) ;
compareFilesAction - > setEnabled ( false ) ;
// setup 'Settings' menu
// setup 'Settings' menu
KStdAction : : preferences ( this , SLOT( editSettings ( ) ) , actionCollection ( ) ) ;
KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_ SLOT( editSettings ( ) ) , actionCollection ( ) ) ;
}
}
void Dolphin : : setupCreateNewMenuActions ( )
void Dolphin : : setupCreateNewMenuActions ( )
@ -1354,18 +1354,18 @@ void Dolphin::setupCreateNewMenuActions()
// Copyright (C) 1998, 1999 David Faure <faure@kde.org>
// Copyright (C) 1998, 1999 David Faure <faure@kde.org>
// 2003 Sven Leiber <s.leiber@web.de>
// 2003 Sven Leiber <s.leiber@web.de>
QStringList files = actionCollection ( ) - > instance ( ) - > dirs ( ) - > findAllResources ( " templates " ) ;
T QStringList files = actionCollection ( ) - > instance ( ) - > dirs ( ) - > findAllResources ( " templates " ) ;
for ( QStringList: : Iterator it = files . begin ( ) ; it ! = files . end ( ) ; + + it ) {
for ( T QStringList: : Iterator it = files . begin ( ) ; it ! = files . end ( ) ; + + it ) {
if ( ( * it ) [ 0 ] ! = ' . ' ) {
if ( ( * it ) [ 0 ] ! = ' . ' ) {
KSimpleConfig config ( * it , true ) ;
KSimpleConfig config ( * it , true ) ;
config . setDesktopGroup ( ) ;
config . setDesktopGroup ( ) ;
// tricky solution to ensure that TextFile is at the beginning
// tricky solution to ensure that TextFile is at the beginning
// because this filetype is the most used (according kde-core discussion)
// because this filetype is the most used (according kde-core discussion)
const QString name ( config . readEntry ( " Name " ) ) ;
const T QString name ( config . readEntry ( " Name " ) ) ;
QString key ( name ) ;
T QString key ( name ) ;
const QString path ( config . readPathEntry ( " URL " ) ) ;
const T QString path ( config . readPathEntry ( " URL " ) ) ;
if ( ! path . endsWith ( " emptydir " ) ) {
if ( ! path . endsWith ( " emptydir " ) ) {
if ( path . endsWith ( " TextFile.txt " ) ) {
if ( path . endsWith ( " TextFile.txt " ) ) {
key = " 1 " + key ;
key = " 1 " + key ;
@ -1383,11 +1383,11 @@ void Dolphin::setupCreateNewMenuActions()
key = " 5 " ;
key = " 5 " ;
}
}
const QString icon ( config . readEntry ( " Icon " ) ) ;
const T QString icon ( config . readEntry ( " Icon " ) ) ;
const QString comment ( config . readEntry ( " Comment " ) ) ;
const T QString comment ( config . readEntry ( " Comment " ) ) ;
const QString type ( config . readEntry ( " Type " ) ) ;
const T QString type ( config . readEntry ( " Type " ) ) ;
const QString filePath ( * it ) ;
const T QString filePath ( * it ) ;
if ( type = = " Link " ) {
if ( type = = " Link " ) {
@ -1404,17 +1404,17 @@ void Dolphin::setupCreateNewMenuActions()
m_createFileTemplates . sort ( ) ;
m_createFileTemplates . sort ( ) ;
unplugActionList ( " create_actions " ) ;
unplugActionList ( " create_actions " ) ;
KSortableValueList < CreateFileEntry , QString> : : ConstIterator it = m_createFileTemplates . begin ( ) ;
KSortableValueList < CreateFileEntry , T QString> : : ConstIterator it = m_createFileTemplates . begin ( ) ;
KSortableValueList < CreateFileEntry , QString> : : ConstIterator end = m_createFileTemplates . end ( ) ;
KSortableValueList < CreateFileEntry , T QString> : : ConstIterator end = m_createFileTemplates . end ( ) ;
while ( it ! = end ) {
while ( it ! = end ) {
CreateFileEntry entry = ( * it ) . value ( ) ;
CreateFileEntry entry = ( * it ) . value ( ) ;
KAction * action = new KAction ( entry . name ) ;
KAction * action = new KAction ( entry . name ) ;
action - > setIcon ( entry . icon ) ;
action - > setIcon ( entry . icon ) ;
action - > setName ( ( * it ) . index ( ) . ascii ( ) ) ;
action - > setName ( ( * it ) . index ( ) . ascii ( ) ) ;
connect ( action , SIGNAL( activated ( ) ) ,
connect ( action , TQT_ SIGNAL( activated ( ) ) ,
this , SLOT( createFile ( ) ) ) ;
this , TQT_ SLOT( createFile ( ) ) ) ;
const QChar section = ( ( * it ) . index ( ) [ 0 ] ) ;
const T QChar section = ( ( * it ) . index ( ) [ 0 ] ) ;
switch ( section ) {
switch ( section ) {
case ' 1 ' :
case ' 1 ' :
case ' 2 ' : {
case ' 2 ' : {
@ -1450,7 +1450,7 @@ void Dolphin::setupCreateNewMenuActions()
void Dolphin : : updateHistory ( )
void Dolphin : : updateHistory ( )
{
{
int index = 0 ;
int index = 0 ;
const QValueList< URLNavigator : : HistoryElem > list = m_activeView - > urlHistory ( index ) ;
const T QValueList< URLNavigator : : HistoryElem > list = m_activeView - > urlHistory ( index ) ;
KAction * backAction = actionCollection ( ) - > action ( " go_back " ) ;
KAction * backAction = actionCollection ( ) - > action ( " go_back " ) ;
if ( backAction ! = 0 ) {
if ( backAction ! = 0 ) {
@ -1567,7 +1567,7 @@ void Dolphin::updateViewProperties(const KURL::List& urls)
// use case is not worth the effort, but at least the main widget
// use case is not worth the effort, but at least the main widget
// must be disabled and a progress should be shown.
// must be disabled and a progress should be shown.
ProgressIndicator progressIndicator ( i18n ( " Updating view properties... " ) ,
ProgressIndicator progressIndicator ( i18n ( " Updating view properties... " ) ,
QString: : null ,
TQString( ) ,
urls . count ( ) ) ;
urls . count ( ) ) ;
KURL : : List : : ConstIterator end = urls . end ( ) ;
KURL : : List : : ConstIterator end = urls . end ( ) ;
@ -1596,8 +1596,8 @@ void Dolphin::addPendingUndoJob(KIO::Job* job,
const KURL : : List & source ,
const KURL : : List & source ,
const KURL & dest )
const KURL & dest )
{
{
connect ( job , SIGNAL( result ( KIO : : Job * ) ) ,
connect ( job , TQT_ SIGNAL( result ( KIO : : Job * ) ) ,
this , SLOT( addUndoOperation ( KIO : : Job * ) ) ) ;
this , TQT_ SLOT( addUndoOperation ( KIO : : Job * ) ) ) ;
UndoInfo undoInfo ;
UndoInfo undoInfo ;
undoInfo . id = job - > progressId ( ) ;
undoInfo . id = job - > progressId ( ) ;
@ -1620,10 +1620,10 @@ void Dolphin::openleftSidebar()
m_leftsidebar = new leftSidebar ( m_splitter ) ;
m_leftsidebar = new leftSidebar ( m_splitter ) ;
m_leftsidebar - > show ( ) ;
m_leftsidebar - > show ( ) ;
connect ( m_leftsidebar , SIGNAL( urlChanged ( const KURL & ) ) ,
connect ( m_leftsidebar , TQT_ SIGNAL( urlChanged ( const KURL & ) ) ,
this , SLOT( slotURLChangeRequest ( const KURL & ) ) ) ;
this , TQT_ SLOT( slotURLChangeRequest ( const KURL & ) ) ) ;
m_splitter - > setCollapsible ( m_leftsidebar , false ) ;
m_splitter - > setCollapsible ( m_leftsidebar , false ) ;
m_splitter - > setResizeMode ( m_leftsidebar , QSplitter: : KeepSize ) ;
m_splitter - > setResizeMode ( m_leftsidebar , T QSplitter: : KeepSize ) ;
m_splitter - > moveToFirst ( m_leftsidebar ) ;
m_splitter - > moveToFirst ( m_leftsidebar ) ;
leftSidebarSettings * settings = DolphinSettings : : instance ( ) . leftsidebar ( ) ;
leftSidebarSettings * settings = DolphinSettings : : instance ( ) . leftsidebar ( ) ;
@ -1640,10 +1640,10 @@ void Dolphin::openrightSidebar()
m_rightsidebar = new rightSidebar ( m_splitter ) ;
m_rightsidebar = new rightSidebar ( m_splitter ) ;
m_rightsidebar - > show ( ) ;
m_rightsidebar - > show ( ) ;
connect ( m_rightsidebar , SIGNAL( urlChanged ( const KURL & ) ) ,
connect ( m_rightsidebar , TQT_ SIGNAL( urlChanged ( const KURL & ) ) ,
this , SLOT( slotURLChangeRequest ( const KURL & ) ) ) ;
this , TQT_ SLOT( slotURLChangeRequest ( const KURL & ) ) ) ;
m_splitter - > setCollapsible ( m_rightsidebar , false ) ;
m_splitter - > setCollapsible ( m_rightsidebar , false ) ;
m_splitter - > setResizeMode ( m_rightsidebar , QSplitter: : KeepSize ) ;
m_splitter - > setResizeMode ( m_rightsidebar , T QSplitter: : KeepSize ) ;
m_splitter - > moveToLast ( m_rightsidebar ) ;
m_splitter - > moveToLast ( m_rightsidebar ) ;
rightSidebarSettings * settings = DolphinSettings : : instance ( ) . rightsidebar ( ) ;
rightSidebarSettings * settings = DolphinSettings : : instance ( ) . rightsidebar ( ) ;