00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "settingsdialogbase.h"
00010
00011 #include <qcheckbox.h>
00012 #include <qgroupbox.h>
00013 #include <qlabel.h>
00014 #include <qslider.h>
00015 #include <qlayout.h>
00016
00017
00018
00019
00020
00021
00022
00023
00024 SettingsDialogBase::SettingsDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00025 : QDialog( parent, name, modal, fl )
00026 {
00027 if ( !name )
00028 setName( "SettingsDialogBase" );
00029 resize( 246, 201 );
00030 setCaption( tr( "Preferences" ) );
00031 SettingsDialogBaseLayout = new QVBoxLayout( this );
00032 SettingsDialogBaseLayout->setSpacing( 6 );
00033 SettingsDialogBaseLayout->setMargin( 6 );
00034
00035 GroupBox1 = new QGroupBox( this, "GroupBox1" );
00036 GroupBox1->setTitle( tr( "Slide Show" ) );
00037 GroupBox1->setColumnLayout(0, Qt::Vertical );
00038 GroupBox1->layout()->setSpacing( 0 );
00039 GroupBox1->layout()->setMargin( 0 );
00040 GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
00041 GroupBox1Layout->setAlignment( Qt::AlignTop );
00042 GroupBox1Layout->setSpacing( 6 );
00043 GroupBox1Layout->setMargin( 11 );
00044
00045 Layout3 = new QGridLayout;
00046 Layout3->setSpacing( 6 );
00047 Layout3->setMargin( 0 );
00048
00049 TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
00050 TextLabel1->setText( tr( "Delay between pictures" ) );
00051
00052 Layout3->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 );
00053
00054 delaySlider = new QSlider( GroupBox1, "delaySlider" );
00055 delaySlider->setMinValue( 2 );
00056 delaySlider->setMaxValue( 60 );
00057 delaySlider->setLineStep( 2 );
00058 delaySlider->setOrientation( QSlider::Horizontal );
00059 delaySlider->setTickmarks( QSlider::Right );
00060 delaySlider->setTickInterval( 10);
00061
00062 Layout3->addWidget( delaySlider, 1, 0 );
00063
00064 delayText = new QLabel( GroupBox1, "delayText" );
00065 delayText->setMinimumSize( QSize( 25, 0 ) );
00066 delayText->setText( tr( "s" ) );
00067 delayText->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
00068
00069 Layout3->addWidget( delayText, 1, 1 );
00070 GroupBox1Layout->addLayout( Layout3 );
00071
00072 repeatCheck = new QCheckBox( GroupBox1, "repeatCheck" );
00073 repeatCheck->setText( tr( "Repeat slideshow" ) );
00074 GroupBox1Layout->addWidget( repeatCheck );
00075
00076 reverseCheck = new QCheckBox( GroupBox1, "reverseCheck" );
00077 reverseCheck->setText( tr( "Show pictures in reverse" ) );
00078 GroupBox1Layout->addWidget( reverseCheck );
00079 SettingsDialogBaseLayout->addWidget( GroupBox1 );
00080
00081 rotateCheck = new QCheckBox( this, "rotateCheck" );
00082 rotateCheck->setText( tr( "Load pictures rotated 90 degrees" ) );
00083 SettingsDialogBaseLayout->addWidget( rotateCheck );
00084
00085 fastLoadCheck = new QCheckBox( this, "fastLoadCheck" );
00086 fastLoadCheck->setText( tr( "Fast load pictures" ) );
00087 SettingsDialogBaseLayout->addWidget( fastLoadCheck );
00088 fastLoadCheck->hide();
00089
00090
00091
00092
00093 }
00094
00095
00096
00097
00098 SettingsDialogBase::~SettingsDialogBase()
00099 {
00100
00101 }
00102