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

settingsdialogbase.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'settingsdialogbase.ui'
00003 **
00004 ** Created: Sun Nov 3 07:29:03 2002
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
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  *  Constructs a SettingsDialogBase which is a child of 'parent', with the 
00019  *  name 'name' and widget flags set to 'f' 
00020  *
00021  *  The dialog will by default be modeless, unless you set 'modal' to
00022  *  TRUE to construct a modal dialog.
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(); //FIXME
00089 //    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding );
00090 //    layout->addItem( spacer, 10, 0 );
00091 
00092     
00093 }
00094 
00095 /*  
00096  *  Destroys the object and frees any allocated resources
00097  */
00098 SettingsDialogBase::~SettingsDialogBase()
00099 {
00100     // no need to delete child widgets, Qt does it all for us
00101 }
00102 

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