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

doctab.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 #include "doctab.h"
00022 
00023 #include <qpe/global.h>
00024 #include <qpe/fontmanager.h>
00025 #include <qpe/config.h>
00026 #include <qpe/applnk.h>
00027 #include <qpe/qpedialog.h>
00028 #include <qpe/qpeapplication.h>
00029 #if defined(Q_WS_QWS) && !defined(QT_NO_COP)
00030 #include <qpe/qcopenvelope_qws.h>
00031 #endif
00032 
00033 #include <qlabel.h>
00034 #include <qcheckbox.h>
00035 #include <qradiobutton.h>
00036 #include <qtabwidget.h>
00037 #include <qslider.h>
00038 #include <qfile.h>
00039 #include <qtextstream.h>
00040 #include <qdatastream.h>
00041 #include <qmessagebox.h>
00042 #include <qcombobox.h>
00043 #include <qspinbox.h>
00044 #include <qlistbox.h>
00045 #include <qdir.h>
00046 #if QT_VERSION >= 0x030000
00047 #include <qstylefactory.h>
00048 #endif
00049 
00050 #include <stdlib.h>
00051 
00052 
00053 DocTabSettings::DocTabSettings( QWidget* parent, const char* name, WFlags fl )
00054                 : DocTabSettingsBase( parent, name, TRUE, fl )
00055 {
00056         dl = new QPEDialogListener(this);
00057         reset();
00058 }
00059 
00060 DocTabSettings::~DocTabSettings()
00061 {}
00062 
00063 void DocTabSettings::accept()
00064 {
00065         applyDocTab();
00066         QDialog::accept();
00067 }
00068 
00069 void DocTabSettings::applyDocTab()
00070 {
00071     Config cfg( "Launcher" );
00072     cfg.setGroup( "DocTab" );
00073     cfg.writeEntry( "Enable", yes->isChecked() );
00074     cfg.write();
00075 }
00076 
00077 
00078 void DocTabSettings::reject()
00079 {
00080         reset();
00081         QDialog::reject();
00082 }
00083 
00084 void DocTabSettings::reset()
00085 {
00086 }
00087 
00088 QString DocTabSettings::actualDocTab;
00089 
00090 void DocTabSettings::done(int r)
00091 {
00092         QDialog::done(r);
00093         close();
00094 }

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