kbear-cvs Mailing List for KBear, a graphical ftp client for KDE (Page 2)
Brought to you by:
kbjorn
You can subscribe to this list here.
| 2003 |
Jan
(113) |
Feb
(143) |
Mar
(31) |
Apr
(88) |
May
(126) |
Jun
(163) |
Jul
(209) |
Aug
(36) |
Sep
(6) |
Oct
(4) |
Nov
(35) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
(11) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
|
Dec
|
|
From: <fri...@us...> - 2003-11-29 13:52:53
|
Update of /cvsroot/kbear/kbear/kbear/lib/interfaces
In directory sc8-pr-cvs1:/tmp/cvs-serv21014/kbear/lib/interfaces
Modified Files:
kbearfilesyspartiface.cpp kbearfilesyspartiface.h
transfergroup.cpp transfergroup.h
Log Message:
Added reloading function after uploads.
Index: kbearfilesyspartiface.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/kbearfilesyspartiface.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** kbearfilesyspartiface.cpp 27 Nov 2003 16:10:24 -0000 1.39
--- kbearfilesyspartiface.cpp 29 Nov 2003 13:52:50 -0000 1.40
***************
*** 71,74 ****
--- 71,75 ----
#include "kbeardirview.h"
#include "transfermanager.h"
+ #include "transfergroup.h"
#include "kbeardirlisteriface.h"
#include "kbearmainwiniface.h"
***************
*** 113,116 ****
--- 114,118 ----
KFileItem* m_lastFoundItem;
bool m_searchBackwards;
+ int transferFinishCounter, numTransfers;
};
//-----------------------------------------------
***************
*** 782,786 ****
kdDebug()<<"KBearFileSysPartInterface::slotPaste()"<<endl;
! m_api->transferManager()->addTransfers( drag );
if( /*! metaData.contains("Action") || */metaData["Action"] == "move" )
--- 784,792 ----
kdDebug()<<"KBearFileSysPartInterface::slotPaste()"<<endl;
!
! TransferGroup *grp = m_api->transferManager()->addTransfers( drag );
! d->transferFinishCounter = 0;
! d->numTransfers = grp->transfers()->count();
! connect( grp, SIGNAL( transferFinished() ), this, SLOT( slotTransferFinished() ) );
if( /*! metaData.contains("Action") || */metaData["Action"] == "move" )
***************
*** 792,795 ****
--- 798,806 ----
}
//-----------------------------------------------
+ void KBearFileSysPartInterface::slotTransferFinished() {
+ if( ++(d->transferFinishCounter) == d->numTransfers )
+ reload();
+ }
+ //-----------------------------------------------
void KBearFileSysPartInterface::slotDropped( QMimeSource* drop, const QPoint& pos ) {
if( ! QUriDrag::canDecode( drop ) )
***************
*** 829,833 ****
KURLDrag* drag = KURLDrag::newDrag( urls, sourceMeta, widget() );
! m_api->transferManager()->addTransfers( drag );
}
//-----------------------------------------------
--- 840,847 ----
KURLDrag* drag = KURLDrag::newDrag( urls, sourceMeta, widget() );
! TransferGroup *grp = m_api->transferManager()->addTransfers( drag );
! d->transferFinishCounter = 0;
! d->numTransfers = grp->transfers()->count();
! connect( grp, SIGNAL( transferFinished() ), this, SLOT( slotTransferFinished() ) );
}
//-----------------------------------------------
***************
*** 1241,1245 ****
//-----------------------------------------------
KIO::Job* KBearFileSysPartInterface::copyFile( int sID, int dID, const KURL& source, const KURL& dest ) {
-
KIO::Job* job = KBearFileCopyJob::file_copy( dID, sID, source, dest, 0600, true, false, false );
--- 1255,1258 ----
Index: kbearfilesyspartiface.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/kbearfilesyspartiface.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** kbearfilesyspartiface.h 16 Jul 2003 00:03:07 -0000 1.29
--- kbearfilesyspartiface.h 29 Nov 2003 13:52:50 -0000 1.30
***************
*** 37,40 ****
--- 37,41 ----
#include "siteinfo.h"
+
class QPopupMenu;
class QTimer;
***************
*** 226,229 ****
--- 227,231 ----
void slotOpenEditor();
void slotDropped( QMimeSource*, const QPoint& );
+ void slotTransferFinished();
private:
void clearHistory();
Index: transfergroup.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/transfergroup.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** transfergroup.cpp 9 Jul 2003 19:24:13 -0000 1.3
--- transfergroup.cpp 29 Nov 2003 13:52:50 -0000 1.4
***************
*** 55,58 ****
--- 55,59 ----
return;
m_transfers.append( transfer );
+ connect( transfer, SIGNAL( finished() ), this, SIGNAL( transferFinished() ) );
}
//-----------------------------------------------
Index: transfergroup.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/transfergroup.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** transfergroup.h 9 Jul 2003 19:24:13 -0000 1.4
--- transfergroup.h 29 Nov 2003 13:52:50 -0000 1.5
***************
*** 49,52 ****
--- 49,57 ----
/** */
QPtrList<Transfer>* transfers() { return &m_transfers; }
+ signals:
+ /**
+ * This is emitted whenever one Transfer object has finished (and therefore emitted the corresponding signal).
+ **/
+ void transferFinished();
private:
QPtrList<Transfer> m_transfers;
|
|
From: <fri...@us...> - 2003-11-27 16:10:55
|
Update of /cvsroot/kbear/kbear/kbear/plugins/sitemanager In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/plugins/sitemanager Modified Files: kbearsitemanager.cpp Log Message: Renamed strings containing "directory" to "folder" for usability reasons. Index: kbearsitemanager.cpp =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/plugins/sitemanager/kbearsitemanager.cpp,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** kbearsitemanager.cpp 16 Nov 2003 20:16:29 -0000 1.58 --- kbearsitemanager.cpp 27 Nov 2003 16:10:22 -0000 1.59 *************** *** 195,209 **** QWhatsThis::add( m_passwordEdit, tmp ); ! QLabel *m_localdirLabel = new QLabel( i18n( "Local Directory:" ), m_groupBox ); m_localdirEdit = new KLineEdit( m_groupBox ); ! tmp = i18n( "Enter the default directory for your local filesystem here" ); QToolTip::add( m_localdirEdit, tmp ); QWhatsThis::add( m_localdirEdit, tmp ); ! QLabel *m_remotedirLabel = new QLabel( i18n( "Remote Directory:" ), m_groupBox ); m_remotedirEdit = new KLineEdit( m_groupBox ); ! tmp = i18n( "Enter the default directory for the remote host here" ); QToolTip::add( m_remotedirEdit, tmp ); QWhatsThis::add( m_remotedirEdit, tmp ); --- 195,209 ---- QWhatsThis::add( m_passwordEdit, tmp ); ! QLabel *m_localdirLabel = new QLabel( i18n( "Local folder:" ), m_groupBox ); m_localdirEdit = new KLineEdit( m_groupBox ); ! tmp = i18n( "Enter the default folder for your local filesystem here" ); QToolTip::add( m_localdirEdit, tmp ); QWhatsThis::add( m_localdirEdit, tmp ); ! QLabel *m_remotedirLabel = new QLabel( i18n( "Remote folder:" ), m_groupBox ); m_remotedirEdit = new KLineEdit( m_groupBox ); ! tmp = i18n( "Enter the default folder for the remote host here" ); QToolTip::add( m_remotedirEdit, tmp ); QWhatsThis::add( m_remotedirEdit, tmp ); |
|
From: <fri...@us...> - 2003-11-27 16:10:55
|
Update of /cvsroot/kbear/kbear/kbear
In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear
Modified Files:
kbearchildview.cpp kbearquickconnectdlg.cpp
Log Message:
Renamed strings containing "directory" to "folder" for usability reasons.
Index: kbearchildview.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/kbearchildview.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** kbearchildview.cpp 30 Aug 2003 21:41:01 -0000 1.16
--- kbearchildview.cpp 27 Nov 2003 16:10:22 -0000 1.17
***************
*** 74,78 ****
if( m_part ) {
m_part->stop();
! delete m_part;
}
}
--- 74,78 ----
if( m_part ) {
m_part->stop();
! delete m_part;
}
}
***************
*** 117,121 ****
else {
KMessageBox::sorry( this, i18n("Unable to find a KBear filesyspart, KBear won't work properly without it so the application will exit !\n"
! "Please make sure that KBear is installed in your KDE directory, otherwise you have to add KBear's installation "
"path to the environment variable KDEDIRS and run kbuildsycoca. Restart KBear afterwards.\n"
"Example for BASH users:\nexport KDEDIRS=/path/to/kbear:$KDEDIRS && kbuildsycoca\n"),
--- 117,121 ----
else {
KMessageBox::sorry( this, i18n("Unable to find a KBear filesyspart, KBear won't work properly without it so the application will exit !\n"
! "Please make sure that KBear is installed in your KDE folder, otherwise you have to add KBear's installation "
"path to the environment variable KDEDIRS and run kbuildsycoca. Restart KBear afterwards.\n"
"Example for BASH users:\nexport KDEDIRS=/path/to/kbear:$KDEDIRS && kbuildsycoca\n"),
Index: kbearquickconnectdlg.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/kbearquickconnectdlg.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** kbearquickconnectdlg.cpp 31 May 2003 18:09:43 -0000 1.5
--- kbearquickconnectdlg.cpp 27 Nov 2003 16:10:22 -0000 1.6
***************
*** 271,279 ****
QLabel* remoteDirLabel = new QLabel( this, "remoteDirLabel" );
! remoteDirLabel->setText( i18n( "Default directory:" ) );
mainLayout->addWidget( remoteDirLabel, 7, 0 );
m_remoteDirEdit = new KLineEdit( this, "m_remoteDirEdit" );
! tmp = i18n( "Enter start directory on remote host here" );
QToolTip::add( m_remoteDirEdit, tmp );
QWhatsThis::add( m_remoteDirEdit, tmp );
--- 271,279 ----
QLabel* remoteDirLabel = new QLabel( this, "remoteDirLabel" );
! remoteDirLabel->setText( i18n( "Default folder:" ) );
mainLayout->addWidget( remoteDirLabel, 7, 0 );
m_remoteDirEdit = new KLineEdit( this, "m_remoteDirEdit" );
! tmp = i18n( "Enter start folder on remote host here" );
QToolTip::add( m_remoteDirEdit, tmp );
QWhatsThis::add( m_remoteDirEdit, tmp );
|
|
From: <fri...@us...> - 2003-11-27 16:10:27
|
Update of /cvsroot/kbear/kbear/kbear/lib/interfaces
In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/lib/interfaces
Modified Files:
kbearfilesyspartiface.cpp
Log Message:
Renamed strings containing "directory" to "folder" for usability reasons.
Index: kbearfilesyspartiface.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/kbearfilesyspartiface.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** kbearfilesyspartiface.cpp 16 Jul 2003 00:03:07 -0000 1.38
--- kbearfilesyspartiface.cpp 27 Nov 2003 16:10:24 -0000 1.39
***************
*** 663,669 ****
void KBearFileSysPartInterface::init( const SiteInfo& info ) {
m_siteInfo = info;
! readProperties( kapp->config(), "View Settings" );
!
m_myWidget->init( m_siteInfo );
d->m_connectedTimer = new QTimer( this );
--- 663,669 ----
void KBearFileSysPartInterface::init( const SiteInfo& info ) {
m_siteInfo = info;
! kdDebug()<<"KBearFileSysPartInterface::init() " << m_siteInfo.fileSysEncoding() <<endl;
m_myWidget->init( m_siteInfo );
+ readProperties( kapp->config(), "View Settings" );
d->m_connectedTimer = new QTimer( this );
***************
*** 945,949 ****
// Create widgets, and display using geometry management
//
! lMakeDir = new KDialogBase( m_myWidget->fileView()->widget(), "MakeDir Dialog", true, i18n("New Directory"), KDialogBase::Ok | KDialogBase::Cancel );
vbox = new QVBox( lMakeDir );
vbox->setSpacing( KDialog::spacingHint() );
--- 945,949 ----
// Create widgets, and display using geometry management
//
! lMakeDir = new KDialogBase( m_myWidget->fileView()->widget(), "MakeDir Dialog", true, i18n("New Folder"), KDialogBase::Ok | KDialogBase::Cancel );
vbox = new QVBox( lMakeDir );
vbox->setSpacing( KDialog::spacingHint() );
***************
*** 951,959 ****
label = new QLabel( vbox );
label->setAlignment( AlignLeft | AlignVCenter );
! label->setText(i18n("Create new directory in: ") +
QString::fromLatin1( "\n" ) + /* don't break i18n now*/
m_url.prettyURL() );
ed= new KLineEdit( vbox );
! ed->setText( i18n("New Directory") );
ed->selectAll();
connect(ed, SIGNAL(returnPressed()), lMakeDir, SLOT(accept()) );
--- 951,959 ----
label = new QLabel( vbox );
label->setAlignment( AlignLeft | AlignVCenter );
! label->setText(i18n("Create new folder in: ") +
QString::fromLatin1( "\n" ) + /* don't break i18n now*/
m_url.prettyURL() );
ed= new KLineEdit( vbox );
! ed->setText( i18n("New Folder") );
ed->selectAll();
connect(ed, SIGNAL(returnPressed()), lMakeDir, SLOT(accept()) );
***************
*** 1012,1016 ****
new KAction( i18n("Properties..."), ALT+Key_Return, this, SLOT(slotProperties()), actionCollection(), "properties" );
! KAction* tmpAction = new KAction( i18n("New Directory..."), 0, this, SLOT( slotMakeDir() ), actionCollection(), "edit_mkdir" );
tmpAction->setIcon( QString::fromLatin1("folder_new") );
new KAction( i18n( "Rename" ), 0, Key_F2, m_myWidget, SLOT( slotRename() ), actionCollection(), "edit_rename" );
--- 1012,1016 ----
new KAction( i18n("Properties..."), ALT+Key_Return, this, SLOT(slotProperties()), actionCollection(), "properties" );
! KAction* tmpAction = new KAction( i18n("New Folder..."), 0, this, SLOT( slotMakeDir() ), actionCollection(), "edit_mkdir" );
tmpAction->setIcon( QString::fromLatin1("folder_new") );
new KAction( i18n( "Rename" ), 0, Key_F2, m_myWidget, SLOT( slotRename() ), actionCollection(), "edit_rename" );
***************
*** 1018,1029 ****
tmpAction = new KAction( i18n("S&top"),"stop", 0, this, SLOT( stop() ), actionCollection(), "view_stop" );
! tmpAction->setToolTip( i18n("Stop loading directory.") );
tmpAction = KStdAction::up( this, SLOT( cdUp() ), actionCollection(), KStdAction::name(KStdAction::Up) );
! tmpAction->setText( i18n("Parent Directory") );
KStdAction::back( this, SLOT( back() ), actionCollection(), KStdAction::name(KStdAction::Back) );
KStdAction::forward( this, SLOT(forward()), actionCollection(), KStdAction::name(KStdAction::Forward));
tmpAction = KStdAction::home( this, SLOT( home() ), actionCollection(), KStdAction::name(KStdAction::Home) );
! tmpAction->setText(i18n("Home Directory"));
tmpAction = KStdAction::redisplay( this, SLOT(reload()), actionCollection(), KStdAction::name(KStdAction::Redisplay) );
tmpAction->setText( i18n("Reload") );
--- 1018,1029 ----
tmpAction = new KAction( i18n("S&top"),"stop", 0, this, SLOT( stop() ), actionCollection(), "view_stop" );
! tmpAction->setToolTip( i18n("Stop loading folder.") );
tmpAction = KStdAction::up( this, SLOT( cdUp() ), actionCollection(), KStdAction::name(KStdAction::Up) );
! tmpAction->setText( i18n("Parent Folder") );
KStdAction::back( this, SLOT( back() ), actionCollection(), KStdAction::name(KStdAction::Back) );
KStdAction::forward( this, SLOT(forward()), actionCollection(), KStdAction::name(KStdAction::Forward));
tmpAction = KStdAction::home( this, SLOT( home() ), actionCollection(), KStdAction::name(KStdAction::Home) );
! tmpAction->setText(i18n("Home Folder"));
tmpAction = KStdAction::redisplay( this, SLOT(reload()), actionCollection(), KStdAction::name(KStdAction::Redisplay) );
tmpAction->setText( i18n("Reload") );
***************
*** 1046,1050 ****
KRadioAction* shortView = new KRadioAction( i18n("Short View"), "view_icon", 0, m_myWidget, SLOT( slotSimpleView() ), actionCollection(), "short_view" );
KRadioAction* detailedView = new KRadioAction( i18n("Detailed View"), "view_detailed", 0, m_myWidget, SLOT( slotDetailedView() ), actionCollection(), "detailed_view" );
! new KToggleAction( i18n("Directory &tree"), "view_tree",0, this, 0, actionCollection(), "tree_view" );
new KToggleAction( i18n("Show Hidden Files"), 0, actionCollection(), "show_hidden" );
--- 1046,1050 ----
KRadioAction* shortView = new KRadioAction( i18n("Short View"), "view_icon", 0, m_myWidget, SLOT( slotSimpleView() ), actionCollection(), "short_view" );
KRadioAction* detailedView = new KRadioAction( i18n("Detailed View"), "view_detailed", 0, m_myWidget, SLOT( slotDetailedView() ), actionCollection(), "detailed_view" );
! new KToggleAction( i18n("Folder &tree"), "view_tree",0, this, 0, actionCollection(), "tree_view" );
new KToggleAction( i18n("Show Hidden Files"), 0, actionCollection(), "show_hidden" );
***************
*** 1083,1098 ****
! action( KStdAction::name(KStdAction::Up) )->setWhatsThis( i18n("This button moves you up one step in the directory tree.") );
action( KStdAction::name(KStdAction::Back) )->setWhatsThis( i18n("This button moves you one step back in history list.") );
action( KStdAction::name(KStdAction::Forward) )->setWhatsThis( i18n("This button moves you one step forward in history list.") );
! action( KStdAction::name(KStdAction::Redisplay))->setWhatsThis( i18n("This button reloads current directory.") );
! action( "edit_mkdir" )->setWhatsThis( i18n("This button creates a new directory in current directory.") );
! action( "view_stop" )->setWhatsThis( i18n("This button stops loading the directory.") );
action( "detailed_view" )->setWhatsThis( i18n("This button change the view to detailed list mode.") );
action( "short_view" )->setWhatsThis( i18n("This button change the view to icon mode.") );
! action( KStdAction::name(KStdAction::Home) )->setWhatsThis( i18n("This button moves you to your home directory\n"
! "On a remote system this will be your startup directory.") );
! action( "tree_view" )->setToolTip( i18n("This button toggles the directory tree.") );
! action( "tree_view" )->setWhatsThis( i18n("This button toggles the directory tree.") );
action( KStdAction::name(KStdAction::Cut) )->setToolTip( i18n("Cut current selection from the active view into the clipboard.") );
action( KStdAction::name(KStdAction::Copy) )->setToolTip( i18n("Copy current selection from the active view into the clipboard.") );
--- 1083,1098 ----
! action( KStdAction::name(KStdAction::Up) )->setWhatsThis( i18n("This button moves you up one step in the folder tree.") );
action( KStdAction::name(KStdAction::Back) )->setWhatsThis( i18n("This button moves you one step back in history list.") );
action( KStdAction::name(KStdAction::Forward) )->setWhatsThis( i18n("This button moves you one step forward in history list.") );
! action( KStdAction::name(KStdAction::Redisplay))->setWhatsThis( i18n("This button reloads current folder.") );
! action( "edit_mkdir" )->setWhatsThis( i18n("This button creates a new folder in current folder.") );
! action( "view_stop" )->setWhatsThis( i18n("This button stops loading the folder.") );
action( "detailed_view" )->setWhatsThis( i18n("This button change the view to detailed list mode.") );
action( "short_view" )->setWhatsThis( i18n("This button change the view to icon mode.") );
! action( KStdAction::name(KStdAction::Home) )->setWhatsThis( i18n("This button moves you to your home folder\n"
! "On a remote system this will be your startup folder.") );
! action( "tree_view" )->setToolTip( i18n("This button toggles the folder tree.") );
! action( "tree_view" )->setWhatsThis( i18n("This button toggles the folder tree.") );
action( KStdAction::name(KStdAction::Cut) )->setToolTip( i18n("Cut current selection from the active view into the clipboard.") );
action( KStdAction::name(KStdAction::Copy) )->setToolTip( i18n("Copy current selection from the active view into the clipboard.") );
***************
*** 1119,1122 ****
--- 1119,1123 ----
return;
+ kdDebug()<<"KBearFileSysPartInterface::readProperties()"<<endl;
m_myWidget->readConfig( config, group );
|
|
From: <fri...@us...> - 2003-11-27 16:10:27
|
Update of /cvsroot/kbear/kbear/kbear/lib/jobclasses
In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/lib/jobclasses
Modified Files:
kbearcopyjob.cpp
Log Message:
Renamed strings containing "directory" to "folder" for usability reasons.
Index: kbearcopyjob.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/kbearcopyjob.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** kbearcopyjob.cpp 1 Jul 2003 23:24:22 -0000 1.10
--- kbearcopyjob.cpp 27 Nov 2003 16:10:23 -0000 1.11
***************
*** 214,218 ****
&& m_mode != Link ) // No recursion in Link mode either.
{
! kdDebug(7007) << " Source is a directory " << endl;
m_bCurrentSrcIsDir = true; // used by slotEntries
--- 214,218 ----
&& m_mode != Link ) // No recursion in Link mode either.
{
! kdDebug(7007) << " Source is a folder " << endl;
m_bCurrentSrcIsDir = true; // used by slotEntries
|
|
From: <fri...@us...> - 2003-11-27 16:10:27
|
Update of /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin
In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/plugins/dirsynchplugin
Modified Files:
dirsynchplugin.cpp dirsynchwidget.cpp
Log Message:
Renamed strings containing "directory" to "folder" for usability reasons.
Index: dirsynchplugin.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin/dirsynchplugin.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** dirsynchplugin.cpp 27 Aug 2003 20:01:28 -0000 1.1
--- dirsynchplugin.cpp 27 Nov 2003 16:10:22 -0000 1.2
***************
*** 37,44 ****
--- 37,48 ----
setInstance( DirSynchPluginFactory::instance() );
setupActions();
+ mainWindow()->embedOutputPluginView( m_dirSynchWidget, i18n("Synchronisation"),
+ i18n("Synchronize a local and a remote folder.") );
}
//-----------------------------------------------
DirSynchPlugin::~DirSynchPlugin()
{
+ mainWindow()->removeOutputPluginView( m_dirSynchWidget );
+ delete m_dirSynchWidget;
}
//-----------------------------------------------
***************
*** 46,50 ****
//-----------------------------------------------
void DirSynchPlugin::setupActions() {
! KAction *synchAction = new KAction( i18n("S&ynchronize current directory"), 0, 0, this, SLOT( slotSynchCurrent() ), actionCollection(), "synch_current" );
connect( KBearMainWindowInterface::getInstance()->mainWindow(), SIGNAL( localViewGotFocus( bool ) ),
this, SLOT( slotLocalViewGotFocus( bool ) ) );
--- 50,55 ----
//-----------------------------------------------
void DirSynchPlugin::setupActions() {
! KAction *synchAction = new KAction( i18n("S&ynchronize current folder"), 0, 0, this, SLOT( slotSynchCurrent() ),
! actionCollection(), "synch_current" );
connect( KBearMainWindowInterface::getInstance()->mainWindow(), SIGNAL( localViewGotFocus( bool ) ),
this, SLOT( slotLocalViewGotFocus( bool ) ) );
***************
*** 53,57 ****
//-----------------------------------------------
void DirSynchPlugin::slotSynchCurrent() {
! m_dirSynchWidget->show();
}
//-----------------------------------------------
--- 58,62 ----
//-----------------------------------------------
void DirSynchPlugin::slotSynchCurrent() {
! // m_dirSynchWidget->show();
}
//-----------------------------------------------
Index: dirsynchwidget.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin/dirsynchwidget.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** dirsynchwidget.cpp 30 Aug 2003 21:41:01 -0000 1.2
--- dirsynchwidget.cpp 27 Nov 2003 16:10:23 -0000 1.3
***************
*** 27,30 ****
--- 27,31 ----
#include <kiconloader.h>
#include <kprogress.h>
+ #include <kmessagebox.h>
#include <kdebug.h>
//////////////////////////////////////////////////////////////////////
***************
*** 36,39 ****
--- 37,42 ----
#include "dirsynchtreeview.h"
#include "dirsynchtreebranch.h"
+ #include "dirsynchlocaldirlister.h"
+ #include "dirsynchremotedirlister.h"
#include "kbearchildviewiface.h"
#include "kbearmainwiniface.h"
***************
*** 45,49 ****
: QWidget(parent), m_totalSize( 0 ), m_totalFiles( 0 ),
m_remoteBranchFinished( false ), m_localBranchFinished( false ),
! m_connectedTimer( new QTimer(this) )
{
setupGUI();
--- 48,52 ----
: QWidget(parent), m_totalSize( 0 ), m_totalFiles( 0 ),
m_remoteBranchFinished( false ), m_localBranchFinished( false ),
! m_initialized( false ), m_connectedTimer( new QTimer(this) )
{
setupGUI();
***************
*** 59,98 ****
QLabel *localdir = new QLabel( this );
! localdir->setText( i18n("Local directory:") );
layout->addWidget( localdir, 0, 0 );
m_localDirLabel = new QLabel( this );
layout->addWidget( m_localDirLabel, 1, 0 );
! m_localView = new DirSynchTreeView( this );
! m_localView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding );
layout->addMultiCellWidget( m_localView, 2, 6, 0, 0 );
m_synchFromLocalButton = new KPushButton( this );
! m_synchFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchFromLocalButton->sizePolicy().hasHeightForWidth() ) );
m_synchFromLocalButton->setPixmap( BarIcon("2rightarrow") );
! QToolTip::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote directory." ) );
! QWhatsThis::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote directory." ) );
layout->addWidget( m_synchFromLocalButton, 2, 1 );
m_synchFromRemoteButton = new KPushButton( this );
! m_synchFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchFromRemoteButton->sizePolicy().hasHeightForWidth() ) );
m_synchFromRemoteButton->setPixmap( BarIcon("2leftarrow") );
! QToolTip::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local directory." ) );
! QWhatsThis::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local directory." ) );
layout->addWidget( m_synchFromRemoteButton, 3, 1 );
m_synchSelectedFromLocalButton = new KPushButton( this );
! m_synchSelectedFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchSelectedFromLocalButton->sizePolicy().hasHeightForWidth() ) );
m_synchSelectedFromLocalButton->setPixmap( BarIcon("forward") );
! QToolTip::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote file/directory." ) );
! QWhatsThis::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote file/directory." ) );
m_synchSelectedFromLocalButton->setEnabled( false );
layout->addWidget( m_synchSelectedFromLocalButton, 4, 1 );
m_synchSelectedFromRemoteButton = new KPushButton( this );
! m_synchSelectedFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchSelectedFromRemoteButton->sizePolicy().hasHeightForWidth() ) );
m_synchSelectedFromRemoteButton->setPixmap( BarIcon("back") );
! QToolTip::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local file/directory." ) );
! QWhatsThis::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local file/directory." ) );
m_synchSelectedFromRemoteButton->setEnabled( false );
layout->addWidget( m_synchSelectedFromRemoteButton, 5, 1 );
--- 62,109 ----
QLabel *localdir = new QLabel( this );
! localdir->setText( i18n("Local folder:") );
layout->addWidget( localdir, 0, 0 );
m_localDirLabel = new QLabel( this );
layout->addWidget( m_localDirLabel, 1, 0 );
! m_localView = new DirSynchTreeView( this, "LocalDirSynchTreeView" );
! m_localView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ); // 2: Minimum expanding
layout->addMultiCellWidget( m_localView, 2, 6, 0, 0 );
m_synchFromLocalButton = new KPushButton( this );
! m_synchFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0,
! m_synchFromLocalButton->sizePolicy().hasHeightForWidth() ) );
m_synchFromLocalButton->setPixmap( BarIcon("2rightarrow") );
! QToolTip::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote folder." ) );
! QWhatsThis::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote folder." ) );
layout->addWidget( m_synchFromLocalButton, 2, 1 );
m_synchFromRemoteButton = new KPushButton( this );
! m_synchFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0,
! m_synchFromRemoteButton->sizePolicy().hasHeightForWidth() ) );
m_synchFromRemoteButton->setPixmap( BarIcon("2leftarrow") );
! QToolTip::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local folder." ) );
! QWhatsThis::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local folder." ) );
layout->addWidget( m_synchFromRemoteButton, 3, 1 );
m_synchSelectedFromLocalButton = new KPushButton( this );
! m_synchSelectedFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0,
! m_synchSelectedFromLocalButton->sizePolicy().hasHeightForWidth() ) );
m_synchSelectedFromLocalButton->setPixmap( BarIcon("forward") );
! QToolTip::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote"
! "file/folder." ) );
! QWhatsThis::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote"
! "file/folder." ) );
m_synchSelectedFromLocalButton->setEnabled( false );
layout->addWidget( m_synchSelectedFromLocalButton, 4, 1 );
m_synchSelectedFromRemoteButton = new KPushButton( this );
! m_synchSelectedFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0,
! m_synchSelectedFromRemoteButton->sizePolicy().hasHeightForWidth() ) );
m_synchSelectedFromRemoteButton->setPixmap( BarIcon("back") );
! QToolTip::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local"
! "file/folder." ) );
! QWhatsThis::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local"
! "file/folder." ) );
m_synchSelectedFromRemoteButton->setEnabled( false );
layout->addWidget( m_synchSelectedFromRemoteButton, 5, 1 );
***************
*** 107,116 ****
QLabel *remotedir = new QLabel( this );
! remotedir->setText( i18n("Remote directory:") );
layout->addWidget( remotedir, 0, 2 );
m_remoteDirLabel = new QLabel( this );
layout->addWidget( m_remoteDirLabel, 1, 2 );
! m_remoteView = new DirSynchTreeView( this );
m_remoteView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding );
layout->addMultiCellWidget( m_remoteView, 2, 6, 2, 2 );
--- 118,127 ----
QLabel *remotedir = new QLabel( this );
! remotedir->setText( i18n("Remote folder:") );
layout->addWidget( remotedir, 0, 2 );
m_remoteDirLabel = new QLabel( this );
layout->addWidget( m_remoteDirLabel, 1, 2 );
! m_remoteView = new DirSynchTreeView( this, "RemoteDirSynchTreeView" );
m_remoteView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding );
layout->addMultiCellWidget( m_remoteView, 2, 6, 2, 2 );
***************
*** 130,134 ****
m_directoryLabel = new QLabel( m_statusBarLower, "DirectoryLabel");
! QWhatsThis::add( m_directoryLabel, i18n("This field displays the number of directories and files in current directory.") );
m_directoryLabel->setFrameStyle ( QFrame::StyledPanel | QFrame::Sunken );
--- 141,145 ----
m_directoryLabel = new QLabel( m_statusBarLower, "DirectoryLabel");
! QWhatsThis::add( m_directoryLabel, i18n("This field displays the number of folders and files in current folder.") );
m_directoryLabel->setFrameStyle ( QFrame::StyledPanel | QFrame::Sunken );
***************
*** 157,195 ****
//-----------------------------------------------
void DirSynchWidget::showEvent( QShowEvent* se ) {
! KBearChildViewIface *view = const_cast<KBearChildViewIface*>(KBearMainWindowInterface::getInstance()->getCurrentView());
! if( !view->isLocal() ) {
m_remoteSiteInfo = view->siteInfo();
! QString dir = KFileDialog::getExistingDirectory( QDir::homeDirPath(), this,
! i18n("Select the local directory you want to synchronize" ) );
! if( m_localBranch )
! m_localView->removeBranch( m_localBranch );
! m_localBranch = static_cast<DirSynchTreeBranch*>(m_localView->addBranch( KURL(dir), dir ) );
! m_localBranch->setChildRecurse();
! m_localBranch->setAutoUpdate( true );
! static_cast<DirSynchTreeBranch*>(m_localBranch)->setLocal( true );
! if( m_remoteBranch )
! m_remoteView->removeBranch( m_remoteBranch );
! KURL url = KURL(view->currentURL());
! if( url.user() == "anonymous" )
! url.setPass( "anonymous@" );
! m_remoteBranch = static_cast<DirSynchTreeBranch*>(m_remoteView->addBranch( url, view->currentURL() ) );
! m_remoteBranch->setAutoUpdate( true );
! static_cast<DirSynchTreeBranch*>(m_remoteBranch)->setLocal( false );
! static_cast<DirSynchTreeBranch*>(m_remoteBranch)->setSiteInfo( m_remoteSiteInfo );
setupConnections();
! m_remoteBranch->setOpen();
! m_localBranch->setOpen();
! } else return;
QWidget::showEvent( se );
}
//-----------------------------------------------
void DirSynchWidget::closeEvent( QCloseEvent* ce ) {
! m_localView->removeBranch( m_localBranch );
! m_remoteView->removeBranch( m_remoteBranch );
QWidget::closeEvent( ce );
}
//-----------------------------------------------
void DirSynchWidget::setupConnections() {
! connect( m_remoteBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ),
this, SLOT( slotFinishedLoading( KFileTreeBranch* ) ) );
connect( m_localBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ),
--- 168,204 ----
//-----------------------------------------------
void DirSynchWidget::showEvent( QShowEvent* se ) {
! KBearChildViewIface *view = const_cast<KBearChildViewIface*>(KBearMainWindowInterface::getInstance()->getCurrentView());
! if( m_initialized )
! return;
!
! if( !view->isLocal() ) {
m_remoteSiteInfo = view->siteInfo();
! // QString dir = KFileDialog::getExistingDirectory( QDir::homeDirPath(), 0,
! // i18n("Select the local folder you want to synchronize" ) );
! #warning Find out why KFileDialog::getExistingDirectory does not work!!!
! m_localSiteInfo = SiteInfo( QString("/home/friti/") );
! m_localView->setSiteInfo( m_localSiteInfo );
! m_remoteView->setSiteInfo( m_remoteSiteInfo );
! m_localView->setDirLister( new DirSynchLocalDirLister( m_localView ) );
setupConnections();
! m_initialized = true;
! } else {
! KMessageBox::information( 0, i18n("Please select the remote folder you want to synchronize with.") );
! m_initialized = false;
! close();
! return;
! }
!
QWidget::showEvent( se );
}
//-----------------------------------------------
void DirSynchWidget::closeEvent( QCloseEvent* ce ) {
! // m_localView->removeBranch( m_localBranch );
! // m_remoteView->removeBranch( m_remoteBranch );
QWidget::closeEvent( ce );
}
//-----------------------------------------------
void DirSynchWidget::setupConnections() {
! /* connect( m_remoteBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ),
this, SLOT( slotFinishedLoading( KFileTreeBranch* ) ) );
connect( m_localBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ),
***************
*** 201,204 ****
--- 210,215 ----
connect( m_remoteBranch, SIGNAL( progress( int ) ),
this, SLOT( slotProgress( int ) ) );
+ connect( m_remoteBranch, SIGNAL( progress( int ) ), m_progress, SLOT( setProgress( int ) ) );
+ connect( m_remoteBranch, SIGNAL( connected() ), this, SLOT( slotConnected() ) );
connect( m_localView->verticalScrollBar(), SIGNAL( valueChanged( int ) ),
***************
*** 217,221 ****
m_remoteView->horizontalScrollBar(), SLOT( setValue( int ) ) );
connect( m_remoteView->horizontalScrollBar(), SIGNAL( sliderMoved( int ) ),
! m_localView->horizontalScrollBar(), SLOT( setValue( int ) ) );
connect( m_connectedTimer, SIGNAL( timeout() ), this, SLOT( slotTimerUpdate() ) );
--- 228,232 ----
m_remoteView->horizontalScrollBar(), SLOT( setValue( int ) ) );
connect( m_remoteView->horizontalScrollBar(), SIGNAL( sliderMoved( int ) ),
! m_localView->horizontalScrollBar(), SLOT( setValue( int ) ) ); */
connect( m_connectedTimer, SIGNAL( timeout() ), this, SLOT( slotTimerUpdate() ) );
***************
*** 264,268 ****
//-----------------------------------------------
void DirSynchWidget::slotFinishedLoading( KFileTreeBranch *branch ) {
! if( branch == m_localBranch ) {
m_localBranchFinished = true;
KURL curUrl;
--- 275,279 ----
//-----------------------------------------------
void DirSynchWidget::slotFinishedLoading( KFileTreeBranch *branch ) {
! /* if( branch == m_localBranch ) {
m_localBranchFinished = true;
KURL curUrl;
***************
*** 274,279 ****
}
else if( branch == m_remoteBranch ) {
! if( !m_remoteBranchFinished)
! slotConnected();
m_remoteBranchFinished = true;
KURL curUrl;
--- 285,290 ----
}
else if( branch == m_remoteBranch ) {
! // if( !m_remoteBranchFinished)
! // slotConnected();
m_remoteBranchFinished = true;
KURL curUrl;
***************
*** 292,300 ****
slotSetStatusBarText( i18n( "No Operation in Progress" ) );
kdDebug()<<"DirSynchWidget::slotFinishedLoading: After checkDiff"<<endl;
! }
}
//-----------------------------------------------
void DirSynchWidget::checkDiff() {
! if( ! m_localView || ! m_remoteView )
return;
--- 303,311 ----
slotSetStatusBarText( i18n( "No Operation in Progress" ) );
kdDebug()<<"DirSynchWidget::slotFinishedLoading: After checkDiff"<<endl;
! } */
}
//-----------------------------------------------
void DirSynchWidget::checkDiff() {
! /* if( ! m_localView || ! m_remoteView )
return;
***************
*** 323,331 ****
remoteItem->setDiffFile( localItem->fileItem() );
}
! }
}
//-----------------------------------------------
DirSynchTreeViewItem* DirSynchWidget::findCorrespondingItem( DirSynchTreeViewItem* item ) {
! if( ! item || (m_localView->childCount() == 0) || (m_remoteView->childCount() == 0) )
return 0L;
DirSynchTreeBranch* branch = 0L;
--- 334,342 ----
remoteItem->setDiffFile( localItem->fileItem() );
}
! } */
}
//-----------------------------------------------
DirSynchTreeViewItem* DirSynchWidget::findCorrespondingItem( DirSynchTreeViewItem* item ) {
! /* if( ! item || (m_localView->childCount() == 0) || (m_remoteView->childCount() == 0) )
return 0L;
DirSynchTreeBranch* branch = 0L;
***************
*** 351,387 ****
}
KURL url( branch->rootUrl().url(+1) + relURL );
! return dynamic_cast<DirSynchTreeViewItem*>( branch->findTVIByURL( url ) );
}
//-----------------------------------------------
void DirSynchWidget::slotSynchSelectedFromRemote() {
! KURL src = m_remoteView->currentURL();
KURL dest;
! /* if( m_localView->currentURL().isValid() )
! if( m_localView->currentKFileTreeViewItem()->fileItem()->isDir() )
! dest = m_localView->currentURL().path();
! else
! dest = m_localView->currentURL().directory();
! else */
dest = m_localBranch->rootUrl();
KURL root = m_remoteBranch->rootUrl();
! synch( m_remoteSiteInfo.ID(), -1, src, dest, root );
}
//-----------------------------------------------
void DirSynchWidget::slotSynchSelectedFromLocal() {
! KURL src = m_localView->currentURL();
KURL dest;
! /* if( m_remoteView->currentURL().isValid() )
! if( m_remoteView->currentKFileTreeViewItem()->fileItem()->isDir() )
! dest = m_remoteView->currentURL().path();
! else
! dest = m_remoteView->currentURL().directory();
! else */
dest = m_remoteBranch->rootUrl();
KURL root = m_localBranch->rootUrl();
! synch( -1, -1, src, dest, root );
}
//-----------------------------------------------
void DirSynchWidget::slotSynchFromRemote() {
! KURL src = m_remoteBranch->rootUrl();
src.adjustPath(+1);
KURL dest;
--- 362,398 ----
}
KURL url( branch->rootUrl().url(+1) + relURL );
! return dynamic_cast<DirSynchTreeViewItem*>( branch->findTVIByURL( url ) ); */
}
//-----------------------------------------------
void DirSynchWidget::slotSynchSelectedFromRemote() {
! /* KURL src = m_remoteView->currentURL();
KURL dest;
! // if( m_localView->currentURL().isValid() )
! // if( m_localView->currentKFileTreeViewItem()->fileItem()->isDir() )
! // dest = m_localView->currentURL().path();
! // else
! // dest = m_localView->currentURL().directory();
! // else
dest = m_localBranch->rootUrl();
KURL root = m_remoteBranch->rootUrl();
! synch( m_remoteSiteInfo.ID(), -1, src, dest, root ); */
}
//-----------------------------------------------
void DirSynchWidget::slotSynchSelectedFromLocal() {
! /* KURL src = m_localView->currentURL();
KURL dest;
! // if( m_remoteView->currentURL().isValid() )
! // if( m_remoteView->currentKFileTreeViewItem()->fileItem()->isDir() )
! // dest = m_remoteView->currentURL().path();
! // else
! // dest = m_remoteView->currentURL().directory();
! // else
dest = m_remoteBranch->rootUrl();
KURL root = m_localBranch->rootUrl();
! synch( -1, -1, src, dest, root ); */
}
//-----------------------------------------------
void DirSynchWidget::slotSynchFromRemote() {
! /* KURL src = m_remoteBranch->rootUrl();
src.adjustPath(+1);
KURL dest;
***************
*** 393,401 ****
dest = m_localView->currentURL().directory();
}
! synch( m_remoteSiteInfo.ID(), -1, src, dest, root );
}
//-----------------------------------------------
void DirSynchWidget::slotSynchFromLocal() {
! KURL src = m_localBranch->rootUrl();
src.adjustPath(+1);
KURL dest;
--- 404,412 ----
dest = m_localView->currentURL().directory();
}
! synch( m_remoteSiteInfo.ID(), -1, src, dest, root ); */
}
//-----------------------------------------------
void DirSynchWidget::slotSynchFromLocal() {
! /* KURL src = m_localBranch->rootUrl();
src.adjustPath(+1);
KURL dest;
***************
*** 407,411 ****
dest = m_remoteView->currentURL().directory();
}
! synch( -1, -1, src, dest, root );
}
//-----------------------------------------------
--- 418,422 ----
dest = m_remoteView->currentURL().directory();
}
! synch( -1, -1, src, dest, root ); */
}
//-----------------------------------------------
***************
*** 422,426 ****
this, SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) );
job->slotStart();
! delete job;
slotSetStatusBarText( i18n("Preparing for synchronisation ...") );
}
--- 433,437 ----
this, SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) );
job->slotStart();
! // delete job;
slotSetStatusBarText( i18n("Preparing for synchronisation ...") );
}
|
|
From: <fri...@us...> - 2003-11-27 16:10:26
|
Update of /cvsroot/kbear/kbear/kbear/parts/remotefilesys
In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/parts/remotefilesys
Modified Files:
kbearpropertiesdialog.cpp
Log Message:
Renamed strings containing "directory" to "folder" for usability reasons.
Index: kbearpropertiesdialog.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/parts/remotefilesys/kbearpropertiesdialog.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** kbearpropertiesdialog.cpp 1 Jul 2003 23:24:21 -0000 1.2
--- kbearpropertiesdialog.cpp 27 Nov 2003 16:10:23 -0000 1.3
***************
*** 283,287 ****
QString tmpurl = m_singleUrl.url();
if ( tmpurl.at(tmpurl.length() - 1) == '/')
! // It's a directory, so strip the trailing slash first
tmpurl.truncate( tmpurl.length() - 1);
newUrl = tmpurl;
--- 283,287 ----
QString tmpurl = m_singleUrl.url();
if ( tmpurl.at(tmpurl.length() - 1) == '/')
! // It's a folder, so strip the trailing slash first
tmpurl.truncate( tmpurl.length() - 1);
newUrl = tmpurl;
***************
*** 992,996 ****
if (isDir)
! l = new QLabel( i18n("Enter directory", "Enter"), gb );
else
l = new QLabel( i18n("Exec"), gb );
--- 992,996 ----
if (isDir)
! l = new QLabel( i18n("Enter folder", "Enter"), gb );
else
l = new QLabel( i18n("Exec"), gb );
|
|
From: <fri...@us...> - 2003-11-27 16:10:25
|
Update of /cvsroot/kbear/kbear/kbear/plugins/logoutput
In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/plugins/logoutput
Modified Files:
logoutputconfigwidget.cpp
Log Message:
Renamed strings containing "directory" to "folder" for usability reasons.
Index: logoutputconfigwidget.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/plugins/logoutput/logoutputconfigwidget.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** logoutputconfigwidget.cpp 1 Jul 2003 23:24:19 -0000 1.11
--- logoutputconfigwidget.cpp 27 Nov 2003 16:10:22 -0000 1.12
***************
*** 315,319 ****
//-----------------------------------------------
void LogOutputConfigWidget::slotSelectPath() {
! QString path = KFileDialog::getExistingDirectory( m_logFilePathEdit->text(), this, i18n( "Select base directory for log files." ) );
if( ! path.isEmpty() ) {
m_logFilePathEdit->setText( path );
--- 315,319 ----
//-----------------------------------------------
void LogOutputConfigWidget::slotSelectPath() {
! QString path = KFileDialog::getExistingDirectory( m_logFilePathEdit->text(), this, i18n( "Select base folder for log files." ) );
if( ! path.isEmpty() ) {
m_logFilePathEdit->setText( path );
|
|
From: <gia...@us...> - 2003-11-23 00:47:16
|
Update of /cvsroot/kbear/kbear/po In directory sc8-pr-cvs1:/tmp/cvs-serv31593/po Modified Files: it.po Log Message: Index: it.po =================================================================== RCS file: /cvsroot/kbear/kbear/po/it.po,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** it.po 1 Sep 2003 15:01:11 -0000 1.64 --- it.po 23 Nov 2003 00:47:12 -0000 1.65 *************** *** 1,2 **** --- 1,3 ---- + # translation of it.po to Italiano # translation of it.po to Team traduzione italiano KDE # translation of it.po to *************** *** 12,15 **** --- 13,17 ---- # Copyright (C) 2002,2003 Free Software Foundation, Inc. # Giovanni Venturi <ju...@li...>, 2002,2003. + # Giovanni Venturi <ju...@ti...>, 2003. # msgid "" *************** *** 17,27 **** "Project-Id-Version: it\n" "POT-Creation-Date: 2003-08-07 15:47+0200\n" ! "PO-Revision-Date: 2003-09-01 17:00+0200\n" ! "Last-Translator: Giovanni Venturi <ju...@li...>\n" ! "Language-Team: Team traduzione italiano KDE <kde...@ma...>\n" ! "org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" --- 19,29 ---- "Project-Id-Version: it\n" "POT-Creation-Date: 2003-08-07 15:47+0200\n" ! "PO-Revision-Date: 2003-11-23 01:34+0100\n" ! "Last-Translator: Giovanni Venturi <ju...@ti...>\n" ! "Language-Team: Italiano <kde...@ma...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" + "org>\n" "X-Generator: KBabel 1.0.2\n" *************** *** 176,183 **** "All non matching files will be transfered in Binary mode (I)" msgstr "" ! "Seleziona questa opzione se desideri che tutti i file corrispondenti alla lista " ! "delle estensioni siano trasferiti in modalità ASCII (A).\n" ! "Ciò può essere necessario per alcuni tipi di file, per esempio alcuni script in " ! "perl.\n" "Tutti i file non corrispondenti saranno trasferiti in modalità binaria (I)" --- 178,185 ---- "All non matching files will be transfered in Binary mode (I)" msgstr "" ! "Seleziona questa opzione se desideri che tutti i file corrispondenti alla " ! "lista delle estensioni siano trasferiti in modalità ASCII (A).\n" ! "Ciò può essere necessario per alcuni tipi di file, per esempio alcuni script " ! "in perl.\n" "Tutti i file non corrispondenti saranno trasferiti in modalità binaria (I)" *************** *** 192,197 **** "and if so, ask for confirmation before exiting." msgstr "" ! "Seleziona questa opzione se desideri che l'applicazione controlli se ci sono\n" ! "trasferimenti attivi o messi in coda e, in tal caso, chieda conferma prima di uscire." #: ../kbear/lib/interfaces/transfermanager.cpp:522 --- 194,201 ---- "and if so, ask for confirmation before exiting." msgstr "" ! "Seleziona questa opzione se desideri che l'applicazione controlli se ci " ! "sono\n" ! "trasferimenti attivi o messi in coda e, in tal caso, chieda conferma prima " ! "di uscire." #: ../kbear/lib/interfaces/transfermanager.cpp:522 *************** *** 1047,1051 **** "_: EMAIL OF TRANSLATORS\n" "Your emails" ! msgstr "ju...@li..." #: ../kbear/main.cpp:23 --- 1051,1055 ---- "_: EMAIL OF TRANSLATORS\n" "Your emails" ! msgstr "ju...@ti..." #: ../kbear/main.cpp:23 *************** *** 1260,1265 **** "expected!!!" msgstr "" ! "Immetti il tuo nome utente qui. Se lasci il campo vuoto verrai connesso " ! "con un login anonimo!!!" #: ../kbear/kbearquickconnectdlg.cpp:262 --- 1264,1269 ---- "expected!!!" msgstr "" ! "Immetti il tuo nome utente qui. Se lasci il campo vuoto verrai connesso con " ! "un login anonimo!!!" #: ../kbear/kbearquickconnectdlg.cpp:262 *************** *** 1347,1352 **** msgid "Uncheck this option if don't want to be warned before plugins are unloaded." msgstr "" ! "Deseleziona questa opzione se non desideri essere avvertito prima che i plugin " ! "siano scaricati." #: ../kbear/rc.cpp:1 ../kbear/rc.cpp:16 ../kbear/rc.cpp:33 --- 1351,1356 ---- msgid "Uncheck this option if don't want to be warned before plugins are unloaded." msgstr "" ! "Deseleziona questa opzione se non desideri essere avvertito prima che i " ! "plugin siano scaricati." #: ../kbear/rc.cpp:1 ../kbear/rc.cpp:16 ../kbear/rc.cpp:33 *************** *** 2087,2092 **** msgid "Uncheck this option if you don't want the system tray icon to be visible" msgstr "" ! "Deseleziona questa opzione se non desideri rendere visibile l'icona del vassoio " ! "di sistema." #: ../kbear/plugins/systemtraydock/kbearsystemtraydockplugin.cpp:116 --- 2091,2096 ---- msgid "Uncheck this option if you don't want the system tray icon to be visible" msgstr "" ! "Deseleziona questa opzione se non desideri rendere visibile l'icona del " ! "vassoio di sistema." #: ../kbear/plugins/systemtraydock/kbearsystemtraydockplugin.cpp:116 *************** *** 2115,2122 **** "sections are the ones that will be displayed.</p>" msgstr "" ! "<p>Il menu degli strumenti è un plugin che ti permette di configurare i pulsanti " ! "per lanciare varie applicazioni.I pulsanti scelti saranno inseriti nel <b>Menu " ! "Strumenti</b> così come in una barra degli strumenti. Le applicazioni mostrate " ! "nella sezione di destra sono quelle che saranno visualizzate.</p>" #: ../kbear/plugins/tools/kbeartoolswidget.cpp:176 --- 2119,2127 ---- "sections are the ones that will be displayed.</p>" msgstr "" ! "<p>Il menu degli strumenti è un plugin che ti permette di configurare i " ! "pulsanti per lanciare varie applicazioni.I pulsanti scelti saranno inseriti " ! "nel <b>Menu Strumenti</b> così come in una barra degli strumenti. Le " ! "applicazioni mostrate nella sezione di destra sono quelle che saranno " ! "visualizzate.</p>" #: ../kbear/plugins/tools/kbeartoolswidget.cpp:176 *************** *** 2156,2160 **** #: ../kbear/plugins/sitemanager/kbearsitemanagerplugin.cpp:744 msgid "If you unload the Sitemanager plugin you can't access the site database." ! msgstr "Se scarichi il plugin del \"Gestore Siti\" non puoi accedere al database dei siti." #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:73 --- 2161,2167 ---- #: ../kbear/plugins/sitemanager/kbearsitemanagerplugin.cpp:744 msgid "If you unload the Sitemanager plugin you can't access the site database." ! msgstr "" ! "Se scarichi il plugin del \"Gestore Siti\" non puoi accedere al database dei " ! "siti." #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:73 *************** *** 2313,2320 **** msgstr "" "<p>Questa pagina ti permette di impostare alcune impostazioni più avanzate " ! "per il sito selezionato.<br><b>Se non sei sicuro di ciò che fai ti suggeriamo di " ! "lasciare queste impostazioni con i valori di default</b><br>Ma dovresti sapere " ! "che le impostazioni su questa pagina possono risolvere i problemi che si verificano " ! "quando si lavora con un sito</p>" #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:271 --- 2320,2327 ---- msgstr "" "<p>Questa pagina ti permette di impostare alcune impostazioni più avanzate " ! "per il sito selezionato.<br><b>Se non sei sicuro di ciò che fai ti " ! "suggeriamo di lasciare queste impostazioni con i valori di default</b><br>Ma " ! "dovresti sapere che le impostazioni su questa pagina possono risolvere i " ! "problemi che si verificano quando si lavora con un sito</p>" #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:271 *************** *** 2403,2407 **** #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:317 msgid "Uncheck this option if you don't want to use the standard list command." ! msgstr "Deseleziona questa opzione se non desideri usare la lista dei comandi standard." #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:318 --- 2410,2416 ---- #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:317 msgid "Uncheck this option if you don't want to use the standard list command." ! msgstr "" ! "Deseleziona questa opzione se non desideri usare la lista dei comandi " ! "standard." #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:318 *************** *** 2412,2418 **** "If you uncheck this you also need to enter the new command to use." msgstr "" ! "Deseleziona questa opzione se non desideri usare la lista standard dei comandi. " ! "Ciò può essere necessario se il server non comprende il comando standard 'list -" ! "a'.\n" "Se deselezioni questa opzione puoi anche aver bisogno di immettere il nuovo " "comando da usare." --- 2421,2427 ---- "If you uncheck this you also need to enter the new command to use." msgstr "" ! "Deseleziona questa opzione se non desideri usare la lista standard dei " ! "comandi. Ciò può essere necessario se il server non comprende il comando " ! "standard 'list -a'.\n" "Se deselezioni questa opzione puoi anche aver bisogno di immettere il nuovo " "comando da usare." *************** *** 2427,2432 **** "necessary if the server doesn't understand the standard 'list -a' command." msgstr "" ! "Qui puoi immettere il comando da usare per elencare le directory. Ciò può essere " ! "necessario se il server non comprende il comando standard 'list -a'." #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:347 --- 2436,2441 ---- "necessary if the server doesn't understand the standard 'list -a' command." msgstr "" ! "Qui puoi immettere il comando da usare per elencare le directory. Ciò può " ! "essere necessario se il server non comprende il comando standard 'list -a'." #: ../kbear/plugins/sitemanager/kbearsitemanager.cpp:347 *************** *** 2482,2487 **** msgstr "" "Seleziona la codifica usata da questo sito.\n" ! "Normalmente non dovresti aver bisogno di fare ciò. Per alcuni siti, " ! "come quelli che usano, per esempio, i nomi di file in cinese, può essere " "necessario se si desidera visualizzare i nomi dei file correttamente." --- 2491,2496 ---- msgstr "" "Seleziona la codifica usata da questo sito.\n" ! "Normalmente non dovresti aver bisogno di fare ciò. Per alcuni siti, come " ! "quelli che usano, per esempio, i nomi di file in cinese, può essere " "necessario se si desidera visualizzare i nomi dei file correttamente." *************** *** 2563,2569 **** "a filter from the list below and push the <b>Import</b> button</p>" msgstr "" ! "<p>Questa pagina ti permette di importare i segnalibri da varie applicazioni. " ! "Basta selezionare un filtro dalla lista sottostante e premere il pulsante " ! "<b>Importa</b></p>" #: ../kbear/plugins/sitemanager/siteimportwidget.cpp:77 --- 2572,2578 ---- "a filter from the list below and push the <b>Import</b> button</p>" msgstr "" ! "<p>Questa pagina ti permette di importare i segnalibri da varie " ! "applicazioni. Basta selezionare un filtro dalla lista sottostante e premere " ! "il pulsante <b>Importa</b></p>" #: ../kbear/plugins/sitemanager/siteimportwidget.cpp:77 *************** *** 2754,2759 **** "plugin" msgstr "" ! "Devi far conto sulle impostazioni del firewall di KDE se scarichi questo plugin.\n" ! "Se NON sei protetto da un firewall è sicuro, e raccomandato, scaricare questo plugin" #: ../kbear/plugins/firewall/firewallsettingswidget.cpp:44 --- 2763,2770 ---- "plugin" msgstr "" ! "Devi far conto sulle impostazioni del firewall di KDE se scarichi questo " ! "plugin.\n" ! "Se NON sei protetto da un firewall è sicuro, e raccomandato, scaricare " ! "questo plugin" #: ../kbear/plugins/firewall/firewallsettingswidget.cpp:44 *************** *** 2771,2778 **** "<p>Se sei protetto da un firewall puoi usare questa pagina per configurare " "la modalità di login. <b>Nota che queste impostazioni si applicano solo al " ! "protocollo FTP</b>, per gli altri protocolli devi far conto sulle impostazioni " ! "di KDE.</p><p>Per una descrizione dettagliata su come usare le impostazioni " ! "di questa pagina guarda la documentazione di KBear. Puoi raggiungerla " ! "attraverso il bottone di help sotto.</p>" #: ../kbear/plugins/firewall/firewallsettingswidget.cpp:119 --- 2782,2789 ---- "<p>Se sei protetto da un firewall puoi usare questa pagina per configurare " "la modalità di login. <b>Nota che queste impostazioni si applicano solo al " ! "protocollo FTP</b>, per gli altri protocolli devi far conto sulle " ! "impostazioni di KDE.</p><p>Per una descrizione dettagliata su come usare le " ! "impostazioni di questa pagina guarda la documentazione di KBear. Puoi " ! "raggiungerla attraverso il bottone di help sotto.</p>" #: ../kbear/plugins/firewall/firewallsettingswidget.cpp:119 *************** *** 3048,3053 **** "files." msgstr "" ! "Seleziona questa opzione se desideri far inserire a KBear tutti i comandi nei " ! "file di log." #: ../kbear/plugins/logoutput/logoutputconfigwidget.cpp:175 --- 3059,3064 ---- "files." msgstr "" ! "Seleziona questa opzione se desideri far inserire a KBear tutti i comandi " ! "nei file di log." #: ../kbear/plugins/logoutput/logoutputconfigwidget.cpp:175 *************** *** 3060,3065 **** "files." msgstr "" ! "Seleziona questa opzione se desideri far inserire a KBear tutti i comandi nei " ! "file di log." #: ../kbear/plugins/logoutput/logoutputconfigwidget.cpp:183 --- 3071,3076 ---- "files." msgstr "" ! "Seleziona questa opzione se desideri far inserire a KBear tutti i comandi " ! "nei file di log." #: ../kbear/plugins/logoutput/logoutputconfigwidget.cpp:183 *************** *** 3159,3163 **** #: ../kbear/plugins/ftpfind/scandomainwidget.cpp:111 msgid "Uncheck this option if you want to scan other ports than 21 (slow)." ! msgstr "Deseleziona questa opzione se desideri controllare altre porte oltre alla 21 (lento)." #: ../kbear/plugins/ftpfind/scandomainwidget.cpp:112 --- 3170,3176 ---- #: ../kbear/plugins/ftpfind/scandomainwidget.cpp:111 msgid "Uncheck this option if you want to scan other ports than 21 (slow)." ! msgstr "" ! "Deseleziona questa opzione se desideri controllare altre porte oltre alla 21 " ! "(lento)." #: ../kbear/plugins/ftpfind/scandomainwidget.cpp:112 *************** *** 3194,3199 **** "queued." msgstr "" ! "Seleziona questa opzione se desideri accodare tutti i trasferimenti che risultano " ! "in numero superiori a quello specificato." #: ../kbear/plugins/transferqueue/transferqueueconfigwidget.cpp:49 --- 3207,3212 ---- "queued." msgstr "" ! "Seleziona questa opzione se desideri accodare tutti i trasferimenti che " ! "risultano in numero superiori a quello specificato." #: ../kbear/plugins/transferqueue/transferqueueconfigwidget.cpp:49 *************** *** 3203,3208 **** "If checked, this will override all other queue settings." msgstr "" ! "Seleziona questa opzione se desideri accodare tutti i trasferimenti che risultano " ! "in numero superiori a quello specificato.\n" "Se selezionata, tutte le impostazioni della coda verranno sovrascritte." --- 3216,3221 ---- "If checked, this will override all other queue settings." msgstr "" ! "Seleziona questa opzione se desideri accodare tutti i trasferimenti che " ! "risultano in numero superiori a quello specificato.\n" "Se selezionata, tutte le impostazioni della coda verranno sovrascritte." *************** *** 3218,3222 **** msgstr "" "Imposta il numero di trasferimenti permessi prima di accodarne.\n" ! "Ciò significa che non ci saranno mai più trasferimenti attivi di quanti specificati." #: ../kbear/plugins/transferqueue/transferqueueconfigwidget.cpp:67 --- 3231,3236 ---- msgstr "" "Imposta il numero di trasferimenti permessi prima di accodarne.\n" ! "Ciò significa che non ci saranno mai più trasferimenti attivi di quanti " ! "specificati." #: ../kbear/plugins/transferqueue/transferqueueconfigwidget.cpp:67 *************** *** 3354,3366 **** msgstr "" "<h1>Benvenuto al Wizard di KBear.</h1><p>Questo Wizard ti aiuterà a " ! "impostare KBear. Molti utenti possono lasciare le impostazioni di " ! "default.</p><p>Se sei protetto da un <b>firewall</b> potresti voler caricare " ! "tuttavia il plugin del del firewall.</p><p>Se c'è qualcosa che non capisci, allora " "clicca sul pulsante <b>cos'è</b> nell'angolo in alto a destra. Quindi sposta " "il puntatore del mouse sul punto in questione e premi il pulsante del mouse " ! "nuovamente. Un messaggio di aiuto apparirà in corrispondenza della posizione del " ! "puntatore del mouse e ti spiegherà il funzionamento dell'area specifica." ! "<p>Per un maggior aiuto premi il bottone di help nell'angolo in basso a destra.</" ! "p><p><b>Grazie per aver scelto KBear.</b></p><p><b>Il team di KBear.</b></p>" #: ../kbear/plugins/wizard/kbearwizardplugin.cpp:52 --- 3368,3381 ---- msgstr "" "<h1>Benvenuto al Wizard di KBear.</h1><p>Questo Wizard ti aiuterà a " ! "impostare KBear. Molti utenti possono lasciare le impostazioni di default.</" ! "p><p>Se sei protetto da un <b>firewall</b> potresti voler caricare tuttavia " ! "il plugin del del firewall.</p><p>Se c'è qualcosa che non capisci, allora " "clicca sul pulsante <b>cos'è</b> nell'angolo in alto a destra. Quindi sposta " "il puntatore del mouse sul punto in questione e premi il pulsante del mouse " ! "nuovamente. Un messaggio di aiuto apparirà in corrispondenza della posizione " ! "del puntatore del mouse e ti spiegherà il funzionamento dell'area specifica." ! "<p>Per un maggior aiuto premi il bottone di help nell'angolo in basso a " ! "destra.</p><p><b>Grazie per aver scelto KBear.</b></p><p><b>Il team di KBear." ! "</b></p>" #: ../kbear/plugins/wizard/kbearwizardplugin.cpp:52 *************** *** 3386,3391 **** msgstr "" "Premi questo pulsante per aprire la finestra del 'Suggerimento del giorno'.\n" ! "Puoi anche selezionare il comando 'Esegui suggerimento del giorno' " ! "dal menu 'Aiuto'." #: ../kbear/plugins/tipofday/tips.cc:3 --- 3401,3406 ---- msgstr "" "Premi questo pulsante per aprire la finestra del 'Suggerimento del giorno'.\n" ! "Puoi anche selezionare il comando 'Esegui suggerimento del giorno' dal menu " ! "'Aiuto'." #: ../kbear/plugins/tipofday/tips.cc:3 |
|
From: <fri...@us...> - 2003-11-22 20:16:59
|
Update of /cvsroot/kbear/kbear/doc
In directory sc8-pr-cvs1:/tmp/cvs-serv24063/doc
Modified Files:
Tag: KBEAR_2_BRANCH
Makefile.am
Log Message:
Several doc translations could not be processed. Fix this
Index: Makefile.am
===================================================================
RCS file: /cvsroot/kbear/kbear/doc/Makefile.am,v
retrieving revision 1.20
retrieving revision 1.20.2.1
diff -C2 -d -r1.20 -r1.20.2.1
*** Makefile.am 14 Dec 2002 14:09:25 -0000 1.20
--- Makefile.am 22 Nov 2003 20:16:56 -0000 1.20.2.1
***************
*** 1 ****
! SUBDIRS = en sv cs fr es it nl zh_TW de pt_BR ru
--- 1 ----
! SUBDIRS = en sv cs fr it
|
|
From: <kb...@us...> - 2003-11-21 22:46:34
|
Update of /cvsroot/kbear/kbear/kbear/parts/filesyspart
In directory sc8-pr-cvs1:/tmp/cvs-serv2185/kbear/parts/filesyspart
Modified Files:
Tag: KBEAR_2_BRANCH
kbearfilesyspart.cpp
Log Message:
See Changelog
Index: kbearfilesyspart.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/parts/filesyspart/Attic/kbearfilesyspart.cpp,v
retrieving revision 1.77
retrieving revision 1.77.2.1
diff -C2 -d -r1.77 -r1.77.2.1
*** kbearfilesyspart.cpp 14 Dec 2002 14:09:25 -0000 1.77
--- kbearfilesyspart.cpp 21 Nov 2003 22:46:31 -0000 1.77.2.1
***************
*** 635,639 ****
m_statusBarLower->setStretchFactor( m_fileLabel, 0 );
m_statusBarLower->setStretchFactor( m_endLabel, 10 );
! m_layout->addWidget( m_statusBarLower );
// add 'wheel' animation
--- 635,639 ----
m_statusBarLower->setStretchFactor( m_fileLabel, 0 );
m_statusBarLower->setStretchFactor( m_endLabel, 10 );
! m_layout->addWidget( m_statusBarLower );
// add 'wheel' animation
***************
*** 914,918 ****
m_fileView->widget()->hide();
! delete m_fileView;
}
--- 914,918 ----
m_fileView->widget()->hide();
! dynamic_cast<QObject*>(m_fileView)->deleteLater();
}
|
|
From: <kb...@us...> - 2003-11-21 22:46:34
|
Update of /cvsroot/kbear/kbear/kbear
In directory sc8-pr-cvs1:/tmp/cvs-serv2185/kbear
Modified Files:
Tag: KBEAR_2_BRANCH
main.cpp resource.h
Log Message:
See Changelog
Index: main.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/main.cpp,v
retrieving revision 1.43
retrieving revision 1.43.2.1
diff -C2 -d -r1.43 -r1.43.2.1
*** main.cpp 3 Oct 2002 20:53:39 -0000 1.43
--- main.cpp 21 Nov 2003 22:46:31 -0000 1.43.2.1
***************
*** 30,33 ****
--- 30,34 ----
IDS_HOMEPAGE, IDS_AUTHOR_EMAIL );
aboutData.addAuthor( "Björn Sahlström", I18N_NOOP("Maintainer and main developer"), IDS_AUTHOR_EMAIL );
+ aboutData.addAuthor( "Frithjof Engel", I18N_NOOP("Developer"), "fri...@us..." );
aboutData.addAuthor( "Peter Svärd", I18N_NOOP("Developer"), IDS_AUTHOR_EMAIL2 );
aboutData.addCredit ( "Falk Brettschneider", I18N_NOOP("For implementing the excellent library QextMdi"),
Index: resource.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/resource.h,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -C2 -d -r1.16 -r1.16.2.1
*** resource.h 8 Oct 2002 18:12:22 -0000 1.16
--- resource.h 21 Nov 2003 22:46:31 -0000 1.16.2.1
***************
*** 37,40 ****
/* */
static const QString IDS_HOMEPAGE = "http://kbear.sourceforge.net/";
! static const double IDS_VERSION = 2.00; // this is used for version control of config file
#endif // RESOURCE_H
--- 37,40 ----
/* */
static const QString IDS_HOMEPAGE = "http://kbear.sourceforge.net/";
! static const double IDS_VERSION = 2.11; // this is used for version control of config file
#endif // RESOURCE_H
|
|
From: <kb...@us...> - 2003-11-21 22:46:34
|
Update of /cvsroot/kbear/kbear
In directory sc8-pr-cvs1:/tmp/cvs-serv2185
Modified Files:
Tag: KBEAR_2_BRANCH
ChangeLog
Log Message:
See Changelog
Index: ChangeLog
===================================================================
RCS file: /cvsroot/kbear/kbear/ChangeLog,v
retrieving revision 1.137
retrieving revision 1.137.2.1
diff -C2 -d -r1.137 -r1.137.2.1
*** ChangeLog 17 Dec 2002 14:44:52 -0000 1.137
--- ChangeLog 21 Nov 2003 22:46:30 -0000 1.137.2.1
***************
*** 1,2 ****
--- 1,5 ----
+ 2003-11-21 Björn Sahlström <kb...@us...>
+ * Fixed bug that caused crash when switching to icon view
+ * Changed version to 2.1.1
2002-12-15 Björn Sahlström <kb...@us...>
* KBear 2.1 released
|
|
From: <fri...@us...> - 2003-11-19 22:02:22
|
Update of /cvsroot/kbear/kbear/kbear/lib/jobclasses
In directory sc8-pr-cvs1:/tmp/cvs-serv26484/kbear/lib/jobclasses
Modified Files:
simplejobwrapper.cpp
Log Message:
Fixed compile error.
Index: simplejobwrapper.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/simplejobwrapper.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** simplejobwrapper.cpp 19 Nov 2003 00:37:56 -0000 1.1
--- simplejobwrapper.cpp 19 Nov 2003 22:02:19 -0000 1.2
***************
*** 22,25 ****
--- 22,26 ----
//////////////////////////////////////////////////////////////////////
// Application specific include files
+ #include "misc.h"
namespace KBear {
|
|
From: <kb...@us...> - 2003-11-19 00:38:00
|
Update of /cvsroot/kbear/kbear/kbear/ftp
In directory sc8-pr-cvs1:/tmp/cvs-serv15902/kbear/ftp
Modified Files:
kbearftp.cpp kbearftp.h
Log Message:
Added simple wrapper class with static methods for different simle job classes
Index: kbearftp.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/ftp/kbearftp.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** kbearftp.cpp 23 Aug 2003 07:47:51 -0000 1.51
--- kbearftp.cpp 19 Nov 2003 00:37:56 -0000 1.52
***************
*** 244,247 ****
--- 244,253 ----
kdDebug(7102) << "KBearFtp::setHost " << _host << endl;
+ QString user = _user;
+ QString pass = _pass.isEmpty() ? QString::null : _pass;;
+ if( _user.isEmpty() ) {
+ user = FTP_LOGIN;
+ pass = FTP_PASSWD;
+ }
m_proxyURL = metaData("UseProxy");
kdDebug(7102) << "Proxy URL: " << m_proxyURL.url() << endl;
***************
*** 259,267 ****
void KBearFtp::openConnection() {
- ftpOpenConnection();
- }
-
-
- void KBearFtp::ftpOpenConnection (bool login) {
kdDebug(7102) << "openConnection " << m_host << ":" << m_port << " " << m_user << " [password hidden]" << endl;
--- 265,268 ----
***************
*** 334,345 ****
kdDebug(7102) << "Connected ...." << endl;
! if( login ) {
! if( m_bUseFirewall )
! m_bLoggedOn = ftpFirewallLogin();
! else
! m_bLoggedOn = ftpLogin();
! if( !m_bLoggedOn )
! return; // error emitted by ftpLogin
! }
connected();
--- 335,344 ----
kdDebug(7102) << "Connected ...." << endl;
! if( m_bUseFirewall )
! m_bLoggedOn = ftpFirewallLogin();
! else
! m_bLoggedOn = ftpLogin();
! if( !m_bLoggedOn )
! return; // error emitted by ftpLogin
connected();
***************
*** 671,674 ****
--- 670,674 ----
// Try anonymous login if both username/password
// information is blank.
+ /*
if (user.isEmpty() && pass.isEmpty())
{
***************
*** 676,680 ****
pass = FTP_PASSWD;
}
!
AuthInfo info;
info.url.setProtocol( QString::fromLatin1("ftp") );
--- 676,680 ----
pass = FTP_PASSWD;
}
! */
AuthInfo info;
info.url.setProtocol( QString::fromLatin1("ftp") );
***************
*** 921,925 ****
if(maxretries > 0 && !isPassCmd) {
closeConnection ();
! ftpOpenConnection ( false );
if(m_bFtpStarted)
ftpSendCmd ( cmd, maxretries - 1 );
--- 921,925 ----
if(maxretries > 0 && !isPassCmd) {
closeConnection ();
! openConnection ();
if(m_bFtpStarted)
ftpSendCmd ( cmd, maxretries - 1 );
***************
*** 936,940 ****
closeConnection(); // Close the old connection...
! ftpOpenConnection(); // Attempt to re-establish a new connection...
if(!m_bLoggedOn) {
--- 936,940 ----
closeConnection(); // Close the old connection...
! openConnection(); // Attempt to re-establish a new connection...
if(!m_bLoggedOn) {
Index: kbearftp.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/ftp/kbearftp.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** kbearftp.h 23 Aug 2003 07:47:51 -0000 1.13
--- kbearftp.h 19 Nov 2003 00:37:56 -0000 1.14
***************
*** 1,289 ****
!
! #ifndef __kbearftp_h__
! #define __kbearftp_h__
!
! #include <config.h>
!
! #include <stdio.h>
! #include <sys/types.h>
!
! #define FTP_BUFSIZ 1024
!
! #include <qcstring.h>
! #include <qstring.h>
! #include <qstringlist.h>
!
! #include <kurl.h>
! #include <kio/slavebase.h>
!
! class KExtendedSocket;
!
! struct FtpEntry
! {
! QString name;
! QString owner;
! QString group;
! QString link;
!
! long size;
! mode_t type;
! mode_t access;
! time_t date;
! };
!
! struct netbuf
! {
! char *cput,*cget;
! int handle;
! int cavail,cleft;
! char buf[FTP_BUFSIZ];
! };
!
! class KBearFtp : public KIO::SlaveBase
! {
! public:
! KBearFtp( const QCString &pool, const QCString &app );
! ~KBearFtp();
!
! virtual void setHost( const QString& host, int port, const QString& user, const QString& pass );
!
! /**
! * Connects to a ftp server and logs us in
! * @ref m_bLoggedOn is set to true if logging on was successfull.
! * It is set to false if the connection becomes closed.
! *
! */
! virtual void openConnection();
!
! /**
! * Closes the connection
! */
! virtual void closeConnection();
!
! virtual void stat( const KURL &url );
!
! virtual void listDir( const KURL & url );
! virtual void mkdir( const KURL & url, int permissions );
! virtual void rename( const KURL & src, const KURL & dst, bool overwrite );
! virtual void del( const KURL & url, bool isfile );
! virtual void chmod( const KURL & url, int permissions );
!
! virtual void get( const KURL& url );
! virtual void put( const KURL& url, int permissions, bool overwrite, bool resume);
! virtual void special( const QByteArray& );
! //virtual void mimetype( const KURL& url );
!
! virtual void slave_status();
!
! // unsupported, AFAIK
! // virtual void copy( const KURL &src, const KURL &dest, int permissions, bool overwrite );
!
! private:
!
! // All the methods named ftpXyz do NOT emit errors, they simply return true
! // or false (they are lowlevel methods). The methods not named this way
! // emit error on error (they are highlevel methods).
!
! /**
! * Connect and login to the FTP server.
! *
! * If login is set to false, this function will not attempt
! * to login to the server.
! *
! * @param login if true send login info to the FTP server.
! */
! void ftpOpenConnection ( bool login = true );
!
! /**
! * Executes any auto login macro's as specified in a .netrc file.
! */
! void ftpAutoLoginMacro ();
!
! /**
! * Called by @ref openConnection. It opens the control connection to the ftp server.
! *
! * @return true on success.
! */
! bool connect( const QString & host, unsigned short int port = 0 );
!
! /**
! * Called by @ref openConnection. It logs us in.
! * @ref m_initialPath is set to the current working directory
! * if logging on was successfull.
! *
! * @return true on success.
! */
! bool ftpLogin();
! bool ftpFirewallLogin();
! bool matchAutoExtensions( const QString& fileName );
! QStringList parseFirewallMacro( const QString& macro );
! /**
! * ftpSendCmd - send a command (@p cmd) and read response
! *
! * @param maxretries number of time it should retry. Since it recursively
! * calls itself if it can't read the answer (this happens especially after
! * timeouts), we need to limit the recursiveness ;-)
! *
! * return true if any response received, false on error
! */
! bool ftpSendCmd( const QCString& cmd, int maxretries = 1 );
!
! /**
! * Use the SIZE command to get the file size.
! * @param mode the size depends on the transfer mode, hence this arg.
! * @return true on success
! * Gets the size into m_size.
! */
! bool ftpSize( const QString & path, char mode );
!
! /**
! * Runs a command on the ftp server like "list" or "retr". In contrast to
! * @ref ftpSendCmd a data connection is opened. The corresponding socket
! * @ref sData is available for reading/writing on success.
! * The connection must be closed afterwards with @ref ftpCloseCommand.
! *
! * @param mode is 'A' or 'I'. 'A' means ASCII transfer, 'I' means binary transfer.
! * @param errorcode the command-dependent error code to emit on error
! *
! * @return true if the command was accepted by the server.
! */
! bool ftpOpenCommand( const char *command, const QString & path, char mode,
! int errorcode, unsigned long offset = 0 );
!
! /**
! * The counterpart to @ref openCommand.
! * Closes data sockets and then reads line sent by server at
! * end of command.
! * @return false on error (line doesn't start with '2')
! */
! bool ftpCloseCommand();
!
! void closeSockets();
!
! //void ftpAbortTransfer();
!
! /**
! * Used by @ref openCommand
! */
! bool ftpOpenPASVDataConnection();
! /**
! * Used by @ref openCommand
! */
! bool ftpOpenEPSVDataConnection();
! /**
! * Used by @ref openCommand
! */
! bool ftpOpenEPRTDataConnection();
! /**
! * Used by @ref openCommand
! */
! bool ftpOpenDataConnection();
! /**
! * ftpAcceptConnect - wait for incoming connection
! *
! * return -2 on error or timeout
! * otherwise returns socket descriptor
! */
! int ftpAcceptConnect();
!
! size_t ftpRead( void *buffer, long len );
! size_t ftpWrite( void *buffer, long len );
!
! bool ftpChmod( const QString & path, int permissions );
!
! // used by listDir
! bool ftpOpenDir( const QString & path );
! bool ftpCloseDir();
! // return 0L on end
! FtpEntry * ftpReadDir();
! // used by ftpReadDir
! FtpEntry * ftpParseDir( char* buffer );
! void createUDSEntry( const QString & filename, FtpEntry * e, KIO::UDSEntry & entry, bool isDir );
! void shortStatAnswer( const QString& filename, bool isDir );
! void statAnswerNotFound( const QString & path, const QString & filename );
!
! bool ftpRename( const QString & src, const QString & dst, bool overwrite );
!
! /**
! * read a line of text
! *
! * return -1 on error, bytecount otherwise
! */
! int ftpReadline( char *buf, int max, netbuf *ctl );
!
! /**
! * read a response from the server, into rspbuf
! * @return first char of response (rspbuf[0]), '\0' if we couldn't read the response
! */
! char readresp();
!
! int ftpConvertFromNVTASCII( char* buff, int cnt );
! void ftpConvertToNVTASCII( QByteArray& buff );
!
!
! private: // data members
!
! /**
! * Connected to the socket from which we read a directory listing.
! * If it is not zero, then a "list" command is in progress.
! */
! FILE *dirfile;
!
! /**
! * This is the data connection socket from which we read the data.
! */
! int sData;
! /**
! * The control stream socket
! */
! int sControl;
! /**
! * The server socket for a data connection. This is needed since the
! * ftp server must open a connection to us.
! */
! int sDatal;
!
! QString m_host;
! unsigned short int m_port;
! QString m_user;
! QString m_pass;
! /**
! * Where we end up after connecting
! */
! QString m_initialPath;
! KURL m_proxyURL;
!
! netbuf *nControl;
! char rspbuf[256];
!
! bool m_bLoggedOn;
! bool m_bFtpStarted;
! bool m_bPasv;
! bool m_bUseProxy;
! bool m_bPersistent;
! bool m_bUseFirewall;
! unsigned int m_firewallType;
! unsigned int m_transferMode;
! char m_chTransferMode;
! QString m_firewallHost;
! int m_firewallPort;
! QString m_firewallUser;
! QString m_firewallPass;
! QString m_firewallAccount;
! size_t m_size;
! static size_t UnknownSize;
!
! enum
! {
! epsvUnknown = 0x01,
! epsvAllUnknown = 0x02,
! eprtUnknown = 0x04,
! epsvAllSent = 0x10,
! pasvUnknown = 0x20
! };
! int m_extControl;
! KExtendedSocket *ksControl;
!
! };
!
! #endif
--- 1 ----
!
#ifndef __kbearftp_h__
#define __kbearftp_h__
#include <config.h>
#include <stdio.h>
#include <sys/types.h>
#define FTP_BUFSIZ 1024
#include <qcstring.h>
#include <qstring.h>
#include <qstringlist.h>
#include <kurl.h>
#include <kio/slavebase.h>
class KExtendedSocket;
struct FtpEntry
{
QString name;
QString owner;
QString group;
QString link;
long size;
mode_t type;
mode_t access;
time_t date;
};
struct netbuf
{
char *cput,*cget;
int handle;
int cavail,cleft;
char buf[FTP_BUFSIZ];
};
class KBearFtp : public KIO::SlaveBase
{
public:
KBearFtp( const QCString &pool, const QCString &app );
~KBearFtp();
virtual void setHost( const QString& host, int port, const QString& user, const QString& pass );
/**
* Connects to a ftp server and logs us in
* @ref m_bLoggedOn is set to true if logging on was successfull.
* It is set to false if the connection becomes closed.
*
*/
virtual void openConnection();
/**
* Closes the connection
*/
virtual void closeConnection();
virtual void stat( const KURL &url );
virtual void listDir( const KURL & url );
virtual void mkdir( const KURL & url, int permissions );
virtual void rename( const KURL & src, const KURL & dst, bool overwrite );
virtual void del( const KURL & url, bool isfile );
virtual void chmod( const KURL & url, int permissions );
virtual void get( const KURL& url );
virtual void put( const KURL& url, int permissions, bool overwrite, bool resume);
virtual void special( const QByteArray& );
//virtual void mimetype( const KURL& url );
virtual void slave_status();
// unsupported, AFAIK
// virtual void copy( const KURL &src, const KURL &dest, int permissions, bool overwrite );
private:
// All the methods named ftpXyz do NOT emit errors, they simply return true
// or false (they are lowlevel methods). The methods not named this way
// emit error on error (they are highlevel methods).
/**
* Connect and login to the FTP server.
*
* If login is set to false, this function will not attempt
* to login to the server.
*
* @param login if true send login info to the FTP server.
*/
// void ftpOpenConnection ( bool login = true );
/**
* Executes any auto login macro's as specified in a .netrc file.
*/
void ftpAutoLoginMacro ();
/**
* Called by @ref openConnection. It opens the control connection to the ftp server.
*
* @return true on success.
*/
bool connect( const QString & host, unsigned short int port = 0 );
/**
* Called by @ref openConnection. It logs us in.
* @ref m_initialPath is set to the current working directory
* if logging on was successfull.
*
* @return true on success.
*/
bool ftpLogin();
bool ftpFirewallLogin();
bool matchAutoExtensions( const QString& fileName );
QStringList parseFirewallMacro( const QString& macro );
/**
* ftpSendCmd - send a command (@p cmd) and read response
*
* @param maxretries number of time it should retry. Since it recursively
* calls itself if it can't read the answer (this happens especially after
* timeouts), we need to limit the recursiveness ;-)
*
* return true if any response received, false on error
*/
bool ftpSendCmd( const QCString& cmd, int maxretries = 1 );
/**
* Use the SIZE command to get the file size.
* @param mode the size depends on the transfer mode, hence this arg.
* @return true on success
* Gets the size into m_size.
*/
bool ftpSize( const QString & path, char mode );
/**
* Runs a command on the ftp server like "list" or "retr". In contrast to
* @ref ftpSendCmd a data connection is opened. The corresponding socket
* @ref sData is available for reading/writing on success.
* The connection must be closed afterwards with @ref ftpCloseCommand.
*
* @param mode is 'A' or 'I'. 'A' means ASCII transfer, 'I' means binary transfer.
* @param errorcode the command-dependent error code to emit on error
*
* @return true if the command was accepted by the server.
*/
bool ftpOpenCommand( const char *command, const QString & path, char mode,
int errorcode, unsigned long offset = 0 );
/**
* The counterpart to @ref openCommand.
* Closes data sockets and then reads line sent by server at
* end of command.
* @return false on error (line doesn't start with '2')
*/
bool ftpCloseCommand();
void closeSockets();
//void ftpAbortTransfer();
/**
* Used by @ref openCommand
*/
bool ftpOpenPASVDataConnection();
/**
* Used by @ref openCommand
*/
bool ftpOpenEPSVDataConnection();
/**
* Used by @ref openCommand
*/
bool ftpOpenEPRTDataConnection();
/**
* Used by @ref openCommand
*/
bool ftpOpenDataConnection();
/**
* ftpAcceptConnect - wait for incoming connection
*
* return -2 on error or timeout
* otherwise returns socket descriptor
*/
int ftpAcceptConnect();
size_t ftpRead( void *buffer, long len );
size_t ftpWrite( void *buffer, long len );
bool ftpChmod( const QString & path, int permissions );
// used by listDir
bool ftpOpenDir( const QString & path );
bool ftpCloseDir();
// return 0L on end
FtpEntry * ftpReadDir();
// used by ftpReadDir
FtpEntry * ftpParseDir( char* buffer );
void createUDSEntry( const QString & filename, FtpEntry * e, KIO::UDSEntry & entry, bool isDir );
void shortStatAnswer( const QString& filename, bool isDir );
void statAnswerNotFound( const QString & path, const QString & filename );
bool ftpRename( const QString & src, const QString & dst, bool overwrite );
/**
* read a line of text
*
* return -1 on error, bytecount otherwise
*/
int ftpReadline( char *buf, int max, netbuf *ctl );
/**
* read a response from the server, into rspbuf
* @return first char of response (rspbuf[0]), '\0' if we couldn't read the response
*/
char readresp();
int ftpConvertFromNVTASCII( char* buff, int cnt );
void ftpConvertToNVTASCII( QByteArray& buff );
private: // data members
/**
* Connected to the socket from which we read a directory listing.
* If it is not zero, then a "list" command is in progress.
*/
FILE *dirfile;
/**
* This is the data connection socket from which we read the data.
*/
int sData;
/**
* The control stream socket
*/
int sControl;
/**
* The server socket for a data connection. This is needed since the
* ftp server must open a connection to us.
*/
int sDatal;
QString m_host;
unsigned short int m_port;
QString m_user;
QString m_pass;
/**
* Where we end up after connecting
*/
QString m_initialPath;
KURL m_proxyURL;
netbuf *nControl;
char rspbuf[256];
bool m_bLoggedOn;
bool m_bFtpStarted;
bool m_bPasv;
bool m_bUseProxy;
bool m_bPersistent;
bool m_bUseFirewall;
unsigned int m_firewallType;
unsigned int m_transferMode;
char m_chTransferMode;
QString m_firewallHost;
int m_firewallPort;
QString m_firewallUser;
QString m_firewallPass;
QString m_firewallAccount;
size_t m_size;
static size_t UnknownSize;
enum
{
epsvUnknown = 0x01,
epsvAllUnknown = 0x02,
eprtUnknown = 0x04,
epsvAllSent = 0x10,
pasvUnknown = 0x20
};
int m_extControl;
KExtendedSocket *ksControl;
};
#endif
\ No newline at end of file
|
|
From: <kb...@us...> - 2003-11-19 00:37:59
|
Update of /cvsroot/kbear/kbear/kbear/lib/interfaces
In directory sc8-pr-cvs1:/tmp/cvs-serv15902/kbear/lib/interfaces
Modified Files:
misc.cpp
Log Message:
Added simple wrapper class with static methods for different simle job classes
Index: misc.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/misc.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** misc.cpp 17 Nov 2003 23:55:02 -0000 1.12
--- misc.cpp 19 Nov 2003 00:37:56 -0000 1.13
***************
*** 253,267 ****
}
//-----------------------------------------------
! QString toUnicode(const QString& str, const SiteInfo& site)
! {
if(site.isLocal())
return str;
QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
! return codec->toUnicode( str.utf8().data() );
}
//-----------------------------------------------
! KURL toUnicode(const KURL& u, const SiteInfo& site)
! {
if(site.isLocal())
return u;
--- 253,265 ----
}
//-----------------------------------------------
! QString toUnicode(const QString& str, const SiteInfo& site) {
if(site.isLocal())
return str;
QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
! return codec->toUnicode( str.latin1() );
}
//-----------------------------------------------
! KURL toUnicode(const KURL& u, const SiteInfo& site) {
if(site.isLocal())
return u;
***************
*** 269,278 ****
QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
KURL url = u;
! url.setPath( codec->toUnicode( u.path().utf8().data() ) );
return url;
}
//-----------------------------------------------
! QString fromUnicode(const QString& str, const SiteInfo& site)
! {
if(site.isLocal())
return str;
--- 267,275 ----
QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
KURL url = u;
! url.setPath( codec->toUnicode( u.path().latin1() ) );
return url;
}
//-----------------------------------------------
! QString fromUnicode(const QString& str, const SiteInfo& site) {
if(site.isLocal())
return str;
***************
*** 283,288 ****
}
//-----------------------------------------------
! KURL fromUnicode(const KURL& u, const SiteInfo& site)
! {
if(site.isLocal())
return u;
--- 280,284 ----
}
//-----------------------------------------------
! KURL fromUnicode(const KURL& u, const SiteInfo& site) {
if(site.isLocal())
return u;
|
|
From: <kb...@us...> - 2003-11-19 00:37:59
|
Update of /cvsroot/kbear/kbear/kbear/lib/jobclasses
In directory sc8-pr-cvs1:/tmp/cvs-serv15902/kbear/lib/jobclasses
Modified Files:
Makefile.am
Added Files:
simplejobwrapper.cpp simplejobwrapper.h
Log Message:
Added simple wrapper class with static methods for different simle job classes
--- NEW FILE: simplejobwrapper.cpp ---
/*********************************************************************************
* C++ Implementation: simplejobwrapper.cpp
* Description:
*
* Begin : Tue Nov 18 2003
* Author : Björn Sahlström <kb...@us...> (C) 2003
* Copyright : See COPYING file that comes with this distribution
**********************************************************************************/
#include "simplejobwrapper.h"
//////////////////////////////////////////////////////////////////////
// Qt specific include files
//////////////////////////////////////////////////////////////////////
// KDE specific include files
#include <kurl.h>
#include <kio/jobclasses.h>
#include <kio/job.h>
#include <kdebug.h>
//////////////////////////////////////////////////////////////////////
// System specific include files
//////////////////////////////////////////////////////////////////////
// Application specific include files
namespace KBear {
//-----------------------------------------------
SimpleJobWrapper* SimpleJobWrapper::m_self = 0L;
//-----------------------------------------------
SimpleJobWrapper::~SimpleJobWrapper() {
}
//-----------------------------------------------
SimpleJobWrapper* SimpleJobWrapper::self() {
if( ! m_self )
m_self = new SimpleJobWrapper;
return m_self;
}
//-----------------------------------------------
KIO::TransferJob* SimpleJobWrapper::_get( const SiteInfo& siteInfo, const KURL& url, bool reload, bool showProgressInfo ) {
return KIO::get( KBear::fromUnicode( url, siteInfo ), reload, showProgressInfo );
}
//-----------------------------------------------
KIO::StatJob* SimpleJobWrapper::_stat( const SiteInfo& siteInfo, const KURL& url, bool showProgressInfo ) {
return KIO::stat( KBear::fromUnicode( url, siteInfo ), showProgressInfo );
}
//-----------------------------------------------
KIO::SimpleJob* SimpleJobWrapper::_mkdir( const SiteInfo& siteInfo, const KURL& url ) {
return KIO::mkdir( KBear::fromUnicode( url, siteInfo ) );
}
//-----------------------------------------------
KIO::SimpleJob* SimpleJobWrapper::_rename( const SiteInfo& siteInfo, const KURL& oldurl, const KURL& newurl, bool overwrite ) {
return KIO::rename( KBear::fromUnicode( oldurl, siteInfo ), KBear::fromUnicode( newurl, siteInfo ), overwrite );
}
//-----------------------------------------------
};
--- NEW FILE: simplejobwrapper.h ---
/*********************************************************************************
* C++ Interface: simplejobwrapper.h
* Description:
*
* Begin : Tue Nov 18 2003
* Author : Björn Sahlström <kb...@us...> (C) 2003
* Copyright : See COPYING file that comes with this distribution
**********************************************************************************/
#ifndef KBEARSIMPLEJOBWRAPPER_H
#define KBEARSIMPLEJOBWRAPPER_H
//////////////////////////////////////////////////////////////////////
// Qt specific include files
//////////////////////////////////////////////////////////////////////
// KDE specific include files
#include <kurl.h>
#include <kio/jobclasses.h>
#include <kio/job.h>
#include <kdebug.h>
//////////////////////////////////////////////////////////////////////
// System specific include files
//////////////////////////////////////////////////////////////////////
// Application specific include files
#include "siteinfo.h"
namespace KBear {
/**
@author Björn Sahlström
*/
class SimpleJobWrapper{
public:
/** */
virtual ~SimpleJobWrapper();
/** */
static KIO::TransferJob* get( const SiteInfo& siteInfo, const KURL& url, bool reload, bool showProgressInfo ) {
return self()->_get( siteInfo, url, reload, showProgressInfo );
}
/** */
static KIO::StatJob* stat( const SiteInfo& siteInfo, const KURL& url, bool showProgressInfo ) {
return self()->_stat( siteInfo, url, showProgressInfo );
}
/** */
static KIO::SimpleJob* mkdir( const SiteInfo& siteInfo, const KURL& url ) {
return self()->_mkdir( siteInfo, url );
}
/** */
static KIO::SimpleJob* rename( const SiteInfo& siteInfo, const KURL& oldurl, const KURL& newurl, bool overwrite ) {
return self()->_rename( siteInfo, oldurl, newurl, overwrite );
}
private:
KIO::TransferJob* _get( const SiteInfo& siteInfo, const KURL& url, bool reload, bool showProgressInfo );
KIO::StatJob* _stat( const SiteInfo& siteInfo, const KURL& url, bool showProgressInfo );
KIO::SimpleJob* _mkdir( const SiteInfo& siteInfo, const KURL& url );
KIO::SimpleJob* _rename( const SiteInfo& siteInfo, const KURL& newurl, const KURL& oldurl, bool overwrite );
static SimpleJobWrapper* self();
private:
static SimpleJobWrapper* m_self;
};
};
#endif
Index: Makefile.am
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Makefile.am 17 Nov 2003 23:55:02 -0000 1.7
--- Makefile.am 19 Nov 2003 00:37:55 -0000 1.8
***************
*** 1,5 ****
INCLUDES = -I$(top_srcdir)/kbear/lib/interfaces $(all_includes)
! libkbearjobclasses_la_SOURCES = kbearfilecopyjob.cpp kbearfilecopyjob.h kbearcopyjob.cpp kbearlistjob.cpp kbearlistjob.h kbeardeletejob.cpp kbeardeletejob.h kbearchmodjob.cpp kbearchmodjob.h kbeardirsize.cpp kbeardirsize.h kbearsynchjob.cpp kbearsynchjob.h
METASOURCES = AUTO
noinst_LTLIBRARIES = libkbearjobclasses.la
! noinst_HEADERS = kbearchmodjob.h kbearcopyjob.h kbeardeletejob.h kbeardirsize.h kbearfilecopyjob.h kbearfilecopyjob.h kbearcopyjob.h kbearlistjob.h kbeardeletejob.h kbearchmodjob.h kbeardirsize.h kbearsynchjob.h kbearlistjob.h kbearsynchjob.h
--- 1,5 ----
INCLUDES = -I$(top_srcdir)/kbear/lib/interfaces $(all_includes)
! libkbearjobclasses_la_SOURCES = kbearfilecopyjob.cpp kbearfilecopyjob.h kbearcopyjob.cpp kbearlistjob.cpp kbearlistjob.h kbeardeletejob.cpp kbeardeletejob.h kbearchmodjob.cpp kbearchmodjob.h kbeardirsize.cpp kbeardirsize.h kbearsynchjob.cpp kbearsynchjob.h simplejobwrapper.cpp simplejobwrapper.h
METASOURCES = AUTO
noinst_LTLIBRARIES = libkbearjobclasses.la
! noinst_HEADERS = kbearchmodjob.h kbearcopyjob.h kbeardeletejob.h kbeardirsize.h kbearfilecopyjob.h kbearfilecopyjob.h kbearcopyjob.h kbearlistjob.h kbeardeletejob.h kbearchmodjob.h kbeardirsize.h kbearsynchjob.h kbearlistjob.h kbearsynchjob.h simplejobwrapper.h
|
|
From: <kb...@us...> - 2003-11-19 00:37:58
|
Update of /cvsroot/kbear/kbear/kbear/parts/remotefilesys
In directory sc8-pr-cvs1:/tmp/cvs-serv15902/kbear/parts/remotefilesys
Modified Files:
kbearremotedirlister.cpp
Log Message:
Added simple wrapper class with static methods for different simle job classes
Index: kbearremotedirlister.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/parts/remotefilesys/kbearremotedirlister.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** kbearremotedirlister.cpp 23 Aug 2003 07:47:50 -0000 1.17
--- kbearremotedirlister.cpp 19 Nov 2003 00:37:55 -0000 1.18
***************
*** 32,35 ****
--- 32,36 ----
#include "connectionmanager.h"
#include "kbearmainwiniface.h"
+ #include "simplejobwrapper.h"
#include "kbearremotedirlister.moc"
***************
*** 104,108 ****
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::TransferJob* job = KIO::get( url, false, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
--- 105,109 ----
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::TransferJob* job = KBear::SimpleJobWrapper::get( m_siteInfo, url, false, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
***************
*** 121,125 ****
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::StatJob* job = KIO::stat( url, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
--- 122,126 ----
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::StatJob* job = KBear::SimpleJobWrapper::stat( m_siteInfo, url, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
***************
*** 153,157 ****
void KBearRemoteDirLister::mkdir( const KURL& url ) {
m_state |= MAKING_DIR;
! KIO::SimpleJob* job = KIO::mkdir( url );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
connect( job, SIGNAL( infoMessage( const QString& ) ), this, SLOT( slotInfoMessage( const QString& ) ) );
--- 154,158 ----
void KBearRemoteDirLister::mkdir( const KURL& url ) {
m_state |= MAKING_DIR;
! KIO::SimpleJob* job = KBear::SimpleJobWrapper::mkdir( m_siteInfo, url );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
connect( job, SIGNAL( infoMessage( const QString& ) ), this, SLOT( slotInfoMessage( const QString& ) ) );
***************
*** 329,333 ****
void KBearRemoteDirLister::slotRename( const KURL& oldURL, const KURL& newURL ) {
m_state |= RENAMING;
! KIO::SimpleJob* job = KIO::rename( oldURL, newURL, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
connect( job, SIGNAL( infoMessage( const QString& ) ), this, SLOT( slotInfoMessage( const QString& ) ) );
--- 330,334 ----
void KBearRemoteDirLister::slotRename( const KURL& oldURL, const KURL& newURL ) {
m_state |= RENAMING;
! KIO::SimpleJob* job = KBear::SimpleJobWrapper::rename( m_siteInfo, oldURL, newURL, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
connect( job, SIGNAL( infoMessage( const QString& ) ), this, SLOT( slotInfoMessage( const QString& ) ) );
|
|
From: <kb...@us...> - 2003-11-19 00:37:58
|
Update of /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin
In directory sc8-pr-cvs1:/tmp/cvs-serv15902/kbear/plugins/dirsynchplugin
Modified Files:
dirsynchremotedirlister.cpp
Log Message:
Added simple wrapper class with static methods for different simle job classes
Index: dirsynchremotedirlister.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin/dirsynchremotedirlister.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** dirsynchremotedirlister.cpp 27 Aug 2003 20:01:28 -0000 1.1
--- dirsynchremotedirlister.cpp 19 Nov 2003 00:37:55 -0000 1.2
***************
*** 29,32 ****
--- 29,33 ----
#include "kbearlistjob.h"
#include "connectionmanager.h"
+ #include "simplejobwrapper.h"
#include "kbearmainwiniface.h"
***************
*** 95,99 ****
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::TransferJob* job = KIO::get( url, false, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
--- 96,100 ----
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::TransferJob* job = KBear::SimpleJobWrapper::get( m_siteInfo, url, false, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
***************
*** 112,116 ****
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::StatJob* job = KIO::stat( url, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
--- 113,117 ----
m_statURL = url;
m_lastMimeType = QString::null;
! KIO::StatJob* job = KBear::SimpleJobWrapper::stat( m_siteInfo, url, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
ConnectionManager::getInstance()->attachJob( m_siteInfo.ID(), job );
***************
*** 304,308 ****
void DirSynchRemoteDirLister::slotRename( const KURL& oldURL, const KURL& newURL ) {
m_state |= RENAMING;
! KIO::SimpleJob* job = KIO::rename( oldURL, newURL, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
connect( job, SIGNAL( infoMessage( const QString& ) ), this, SLOT( slotInfoMessage( const QString& ) ) );
--- 305,309 ----
void DirSynchRemoteDirLister::slotRename( const KURL& oldURL, const KURL& newURL ) {
m_state |= RENAMING;
! KIO::SimpleJob* job = KBear::SimpleJobWrapper::rename( m_siteInfo, oldURL, newURL, false );
job->setAutoErrorHandlingEnabled( true, (QWidget*)parent() );
connect( job, SIGNAL( infoMessage( const QString& ) ), this, SLOT( slotInfoMessage( const QString& ) ) );
|
|
From: <kb...@us...> - 2003-11-17 23:55:06
|
Update of /cvsroot/kbear/kbear/kbear/lib/interfaces
In directory sc8-pr-cvs1:/tmp/cvs-serv10553/kbear/lib/interfaces
Modified Files:
misc.cpp misc.h
Log Message:
See Changelog
Index: misc.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/misc.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** misc.cpp 23 Aug 2003 07:47:51 -0000 1.11
--- misc.cpp 17 Nov 2003 23:55:02 -0000 1.12
***************
*** 19,23 ****
#include <qpoint.h>
#include <qcstring.h>
! #include <qpixmapcache.h>
//////////////////////////////////////////////////////
// KDE specific includes
--- 19,24 ----
#include <qpoint.h>
#include <qcstring.h>
! #include <qtextcodec.h>
! #include <qpixmapcache.h>
//////////////////////////////////////////////////////
// KDE specific includes
***************
*** 252,254 ****
--- 253,298 ----
}
//-----------------------------------------------
+ QString toUnicode(const QString& str, const SiteInfo& site)
+ {
+ if(site.isLocal())
+ return str;
+
+ QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
+ return codec->toUnicode( str.utf8().data() );
+ }
+ //-----------------------------------------------
+ KURL toUnicode(const KURL& u, const SiteInfo& site)
+ {
+ if(site.isLocal())
+ return u;
+
+ QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
+ KURL url = u;
+ url.setPath( codec->toUnicode( u.path().utf8().data() ) );
+ return url;
+ }
+ //-----------------------------------------------
+ QString fromUnicode(const QString& str, const SiteInfo& site)
+ {
+ if(site.isLocal())
+ return str;
+
+ QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
+ QCString tmp = codec->fromUnicode( str );
+ return codec->fromUnicode( tmp.data() );
+ }
+ //-----------------------------------------------
+ KURL fromUnicode(const KURL& u, const SiteInfo& site)
+ {
+ if(site.isLocal())
+ return u;
+
+ QTextCodec *codec = QTextCodec::codecForName( site.fileSysEncoding().latin1() );
+ KURL url = u;
+ QCString tmp = codec->fromUnicode( u.path() );
+ url.setPath( tmp.data() );
+ return url;
+ }
+ //-----------------------------------------------
}; // end namespace KBear
+
Index: misc.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/misc.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** misc.h 18 Jun 2003 19:30:48 -0000 1.11
--- misc.h 17 Nov 2003 23:55:02 -0000 1.12
***************
*** 19,25 ****
--- 19,27 ----
// KDE specific includes
#include <kio/job.h>
+ #include <kurl.h>
#include <kmdcodec.h>
//////////////////////////////////////////////////////
// Application specific includes
+ #include "siteinfo.h"
class KFileView;
***************
*** 61,64 ****
--- 63,78 ----
int getPortForProtocol( const QString &protocol );
+ /*
+ **/
+ extern QString toUnicode(const QString& str, const SiteInfo& site);
+ /*
+ **/
+ extern KURL toUnicode(const KURL& u, const SiteInfo& site);
+ /*
+ **/
+ extern QString fromUnicode(const QString& str, const SiteInfo& site);
+ /*
+ **/
+ extern KURL fromUnicode(const KURL& u, const SiteInfo& site);
/**
* This enum represents the different ChildFrame modes
|
|
From: <kb...@us...> - 2003-11-17 23:55:05
|
Update of /cvsroot/kbear/kbear/kbear/lib/jobclasses
In directory sc8-pr-cvs1:/tmp/cvs-serv10553/kbear/lib/jobclasses
Modified Files:
Makefile.am kbearlistjob.cpp
Removed Files:
translatorjob.cpp translatorjob.h
Log Message:
See Changelog
Index: Makefile.am
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Makefile.am 17 Nov 2003 21:40:52 -0000 1.6
--- Makefile.am 17 Nov 2003 23:55:02 -0000 1.7
***************
*** 1,5 ****
INCLUDES = -I$(top_srcdir)/kbear/lib/interfaces $(all_includes)
! libkbearjobclasses_la_SOURCES = kbearfilecopyjob.cpp kbearfilecopyjob.h kbearcopyjob.cpp kbearlistjob.cpp kbearlistjob.h kbeardeletejob.cpp kbeardeletejob.h kbearchmodjob.cpp kbearchmodjob.h kbeardirsize.cpp kbeardirsize.h kbearsynchjob.cpp kbearsynchjob.h translatorjob.cpp
METASOURCES = AUTO
noinst_LTLIBRARIES = libkbearjobclasses.la
! noinst_HEADERS = kbearfilecopyjob.h kbearcopyjob.h kbearlistjob.h kbeardeletejob.h kbearchmodjob.h kbeardirsize.h kbearsynchjob.h translatorjob.h
--- 1,5 ----
INCLUDES = -I$(top_srcdir)/kbear/lib/interfaces $(all_includes)
! libkbearjobclasses_la_SOURCES = kbearfilecopyjob.cpp kbearfilecopyjob.h kbearcopyjob.cpp kbearlistjob.cpp kbearlistjob.h kbeardeletejob.cpp kbeardeletejob.h kbearchmodjob.cpp kbearchmodjob.h kbeardirsize.cpp kbeardirsize.h kbearsynchjob.cpp kbearsynchjob.h
METASOURCES = AUTO
noinst_LTLIBRARIES = libkbearjobclasses.la
! noinst_HEADERS = kbearchmodjob.h kbearcopyjob.h kbeardeletejob.h kbeardirsize.h kbearfilecopyjob.h kbearfilecopyjob.h kbearcopyjob.h kbearlistjob.h kbeardeletejob.h kbearchmodjob.h kbeardirsize.h kbearsynchjob.h kbearlistjob.h kbearsynchjob.h
Index: kbearlistjob.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/kbearlistjob.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** kbearlistjob.cpp 17 Nov 2003 21:02:37 -0000 1.6
--- kbearlistjob.cpp 17 Nov 2003 23:55:02 -0000 1.7
***************
*** 25,29 ****
//////////////////////////////////////////////////////////////////////
// Application specific include files
! #include "translatorjob.h"
#include "kbearlistjob.h"
#include "connectionmanager.h"
--- 25,29 ----
//////////////////////////////////////////////////////////////////////
// Application specific include files
! #include "misc.h"
#include "kbearlistjob.h"
#include "connectionmanager.h"
***************
*** 44,48 ****
kdDebug() << "KBearListJob():: " << m_url.path() << " " << m_subUrl.path() << endl;
QDataStream stream( m_packedArgs, IO_WriteOnly );
! stream << TranslatorJob::fromUnicode(u, m_siteInfo);
}
--- 44,48 ----
kdDebug() << "KBearListJob():: " << m_url.path() << " " << m_subUrl.path() << endl;
QDataStream stream( m_packedArgs, IO_WriteOnly );
! stream << KBear::fromUnicode(u, m_siteInfo);
}
***************
*** 70,74 ****
break;
case KIO::UDS_NAME:
! filename = TranslatorJob::toUnicode((*it2).m_str, m_siteInfo);
break;
case KIO::UDS_LINK_DEST:
--- 70,74 ----
break;
case KIO::UDS_NAME:
! filename = KBear::toUnicode((*it2).m_str, m_siteInfo);
break;
case KIO::UDS_LINK_DEST:
***************
*** 84,88 ****
if (filename != ".." && filename != "." && (includeHidden || filename[0] != '.')) {
kdDebug() << "KBearListJob::slotListEntries() with recursive " << url().path() << endl;
! KURL newone = TranslatorJob::toUnicode(url(), m_siteInfo);
newone.addPath(filename);
KBearListJob *job = new KBearListJob( m_ID, newone, m_progressId!=0, true, prefix + filename + "/",includeHidden);
--- 84,88 ----
if (filename != ".." && filename != "." && (includeHidden || filename[0] != '.')) {
kdDebug() << "KBearListJob::slotListEntries() with recursive " << url().path() << endl;
! KURL newone = KBear::toUnicode(url(), m_siteInfo);
newone.addPath(filename);
KBearListJob *job = new KBearListJob( m_ID, newone, m_progressId!=0, true, prefix + filename + "/",includeHidden);
***************
*** 116,120 ****
for( ; it2 != newone.end(); it2++ ) {
if ((*it2).m_uds == KIO::UDS_NAME) {
! filename = TranslatorJob::toUnicode((*it2).m_str, m_siteInfo);
kdDebug() << "KBearListJob::slotListEntries() " << prefix << filename << endl;
(*it2).m_str = prefix + filename;
--- 116,120 ----
for( ; it2 != newone.end(); it2++ ) {
if ((*it2).m_uds == KIO::UDS_NAME) {
! filename = KBear::toUnicode((*it2).m_str, m_siteInfo);
kdDebug() << "KBearListJob::slotListEntries() " << prefix << filename << endl;
(*it2).m_str = prefix + filename;
--- translatorjob.cpp DELETED ---
--- translatorjob.h DELETED ---
|
|
From: <kb...@us...> - 2003-11-17 23:55:05
|
Update of /cvsroot/kbear/kbear In directory sc8-pr-cvs1:/tmp/cvs-serv10553 Modified Files: ChangeLog Log Message: See Changelog Index: ChangeLog =================================================================== RCS file: /cvsroot/kbear/kbear/ChangeLog,v retrieving revision 1.164 retrieving revision 1.165 diff -C2 -d -r1.164 -r1.165 *** ChangeLog 17 Nov 2003 13:48:13 -0000 1.164 --- ChangeLog 17 Nov 2003 23:55:02 -0000 1.165 *************** *** 1,2 **** --- 1,4 ---- + 2003-11-18 Björn Sahlström <bjorn@WORKSTATION> + * Moved translation methods to misc files. 2003-08-24 Björn Sahlström <kb...@us...> * Fixed bug in filediff plugin, wrong files were deleted. |
|
From: <kb...@us...> - 2003-11-17 21:40:55
|
Update of /cvsroot/kbear/kbear/kbear/lib/jobclasses In directory sc8-pr-cvs1:/tmp/cvs-serv13807/kbear/lib/jobclasses Modified Files: Makefile.am Log Message: Fixed compile error Index: Makefile.am =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.am 20 Jul 2003 19:35:36 -0000 1.5 --- Makefile.am 17 Nov 2003 21:40:52 -0000 1.6 *************** *** 1,5 **** INCLUDES = -I$(top_srcdir)/kbear/lib/interfaces $(all_includes) ! libkbearjobclasses_la_SOURCES = kbearfilecopyjob.cpp kbearfilecopyjob.h kbearcopyjob.cpp kbearlistjob.cpp kbearlistjob.h kbeardeletejob.cpp kbeardeletejob.h kbearchmodjob.cpp kbearchmodjob.h kbeardirsize.cpp kbeardirsize.h kbearsynchjob.cpp kbearsynchjob.h METASOURCES = AUTO noinst_LTLIBRARIES = libkbearjobclasses.la ! noinst_HEADERS = kbearfilecopyjob.h kbearcopyjob.h kbearlistjob.h kbeardeletejob.h kbearchmodjob.h kbeardirsize.h kbearsynchjob.h --- 1,5 ---- INCLUDES = -I$(top_srcdir)/kbear/lib/interfaces $(all_includes) ! libkbearjobclasses_la_SOURCES = kbearfilecopyjob.cpp kbearfilecopyjob.h kbearcopyjob.cpp kbearlistjob.cpp kbearlistjob.h kbeardeletejob.cpp kbeardeletejob.h kbearchmodjob.cpp kbearchmodjob.h kbeardirsize.cpp kbeardirsize.h kbearsynchjob.cpp kbearsynchjob.h translatorjob.cpp METASOURCES = AUTO noinst_LTLIBRARIES = libkbearjobclasses.la ! noinst_HEADERS = kbearfilecopyjob.h kbearcopyjob.h kbearlistjob.h kbeardeletejob.h kbearchmodjob.h kbeardirsize.h kbearsynchjob.h translatorjob.h |
|
From: <fri...@us...> - 2003-11-17 21:03:01
|
Update of /cvsroot/kbear/kbear/kbear/lib/jobclasses
In directory sc8-pr-cvs1:/tmp/cvs-serv4968/kbear/lib/jobclasses
Modified Files:
kbearlistjob.cpp kbearlistjob.h
Added Files:
translatorjob.cpp translatorjob.h
Log Message:
Added patch by Yun-Ta Tsai which fixed encoding problems for users of
Asian codecs.
--- NEW FILE: translatorjob.cpp ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: translatorjob.h ---
(This appears to be a binary file; contents omitted.)
Index: kbearlistjob.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/kbearlistjob.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** kbearlistjob.cpp 23 Jul 2003 18:27:27 -0000 1.5
--- kbearlistjob.cpp 17 Nov 2003 21:02:37 -0000 1.6
***************
*** 25,28 ****
--- 25,29 ----
//////////////////////////////////////////////////////////////////////
// Application specific include files
+ #include "translatorjob.h"
#include "kbearlistjob.h"
#include "connectionmanager.h"
***************
*** 40,45 ****
// We couldn't set the args when calling the parent constructor,
// so do it now.
QDataStream stream( m_packedArgs, IO_WriteOnly );
! stream << u;
}
--- 41,48 ----
// We couldn't set the args when calling the parent constructor,
// so do it now.
+ m_siteInfo = ConnectionManager::getInstance()->getSiteInfo( ID );
+ kdDebug() << "KBearListJob():: " << m_url.path() << " " << m_subUrl.path() << endl;
QDataStream stream( m_packedArgs, IO_WriteOnly );
! stream << TranslatorJob::fromUnicode(u, m_siteInfo);
}
***************
*** 67,71 ****
break;
case KIO::UDS_NAME:
! filename = (*it2).m_str;
break;
case KIO::UDS_LINK_DEST:
--- 70,74 ----
break;
case KIO::UDS_NAME:
! filename = TranslatorJob::toUnicode((*it2).m_str, m_siteInfo);
break;
case KIO::UDS_LINK_DEST:
***************
*** 80,84 ****
// skip hidden dirs when listing if requested
if (filename != ".." && filename != "." && (includeHidden || filename[0] != '.')) {
! KURL newone = url();
newone.addPath(filename);
KBearListJob *job = new KBearListJob( m_ID, newone, m_progressId!=0, true, prefix + filename + "/",includeHidden);
--- 83,88 ----
// skip hidden dirs when listing if requested
if (filename != ".." && filename != "." && (includeHidden || filename[0] != '.')) {
! kdDebug() << "KBearListJob::slotListEntries() with recursive " << url().path() << endl;
! KURL newone = TranslatorJob::toUnicode(url(), m_siteInfo);
newone.addPath(filename);
KBearListJob *job = new KBearListJob( m_ID, newone, m_progressId!=0, true, prefix + filename + "/",includeHidden);
***************
*** 112,116 ****
for( ; it2 != newone.end(); it2++ ) {
if ((*it2).m_uds == KIO::UDS_NAME) {
! filename = (*it2).m_str;
(*it2).m_str = prefix + filename;
}
--- 116,121 ----
for( ; it2 != newone.end(); it2++ ) {
if ((*it2).m_uds == KIO::UDS_NAME) {
! filename = TranslatorJob::toUnicode((*it2).m_str, m_siteInfo);
! kdDebug() << "KBearListJob::slotListEntries() " << prefix << filename << endl;
(*it2).m_str = prefix + filename;
}
***************
*** 184,187 ****
--- 189,193 ----
KBearListJob* KBearListJob::listDir( int ID, const KURL& url, bool showProgressInfo, bool includeHidden )
{
+ kdDebug() << "KBearListJob::listDir() " << url.path() << endl;
KBearListJob * job = new KBearListJob( ID, url, showProgressInfo,false,QString::null,includeHidden);
return job;
***************
*** 190,193 ****
--- 196,200 ----
KBearListJob* KBearListJob::listRecursive( int ID, const KURL& url, bool showProgressInfo, bool includeHidden )
{
+ kdDebug() << "KBearListJob::listDir() " << url.path() << endl;
KBearListJob * job = new KBearListJob( ID, url, showProgressInfo, true,QString::null,includeHidden);
return job;
Index: kbearlistjob.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/lib/jobclasses/kbearlistjob.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** kbearlistjob.h 23 Jul 2003 18:27:27 -0000 1.3
--- kbearlistjob.h 17 Nov 2003 21:02:37 -0000 1.4
***************
*** 28,32 ****
--- 28,34 ----
//////////////////////////////////////////////////////////////////////
// Application specific include files
+ #include "siteinfo.h"
+ using namespace KBear;
class KBearListJob : public KIO::SimpleJob {
***************
*** 80,83 ****
--- 82,86 ----
KURL m_redirectionURL;
int m_ID;
+ SiteInfo m_siteInfo;
private:
class KBearListJobPrivate* d;
|
|
From: <fri...@us...> - 2003-11-17 20:57:16
|
Update of /cvsroot/kbear/kbear/po In directory sc8-pr-cvs1:/tmp/cvs-serv3740/po Modified Files: pt_BR.po Log Message: Little fix of a newline syntax problem. (Message is not translated correctly though) Index: pt_BR.po =================================================================== RCS file: /cvsroot/kbear/kbear/po/pt_BR.po,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** pt_BR.po 21 Sep 2003 03:14:20 -0000 1.42 --- pt_BR.po 17 Nov 2003 20:56:50 -0000 1.43 *************** *** 148,152 **** "This can be necessary for some filetypes, for example some perl scripts.\n" "All non matching files will be transfered in Binary mode (I)" ! msgstr "Marque esta opção se você quer que todos os arquivos que tiverem a extensão abaixo sejam transferidos no modo ASCII (A). \n" #: ../kbear/lib/interfaces/transfermanager.cpp:512 --- 148,152 ---- "This can be necessary for some filetypes, for example some perl scripts.\n" "All non matching files will be transfered in Binary mode (I)" ! msgstr "Marque esta opção se você quer que todos os arquivos que tiverem a extensão abaixo sejam transferidos no modo ASCII (A). " #: ../kbear/lib/interfaces/transfermanager.cpp:512 |