author | korovkin <korovkin> | 2006-03-20 21:44:55 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-03-20 21:44:55 (UTC) |
commit | 74546adb68bd3f17a75003671407c4a4e6b09e73 (patch) (side-by-side diff) | |
tree | 489034b13c803dca3e0e7e487e9465189a988c77 /noncore/net/opietooth/manager/obexftpdialogbase.cpp | |
parent | 14fc21051eb3ff92527fd9ddeaf117009bd74af2 (diff) | |
download | opie-74546adb68bd3f17a75003671407c4a4e6b09e73.zip opie-74546adb68bd3f17a75003671407c4a4e6b09e73.tar.gz opie-74546adb68bd3f17a75003671407c4a4e6b09e73.tar.bz2 |
Added file sending.
Diffstat (limited to 'noncore/net/opietooth/manager/obexftpdialogbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/obexftpdialogbase.cpp | 89 |
1 files changed, 57 insertions, 32 deletions
diff --git a/noncore/net/opietooth/manager/obexftpdialogbase.cpp b/noncore/net/opietooth/manager/obexftpdialogbase.cpp index 0640511..dd54b5f 100644 --- a/noncore/net/opietooth/manager/obexftpdialogbase.cpp +++ b/noncore/net/opietooth/manager/obexftpdialogbase.cpp @@ -3,3 +3,3 @@ ** -** Created: Sun Mar 19 16:47:24 2006 +** Created: Tue Mar 21 00:29:33 2006 ** by: The User Interface Compiler (uic) @@ -13,3 +13,2 @@ #include <qlabel.h> -#include <qlineedit.h> #include <qlistview.h> @@ -18,2 +17,3 @@ #include <qpushbutton.h> +#include <qspinbox.h> #include <qtabwidget.h> @@ -37,3 +37,3 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m setName( "ObexFtpDialogBase" ); - resize( 221, 396 ); + resize( 267, 312 ); setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth() ) ); @@ -51,5 +51,5 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m - Layout9 = new QVBoxLayout; - Layout9->setSpacing( 6 ); - Layout9->setMargin( 0 ); + Layout13 = new QGridLayout; + Layout13->setSpacing( 6 ); + Layout13->setMargin( 0 ); @@ -58,14 +58,12 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m fileList->addColumn( tr( "Size" ) ); - Layout9->addWidget( fileList ); + + Layout13->addWidget( fileList, 0, 0 ); fileProgress = new QProgressBar( files, "fileProgress" ); - Layout9->addWidget( fileProgress ); - buttons = new QHBoxLayout; - buttons->setSpacing( 6 ); - buttons->setMargin( 0 ); + Layout13->addWidget( fileProgress, 1, 0 ); - getButton = new QPushButton( files, "getButton" ); - getButton->setText( tr( "Get file" ) ); - buttons->addWidget( getButton ); + Layout11 = new QHBoxLayout; + Layout11->setSpacing( 6 ); + Layout11->setMargin( 0 ); @@ -73,4 +71,13 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m browseOK->setText( tr( "Browse" ) ); - buttons->addWidget( browseOK ); - Layout9->addLayout( buttons ); + Layout11->addWidget( browseOK ); + + getButton = new QPushButton( files, "getButton" ); + getButton->setText( tr( "Get file" ) ); + Layout11->addWidget( getButton ); + + putButton = new QPushButton( files, "putButton" ); + putButton->setText( tr( "Put file" ) ); + Layout11->addWidget( putButton ); + + Layout13->addLayout( Layout11, 2, 0 ); @@ -78,4 +85,5 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m statusBar->setText( tr( "" ) ); - Layout9->addWidget( statusBar ); - filesLayout->addLayout( Layout9 ); + + Layout13->addWidget( statusBar, 3, 0 ); + filesLayout->addLayout( Layout13 ); obexFtpTab->insertTab( files, tr( "Device" ) ); @@ -87,17 +95,34 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m - connRetries = new QLabel( options, "connRetries" ); - connRetries->setGeometry( QRect( 10, 45, 100, 16 ) ); - connRetries->setText( tr( "Retry to connect" ) ); + QWidget* privateLayoutWidget = new QWidget( options, "Layout5" ); + privateLayoutWidget->setGeometry( QRect( 45, 5, 162, 63 ) ); + Layout5 = new QVBoxLayout( privateLayoutWidget ); + Layout5->setSpacing( 6 ); + Layout5->setMargin( 0 ); - nReries = new QLineEdit( options, "nReries" ); - nReries->setGeometry( QRect( 115, 40, 60, 23 ) ); + Layout3 = new QHBoxLayout; + Layout3->setSpacing( 6 ); + Layout3->setMargin( 0 ); - uuidLabel = new QLabel( options, "uuidLabel" ); - uuidLabel->setGeometry( QRect( 15, 20, 67, 15 ) ); + uuidLabel = new QLabel( privateLayoutWidget, "uuidLabel" ); uuidLabel->setText( tr( "uuid type" ) ); + Layout3->addWidget( uuidLabel ); - uuidType = new QComboBox( FALSE, options, "uuidType" ); + uuidType = new QComboBox( FALSE, privateLayoutWidget, "uuidType" ); uuidType->insertItem( tr( "FBS" ) ); uuidType->insertItem( tr( "S45" ) ); - uuidType->setGeometry( QRect( 85, 10, 100, 30 ) ); + Layout3->addWidget( uuidType ); + Layout5->addLayout( Layout3 ); + + Layout4 = new QHBoxLayout; + Layout4->setSpacing( 6 ); + Layout4->setMargin( 0 ); + + connRetries = new QLabel( privateLayoutWidget, "connRetries" ); + connRetries->setText( tr( "Retry to connect" ) ); + Layout4->addWidget( connRetries ); + + nReries = new QSpinBox( privateLayoutWidget, "nReries" ); + nReries->setButtonSymbols( QSpinBox::PlusMinus ); + Layout4->addWidget( nReries ); + Layout5->addLayout( Layout4 ); obexFtpTab->insertTab( options, tr( "Options" ) ); @@ -116,7 +141,7 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m setTabOrder( obexFtpTab, fileList ); - setTabOrder( fileList, getButton ); - setTabOrder( getButton, browseOK ); - setTabOrder( browseOK, uuidType ); - setTabOrder( uuidType, nReries ); - setTabOrder( nReries, browseLog ); + setTabOrder( fileList, browseOK ); + setTabOrder( browseOK, getButton ); + setTabOrder( getButton, putButton ); + setTabOrder( putButton, uuidType ); + setTabOrder( uuidType, browseLog ); } |