summaryrefslogtreecommitdiff
path: root/noncore/unsupported/showimg/settingsdialogbase.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/showimg/settingsdialogbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/showimg/settingsdialogbase.cpp102
1 files changed, 102 insertions, 0 deletions
diff --git a/noncore/unsupported/showimg/settingsdialogbase.cpp b/noncore/unsupported/showimg/settingsdialogbase.cpp
new file mode 100644
index 0000000..7a64e89
--- a/dev/null
+++ b/noncore/unsupported/showimg/settingsdialogbase.cpp
@@ -0,0 +1,102 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'settingsdialogbase.ui'
3**
4** Created: Sun Nov 3 07:29:03 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "settingsdialogbase.h"
10
11#include <qcheckbox.h>
12#include <qgroupbox.h>
13#include <qlabel.h>
14#include <qslider.h>
15#include <qlayout.h>
16
17/*
18 * Constructs a SettingsDialogBase which is a child of 'parent', with the
19 * name 'name' and widget flags set to 'f'
20 *
21 * The dialog will by default be modeless, unless you set 'modal' to
22 * TRUE to construct a modal dialog.
23 */
24SettingsDialogBase::SettingsDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
25 : QDialog( parent, name, modal, fl )
26{
27 if ( !name )
28 setName( "SettingsDialogBase" );
29 resize( 246, 201 );
30 setCaption( tr( "Preferences" ) );
31 SettingsDialogBaseLayout = new QVBoxLayout( this );
32 SettingsDialogBaseLayout->setSpacing( 6 );
33 SettingsDialogBaseLayout->setMargin( 6 );
34
35 GroupBox1 = new QGroupBox( this, "GroupBox1" );
36 GroupBox1->setTitle( tr( "Slide Show" ) );
37 GroupBox1->setColumnLayout(0, Qt::Vertical );
38 GroupBox1->layout()->setSpacing( 0 );
39 GroupBox1->layout()->setMargin( 0 );
40 GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
41 GroupBox1Layout->setAlignment( Qt::AlignTop );
42 GroupBox1Layout->setSpacing( 6 );
43 GroupBox1Layout->setMargin( 11 );
44
45 Layout3 = new QGridLayout;
46 Layout3->setSpacing( 6 );
47 Layout3->setMargin( 0 );
48
49 TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
50 TextLabel1->setText( tr( "Delay between pictures" ) );
51
52 Layout3->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 );
53
54 delaySlider = new QSlider( GroupBox1, "delaySlider" );
55 delaySlider->setMinValue( 2 );
56 delaySlider->setMaxValue( 60 );
57 delaySlider->setLineStep( 2 );
58 delaySlider->setOrientation( QSlider::Horizontal );
59 delaySlider->setTickmarks( QSlider::Right );
60 delaySlider->setTickInterval( 10);
61
62 Layout3->addWidget( delaySlider, 1, 0 );
63
64 delayText = new QLabel( GroupBox1, "delayText" );
65 delayText->setMinimumSize( QSize( 25, 0 ) );
66 delayText->setText( tr( "s" ) );
67 delayText->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
68
69 Layout3->addWidget( delayText, 1, 1 );
70 GroupBox1Layout->addLayout( Layout3 );
71
72 repeatCheck = new QCheckBox( GroupBox1, "repeatCheck" );
73 repeatCheck->setText( tr( "Repeat slideshow" ) );
74 GroupBox1Layout->addWidget( repeatCheck );
75
76 reverseCheck = new QCheckBox( GroupBox1, "reverseCheck" );
77 reverseCheck->setText( tr( "Show pictures in reverse" ) );
78 GroupBox1Layout->addWidget( reverseCheck );
79 SettingsDialogBaseLayout->addWidget( GroupBox1 );
80
81 rotateCheck = new QCheckBox( this, "rotateCheck" );
82 rotateCheck->setText( tr( "Load pictures rotated 90 degrees" ) );
83 SettingsDialogBaseLayout->addWidget( rotateCheck );
84
85 fastLoadCheck = new QCheckBox( this, "fastLoadCheck" );
86 fastLoadCheck->setText( tr( "Fast load pictures" ) );
87 SettingsDialogBaseLayout->addWidget( fastLoadCheck );
88 fastLoadCheck->hide(); //FIXME
89// QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding );
90// layout->addItem( spacer, 10, 0 );
91
92
93}
94
95/*
96 * Destroys the object and frees any allocated resources
97 */
98SettingsDialogBase::~SettingsDialogBase()
99{
100 // no need to delete child widgets, Qt does it all for us
101}
102