author | llornkcor <llornkcor> | 2002-11-03 17:59:00 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-03 17:59:00 (UTC) |
commit | 16e8fad81f7ee6045990f48edc84542638bf07d7 (patch) (unidiff) | |
tree | 96d836f914e0d1104d7c84830acac08a43ee4ac2 /noncore/multimedia/showimg/settingsdialog.cpp | |
parent | 2981b8f55f4a33860452f4571ef9f04781267489 (diff) | |
download | opie-16e8fad81f7ee6045990f48edc84542638bf07d7.zip opie-16e8fad81f7ee6045990f48edc84542638bf07d7.tar.gz opie-16e8fad81f7ee6045990f48edc84542638bf07d7.tar.bz2 |
added preferences dialog, and added slidshow
Diffstat (limited to 'noncore/multimedia/showimg/settingsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/showimg/settingsdialog.cpp | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/noncore/multimedia/showimg/settingsdialog.cpp b/noncore/multimedia/showimg/settingsdialog.cpp new file mode 100644 index 0000000..55d555a --- a/dev/null +++ b/noncore/multimedia/showimg/settingsdialog.cpp | |||
@@ -0,0 +1,88 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of the Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #include "settingsdialog.h" | ||
22 | #include <qslider.h> | ||
23 | #include <qlabel.h> | ||
24 | #include <qcheckbox.h> | ||
25 | #include <qradiobutton.h> | ||
26 | #include <qbuttongroup.h> | ||
27 | |||
28 | SettingsDialog::SettingsDialog( QWidget *parent, const char *name, bool modal, WFlags f ) | ||
29 | : SettingsDialogBase( parent, name, modal, f ) | ||
30 | { | ||
31 | connect( delaySlider, SIGNAL(valueChanged(int)), this, SLOT(delayChanged(int)) ); | ||
32 | } | ||
33 | |||
34 | void SettingsDialog::setDelay( int d ) | ||
35 | { | ||
36 | delaySlider->setValue( d ); | ||
37 | delayChanged( d ); | ||
38 | } | ||
39 | |||
40 | int SettingsDialog::delay() const | ||
41 | { | ||
42 | return delaySlider->value(); | ||
43 | } | ||
44 | |||
45 | void SettingsDialog::setRepeat( bool r ) | ||
46 | { | ||
47 | repeatCheck->setChecked( r ); | ||
48 | } | ||
49 | |||
50 | bool SettingsDialog::repeat() const | ||
51 | { | ||
52 | return repeatCheck->isChecked(); | ||
53 | } | ||
54 | |||
55 | void SettingsDialog::delayChanged( int d ) | ||
56 | { | ||
57 | delayText->setText( QString::number( d ) + " s" ); | ||
58 | } | ||
59 | |||
60 | void SettingsDialog::setReverse(bool r) | ||
61 | { | ||
62 | reverseCheck->setChecked(r); | ||
63 | } | ||
64 | |||
65 | bool SettingsDialog::reverse() const | ||
66 | { | ||
67 | return reverseCheck->isChecked(); | ||
68 | } | ||
69 | |||
70 | void SettingsDialog::setRotate(bool r) | ||
71 | { | ||
72 | rotateCheck->setChecked(r); | ||
73 | } | ||
74 | |||
75 | bool SettingsDialog::rotate() const | ||
76 | { | ||
77 | return rotateCheck->isChecked(); | ||
78 | } | ||
79 | |||
80 | void SettingsDialog::setFastLoad(bool f) | ||
81 | { | ||
82 | fastLoadCheck->setChecked(f); | ||
83 | } | ||
84 | |||
85 | bool SettingsDialog::fastLoad() const | ||
86 | { | ||
87 | return fastLoadCheck->isChecked(); | ||
88 | } | ||