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 @@ | |||
3 | ** | 3 | ** |
4 | ** Created: Sun Mar 19 16:47:24 2006 | 4 | ** Created: Tue Mar 21 00:29:33 2006 |
5 | ** by: The User Interface Compiler (uic) | 5 | ** by: The User Interface Compiler (uic) |
@@ -13,3 +13,2 @@ | |||
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | #include <qlineedit.h> | ||
15 | #include <qlistview.h> | 14 | #include <qlistview.h> |
@@ -18,2 +17,3 @@ | |||
18 | #include <qpushbutton.h> | 17 | #include <qpushbutton.h> |
18 | #include <qspinbox.h> | ||
19 | #include <qtabwidget.h> | 19 | #include <qtabwidget.h> |
@@ -37,3 +37,3 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
37 | setName( "ObexFtpDialogBase" ); | 37 | setName( "ObexFtpDialogBase" ); |
38 | resize( 221, 396 ); | 38 | resize( 267, 312 ); |
39 | setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth() ) ); | 39 | setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth() ) ); |
@@ -51,5 +51,5 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
51 | 51 | ||
52 | Layout9 = new QVBoxLayout; | 52 | Layout13 = new QGridLayout; |
53 | Layout9->setSpacing( 6 ); | 53 | Layout13->setSpacing( 6 ); |
54 | Layout9->setMargin( 0 ); | 54 | Layout13->setMargin( 0 ); |
55 | 55 | ||
@@ -58,14 +58,12 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
58 | fileList->addColumn( tr( "Size" ) ); | 58 | fileList->addColumn( tr( "Size" ) ); |
59 | Layout9->addWidget( fileList ); | 59 | |
60 | Layout13->addWidget( fileList, 0, 0 ); | ||
60 | 61 | ||
61 | fileProgress = new QProgressBar( files, "fileProgress" ); | 62 | fileProgress = new QProgressBar( files, "fileProgress" ); |
62 | Layout9->addWidget( fileProgress ); | ||
63 | 63 | ||
64 | buttons = new QHBoxLayout; | 64 | Layout13->addWidget( fileProgress, 1, 0 ); |
65 | buttons->setSpacing( 6 ); | ||
66 | buttons->setMargin( 0 ); | ||
67 | 65 | ||
68 | getButton = new QPushButton( files, "getButton" ); | 66 | Layout11 = new QHBoxLayout; |
69 | getButton->setText( tr( "Get file" ) ); | 67 | Layout11->setSpacing( 6 ); |
70 | buttons->addWidget( getButton ); | 68 | Layout11->setMargin( 0 ); |
71 | 69 | ||
@@ -73,4 +71,13 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
73 | browseOK->setText( tr( "Browse" ) ); | 71 | browseOK->setText( tr( "Browse" ) ); |
74 | buttons->addWidget( browseOK ); | 72 | Layout11->addWidget( browseOK ); |
75 | Layout9->addLayout( buttons ); | 73 | |
74 | getButton = new QPushButton( files, "getButton" ); | ||
75 | getButton->setText( tr( "Get file" ) ); | ||
76 | Layout11->addWidget( getButton ); | ||
77 | |||
78 | putButton = new QPushButton( files, "putButton" ); | ||
79 | putButton->setText( tr( "Put file" ) ); | ||
80 | Layout11->addWidget( putButton ); | ||
81 | |||
82 | Layout13->addLayout( Layout11, 2, 0 ); | ||
76 | 83 | ||
@@ -78,4 +85,5 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
78 | statusBar->setText( tr( "" ) ); | 85 | statusBar->setText( tr( "" ) ); |
79 | Layout9->addWidget( statusBar ); | 86 | |
80 | filesLayout->addLayout( Layout9 ); | 87 | Layout13->addWidget( statusBar, 3, 0 ); |
88 | filesLayout->addLayout( Layout13 ); | ||
81 | obexFtpTab->insertTab( files, tr( "Device" ) ); | 89 | obexFtpTab->insertTab( files, tr( "Device" ) ); |
@@ -87,17 +95,34 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
87 | 95 | ||
88 | connRetries = new QLabel( options, "connRetries" ); | 96 | QWidget* privateLayoutWidget = new QWidget( options, "Layout5" ); |
89 | connRetries->setGeometry( QRect( 10, 45, 100, 16 ) ); | 97 | privateLayoutWidget->setGeometry( QRect( 45, 5, 162, 63 ) ); |
90 | connRetries->setText( tr( "Retry to connect" ) ); | 98 | Layout5 = new QVBoxLayout( privateLayoutWidget ); |
99 | Layout5->setSpacing( 6 ); | ||
100 | Layout5->setMargin( 0 ); | ||
91 | 101 | ||
92 | nReries = new QLineEdit( options, "nReries" ); | 102 | Layout3 = new QHBoxLayout; |
93 | nReries->setGeometry( QRect( 115, 40, 60, 23 ) ); | 103 | Layout3->setSpacing( 6 ); |
104 | Layout3->setMargin( 0 ); | ||
94 | 105 | ||
95 | uuidLabel = new QLabel( options, "uuidLabel" ); | 106 | uuidLabel = new QLabel( privateLayoutWidget, "uuidLabel" ); |
96 | uuidLabel->setGeometry( QRect( 15, 20, 67, 15 ) ); | ||
97 | uuidLabel->setText( tr( "uuid type" ) ); | 107 | uuidLabel->setText( tr( "uuid type" ) ); |
108 | Layout3->addWidget( uuidLabel ); | ||
98 | 109 | ||
99 | uuidType = new QComboBox( FALSE, options, "uuidType" ); | 110 | uuidType = new QComboBox( FALSE, privateLayoutWidget, "uuidType" ); |
100 | uuidType->insertItem( tr( "FBS" ) ); | 111 | uuidType->insertItem( tr( "FBS" ) ); |
101 | uuidType->insertItem( tr( "S45" ) ); | 112 | uuidType->insertItem( tr( "S45" ) ); |
102 | uuidType->setGeometry( QRect( 85, 10, 100, 30 ) ); | 113 | Layout3->addWidget( uuidType ); |
114 | Layout5->addLayout( Layout3 ); | ||
115 | |||
116 | Layout4 = new QHBoxLayout; | ||
117 | Layout4->setSpacing( 6 ); | ||
118 | Layout4->setMargin( 0 ); | ||
119 | |||
120 | connRetries = new QLabel( privateLayoutWidget, "connRetries" ); | ||
121 | connRetries->setText( tr( "Retry to connect" ) ); | ||
122 | Layout4->addWidget( connRetries ); | ||
123 | |||
124 | nReries = new QSpinBox( privateLayoutWidget, "nReries" ); | ||
125 | nReries->setButtonSymbols( QSpinBox::PlusMinus ); | ||
126 | Layout4->addWidget( nReries ); | ||
127 | Layout5->addLayout( Layout4 ); | ||
103 | obexFtpTab->insertTab( options, tr( "Options" ) ); | 128 | obexFtpTab->insertTab( options, tr( "Options" ) ); |
@@ -116,7 +141,7 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m | |||
116 | setTabOrder( obexFtpTab, fileList ); | 141 | setTabOrder( obexFtpTab, fileList ); |
117 | setTabOrder( fileList, getButton ); | 142 | setTabOrder( fileList, browseOK ); |
118 | setTabOrder( getButton, browseOK ); | 143 | setTabOrder( browseOK, getButton ); |
119 | setTabOrder( browseOK, uuidType ); | 144 | setTabOrder( getButton, putButton ); |
120 | setTabOrder( uuidType, nReries ); | 145 | setTabOrder( putButton, uuidType ); |
121 | setTabOrder( nReries, browseLog ); | 146 | setTabOrder( uuidType, browseLog ); |
122 | } | 147 | } |