• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kdf

kcmdf.cpp

Go to the documentation of this file.
00001 /*
00002   kcmdf.cpp - KcmDiskFree
00003 
00004   Copyright (C) 1998 by Michael Kropfberger <michael.kropfberger@gmx.net>
00005   
00006   This program is free software; you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation; either version 2 of the License, or
00009   (at your option) any later version.
00010   
00011   This program is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014   GNU General Public License for more details.
00015   
00016   You should have received a copy of the GNU General Public License
00017   along with this program; if not, write to the Free Software
00018   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019    
00020   */
00021 
00022 //
00023 // 1999-12-05 Espen Sand 
00024 // Modified to use KCModule instead of the old and obsolete 
00025 // KControlApplication
00026 //
00027 
00028 #include "kcmdf.h"
00029 
00030 #include <kdialog.h>
00031 
00032 #include <QtGui/QLayout>
00033 //Added by qt3to4:
00034 #include <QtGui/QVBoxLayout>
00035 #include <kcomponentdata.h>
00036 
00037 KDiskFreeWidget::KDiskFreeWidget( const KComponentData &inst, QWidget *parent )
00038  : KCModule( inst, parent )
00039 {
00040   setButtons(Help);
00041 
00042   QVBoxLayout *topLayout = new QVBoxLayout( this );
00043   topLayout->setSpacing( KDialog::spacingHint() );
00044   topLayout->setMargin( 0 );
00045 
00046   mKdf = new KDFWidget( this, false );
00047   topLayout->addWidget( mKdf );
00048 }
00049 
00050 KDiskFreeWidget::~KDiskFreeWidget()
00051 {
00052   mKdf->applySettings();
00053 }
00054 
00055 QString KDiskFreeWidget::quickHelp() const
00056 {
00057     return i18n("<h3>Hardware Information</h3><br /> All the information modules return information"
00058     " about a certain aspect of your computer hardware or your operating system."
00059     " Not all modules are available on all hardware architectures and/or operating systems.");
00060 }
00061 
00062 extern "C"
00063 {
00064   KDE_EXPORT KCModule* create_kdf( QWidget *parent, const char * /*name*/ )
00065   {
00066      KComponentData inst("kdf");
00067      return new KDiskFreeWidget( inst , parent );
00068   }
00069 }
00070 
00071 #include "kcmdf.moc"

kdf

Skip menu "kdf"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal