-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 28 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.h | 4 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.pro | 4 |
3 files changed, 24 insertions, 12 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 7f5d71c..e15bbef 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -24,2 +24,3 @@ | |||
24 | #include <qpe/mimetype.h> | 24 | #include <qpe/mimetype.h> |
25 | #include <qpe/qpemessagebox.h> | ||
25 | 26 | ||
@@ -86,3 +87,3 @@ OpieFtp::OpieFtp( ) | |||
86 | tabMenu = new QPopupMenu( this ); | 87 | tabMenu = new QPopupMenu( this ); |
87 | 88 | ||
88 | layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); | 89 | layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); |
@@ -116,2 +117,4 @@ OpieFtp::OpieFtp( ) | |||
116 | tabMenu->insertItem( tr( "Switch to Config" ), this, SLOT( switchToConfigTab() )); | 117 | tabMenu->insertItem( tr( "Switch to Config" ), this, SLOT( switchToConfigTab() )); |
118 | tabMenu->insertSeparator(); | ||
119 | tabMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); | ||
117 | tabMenu->setCheckable(TRUE); | 120 | tabMenu->setCheckable(TRUE); |
@@ -119,2 +122,3 @@ OpieFtp::OpieFtp( ) | |||
119 | 122 | ||
123 | |||
120 | cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); | 124 | cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); |
@@ -152,5 +156,5 @@ OpieFtp::OpieFtp( ) | |||
152 | Local_View->addColumn( tr("File"),150); | 156 | Local_View->addColumn( tr("File"),150); |
153 | Local_View->addColumn( tr("Size"),-1); | ||
154 | Local_View->setColumnAlignment(1,QListView::AlignRight); | ||
155 | Local_View->addColumn( tr("Date"),-1); | 157 | Local_View->addColumn( tr("Date"),-1); |
158 | Local_View->setColumnAlignment(1,QListView::AlignRight); | ||
159 | Local_View->addColumn( tr("Size"),-1); | ||
156 | Local_View->setColumnAlignment(2,QListView::AlignRight); | 160 | Local_View->setColumnAlignment(2,QListView::AlignRight); |
@@ -182,5 +186,5 @@ OpieFtp::OpieFtp( ) | |||
182 | Remote_View->addColumn( tr("File"),150); | 186 | Remote_View->addColumn( tr("File"),150); |
183 | Remote_View->addColumn( tr("Size"),-1); | ||
184 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | ||
185 | Remote_View->addColumn( tr("Date"),-1); | 187 | Remote_View->addColumn( tr("Date"),-1); |
188 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | ||
189 | Remote_View->addColumn( tr("Size"),-1); | ||
186 | Remote_View->setColumnAlignment(2,QListView::AlignRight); | 190 | Remote_View->setColumnAlignment(2,QListView::AlignRight); |
@@ -613,3 +617,3 @@ void OpieFtp::populateLocalView() | |||
613 | if(fileL !="./" && fi->exists()) { | 617 | if(fileL !="./" && fi->exists()) { |
614 | item= new QListViewItem( Local_View,fileL,fileS , fileDate); | 618 | item= new QListViewItem( Local_View,fileL, fileDate, fileS ); |
615 | QPixmap pm; | 619 | QPixmap pm; |
@@ -679,3 +683,3 @@ bool OpieFtp::populateRemoteView( ) | |||
679 | if(s.left(1) == "d" || fileL.find("/",0,TRUE) != -1) { | 683 | if(s.left(1) == "d" || fileL.find("/",0,TRUE) != -1) { |
680 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate,"d"); | 684 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileDate, fileS,"d"); |
681 | item->setPixmap( 0, Resource::loadPixmap( "folder" )); | 685 | item->setPixmap( 0, Resource::loadPixmap( "folder" )); |
@@ -685,3 +689,3 @@ bool OpieFtp::populateRemoteView( ) | |||
685 | } else { | 689 | } else { |
686 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate,"f"); | 690 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileDate, fileS,"f"); |
687 | item->setPixmap( 0, Resource::loadPixmap( "fileopen" )); | 691 | item->setPixmap( 0, Resource::loadPixmap( "fileopen" )); |
@@ -1315 +1319,9 @@ void OpieFtp::homeButtonPushed() { | |||
1315 | } | 1319 | } |
1320 | |||
1321 | void OpieFtp::doAbout() { | ||
1322 | QMessageBox::message("OpieFtp","Opie ftp client is copyright 2002 by\n" | ||
1323 | "L.J.Potter<llornkcor@handhelds.org>\n" | ||
1324 | "and uses ftplib copyright 1996-2000\n" | ||
1325 | "by Thomas Pfau, pfau@cnj.digex.net\n\n" | ||
1326 | "and is licensed by the GPL"); | ||
1327 | } | ||
diff --git a/noncore/net/opieftp/opieftp.h b/noncore/net/opieftp/opieftp.h index 6852b1c..218a958 100644 --- a/noncore/net/opieftp/opieftp.h +++ b/noncore/net/opieftp/opieftp.h | |||
@@ -57,3 +57,3 @@ public: | |||
57 | QSpinBox* PortSpinBox; | 57 | QSpinBox* PortSpinBox; |
58 | QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu; | 58 | QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu, *aboutMenu; |
59 | QDir currentDir; | 59 | QDir currentDir; |
@@ -69,3 +69,3 @@ protected slots: | |||
69 | void docButtonPushed(); | 69 | void docButtonPushed(); |
70 | 70 | void doAbout(); | |
71 | void serverComboEdited(const QString & ); | 71 | void serverComboEdited(const QString & ); |
diff --git a/noncore/net/opieftp/opieftp.pro b/noncore/net/opieftp/opieftp.pro index f25d15f..7aead00 100644 --- a/noncore/net/opieftp/opieftp.pro +++ b/noncore/net/opieftp/opieftp.pro | |||
@@ -2,4 +2,4 @@ TEMPLATE = app | |||
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | HEADERS = opieftp.h inputDialog.h ftplib.h | 3 | HEADERS = opieftp.h inputDialog.h ftplib.h filePermissions.h |
4 | SOURCES = opieftp.cpp inputDialog.cpp ftplib.c main.cpp | 4 | SOURCES = opieftp.cpp inputDialog.cpp ftplib.c filePermissions.cpp main.cpp |
5 | TARGET = opieftp | 5 | TARGET = opieftp |