Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

sysinfo.cpp

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************
00020 **
00021 **  Enhancements by: Dan Williams, <williamsdr@acm.org>
00022 **
00023 **********************************************************************/
00024 
00025 #include "memory.h"
00026 #include "devicesinfo.h"
00027 #include "storage.h"
00028 #include "processinfo.h"
00029 #include "modulesinfo.h"
00030 #include "benchmarkinfo.h"
00031 #include "sysloginfo.h"
00032 #include "versioninfo.h"
00033 #include "sysinfo.h"
00034 
00035 /* OPIE */
00036 #include <opie2/oresource.h>
00037 #include <opie2/otabwidget.h>
00038 using namespace Opie::Ui;
00039 #include <qpe/config.h>
00040 
00041 /* QT */
00042 #include <qlayout.h>
00043 
00044 SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags )
00045     : QWidget( parent, name, WStyle_ContextHelp )
00046 {
00047     setIcon( Opie::Core::OResource::loadPixmap( "system_icon", Opie::Core::OResource::SmallIcon ) );
00048     setCaption( tr("System Info") );
00049 
00050     QVBoxLayout *lay = new QVBoxLayout( this );
00051     OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global );
00052     lay->addWidget( tab );
00053 
00054     tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon", tr("Memory") );
00055 #if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
00056     tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") );
00057 #endif
00058     tab->addTab( new DevicesInfo( tab ), "sysinfo/cputabicon", tr("Devices") );
00059     tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr( "Process" ) );
00060     tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr( "Modules" ) );
00061     tab->addTab( new SyslogInfo( tab ), "sysinfo/syslogtabicon", tr( "Syslog" ) );
00062     tab->addTab( new BenchmarkInfo( tab ), "sysinfo/benchmarktabicon", tr( "Benchmark" ) );
00063     tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") );
00064 
00065     tab->setCurrentTab( tr( "Memory" ) );
00066 }

Generated on Sat Nov 5 16:17:58 2005 for OPIE by  doxygen 1.4.2