~ubuntu-branches/ubuntu/karmic/digikam/karmic

« back to all changes in this revision

Viewing changes to utilities/setup/setupslideshow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Luka Renko
  • Date: 2009-02-14 17:52:28 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20090214175228-axs6z8e5pgg7bqfx
Tags: 2:0.10.0~rc2-0ubuntu1
* New upstream release (release candidate 2)
* patches/01-kubuntu-fix-armel.patch: 
  - Dropped, included upstream
* control: 
  - Remove quilt from build-depends (no patches)
  - Add liblensfun-dev to build-depends (now in main)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2005-05-21
7
7
 * Description : setup tab for slideshow options.
8
8
 *
9
 
 * Copyright (C) 2005-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2005-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
10
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
74
74
};
75
75
 
76
76
SetupSlideShow::SetupSlideShow(QWidget* parent)
77
 
              : QWidget(parent), d(new SetupSlideShowPriv)
 
77
              : QScrollArea(parent), d(new SetupSlideShowPriv)
78
78
{
79
 
    QVBoxLayout *layout = new QVBoxLayout(this);
80
 
 
81
 
    d->delayInput = new KIntNumInput(5, this);
 
79
    QWidget *panel = new QWidget(viewport());
 
80
    panel->setAutoFillBackground(false);
 
81
    setWidget(panel);
 
82
    setWidgetResizable(true);
 
83
    viewport()->setAutoFillBackground(false);
 
84
 
 
85
    QVBoxLayout *layout = new QVBoxLayout(panel);
 
86
 
 
87
    d->delayInput = new KIntNumInput(5, panel);
82
88
    d->delayInput->setRange(1, 3600, 1);
83
89
    d->delayInput->setSliderEnabled(true);
84
90
    d->delayInput->setLabel(i18n("&Delay between images:"), Qt::AlignLeft | Qt::AlignTop);
85
91
    d->delayInput->setWhatsThis(i18n("The delay, in seconds, between images."));
86
92
 
87
 
    d->startWithCurrent = new QCheckBox(i18n("Start with current image"), this);
 
93
    d->startWithCurrent = new QCheckBox(i18n("Start with current image"), panel);
88
94
    d->startWithCurrent->setWhatsThis( i18n("If this option is enabled, the Slideshow will be started "
89
95
                                            "with the current image selected in the images list."));
90
96
 
91
 
    d->loopMode = new QCheckBox(i18n("Slideshow runs in a loop"), this);
 
97
    d->loopMode = new QCheckBox(i18n("Slideshow runs in a loop"), panel);
92
98
    d->loopMode->setWhatsThis( i18n("Run the slideshow in a loop."));
93
99
 
94
 
    d->showName = new QCheckBox(i18n("Show image file name"), this);
 
100
    d->showName = new QCheckBox(i18n("Show image file name"), panel);
95
101
    d->showName->setWhatsThis( i18n("Show the image file name at the bottom of the screen."));
96
102
 
97
 
    d->showDate = new QCheckBox(i18n("Show image creation date"), this);
 
103
    d->showDate = new QCheckBox(i18n("Show image creation date"), panel);
98
104
    d->showDate->setWhatsThis( i18n("Show the image creation time/date at the bottom of the screen."));
99
105
 
100
 
    d->showApertureFocal = new QCheckBox(i18n("Show camera aperture and focal length"), this);
 
106
    d->showApertureFocal = new QCheckBox(i18n("Show camera aperture and focal length"), panel);
101
107
    d->showApertureFocal->setWhatsThis( i18n("Show the camera aperture and focal length at the bottom of the screen."));
102
108
 
103
 
    d->showExpoSensitivity = new QCheckBox(i18n("Show camera exposure and sensitivity"), this);
 
109
    d->showExpoSensitivity = new QCheckBox(i18n("Show camera exposure and sensitivity"), panel);
104
110
    d->showExpoSensitivity->setWhatsThis( i18n("Show the camera exposure and sensitivity at the bottom of the screen."));
105
111
 
106
 
    d->showMakeModel = new QCheckBox(i18n("Show camera make and model"), this);
 
112
    d->showMakeModel = new QCheckBox(i18n("Show camera make and model"), panel);
107
113
    d->showMakeModel->setWhatsThis( i18n("Show the camera make and model at the bottom of the screen."));
108
114
 
109
 
    d->showComment = new QCheckBox(i18n("Show image caption"), this);
 
115
    d->showComment = new QCheckBox(i18n("Show image caption"), panel);
110
116
    d->showComment->setWhatsThis( i18n("Show the image caption at the bottom of the screen."));
111
117
 
112
 
    d->showRating = new QCheckBox(i18n("Show image rating"), this);
 
118
    d->showRating = new QCheckBox(i18n("Show image rating"), panel);
113
119
    d->showRating->setWhatsThis( i18n("Show the digiKam image rating at the bottom of the screen."));
114
120
 
115
121
    // Only digiKam support this feature, showFoto do not support digiKam database information.
127
133
    layout->addWidget(d->showComment);
128
134
    layout->addWidget(d->showRating);
129
135
    layout->addStretch();
130
 
    layout->setMargin(0);
 
136
    layout->setMargin(KDialog::spacingHint());
131
137
    layout->setSpacing(KDialog::spacingHint());
132
138
 
133
139
    readSettings();