author | alwin <alwin> | 2004-03-01 14:05:40 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-01 14:05:40 (UTC) |
commit | 0f3d8aba2d2de77b1366ece1685cb720ea9b841f (patch) (side-by-side diff) | |
tree | 31a105cc9dca06e4a3339e1c684be773e497b3f5 /noncore/net/opieftp/opieftp.cpp | |
parent | aa4539e4ccc23c47f720819e23c9a6faf53a4df8 (diff) | |
download | opie-0f3d8aba2d2de77b1366ece1685cb720ea9b841f.zip opie-0f3d8aba2d2de77b1366ece1685cb720ea9b841f.tar.gz opie-0f3d8aba2d2de77b1366ece1685cb720ea9b841f.tar.bz2 |
just modified this way, that it not longer crashes when just startet.
but completly unusable. Who will maintain this stuff? If no one will
do it, we should remove this app in next opie release 'cause this
moment it makes no sense.
Diffstat (limited to 'noncore/net/opieftp/opieftp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 2b29d83..24da195 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp @@ -39,4 +39,5 @@ extern "C" { #include <qlineedit.h> #include <qlistbox.h> +#include <qvbox.h> #include <unistd.h> @@ -61,10 +62,16 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) : QMainWindow( parent, name, fl ) { + qDebug("OpieFtp constructor"); setCaption( tr( "OpieFtp" ) ); fuckeduphack=FALSE; - QGridLayout *layout = new QGridLayout( this ); + + QVBox* wrapperBox = new QVBox( this ); + setCentralWidget( wrapperBox ); + + QWidget *view = new QWidget( wrapperBox ); + + QGridLayout *layout = new QGridLayout( view ); layout->setSpacing( 2); layout->setMargin( 2); - connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); @@ -83,5 +90,7 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) tabMenu = new QPopupMenu( this ); +#if 0 layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); +#endif menuBar->insertItem( tr( "Connection" ), connectionMenu); @@ -121,6 +130,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) - - cdUpButton = new QToolButton( this,"cdUpButton"); + cdUpButton = new QToolButton( view,"cdUpButton"); cdUpButton->setPixmap(Resource::loadPixmap("up")); cdUpButton ->setFixedSize( QSize( 20, 20 ) ); @@ -129,5 +137,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) cdUpButton->hide(); -// docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",this,"docsButton"); +// docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",view,"docsButton"); // docButton->setFixedSize( QSize( 20, 20 ) ); // connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); @@ -135,5 +143,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) // layout->addMultiCellWidget( docButton, 0, 0, 6, 6 ); - homeButton = new QToolButton(this,"homeButton"); + homeButton = new QToolButton(view,"homeButton"); homeButton->setPixmap( Resource::loadPixmap("home")); homeButton->setFixedSize( QSize( 20, 20 ) ); @@ -142,5 +150,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) homeButton->hide(); - TabWidget = new QTabWidget( this, "TabWidget" ); + TabWidget = new QTabWidget( view, "TabWidget" ); layout->addMultiCellWidget( TabWidget, 1, 1, 0, 4 ); @@ -292,6 +300,8 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) TabWidget->insertTab( tab_3, tr( "Config" ) ); +#if 0 connect(TabWidget,SIGNAL(currentChanged(QWidget *)), this,SLOT(tabChanged(QWidget*))); +#endif currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); @@ -299,5 +309,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); - currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); + currentPathCombo = new QComboBox( FALSE, view, "currentPathCombo" ); layout->addMultiCellWidget( currentPathCombo, 3, 3, 0, 4); currentPathCombo ->setFixedWidth(220); @@ -305,4 +315,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); +#if 0 connect( currentPathCombo, SIGNAL( activated( const QString & ) ), this, SLOT( currentPathComboActivated( const QString & ) ) ); @@ -310,11 +321,13 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) connect( currentPathCombo->lineEdit(),SIGNAL(returnPressed()), this,SLOT(currentPathComboChanged())); - - ProgressBar = new QProgressBar( this, "ProgressBar" ); +#endif + ProgressBar = new QProgressBar( view, "ProgressBar" ); layout->addMultiCellWidget( ProgressBar, 4, 4, 0, 4); ProgressBar->setMaximumHeight(10); filterStr="*"; b=FALSE; +#if 0 populateLocalView(); +#endif readConfig(); @@ -322,4 +335,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl) TabWidget->setCurrentPage(2); + qDebug("Constructor done"); } @@ -651,5 +665,5 @@ void OpieFtp::populateLocalView() if (fi->isSymLink() ){ QString symLink=fi->readLink(); -// qDebug("Symlink detected "+symLink); + qDebug("Symlink detected "+symLink); QFileInfo sym( symLink); fileS.sprintf( "%10i", sym.size() ); @@ -657,5 +671,5 @@ void OpieFtp::populateLocalView() fileDate = sym.lastModified().toString(); } else { -// qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); + qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); fileS.sprintf( "%10i", fi->size() ); fileL.sprintf( "%s",fi->fileName().data() ); @@ -664,5 +678,5 @@ void OpieFtp::populateLocalView() fileL+="/"; isDir=TRUE; -// qDebug( fileL); + qDebug( fileL); } } |