@ -209,9 +209,9 @@ SvnActions::SvnActions(ItemDisplay *parent, const char *name,bool processes_bloc
m_Data - > m_ParentList = parent ;
m_Data - > m_ParentList = parent ;
m_Data - > m_SvnContextListener = new CContextListener ( this ) ;
m_Data - > m_SvnContextListener = new CContextListener ( this ) ;
m_Data - > runblocked = processes_blocked ;
m_Data - > runblocked = processes_blocked ;
connect ( m_Data - > m_SvnContextListener , TQ T _SIGNAL( sendNotify ( const TQString & ) ) , this , TQ T _SLOT( slotNotifyMessage ( const TQString & ) ) ) ;
connect ( m_Data - > m_SvnContextListener , TQ _SIGNAL( sendNotify ( const TQString & ) ) , this , TQ _SLOT( slotNotifyMessage ( const TQString & ) ) ) ;
connect ( & ( m_Data - > m_ThreadCheckTimer ) , TQ T _SIGNAL( timeout ( ) ) , this , TQ T _SLOT( checkModthread ( ) ) ) ;
connect ( & ( m_Data - > m_ThreadCheckTimer ) , TQ _SIGNAL( timeout ( ) ) , this , TQ _SLOT( checkModthread ( ) ) ) ;
connect ( & ( m_Data - > m_UpdateCheckTimer ) , TQ T _SIGNAL( timeout ( ) ) , this , TQ T _SLOT( checkUpdateThread ( ) ) ) ;
connect ( & ( m_Data - > m_UpdateCheckTimer ) , TQ _SIGNAL( timeout ( ) ) , this , TQ _SLOT( checkUpdateThread ( ) ) ) ;
}
}
svn : : Client * SvnActions : : svnclient ( )
svn : : Client * SvnActions : : svnclient ( )
@ -291,7 +291,7 @@ svn::SharedPointer<svn::LogEntriesMap> SvnActions::getLog(const svn::Revision&st
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , ( parent ? parent : m_Data - > m_ParentList - > realWidget ( ) ) , 0 , " Logs " ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , ( parent ? parent : m_Data - > m_ParentList - > realWidget ( ) ) , 0 , " Logs " ,
i18n ( " Getting logs - hit cancel for abort " ) ) ;
i18n ( " Getting logs - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
if ( doNetworking ( ) ) {
if ( doNetworking ( ) ) {
m_Data - > m_Svnclient - > log ( which , start , end , * logs , peg , list_files , ! follow , limit ) ;
m_Data - > m_Svnclient - > log ( which , start , end , * logs , peg , list_files , ! follow , limit ) ;
} else {
} else {
@ -454,15 +454,15 @@ void SvnActions::makeTree(const TQString&what,const svn::Revision&_rev,const svn
disp = rt . getView ( ) ;
disp = rt . getView ( ) ;
if ( disp ) {
if ( disp ) {
connect (
connect (
disp , TQ T _SIGNAL( makeNorecDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
disp , TQ _SIGNAL( makeNorecDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
this , TQ T _SLOT( makeNorecDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) )
this , TQ _SLOT( makeNorecDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) )
) ;
) ;
connect (
connect (
disp , TQ T _SIGNAL( makeRecDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
disp , TQ _SIGNAL( makeRecDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
this , TQ T _SLOT( makeDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) )
this , TQ _SLOT( makeDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) )
) ;
) ;
connect ( disp , TQ T _SIGNAL( makeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
connect ( disp , TQ _SIGNAL( makeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
this , TQ T _SLOT( slotMakeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ) ;
this , TQ _SLOT( slotMakeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ) ;
dlg . resize ( dlg . configDialogSize ( * ( Kdesvnsettings : : self ( ) - > config ( ) ) , " revisiontree_dlg " ) ) ;
dlg . resize ( dlg . configDialogSize ( * ( Kdesvnsettings : : self ( ) - > config ( ) ) , " revisiontree_dlg " ) ) ;
dlg . exec ( ) ;
dlg . exec ( ) ;
dlg . saveDialogSize ( * ( Kdesvnsettings : : self ( ) - > config ( ) ) , " revisiontree_dlg " , false ) ;
dlg . saveDialogSize ( * ( Kdesvnsettings : : self ( ) - > config ( ) ) , " revisiontree_dlg " , false ) ;
@ -486,10 +486,10 @@ void SvnActions::makeLog(const svn::Revision&start,const svn::Revision&end,const
bool need_modal = m_Data - > runblocked | | TDEApplication : : activeModalWidget ( ) ! = 0 ;
bool need_modal = m_Data - > runblocked | | TDEApplication : : activeModalWidget ( ) ! = 0 ;
if ( need_modal | | ! m_Data - > m_LogDialog ) {
if ( need_modal | | ! m_Data - > m_LogDialog ) {
m_Data - > m_LogDialog = new SvnLogDlgImp ( this , 0 , " logdialog " , need_modal ) ;
m_Data - > m_LogDialog = new SvnLogDlgImp ( this , 0 , " logdialog " , need_modal ) ;
connect ( m_Data - > m_LogDialog , TQ T _SIGNAL( makeDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
connect ( m_Data - > m_LogDialog , TQ _SIGNAL( makeDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
this , TQ T _SLOT( makeDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ) ;
this , TQ _SLOT( makeDiff ( const TQString & , const svn : : Revision & , const TQString & , const svn : : Revision & , TQWidget * ) ) ) ;
connect ( m_Data - > m_LogDialog , TQ T _SIGNAL( makeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
connect ( m_Data - > m_LogDialog , TQ _SIGNAL( makeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ,
this , TQ T _SLOT( slotMakeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ) ;
this , TQ _SLOT( slotMakeCat ( const svn : : Revision & , const TQString & , const TQString & , const svn : : Revision & , TQWidget * ) ) ) ;
}
}
if ( m_Data - > m_LogDialog ) {
if ( m_Data - > m_LogDialog ) {
@ -528,7 +528,7 @@ void SvnActions::makeBlame(const svn::Revision&start, const svn::Revision&end,co
try {
try {
CursorStack a ( TQt : : BusyCursor ) ;
CursorStack a ( TQt : : BusyCursor ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , _parent , 0 , " Annotate " , i18n ( " Annotate lines - hit cancel for abort " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , _parent , 0 , " Annotate " , i18n ( " Annotate lines - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > annotate ( blame , p , start , end , peg ) ;
m_Data - > m_Svnclient - > annotate ( blame , p , start , end , peg ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -554,7 +554,7 @@ bool SvnActions::makeGet(const svn::Revision&start, const TQString&what, const T
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , dlgp ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , dlgp ,
0 , " Content get " , i18n ( " Getting content - hit cancel for abort " ) ) ;
0 , " Content get " , i18n ( " Getting content - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > get ( p , target , start , peg ) ;
m_Data - > m_Svnclient - > get ( p , target , start , peg ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -673,7 +673,7 @@ TQString SvnActions::getInfo(const TQString& _what,const svn::Revision&rev,const
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , " Details " ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , " Details " ,
i18n ( " Retrieving infos - hit cancel for abort " ) ) ;
i18n ( " Retrieving infos - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
svn : : InfoEntries e ;
svn : : InfoEntries e ;
entries = ( m_Data - > m_Svnclient - > info ( _what +
entries = ( m_Data - > m_Svnclient - > info ( _what +
( _what . find ( " @ " ) > - 1 & & ! svn : : Url : : isValid ( _what ) ? " @BASE " : " " ) , recursive ? svn : : DepthInfinity : svn : : DepthEmpty , rev , peg ) ) ;
( _what . find ( " @ " ) > - 1 & & ! svn : : Url : : isValid ( _what ) ? " @BASE " : " " ) , recursive ? svn : : DepthInfinity : svn : : DepthEmpty , rev , peg ) ) ;
@ -865,7 +865,7 @@ void SvnActions::slotProperties()
if ( ! k ) return ;
if ( ! k ) return ;
PropertiesDlg dlg ( k , svnclient ( ) ,
PropertiesDlg dlg ( k , svnclient ( ) ,
m_Data - > m_ParentList - > isWorkingCopy ( ) ? svn : : Revision : : WORKING : svn : : Revision : : HEAD ) ;
m_Data - > m_ParentList - > isWorkingCopy ( ) ? svn : : Revision : : WORKING : svn : : Revision : : HEAD ) ;
connect ( & dlg , TQ T _SIGNAL( clientException ( const TQString & ) ) , m_Data - > m_ParentList - > realWidget ( ) , TQ T _SLOT( slotClientException ( const TQString & ) ) ) ;
connect ( & dlg , TQ _SIGNAL( clientException ( const TQString & ) ) , m_Data - > m_ParentList - > realWidget ( ) , TQ _SLOT( slotClientException ( const TQString & ) ) ) ;
dlg . resize ( dlg . configDialogSize ( * ( Kdesvnsettings : : self ( ) - > config ( ) ) , " properties_dlg " ) ) ;
dlg . resize ( dlg . configDialogSize ( * ( Kdesvnsettings : : self ( ) - > config ( ) ) , " properties_dlg " ) ) ;
if ( dlg . exec ( ) ! = TQDialog : : Accepted ) {
if ( dlg . exec ( ) ! = TQDialog : : Accepted ) {
return ;
return ;
@ -884,7 +884,7 @@ bool SvnActions::changeProperties(const svn::PropertiesMap&setList,const TQValue
{
{
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , " Applying properties " , " <center>Applying<br>hit cancel for abort</center> " ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , " Applying properties " , " <center>Applying<br>hit cancel for abort</center> " ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
unsigned int pos ;
unsigned int pos ;
for ( pos = 0 ; pos < delList . size ( ) ; + + pos ) {
for ( pos = 0 ; pos < delList . size ( ) ; + + pos ) {
m_Data - > m_Svnclient - > propdel ( delList [ pos ] , svn : : Path ( path ) ) ;
m_Data - > m_Svnclient - > propdel ( delList [ pos ] , svn : : Path ( path ) ) ;
@ -1024,7 +1024,7 @@ bool SvnActions::makeCommit(const svn::Targets&targets)
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Commiting " ) ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Commiting " ) ,
i18n ( " Commiting - hit cancel for abort " ) ) ;
i18n ( " Commiting - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
nnum = m_Data - > m_Svnclient - > commit ( _targets , msg , depth , keeplocks ) ;
nnum = m_Data - > m_Svnclient - > commit ( _targets , msg , depth , keeplocks ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -1085,7 +1085,7 @@ bool SvnActions::get(const TQString&what,const TQString& to,const svn::Revision&
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , p ? p : m_Data - > m_ParentList - > realWidget ( ) , 0 , " Downloading " ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , p ? p : m_Data - > m_ParentList - > realWidget ( ) , 0 , " Downloading " ,
i18n ( " Download - hit cancel for abort " ) ) ;
i18n ( " Download - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > get ( svn : : Path ( what ) ,
m_Data - > m_Svnclient - > get ( svn : : Path ( what ) ,
to , rev , _peg ) ;
to , rev , _peg ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
@ -1193,9 +1193,9 @@ void SvnActions::makeDiffExternal(const TQString&p1,const svn::Revision&start,co
* proc < < * it ;
* proc < < * it ;
}
}
}
}
connect ( proc , TQ T _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ T _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ T _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ T _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
if ( proc - > start ( m_Data - > runblocked ? TDEProcess : : Block : TDEProcess : : NotifyOnExit , TDEProcess : : All ) ) {
if ( proc - > start ( m_Data - > runblocked ? TDEProcess : : Block : TDEProcess : : NotifyOnExit , TDEProcess : : All ) ) {
if ( ! m_Data - > runblocked ) {
if ( ! m_Data - > runblocked ) {
if ( ! isDir ) {
if ( ! isDir ) {
@ -1249,7 +1249,7 @@ void SvnActions::makeDiffinternal(const TQString&p1,const svn::Revision&r1,const
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , parent , 0 , " Diffing " ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , parent , 0 , " Diffing " ,
i18n ( " Diffing - hit cancel for abort " ) ) ;
i18n ( " Diffing - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
if ( p1 = = p2 & & ( r1 . isRemote ( ) | | r2 . isRemote ( ) ) ) {
if ( p1 = = p2 & & ( r1 . isRemote ( ) | | r2 . isRemote ( ) ) ) {
kdDebug ( ) < < " Pegged diff " < < endl ;
kdDebug ( ) < < " Pegged diff " < < endl ;
ex = m_Data - > m_Svnclient - > diff_peg ( svn : : Path ( tn ) ,
ex = m_Data - > m_Svnclient - > diff_peg ( svn : : Path ( tn ) ,
@ -1300,7 +1300,7 @@ void SvnActions::makeNorecDiff(const TQString&p1,const svn::Revision&r1,const TQ
bool ignore_content = Kdesvnsettings : : diff_ignore_content ( ) ;
bool ignore_content = Kdesvnsettings : : diff_ignore_content ( ) ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , _p ? _p : m_Data - > m_ParentList - > realWidget ( ) , 0 , " Diffing " , " Diffing - hit cancel for abort " ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , _p ? _p : m_Data - > m_ParentList - > realWidget ( ) , 0 , " Diffing " , " Diffing - hit cancel for abort " ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
ex = m_Data - > m_Svnclient - > diff ( svn : : Path ( tn ) ,
ex = m_Data - > m_Svnclient - > diff ( svn : : Path ( tn ) ,
svn : : Path ( p1 ) , svn : : Path ( p2 ) , svn : : Path ( ) ,
svn : : Path ( p1 ) , svn : : Path ( p2 ) , svn : : Path ( ) ,
r1 , r2 ,
r1 , r2 ,
@ -1342,10 +1342,10 @@ void SvnActions::dispDiff(const TQByteArray&ex)
}
}
}
}
connect ( proc , TQ T _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ T _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ T _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
if ( ! fname_used ) {
if ( ! fname_used ) {
connect ( proc , TQ T _SIGNAL( wroteStdin ( TDEProcess * ) ) , this , TQ T _SLOT( wroteStdin ( TDEProcess * ) ) ) ;
connect ( proc , TQ _SIGNAL( wroteStdin ( TDEProcess * ) ) , this , TQ _SLOT( wroteStdin ( TDEProcess * ) ) ) ;
}
}
if ( proc - > start ( TDEProcess : : NotifyOnExit , fname_used ? TDEProcess : : Stderr : ( TDEProcess : : Communication ) r ) ) {
if ( proc - > start ( TDEProcess : : NotifyOnExit , fname_used ? TDEProcess : : Stderr : ( TDEProcess : : Communication ) r ) ) {
if ( ! fname_used ) proc - > writeStdin ( ex , ex . size ( ) ) ;
if ( ! fname_used ) proc - > writeStdin ( ex , ex . size ( ) ) ;
@ -1370,10 +1370,10 @@ void SvnActions::dispDiff(const TQByteArray&ex)
TQWidget * wd = dlg - > mainWidget ( ) ;
TQWidget * wd = dlg - > mainWidget ( ) ;
if ( wd ) {
if ( wd ) {
EncodingSelector_impl * ls = new EncodingSelector_impl ( " " , wd ) ;
EncodingSelector_impl * ls = new EncodingSelector_impl ( " " , wd ) ;
TQObject : : connect ( ls , TQ T _SIGNAL( TextCodecChanged ( const TQString & ) ) ,
TQObject : : connect ( ls , TQ _SIGNAL( TextCodecChanged ( const TQString & ) ) ,
ptr , TQ T _SLOT( slotTextCodecChanged ( const TQString & ) ) ) ;
ptr , TQ _SLOT( slotTextCodecChanged ( const TQString & ) ) ) ;
}
}
TQObject : : connect ( dlg , TQ T _SIGNAL( user1Clicked ( ) ) , ptr , TQ T _SLOT( saveDiff ( ) ) ) ;
TQObject : : connect ( dlg , TQ _SIGNAL( user1Clicked ( ) ) , ptr , TQ _SLOT( saveDiff ( ) ) ) ;
ptr - > setText ( ex ) ;
ptr - > setText ( ex ) ;
if ( need_modal ) {
if ( need_modal ) {
ptr - > setFocus ( ) ;
ptr - > setFocus ( ) ;
@ -1409,7 +1409,7 @@ void SvnActions::makeUpdate(const TQStringList&what,const svn::Revision&rev,bool
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , " Making update " ,
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , " Making update " ,
i18n ( " Making update - hit cancel for abort " ) ) ;
i18n ( " Making update - hit cancel for abort " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
svn : : Targets pathes ( what ) ;
svn : : Targets pathes ( what ) ;
ret = m_Data - > m_Svnclient - > update ( pathes , rev , recurse ? svn : : DepthInfinity : svn : : DepthFiles , false , false , true ) ;
ret = m_Data - > m_Svnclient - > update ( pathes , rev , recurse ? svn : : DepthInfinity : svn : : DepthFiles , false , false , true ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
@ -1689,7 +1689,7 @@ bool SvnActions::makeCheckout(const TQString&rUrl,const TQString&tPath,const svn
if ( ! _exp | | ! m_Data - > m_CurrentContext ) reInitClient ( ) ;
if ( ! _exp | | ! m_Data - > m_CurrentContext ) reInitClient ( ) ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , _p ? _p : m_Data - > m_ParentList - > realWidget ( ) , 0 , _exp ? i18n ( " Export " ) : i18n ( " Checkout " ) , _exp ? i18n ( " Exporting " ) : i18n ( " Checking out " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , _p ? _p : m_Data - > m_ParentList - > realWidget ( ) , 0 , _exp ? i18n ( " Export " ) : i18n ( " Checkout " ) , _exp ? i18n ( " Exporting " ) : i18n ( " Checking out " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
if ( _exp ) {
if ( _exp ) {
/// @todo setup parameter for export operation
/// @todo setup parameter for export operation
m_Data - > m_Svnclient - > doExport ( svn : : Path ( fUrl ) , p , r , peg , overwrite , TQString ( ) , ignoreExternal , depth ) ;
m_Data - > m_Svnclient - > doExport ( svn : : Path ( fUrl ) , p , r , peg , overwrite , TQString ( ) , ignoreExternal , depth ) ;
@ -1762,7 +1762,7 @@ void SvnActions::slotRevertItems(const TQStringList&displist)
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Revert " ) , i18n ( " Reverting items " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Revert " ) , i18n ( " Reverting items " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
svn : : Targets target ( items ) ;
svn : : Targets target ( items ) ;
m_Data - > m_Svnclient - > revert ( target , depth ) ;
m_Data - > m_Svnclient - > revert ( target , depth ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
@ -1788,7 +1788,7 @@ bool SvnActions::makeSwitch(const TQString&rUrl,const TQString&tPath,const svn::
svn : : Path p ( tPath ) ;
svn : : Path p ( tPath ) ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Switch url " ) , i18n ( " Switching url " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Switch url " ) , i18n ( " Switching url " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > doSwitch ( p , fUrl , r , depth , peg , stickydepth , ignore_externals , allow_unversioned ) ;
m_Data - > m_Svnclient - > doSwitch ( p , fUrl , r , depth , peg , stickydepth , ignore_externals , allow_unversioned ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -1813,7 +1813,7 @@ bool SvnActions::makeRelocate(const TQString&fUrl,const TQString&tUrl,const TQSt
svn : : Path p ( path ) ;
svn : : Path p ( path ) ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Relocate url " ) , i18n ( " Relocate repository to new URL " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Relocate url " ) , i18n ( " Relocate repository to new URL " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > relocate ( p , _f , _t , rec ) ;
m_Data - > m_Svnclient - > relocate ( p , _f , _t , rec ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -1875,7 +1875,7 @@ bool SvnActions::makeCleanup(const TQString&path)
if ( ! m_Data - > m_CurrentContext ) return false ;
if ( ! m_Data - > m_CurrentContext ) return false ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Cleanup " ) , i18n ( " Cleaning up folder " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Cleanup " ) , i18n ( " Cleaning up folder " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > cleanup ( svn : : Path ( path ) ) ;
m_Data - > m_Svnclient - > cleanup ( svn : : Path ( path ) ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -1889,7 +1889,7 @@ void SvnActions::slotResolved(const TQString&path)
if ( ! m_Data - > m_CurrentContext ) return ;
if ( ! m_Data - > m_CurrentContext ) return ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Resolve " ) , i18n ( " Marking resolved " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Resolve " ) , i18n ( " Marking resolved " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > resolve ( svn : : Path ( path ) , svn : : DepthEmpty ) ;
m_Data - > m_Svnclient - > resolve ( svn : : Path ( path ) , svn : : DepthEmpty ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -1938,9 +1938,9 @@ void SvnActions::slotResolve(const TQString&p)
* proc < < * it ;
* proc < < * it ;
}
}
}
}
connect ( proc , TQ T _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ T _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ T _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ T _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ _SIGNAL( receivedStdout ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
if ( proc - > start ( m_Data - > runblocked ? TDEProcess : : Block : TDEProcess : : NotifyOnExit , TDEProcess : : All ) ) {
if ( proc - > start ( m_Data - > runblocked ? TDEProcess : : Block : TDEProcess : : NotifyOnExit , TDEProcess : : All ) ) {
return ;
return ;
} else {
} else {
@ -1956,7 +1956,7 @@ void SvnActions::slotImport(const TQString&path,const TQString&target,const TQSt
if ( ! m_Data - > m_CurrentContext ) return ;
if ( ! m_Data - > m_CurrentContext ) return ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Import " ) , i18n ( " Importing items " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Import " ) , i18n ( " Importing items " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > import ( svn : : Path ( path ) , target , message , depth , noIgnore , noUnknown ) ;
m_Data - > m_Svnclient - > import ( svn : : Path ( path ) , target , message , depth , noIgnore , noUnknown ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -2088,8 +2088,8 @@ void SvnActions::slotMergeExternal(const TQString&_src1,const TQString&_src2, co
* proc < < * it ;
* proc < < * it ;
}
}
}
}
connect ( proc , TQ T _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ T _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ _SLOT( procClosed ( TDEProcess * ) ) ) ;
connect ( proc , TQ T _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ T _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
connect ( proc , TQ _SIGNAL( receivedStderr ( TDEProcess * , char * , int ) ) , this , TQ _SLOT( receivedStderr ( TDEProcess * , char * , int ) ) ) ;
if ( proc - > start ( m_Data - > runblocked ? TDEProcess : : Block : TDEProcess : : NotifyOnExit , TDEProcess : : Stderr ) ) {
if ( proc - > start ( m_Data - > runblocked ? TDEProcess : : Block : TDEProcess : : NotifyOnExit , TDEProcess : : Stderr ) ) {
if ( ! m_Data - > runblocked ) {
if ( ! m_Data - > runblocked ) {
tdir1 . setAutoDelete ( false ) ;
tdir1 . setAutoDelete ( false ) ;
@ -2147,7 +2147,7 @@ void SvnActions::slotMerge(const TQString&src1,const TQString&src2, const TQStri
}
}
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Merge " ) , i18n ( " Merging items " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Merge " ) , i18n ( " Merging items " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
if ( pegged_merge ) {
if ( pegged_merge ) {
m_Data - > m_Svnclient - > merge_peg ( p1 , ranges , svn : : Revision : : HEAD , svn : : Path ( target ) , rec ? svn : : DepthUnknown : svn : : DepthFiles ,
m_Data - > m_Svnclient - > merge_peg ( p1 , ranges , svn : : Revision : : HEAD , svn : : Path ( target ) , rec ? svn : : DepthUnknown : svn : : DepthFiles ,
ancestry , dry , forceIt , false ) ;
ancestry , dry , forceIt , false ) ;
@ -2171,7 +2171,7 @@ bool SvnActions::makeMove(const TQString&Old,const TQString&New,bool force)
svn : : Revision nnum ;
svn : : Revision nnum ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Move " ) , i18n ( " Moving/Rename item " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Move " ) , i18n ( " Moving/Rename item " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
nnum = m_Data - > m_Svnclient - > move ( svn : : Path ( Old ) , svn : : Path ( New ) , force ) ;
nnum = m_Data - > m_Svnclient - > move ( svn : : Path ( Old ) , svn : : Path ( New ) , force ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -2189,7 +2189,7 @@ bool SvnActions::makeMove(const KURL::List&Old,const TQString&New,bool force)
svn : : Revision nnum ;
svn : : Revision nnum ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Move " ) , i18n ( " Moving entries " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Move " ) , i18n ( " Moving entries " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
KURL : : List : : ConstIterator it = Old . begin ( ) ;
KURL : : List : : ConstIterator it = Old . begin ( ) ;
bool local = false ;
bool local = false ;
@ -2216,7 +2216,7 @@ bool SvnActions::makeCopy(const TQString&Old,const TQString&New,const svn::Revis
if ( ! m_Data - > m_CurrentContext ) return false ;
if ( ! m_Data - > m_CurrentContext ) return false ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Copy / Move " ) , i18n ( " Copy or Moving entries " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Copy / Move " ) , i18n ( " Copy or Moving entries " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
m_Data - > m_Svnclient - > copy ( svn : : Path ( Old ) , rev , svn : : Path ( New ) ) ;
m_Data - > m_Svnclient - > copy ( svn : : Path ( Old ) , rev , svn : : Path ( New ) ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
emit clientException ( e . msg ( ) ) ;
emit clientException ( e . msg ( ) ) ;
@ -2241,7 +2241,7 @@ bool SvnActions::makeCopy(const KURL::List&Old,const TQString&New,const svn::Rev
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Copy / Move " ) , i18n ( " Copy or Moving entries " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Copy / Move " ) , i18n ( " Copy or Moving entries " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
KURL : : List : : ConstIterator it = Old . begin ( ) ;
KURL : : List : : ConstIterator it = Old . begin ( ) ;
m_Data - > m_Svnclient - > copy ( t , rev , rev , svn : : Path ( New ) , true ) ;
m_Data - > m_Svnclient - > copy ( t , rev , rev , svn : : Path ( New ) , true ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {
@ -2310,7 +2310,7 @@ bool SvnActions::makeStatus(const TQString&what, svn::StatusEntries&dlist, svn::
svn : : Depth _d = rec ? svn : : DepthInfinity : svn : : DepthImmediates ;
svn : : Depth _d = rec ? svn : : DepthInfinity : svn : : DepthImmediates ;
try {
try {
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Status / List " ) , i18n ( " Creating list / check status " ) ) ;
StopDlg sdlg ( m_Data - > m_SvnContextListener , m_Data - > m_ParentList - > realWidget ( ) , 0 , i18n ( " Status / List " ) , i18n ( " Creating list / check status " ) ) ;
connect ( this , TQ T _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ T _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( sigExtraLogMsg ( const TQString & ) ) , & sdlg , TQ _SLOT( slotExtraMessage ( const TQString & ) ) ) ;
// rec all up noign
// rec all up noign
dlist = m_Data - > m_Svnclient - > status ( what , _d , all , updates , display_ignores , where , disp_remote_details , false ) ;
dlist = m_Data - > m_Svnclient - > status ( what , _d , all , updates , display_ignores , where , disp_remote_details , false ) ;
} catch ( const svn : : Exception & e ) {
} catch ( const svn : : Exception & e ) {