summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/obexftpdialogbase.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/obexftpdialogbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/obexftpdialogbase.cpp89
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
@@ -1,24 +1,24 @@
1/**************************************************************************** 1/****************************************************************************
2** Form implementation generated from reading ui file 'obexftpdialogbase.ui' 2** Form implementation generated from reading ui file 'obexftpdialogbase.ui'
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)
6** 6**
7** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
8****************************************************************************/ 8****************************************************************************/
9#include "obexftpdialogbase.h" 9#include "obexftpdialogbase.h"
10 10
11#include <qcombobox.h> 11#include <qcombobox.h>
12#include <qheader.h> 12#include <qheader.h>
13#include <qlabel.h> 13#include <qlabel.h>
14#include <qlineedit.h>
15#include <qlistview.h> 14#include <qlistview.h>
16#include <qmultilineedit.h> 15#include <qmultilineedit.h>
17#include <qprogressbar.h> 16#include <qprogressbar.h>
18#include <qpushbutton.h> 17#include <qpushbutton.h>
18#include <qspinbox.h>
19#include <qtabwidget.h> 19#include <qtabwidget.h>
20#include <qwidget.h> 20#include <qwidget.h>
21#include <qlayout.h> 21#include <qlayout.h>
22#include <qvariant.h> 22#include <qvariant.h>
23#include <qtooltip.h> 23#include <qtooltip.h>
24#include <qwhatsthis.h> 24#include <qwhatsthis.h>
@@ -32,13 +32,13 @@
32 */ 32 */
33ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 33ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
34 : QDialog( parent, name, modal, fl ) 34 : QDialog( parent, name, modal, fl )
35{ 35{
36 if ( !name ) 36 if ( !name )
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() ) );
40 setCaption( tr( "Browse device" ) ); 40 setCaption( tr( "Browse device" ) );
41 ObexFtpDialogBaseLayout = new QVBoxLayout( this ); 41 ObexFtpDialogBaseLayout = new QVBoxLayout( this );
42 ObexFtpDialogBaseLayout->setSpacing( 0 ); 42 ObexFtpDialogBaseLayout->setSpacing( 0 );
43 ObexFtpDialogBaseLayout->setMargin( 0 ); 43 ObexFtpDialogBaseLayout->setMargin( 0 );
44 44
@@ -46,63 +46,88 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m
46 46
47 files = new QWidget( obexFtpTab, "files" ); 47 files = new QWidget( obexFtpTab, "files" );
48 filesLayout = new QVBoxLayout( files ); 48 filesLayout = new QVBoxLayout( files );
49 filesLayout->setSpacing( 0 ); 49 filesLayout->setSpacing( 0 );
50 filesLayout->setMargin( 0 ); 50 filesLayout->setMargin( 0 );
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
56 fileList = new QListView( files, "fileList" ); 56 fileList = new QListView( files, "fileList" );
57 fileList->addColumn( tr( "Name" ) ); 57 fileList->addColumn( tr( "Name" ) );
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
72 browseOK = new QPushButton( files, "browseOK" ); 70 browseOK = new QPushButton( files, "browseOK" );
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
77 statusBar = new QLabel( files, "statusBar" ); 84 statusBar = new QLabel( files, "statusBar" );
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" ) );
82 90
83 localFs = new QWidget( obexFtpTab, "localFs" ); 91 localFs = new QWidget( obexFtpTab, "localFs" );
84 obexFtpTab->insertTab( localFs, tr( "Local" ) ); 92 obexFtpTab->insertTab( localFs, tr( "Local" ) );
85 93
86 options = new QWidget( obexFtpTab, "options" ); 94 options = new QWidget( obexFtpTab, "options" );
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" ) );
104 129
105 browse = new QWidget( obexFtpTab, "browse" ); 130 browse = new QWidget( obexFtpTab, "browse" );
106 browseLayout = new QHBoxLayout( browse ); 131 browseLayout = new QHBoxLayout( browse );
107 browseLayout->setSpacing( 0 ); 132 browseLayout->setSpacing( 0 );
108 browseLayout->setMargin( 0 ); 133 browseLayout->setMargin( 0 );
@@ -111,17 +136,17 @@ ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool m
111 browseLayout->addWidget( browseLog ); 136 browseLayout->addWidget( browseLog );
112 obexFtpTab->insertTab( browse, tr( "Log" ) ); 137 obexFtpTab->insertTab( browse, tr( "Log" ) );
113 ObexFtpDialogBaseLayout->addWidget( obexFtpTab ); 138 ObexFtpDialogBaseLayout->addWidget( obexFtpTab );
114 139
115 // tab order 140 // tab order
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}
123 148
124/* 149/*
125 * Destroys the object and frees any allocated resources 150 * Destroys the object and frees any allocated resources
126 */ 151 */
127ObexFtpDialogBase::~ObexFtpDialogBase() 152ObexFtpDialogBase::~ObexFtpDialogBase()