00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
00036 #include <opie2/oresource.h>
00037 #include <opie2/otabwidget.h>
00038 using namespace Opie::Ui;
00039 #include <qpe/config.h>
00040
00041
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 }