-rw-r--r-- | core/obex/obexsendbase.cpp | 299 | ||||
-rw-r--r-- | core/obex/obexsendbase.h | 54 |
2 files changed, 0 insertions, 353 deletions
diff --git a/core/obex/obexsendbase.cpp b/core/obex/obexsendbase.cpp deleted file mode 100644 index ae6443c..0000000 --- a/core/obex/obexsendbase.cpp +++ b/dev/null | |||
@@ -1,299 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'obexsendbase.ui' | ||
3 | ** | ||
4 | ** Created: Fri Aug 5 00:20:45 2005 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #include "obexsendbase.h" | ||
10 | |||
11 | #include <qheader.h> | ||
12 | #include <qlabel.h> | ||
13 | #include <qlistview.h> | ||
14 | #include <qpushbutton.h> | ||
15 | #include <qlayout.h> | ||
16 | #include <qvariant.h> | ||
17 | #include <qtooltip.h> | ||
18 | #include <qwhatsthis.h> | ||
19 | #include <qimage.h> | ||
20 | #include <qpixmap.h> | ||
21 | |||
22 | static const char* const image0_data[] = { | ||
23 | "14 14 4 1", | ||
24 | ". c None", | ||
25 | "b c #000000", | ||
26 | "a c #c00000", | ||
27 | "# c #ff0000", | ||
28 | "..............", | ||
29 | "...#a.........", | ||
30 | "....###.......", | ||
31 | "......a##.....", | ||
32 | "..#a....a#....", | ||
33 | "...##a...a#...", | ||
34 | ".....##...#...", | ||
35 | "..#a..a#..a#..", | ||
36 | "...##..#a..#..", | ||
37 | "....a#..#..#a.", | ||
38 | ".bb..#a.#a..#.", | ||
39 | ".bbb..#..#....", | ||
40 | ".bbb..........", | ||
41 | ".............."}; | ||
42 | |||
43 | static const char* const image1_data[] = { | ||
44 | "14 18 107 2", | ||
45 | "Qt c None", | ||
46 | ".8 c #000000", | ||
47 | "#t c #000102", | ||
48 | "#K c #000104", | ||
49 | "#D c #00040c", | ||
50 | "#O c #00050f", | ||
51 | "#N c #000d24", | ||
52 | "#M c #000f2a", | ||
53 | "#L c #001130", | ||
54 | "#j c #00163d", | ||
55 | "#J c #001c52", | ||
56 | "#s c #002770", | ||
57 | "#C c #002772", | ||
58 | ".F c #002d7f", | ||
59 | "#c c #00338f", | ||
60 | "#I c #003699", | ||
61 | "#B c #0038a3", | ||
62 | "#E c #003aa5", | ||
63 | "#A c #003cac", | ||
64 | "#r c #003cad", | ||
65 | "## c #003da7", | ||
66 | ".4 c #003da9", | ||
67 | "#h c #003ead", | ||
68 | "#q c #003eb0", | ||
69 | ".7 c #003fb1", | ||
70 | ".N c #003fb3", | ||
71 | ".V c #0040b2", | ||
72 | "#z c #0042b9", | ||
73 | ".5 c #0042ba", | ||
74 | ".U c #0043bb", | ||
75 | "#a c #0043bd", | ||
76 | "#F c #0043c0", | ||
77 | ".W c #0044be", | ||
78 | "#w c #0044c4", | ||
79 | "#H c #0045c6", | ||
80 | "#m c #0046c7", | ||
81 | ".L c #0048ca", | ||
82 | ".M c #0049ce", | ||
83 | "#i c #0049d1", | ||
84 | "#v c #004ad6", | ||
85 | ".6 c #004bd6", | ||
86 | ".X c #004cd8", | ||
87 | "#G c #004cd9", | ||
88 | "#b c #004cda", | ||
89 | "#l c #004cdb", | ||
90 | ".B c #004edf", | ||
91 | ".D c #004fe1", | ||
92 | ".C c #0050e4", | ||
93 | ".E c #0052e9", | ||
94 | "#p c #013eab", | ||
95 | ".Y c #0141b7", | ||
96 | ".w c #014dda", | ||
97 | "#u c #014ede", | ||
98 | "#k c #0150e3", | ||
99 | ".i c #0151e4", | ||
100 | ".p c #0153ea", | ||
101 | ".h c #0156f2", | ||
102 | ".b c #0156f3", | ||
103 | ".9 c #0256f1", | ||
104 | ".g c #0256f2", | ||
105 | "#e c #054dd2", | ||
106 | ".a c #0558f2", | ||
107 | ".2 c #0659f3", | ||
108 | ".Z c #075af2", | ||
109 | ".S c #075af3", | ||
110 | ".1 c #0b5df3", | ||
111 | ".# c #0d5ff3", | ||
112 | ".R c #0e60f4", | ||
113 | ".x c #105fef", | ||
114 | ".0 c #1061f2", | ||
115 | ".O c #1263f4", | ||
116 | ".G c #1464f1", | ||
117 | ".c c #1563ed", | ||
118 | ".3 c #1652bc", | ||
119 | ".K c #165ad7", | ||
120 | ".q c #1764ec", | ||
121 | ".j c #1865ec", | ||
122 | ".d c #1d69ee", | ||
123 | "#y c #1e59c6", | ||
124 | ".J c #206df6", | ||
125 | ".Q c #226ff6", | ||
126 | ".T c #2365dd", | ||
127 | ".y c #256fef", | ||
128 | ".P c #2672f6", | ||
129 | "#x c #2967d8", | ||
130 | "#d c #296ded", | ||
131 | ".k c #2a74f1", | ||
132 | ".r c #2b75f2", | ||
133 | ".H c #2d77f5", | ||
134 | ".I c #347df9", | ||
135 | ".l c #357ef7", | ||
136 | ".z c #3780f8", | ||
137 | ".t c #3f84f9", | ||
138 | "#o c #4876c8", | ||
139 | ".s c #498af8", | ||
140 | ".e c #4c88f5", | ||
141 | ".o c #4c88f6", | ||
142 | "#g c #4e79c5", | ||
143 | ".v c #4f8af7", | ||
144 | "#n c #5086e9", | ||
145 | "#f c #5087eb", | ||
146 | ".f c #5890f7", | ||
147 | "#. c #5c90f1", | ||
148 | ".u c #5d95f8", | ||
149 | ".m c #5e95f8", | ||
150 | ".A c #6b9df8", | ||
151 | ".n c #ffffff", | ||
152 | "QtQtQtQtQtQtQtQtQtQtQtQtQtQt", | ||
153 | "QtQtQtQtQt.#.a.bQtQtQtQtQtQt", | ||
154 | "QtQtQt.c.d.e.f.g.h.iQtQtQtQt", | ||
155 | "QtQt.j.k.l.m.n.o.b.b.pQtQtQt", | ||
156 | "Qt.q.r.s.t.u.n.n.v.b.h.wQtQt", | ||
157 | ".x.y.z.n.n.A.n.B.n.C.D.E.FQt", | ||
158 | ".G.H.I.J.n.n.n.n.K.L.M.B.NQt", | ||
159 | ".O.P.Q.R.S.n.n.T.U.V.W.X.YQt", | ||
160 | ".Z.0.1.2.n.n.n.n.3.4.5.6.7.8", | ||
161 | ".h.9.b.n.n#..n.B.n###a#b#cQt", | ||
162 | "Qt.b.b#d#e#f.n.n#g#h#a#i#jQt", | ||
163 | "Qt#k.b#l#m#n.n#o#p#q#r#s#tQt", | ||
164 | "QtQt#u#v#w#x#y#z#A#B#C#DQtQt", | ||
165 | "QtQtQt#E#F.B#G#H#I#J#KQtQtQt", | ||
166 | "QtQtQtQtQt#L#M#N#O.8QtQtQtQt", | ||
167 | "QtQtQtQtQtQtQtQtQtQtQtQtQtQt", | ||
168 | "QtQtQtQtQtQtQtQtQtQtQtQtQtQt", | ||
169 | "QtQtQtQtQtQtQtQtQtQtQtQtQtQt"}; | ||
170 | |||
171 | |||
172 | /* | ||
173 | * Constructs a obexSendBase which is a child of 'parent', with the | ||
174 | * name 'name' and widget flags set to 'f' | ||
175 | */ | ||
176 | obexSendBase::obexSendBase( QWidget* parent, const char* name, WFlags fl ) | ||
177 | : QWidget( parent, name, fl ) | ||
178 | { | ||
179 | QPixmap image0( ( const char** ) image0_data ); | ||
180 | QPixmap image1( ( const char** ) image1_data ); | ||
181 | if ( !name ) | ||
182 | setName( "obexSendBase" ); | ||
183 | resize( 363, 221 ); | ||
184 | setCaption( tr( "Send via OBEX" ) ); | ||
185 | obexSendBaseLayout = new QVBoxLayout( this ); | ||
186 | obexSendBaseLayout->setSpacing( 6 ); | ||
187 | obexSendBaseLayout->setMargin( 11 ); | ||
188 | |||
189 | Layout1 = new QHBoxLayout; | ||
190 | Layout1->setSpacing( 6 ); | ||
191 | Layout1->setMargin( 0 ); | ||
192 | |||
193 | sendLabel = new QLabel( this, "sendLabel" ); | ||
194 | sendLabel->setText( tr( "Sending:" ) ); | ||
195 | Layout1->addWidget( sendLabel ); | ||
196 | |||
197 | fileToSend = new QLabel( this, "fileToSend" ); | ||
198 | fileToSend->setText( tr( "Unknown" ) ); | ||
199 | Layout1->addWidget( fileToSend ); | ||
200 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
201 | Layout1->addItem( spacer ); | ||
202 | obexSendBaseLayout->addLayout( Layout1 ); | ||
203 | |||
204 | Layout4 = new QHBoxLayout; | ||
205 | Layout4->setSpacing( 6 ); | ||
206 | Layout4->setMargin( 0 ); | ||
207 | |||
208 | irdaLabel = new QLabel( this, "irdaLabel" ); | ||
209 | irdaLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, irdaLabel->sizePolicy().hasHeightForWidth() ) ); | ||
210 | irdaLabel->setText( tr( "" ) ); | ||
211 | irdaLabel->setPixmap( image0 ); | ||
212 | Layout4->addWidget( irdaLabel ); | ||
213 | |||
214 | irdaStatus = new QLabel( this, "irdaStatus" ); | ||
215 | irdaStatus->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, irdaStatus->sizePolicy().hasHeightForWidth() ) ); | ||
216 | irdaStatus->setText( tr( "Unknown" ) ); | ||
217 | Layout4->addWidget( irdaStatus ); | ||
218 | |||
219 | btLabel = new QLabel( this, "btLabel" ); | ||
220 | btLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, btLabel->sizePolicy().hasHeightForWidth() ) ); | ||
221 | btLabel->setText( tr( "" ) ); | ||
222 | btLabel->setPixmap( image1 ); | ||
223 | Layout4->addWidget( btLabel ); | ||
224 | |||
225 | btStatus = new QLabel( this, "btStatus" ); | ||
226 | btStatus->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, btStatus->sizePolicy().hasHeightForWidth() ) ); | ||
227 | btStatus->setText( tr( "Unknown" ) ); | ||
228 | Layout4->addWidget( btStatus ); | ||
229 | obexSendBaseLayout->addLayout( Layout4 ); | ||
230 | |||
231 | receiverList = new QListView( this, "receiverList" ); | ||
232 | receiverList->addColumn( tr( "Receiver" ) ); | ||
233 | receiverList->header()->setClickEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
234 | receiverList->header()->setResizeEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
235 | receiverList->addColumn( tr( "T" ) ); | ||
236 | receiverList->header()->setClickEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
237 | receiverList->header()->setResizeEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
238 | receiverList->addColumn( tr( "S" ) ); | ||
239 | receiverList->header()->setClickEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
240 | receiverList->header()->setResizeEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
241 | receiverList->addColumn( tr( "Status" ) ); | ||
242 | receiverList->header()->setClickEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
243 | receiverList->header()->setResizeEnabled( FALSE, receiverList->header()->count() - 1 ); | ||
244 | obexSendBaseLayout->addWidget( receiverList ); | ||
245 | |||
246 | Layout3 = new QHBoxLayout; | ||
247 | Layout3->setSpacing( 6 ); | ||
248 | Layout3->setMargin( 0 ); | ||
249 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
250 | Layout3->addItem( spacer_2 ); | ||
251 | |||
252 | scanButton = new QPushButton( this, "scanButton" ); | ||
253 | scanButton->setText( tr( "Scan" ) ); | ||
254 | Layout3->addWidget( scanButton ); | ||
255 | |||
256 | sendButton = new QPushButton( this, "sendButton" ); | ||
257 | sendButton->setText( tr( "Send" ) ); | ||
258 | Layout3->addWidget( sendButton ); | ||
259 | |||
260 | doneButton = new QPushButton( this, "doneButton" ); | ||
261 | doneButton->setText( tr( "Done" ) ); | ||
262 | Layout3->addWidget( doneButton ); | ||
263 | obexSendBaseLayout->addLayout( Layout3 ); | ||
264 | |||
265 | // signals and slots connections | ||
266 | connect( scanButton, SIGNAL( clicked() ), this, SLOT( scan_for_receivers() ) ); | ||
267 | connect( sendButton, SIGNAL( clicked() ), this, SLOT( send_to_receivers() ) ); | ||
268 | connect( doneButton, SIGNAL( clicked() ), this, SLOT( userDone() ) ); | ||
269 | connect( receiverList, SIGNAL( clicked(QListViewItem*) ), this, SLOT( toggle_receiver(QListViewItem *) ) ); | ||
270 | } | ||
271 | |||
272 | /* | ||
273 | * Destroys the object and frees any allocated resources | ||
274 | */ | ||
275 | obexSendBase::~obexSendBase() | ||
276 | { | ||
277 | // no need to delete child widgets, Qt does it all for us | ||
278 | } | ||
279 | |||
280 | void obexSendBase::scan_for_receivers() | ||
281 | { | ||
282 | qWarning( "obexSendBase::scan_for_receivers(): Not implemented yet!" ); | ||
283 | } | ||
284 | |||
285 | void obexSendBase::send_to_receivers() | ||
286 | { | ||
287 | qWarning( "obexSendBase::send_to_receivers(): Not implemented yet!" ); | ||
288 | } | ||
289 | |||
290 | void obexSendBase::toggle_receiver(QListViewItem *) | ||
291 | { | ||
292 | qWarning( "obexSendBase::toggle_receiver(QListViewItem *): Not implemented yet!" ); | ||
293 | } | ||
294 | |||
295 | void obexSendBase::userDone() | ||
296 | { | ||
297 | qWarning( "obexSendBase::userDone(): Not implemented yet!" ); | ||
298 | } | ||
299 | |||
diff --git a/core/obex/obexsendbase.h b/core/obex/obexsendbase.h deleted file mode 100644 index 7ffd2b5..0000000 --- a/core/obex/obexsendbase.h +++ b/dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form interface generated from reading ui file 'obexsendbase.ui' | ||
3 | ** | ||
4 | ** Created: Fri Aug 5 00:14:51 2005 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #ifndef OBEXSENDBASE_H | ||
10 | #define OBEXSENDBASE_H | ||
11 | |||
12 | #include <qvariant.h> | ||
13 | #include <qwidget.h> | ||
14 | class QVBoxLayout; | ||
15 | class QHBoxLayout; | ||
16 | class QGridLayout; | ||
17 | class QLabel; | ||
18 | class QListView; | ||
19 | class QListViewItem; | ||
20 | class QPushButton; | ||
21 | |||
22 | class obexSendBase : public QWidget | ||
23 | { | ||
24 | Q_OBJECT | ||
25 | |||
26 | public: | ||
27 | obexSendBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
28 | ~obexSendBase(); | ||
29 | |||
30 | QLabel* sendLabel; | ||
31 | QLabel* fileToSend; | ||
32 | QLabel* irdaLabel; | ||
33 | QLabel* irdaStatus; | ||
34 | QLabel* btLabel; | ||
35 | QLabel* btStatus; | ||
36 | QListView* receiverList; | ||
37 | QPushButton* scanButton; | ||
38 | QPushButton* sendButton; | ||
39 | QPushButton* doneButton; | ||
40 | |||
41 | protected slots: | ||
42 | virtual void scan_for_receivers(); | ||
43 | virtual void send_to_receivers(); | ||
44 | virtual void toggle_receiver(QListViewItem *); | ||
45 | virtual void userDone(); | ||
46 | |||
47 | protected: | ||
48 | QVBoxLayout* obexSendBaseLayout; | ||
49 | QHBoxLayout* Layout1; | ||
50 | QHBoxLayout* Layout4; | ||
51 | QHBoxLayout* Layout3; | ||
52 | }; | ||
53 | |||
54 | #endif // OBEXSENDBASE_H | ||