Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.cpp | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.cpp b/noncore/settings/sysinfo/devicesinfo.cpp new file mode 100644 index 0000000..38afd54 --- a/dev/null +++ b/noncore/settings/sysinfo/devicesinfo.cpp | |||
@@ -0,0 +1,74 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | =. Copyright (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> | ||
4 | .=l. Copyright (C) The Opie Team <opie-devel@handhelds.org> | ||
5 | .>+-= | ||
6 | _;:, .> :=|. This program is free software; you can | ||
7 | .> <`_, > . <= redistribute it and/or modify it under | ||
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
9 | .="- .-=="i, .._ License as published by the Free Software | ||
10 | - . .-<_> .<> Foundation; version 2 of the License. | ||
11 | ._= =} : | ||
12 | .%`+i> _;_. | ||
13 | .i_,=:_. -<s. This program is distributed in the hope that | ||
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
15 | : .. .:, . . . without even the implied warranty of | ||
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
18 | ..}^=.= = ; General Public License for more | ||
19 | ++= -. .` .: details. | ||
20 | : = ...= . :.=- | ||
21 | -. .:....=;==+<; You should have received a copy of the GNU | ||
22 | -_. . . )=. = General Public License along with | ||
23 | -- :-=` this application; see the file LICENSE.GPL. | ||
24 | If not, write to the Free Software Foundation, | ||
25 | Inc., 59 Temple Place - Suite 330, | ||
26 | Boston, MA 02111-1307, USA. | ||
27 | */ | ||
28 | |||
29 | #include "devicesinfo.h" | ||
30 | |||
31 | /* OPIE */ | ||
32 | #include <opie2/olistview.h> | ||
33 | #include <qpe/qpeapplication.h> | ||
34 | |||
35 | /* QT */ | ||
36 | #include <qcombobox.h> | ||
37 | #include <qfile.h> | ||
38 | #include <qlayout.h> | ||
39 | #include <qmessagebox.h> | ||
40 | #include <qpushbutton.h> | ||
41 | #include <qtextview.h> | ||
42 | #include <qtimer.h> | ||
43 | #include <qwhatsthis.h> | ||
44 | |||
45 | using namespace Opie::Ui; | ||
46 | |||
47 | DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl ) | ||
48 | : OListView( parent, name, fl ) | ||
49 | { | ||
50 | addColumn( tr( "Module" ) ); | ||
51 | setAllColumnsShowFocus( true ); | ||
52 | setRootIsDecorated( true ); | ||
53 | QWhatsThis::add( this, tr( "This is a list of all the devices currently recognized on this device." ) ); | ||
54 | } | ||
55 | |||
56 | DevicesView::~DevicesView() | ||
57 | { | ||
58 | } | ||
59 | |||
60 | DevicesInfo::DevicesInfo( QWidget* parent, const char* name, WFlags fl ) | ||
61 | : QWidget( parent, name, fl ) | ||
62 | { | ||
63 | QGridLayout *layout = new QGridLayout( this ); | ||
64 | layout->setSpacing( 4 ); | ||
65 | layout->setMargin( 4 ); | ||
66 | |||
67 | view = new DevicesView( this ); | ||
68 | |||
69 | layout->addMultiCellWidget( view, 0, 0, 0, 1 ); | ||
70 | } | ||
71 | |||
72 | DevicesInfo::~DevicesInfo() | ||
73 | { | ||
74 | } | ||