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.cpp131
1 files changed, 131 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/obexftpdialogbase.cpp b/noncore/net/opietooth/manager/obexftpdialogbase.cpp
new file mode 100644
index 0000000..0640511
--- a/dev/null
+++ b/noncore/net/opietooth/manager/obexftpdialogbase.cpp
@@ -0,0 +1,131 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'obexftpdialogbase.ui'
3**
4** Created: Sun Mar 19 16:47:24 2006
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "obexftpdialogbase.h"
10
11#include <qcombobox.h>
12#include <qheader.h>
13#include <qlabel.h>
14#include <qlineedit.h>
15#include <qlistview.h>
16#include <qmultilineedit.h>
17#include <qprogressbar.h>
18#include <qpushbutton.h>
19#include <qtabwidget.h>
20#include <qwidget.h>
21#include <qlayout.h>
22#include <qvariant.h>
23#include <qtooltip.h>
24#include <qwhatsthis.h>
25
26/*
27 * Constructs a ObexFtpDialogBase which is a child of 'parent', with the
28 * name 'name' and widget flags set to 'f'
29 *
30 * The dialog will by default be modeless, unless you set 'modal' to
31 * TRUE to construct a modal dialog.
32 */
33ObexFtpDialogBase::ObexFtpDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
34 : QDialog( parent, name, modal, fl )
35{
36 if ( !name )
37 setName( "ObexFtpDialogBase" );
38 resize( 221, 396 );
39 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, sizePolicy().hasHeightForWidth() ) );
40 setCaption( tr( "Browse device" ) );
41 ObexFtpDialogBaseLayout = new QVBoxLayout( this );
42 ObexFtpDialogBaseLayout->setSpacing( 0 );
43 ObexFtpDialogBaseLayout->setMargin( 0 );
44
45 obexFtpTab = new QTabWidget( this, "obexFtpTab" );
46
47 files = new QWidget( obexFtpTab, "files" );
48 filesLayout = new QVBoxLayout( files );
49 filesLayout->setSpacing( 0 );
50 filesLayout->setMargin( 0 );
51
52 Layout9 = new QVBoxLayout;
53 Layout9->setSpacing( 6 );
54 Layout9->setMargin( 0 );
55
56 fileList = new QListView( files, "fileList" );
57 fileList->addColumn( tr( "Name" ) );
58 fileList->addColumn( tr( "Size" ) );
59 Layout9->addWidget( fileList );
60
61 fileProgress = new QProgressBar( files, "fileProgress" );
62 Layout9->addWidget( fileProgress );
63
64 buttons = new QHBoxLayout;
65 buttons->setSpacing( 6 );
66 buttons->setMargin( 0 );
67
68 getButton = new QPushButton( files, "getButton" );
69 getButton->setText( tr( "Get file" ) );
70 buttons->addWidget( getButton );
71
72 browseOK = new QPushButton( files, "browseOK" );
73 browseOK->setText( tr( "Browse" ) );
74 buttons->addWidget( browseOK );
75 Layout9->addLayout( buttons );
76
77 statusBar = new QLabel( files, "statusBar" );
78 statusBar->setText( tr( "" ) );
79 Layout9->addWidget( statusBar );
80 filesLayout->addLayout( Layout9 );
81 obexFtpTab->insertTab( files, tr( "Device" ) );
82
83 localFs = new QWidget( obexFtpTab, "localFs" );
84 obexFtpTab->insertTab( localFs, tr( "Local" ) );
85
86 options = new QWidget( obexFtpTab, "options" );
87
88 connRetries = new QLabel( options, "connRetries" );
89 connRetries->setGeometry( QRect( 10, 45, 100, 16 ) );
90 connRetries->setText( tr( "Retry to connect" ) );
91
92 nReries = new QLineEdit( options, "nReries" );
93 nReries->setGeometry( QRect( 115, 40, 60, 23 ) );
94
95 uuidLabel = new QLabel( options, "uuidLabel" );
96 uuidLabel->setGeometry( QRect( 15, 20, 67, 15 ) );
97 uuidLabel->setText( tr( "uuid type" ) );
98
99 uuidType = new QComboBox( FALSE, options, "uuidType" );
100 uuidType->insertItem( tr( "FBS" ) );
101 uuidType->insertItem( tr( "S45" ) );
102 uuidType->setGeometry( QRect( 85, 10, 100, 30 ) );
103 obexFtpTab->insertTab( options, tr( "Options" ) );
104
105 browse = new QWidget( obexFtpTab, "browse" );
106 browseLayout = new QHBoxLayout( browse );
107 browseLayout->setSpacing( 0 );
108 browseLayout->setMargin( 0 );
109
110 browseLog = new QMultiLineEdit( browse, "browseLog" );
111 browseLayout->addWidget( browseLog );
112 obexFtpTab->insertTab( browse, tr( "Log" ) );
113 ObexFtpDialogBaseLayout->addWidget( obexFtpTab );
114
115 // tab order
116 setTabOrder( obexFtpTab, fileList );
117 setTabOrder( fileList, getButton );
118 setTabOrder( getButton, browseOK );
119 setTabOrder( browseOK, uuidType );
120 setTabOrder( uuidType, nReries );
121 setTabOrder( nReries, browseLog );
122}
123
124/*
125 * Destroys the object and frees any allocated resources
126 */
127ObexFtpDialogBase::~ObexFtpDialogBase()
128{
129 // no need to delete child widgets, Qt does it all for us
130}
131