summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-28 13:39:25 (UTC)
committer llornkcor <llornkcor>2002-03-28 13:39:25 (UTC)
commitcd6f89bfab7e609705e8013d50413e1cae929d8a (patch) (unidiff)
tree58de5a24abe2dc9640aa92fdb9db4512ff3c5c01
parentfea05ec0241de3f3476696584e4a11dab045f91e (diff)
downloadopie-cd6f89bfab7e609705e8013d50413e1cae929d8a.zip
opie-cd6f89bfab7e609705e8013d50413e1cae929d8a.tar.gz
opie-cd6f89bfab7e609705e8013d50413e1cae929d8a.tar.bz2
fixed somthing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp40
1 files changed, 14 insertions, 26 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index efcaf84..36de842 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -133,16 +133,16 @@ OpieFtp::OpieFtp( )
133 Local_View->setAllColumnsShowFocus(TRUE); 133 Local_View->setAllColumnsShowFocus(TRUE);
134 Local_View->setMultiSelection( TRUE ); 134 Local_View->setMultiSelection( TRUE );
135 135
136 QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); 136 QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold);
137 137
138 tabLayout->addWidget( Local_View, 0, 0 ); 138 tabLayout->addWidget( Local_View, 0, 0 );
139 139
140 connect( Local_View, SIGNAL( clicked( QListViewItem*)), 140 connect( Local_View, SIGNAL( clicked( QListViewItem*)),
141 this,SLOT( localListClicked(QListViewItem *)) ); 141 this,SLOT( localListClicked(QListViewItem *)) );
142// connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)), 142// connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)),
143// this,SLOT( localListClicked(QListViewItem *)) ); 143// this,SLOT( localListClicked(QListViewItem *)) );
144 connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), 144// connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
145 this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); 145// this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) );
146 146
147 TabWidget->insertTab( tab, tr( "Local" ) ); 147 TabWidget->insertTab( tab, tr( "Local" ) );
148 148
@@ -261,18 +261,6 @@ OpieFtp::OpieFtp( )
261 261
262// fillCombos(); 262// fillCombos();
263 263
264#ifdef DEVELOPERS_VERSION
265 ServerComboBox->lineEdit()->setText( tr( "192.168.129.201" ) );
266 UsernameComboBox->lineEdit()->setText("root");
267 PortSpinBox->setValue( 4242);
268 remotePath->setText( currentRemoteDir = "/");
269// ServerComboBox->lineEdit()->setText( tr( "llornkcor.com" ) );
270// UsernameComboBox->lineEdit()->setText("llornkcor");
271// PortSpinBox->setValue( 21);
272// remotePath->setText( currentRemoteDir = "/home/llornkcor");
273 PasswordEdit->setText( tr( "" ) );
274#endif
275
276 filterStr="*"; 264 filterStr="*";
277 b=FALSE; 265 b=FALSE;
278 populateLocalView(); 266 populateLocalView();
@@ -723,8 +711,10 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
723 711
724void OpieFtp::localListClicked(QListViewItem *selectedItem) 712void OpieFtp::localListClicked(QListViewItem *selectedItem)
725{ 713{
726 if(item) { 714// qDebug(selectedItem->text(0));
727 QString strItem=selectedItem->text(0); 715 if(item!= NULL) {
716
717 QString strItem=selectedItem->text(0);
728 QString strSize=selectedItem->text(1); 718 QString strSize=selectedItem->text(1);
729 strSize=strSize.stripWhiteSpace(); 719 strSize=strSize.stripWhiteSpace();
730 if(strItem.find("@",0,TRUE) !=-1 || strItem.find("->",0,TRUE) !=-1 ) { //if symlink 720 if(strItem.find("@",0,TRUE) !=-1 || strItem.find("->",0,TRUE) !=-1 ) { //if symlink
@@ -789,13 +779,10 @@ void OpieFtp::showHidden()
789 779
790void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) 780void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, int i)
791{ 781{
792 switch (mouse) { 782// if(item)
793 case 1: 783if (mouse == 2) {
794 break;
795 case 2:
796 showLocalMenu(item); 784 showLocalMenu(item);
797 break; 785 }
798 };
799} 786}
800 787
801void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) 788void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i)
@@ -825,7 +812,8 @@ void OpieFtp::showRemoteMenu(QListViewItem * item)
825 812
826void OpieFtp::showLocalMenu(QListViewItem * item) 813void OpieFtp::showLocalMenu(QListViewItem * item)
827{ 814{
828 QPopupMenu m; 815
816 QPopupMenu m;
829 m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); 817 m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() ));
830 m.insertSeparator(); 818 m.insertSeparator();
831 if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) !=-1) 819 if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) !=-1)