summaryrefslogtreecommitdiff
path: root/noncore/net
authorllornkcor <llornkcor>2002-04-19 23:44:14 (UTC)
committer llornkcor <llornkcor>2002-04-19 23:44:14 (UTC)
commit609a534bc1f5efda3242be2d1dc5dbc4a13715cb (patch) (side-by-side diff)
tree26ba7eb664cac1f7606f8b6d0db5930a8d5fa209 /noncore/net
parentf62cb71116d1aa16603fe6e87169e8b98125ce1f (diff)
downloadopie-609a534bc1f5efda3242be2d1dc5dbc4a13715cb.zip
opie-609a534bc1f5efda3242be2d1dc5dbc4a13715cb.tar.gz
opie-609a534bc1f5efda3242be2d1dc5dbc4a13715cb.tar.bz2
changed date and size columns, and added about
Diffstat (limited to 'noncore/net') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp28
-rw-r--r--noncore/net/opieftp/opieftp.h4
-rw-r--r--noncore/net/opieftp/opieftp.pro4
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 @@
#include <qpe/mimetype.h>
+#include <qpe/qpemessagebox.h>
@@ -86,3 +87,3 @@ OpieFtp::OpieFtp( )
tabMenu = new QPopupMenu( this );
-
+
layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 );
@@ -116,2 +117,4 @@ OpieFtp::OpieFtp( )
tabMenu->insertItem( tr( "Switch to Config" ), this, SLOT( switchToConfigTab() ));
+ tabMenu->insertSeparator();
+ tabMenu->insertItem( tr( "About" ), this, SLOT( doAbout() ));
tabMenu->setCheckable(TRUE);
@@ -119,2 +122,3 @@ OpieFtp::OpieFtp( )
+
cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton");
@@ -152,5 +156,5 @@ OpieFtp::OpieFtp( )
Local_View->addColumn( tr("File"),150);
- Local_View->addColumn( tr("Size"),-1);
- Local_View->setColumnAlignment(1,QListView::AlignRight);
Local_View->addColumn( tr("Date"),-1);
+ Local_View->setColumnAlignment(1,QListView::AlignRight);
+ Local_View->addColumn( tr("Size"),-1);
Local_View->setColumnAlignment(2,QListView::AlignRight);
@@ -182,5 +186,5 @@ OpieFtp::OpieFtp( )
Remote_View->addColumn( tr("File"),150);
- Remote_View->addColumn( tr("Size"),-1);
- Remote_View->setColumnAlignment(1,QListView::AlignRight);
Remote_View->addColumn( tr("Date"),-1);
+ Remote_View->setColumnAlignment(1,QListView::AlignRight);
+ Remote_View->addColumn( tr("Size"),-1);
Remote_View->setColumnAlignment(2,QListView::AlignRight);
@@ -613,3 +617,3 @@ void OpieFtp::populateLocalView()
if(fileL !="./" && fi->exists()) {
- item= new QListViewItem( Local_View,fileL,fileS , fileDate);
+ item= new QListViewItem( Local_View,fileL, fileDate, fileS );
QPixmap pm;
@@ -679,3 +683,3 @@ bool OpieFtp::populateRemoteView( )
if(s.left(1) == "d" || fileL.find("/",0,TRUE) != -1) {
- QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate,"d");
+ QListViewItem * item = new QListViewItem( Remote_View, fileL, fileDate, fileS,"d");
item->setPixmap( 0, Resource::loadPixmap( "folder" ));
@@ -685,3 +689,3 @@ bool OpieFtp::populateRemoteView( )
} else {
- QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate,"f");
+ QListViewItem * item = new QListViewItem( Remote_View, fileL, fileDate, fileS,"f");
item->setPixmap( 0, Resource::loadPixmap( "fileopen" ));
@@ -1315 +1319,9 @@ void OpieFtp::homeButtonPushed() {
}
+
+void OpieFtp::doAbout() {
+ QMessageBox::message("OpieFtp","Opie ftp client is copyright 2002 by\n"
+ "L.J.Potter<llornkcor@handhelds.org>\n"
+ "and uses ftplib copyright 1996-2000\n"
+ "by Thomas Pfau, pfau@cnj.digex.net\n\n"
+ "and is licensed by the GPL");
+}
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:
QSpinBox* PortSpinBox;
- QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu;
+ QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu, *aboutMenu;
QDir currentDir;
@@ -69,3 +69,3 @@ protected slots:
void docButtonPushed();
-
+ void doAbout();
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
CONFIG += qt warn_on release
-HEADERS = opieftp.h inputDialog.h ftplib.h
-SOURCES = opieftp.cpp inputDialog.cpp ftplib.c main.cpp
+HEADERS = opieftp.h inputDialog.h ftplib.h filePermissions.h
+SOURCES = opieftp.cpp inputDialog.cpp ftplib.c filePermissions.cpp main.cpp
TARGET = opieftp