Changeset View
Changeset View
Standalone View
Standalone View
MainWindow/AutoStackImages.cpp
Show All 40 Lines | |||||
41 | #include <Utilities/ShowBusyCursor.h> | 41 | #include <Utilities/ShowBusyCursor.h> | ||
42 | #include <Utilities/Util.h> | 42 | #include <Utilities/Util.h> | ||
43 | 43 | | |||
44 | using namespace MainWindow; | 44 | using namespace MainWindow; | ||
45 | 45 | | |||
46 | AutoStackImages::AutoStackImages( QWidget* parent, const DB::FileNameList& list ) | 46 | AutoStackImages::AutoStackImages( QWidget* parent, const DB::FileNameList& list ) | ||
47 | :QDialog( parent ), m_list( list ) | 47 | :QDialog( parent ), m_list( list ) | ||
48 | { | 48 | { | ||
49 | setWindowTitle( i18n("Automatically Stack Images" ) ); | 49 | setWindowTitle( i18nc("@title:window", "Automatically Stack Images" ) ); | ||
pino: extra whitespace changes | |||||
50 | 50 | | |||
51 | QWidget* top = new QWidget; | 51 | QWidget* top = new QWidget; | ||
52 | QVBoxLayout* lay1 = new QVBoxLayout( top ); | 52 | QVBoxLayout* lay1 = new QVBoxLayout( top ); | ||
53 | setLayout(lay1); | 53 | setLayout(lay1); | ||
54 | 54 | | |||
55 | QWidget* containerMd5 = new QWidget( this ); | 55 | QWidget* containerMd5 = new QWidget( this ); | ||
56 | lay1->addWidget( containerMd5 ); | 56 | lay1->addWidget( containerMd5 ); | ||
57 | QHBoxLayout* hlayMd5 = new QHBoxLayout( containerMd5 ); | 57 | QHBoxLayout* hlayMd5 = new QHBoxLayout( containerMd5 ); | ||
Show All 17 Lines | |||||
75 | QWidget* containerContinuous = new QWidget( this ); | 75 | QWidget* containerContinuous = new QWidget( this ); | ||
76 | lay1->addWidget( containerContinuous ); | 76 | lay1->addWidget( containerContinuous ); | ||
77 | QHBoxLayout* hlayContinuous = new QHBoxLayout( containerContinuous ); | 77 | QHBoxLayout* hlayContinuous = new QHBoxLayout( containerContinuous ); | ||
78 | 78 | | |||
79 | //FIXME: This is hard to translate because of the split sentence. It is better | 79 | //FIXME: This is hard to translate because of the split sentence. It is better | ||
80 | //to use a single sentence here like "Stack images that are (were?) shot | 80 | //to use a single sentence here like "Stack images that are (were?) shot | ||
81 | //within this time:" and use the spin method setSuffix() to set the "seconds". | 81 | //within this time:" and use the spin method setSuffix() to set the "seconds". | ||
82 | //Also: Would minutes not be a more sane time unit here? (schwarzer) | 82 | //Also: Would minutes not be a more sane time unit here? (schwarzer) | ||
83 | m_continuousShooting = new QCheckBox( i18nc( "The whole sentence should read: *Stack images that are shot within x seconds of each other*. So images that are shot in one burst are automatically stacked together. (This sentence is before the x.)", "Stack images that are shot within" ) ); | 83 | m_continuousShooting = new QCheckBox( i18nc( "The whole sentence should read: *Stack images that are shot within x seconds of each other*. So images that are shot in one burst are automatically stacked together. (This sentence is before the x.)", "Stack images that are shot within" ) ); | ||
84 | m_continuousShooting->setChecked( false ); | 84 | m_continuousShooting->setChecked( false ); | ||
85 | hlayContinuous->addWidget( m_continuousShooting ); | 85 | hlayContinuous->addWidget( m_continuousShooting ); | ||
86 | 86 | | |||
87 | m_continuousThreshold = new QSpinBox; | 87 | m_continuousThreshold = new QSpinBox; | ||
88 | m_continuousThreshold->setRange( 1, 999 ); | 88 | m_continuousThreshold->setRange( 1, 999 ); | ||
89 | m_continuousThreshold->setSingleStep( 1 ); | 89 | m_continuousThreshold->setSingleStep( 1 ); | ||
90 | m_continuousThreshold->setValue( 2 ); | 90 | m_continuousThreshold->setValue( 2 ); | ||
91 | hlayContinuous->addWidget( m_continuousThreshold ); | 91 | hlayContinuous->addWidget( m_continuousThreshold ); | ||
92 | 92 | | |||
93 | QLabel* sec = new QLabel( i18nc( "The whole sentence should read: *Stack images that are shot within x seconds of each other*. (This being the text after x.)", "seconds" ), containerContinuous ); | 93 | QLabel* sec = new QLabel( i18nc( "The whole sentence should read: *Stack images that are shot within x seconds of each other*. (This being the text after x.)", "seconds" ), containerContinuous ); | ||
pino: extra whitespace changes | |||||
94 | hlayContinuous->addWidget( sec ); | 94 | hlayContinuous->addWidget( sec ); | ||
95 | 95 | | |||
96 | QGroupBox* grpOptions = new QGroupBox( i18n("AutoStacking Options") ); | 96 | QGroupBox* grpOptions = new QGroupBox( i18n("AutoStacking Options") ); | ||
97 | QVBoxLayout* grpLayOptions = new QVBoxLayout( grpOptions ); | 97 | QVBoxLayout* grpLayOptions = new QVBoxLayout( grpOptions ); | ||
98 | lay1->addWidget( grpOptions ); | 98 | lay1->addWidget( grpOptions ); | ||
99 | 99 | | |||
100 | m_autostackDefault = new QRadioButton( i18n( "Include matching image to appropriate stack (if one exists)") ); | 100 | m_autostackDefault = new QRadioButton( i18n( "Include matching image to appropriate stack (if one exists)") ); | ||
101 | m_autostackDefault->setChecked( true ); | 101 | m_autostackDefault->setChecked( true ); | ||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |
extra whitespace changes