From 3a86e1464fb00d3d9b9962bcabc1041d8a3d9343 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 02 May 2005 13:11:18 +0000 Subject: prepare for inclusion of DevicesInfo --- (limited to 'noncore/settings/sysinfo/devicesinfo.cpp') 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 @@ +/* +                This file is part of the Opie Project + =. Copyright (C) 2005 Michael 'Mickey' Lauer + .=l. Copyright (C) The Opie Team +          .>+-= +_;:,     .>    :=|. This program is free software; you can +.> <`_,   >  .   <= redistribute it and/or modify it under +:`=1 )Y*s>-.--   : the terms of the GNU General Public +.="- .-=="i,     .._ License as published by the Free Software +- .   .-<_>     .<> Foundation; version 2 of the License. +    ._= =}       : +   .%`+i>       _;_. +   .i_,=:_.      -`: PARTICULAR PURPOSE. See the GNU +..}^=.=       =       ; General Public License for more +++=   -.     .`     .: details. +:     =  ...= . :.=- +-.   .:....=;==+<; You should have received a copy of the GNU + -_. . .   )=.  = General Public License along with +   --        :-=` this application; see the file LICENSE.GPL. + If not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#include "devicesinfo.h" + +/* OPIE */ +#include +#include + +/* QT */ +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Opie::Ui; + +DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl ) + : OListView( parent, name, fl ) +{ + addColumn( tr( "Module" ) ); + setAllColumnsShowFocus( true ); + setRootIsDecorated( true ); + QWhatsThis::add( this, tr( "This is a list of all the devices currently recognized on this device." ) ); +} + +DevicesView::~DevicesView() +{ +} + +DevicesInfo::DevicesInfo( QWidget* parent, const char* name, WFlags fl ) + : QWidget( parent, name, fl ) +{ + QGridLayout *layout = new QGridLayout( this ); + layout->setSpacing( 4 ); + layout->setMargin( 4 ); + + view = new DevicesView( this ); + + layout->addMultiCellWidget( view, 0, 0, 0, 1 ); +} + +DevicesInfo::~DevicesInfo() +{ +} -- cgit v0.9.0.2