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

settingsdialog.cpp

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of the 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 "settingsdialog.h"
00022 #include <qslider.h>
00023 #include <qlabel.h>
00024 #include <qcheckbox.h>
00025 
00026 SettingsDialog::SettingsDialog( QWidget *parent, const char *name, bool modal, WFlags f )
00027     : SettingsDialogBase( parent, name, modal, f )
00028 {
00029     connect( delaySlider, SIGNAL(valueChanged(int)), this, SLOT(delayChanged(int)) );
00030 }
00031 
00032 void SettingsDialog::setDelay( int d )
00033 {
00034     delaySlider->setValue( d );
00035     delayChanged( d );
00036 }
00037 
00038 int SettingsDialog::delay() const
00039 {
00040     return delaySlider->value();
00041 }
00042 
00043 void SettingsDialog::setRepeat( bool r )
00044 {
00045     repeatCheck->setChecked( r );
00046 }
00047 
00048 bool SettingsDialog::repeat() const
00049 {
00050     return repeatCheck->isChecked();
00051 }
00052 
00053 void SettingsDialog::delayChanged( int d )
00054 {
00055     delayText->setText( QString::number( d ) + " s" );
00056 }
00057 
00058 void SettingsDialog::setReverse(bool r)
00059 {
00060     reverseCheck->setChecked(r);
00061 }
00062 
00063 bool SettingsDialog::reverse() const
00064 {
00065     return reverseCheck->isChecked();
00066 }
00067 
00068 void SettingsDialog::setRotate(bool r)
00069 {
00070     rotateCheck->setChecked(r);
00071 }
00072 
00073 bool SettingsDialog::rotate() const
00074 {
00075     return rotateCheck->isChecked();
00076 }
00077 
00078 void SettingsDialog::setFastLoad(bool f)
00079 {
00080     fastLoadCheck->setChecked(f);
00081 }
00082 
00083 bool SettingsDialog::fastLoad() const
00084 {
00085     return fastLoadCheck->isChecked();
00086 }

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