Go to the documentation of this file.
3 #include <QStringBuilder>
9 #define TR GallerySettings::tr
15 gc->setLabel(
TR(
"Image Order"));
16 gc->setHelpText(
TR(
"The order that pictures/videos are shown in thumbnail "
17 "view and ordered slideshows."));
19 gc->addSelection(
TR(
"Filename (A-Z)"),
21 gc->addSelection(
TR(
"Reverse Filename (Z-A)"),
23 gc->addSelection(
TR(
"Exif Date (oldest first)"),
25 gc->addSelection(
TR(
"Reverse Exif Date (newest first)"),
27 gc->addSelection(
TR(
"File Modified Time (oldest first)"),
29 gc->addSelection(
TR(
"Reverse File Modified Time (newest first)"),
31 gc->addSelection(
TR(
"File Extension (A-Z)"),
33 gc->addSelection(
TR(
"Reverse File Extension (Z-A)"),
35 gc->addSelection(
TR(
"File Size (smallest first)"),
37 gc->addSelection(
TR(
"Reverse File Size (largest first)"),
50 gc->setLabel(
TR(
"Directory Order"));
51 gc->setHelpText(
TR(
"The order that dirctories are shown and traversed "
52 "in recursive slideshows."));
56 gc->addSelection(
TR(
"File Modified Time (oldest first)"), QString::number(
kSortByModTimeAsc));
57 gc->addSelection(
TR(
"Reverse File Modified Time (newest first)"), QString::number(
kSortByModTimeDesc));
72 gc->setLabel(
TR(
"Date Format"));
73 gc->setHelpText(
TR(
"Date format of thumbnail captions. Other places use the system date format. "
74 "Sample shows 3rd May 2002."));
93 AddFormat(gc, sampdate, QString(
"yyyy") % QChar(0x5E74) %
94 "M" % QChar(0x6708) %
"d" % QChar(0x65E5));
106 gc->setLabel(
TR(
"Transition"));
107 gc->setHelpText(
TR(
"Effect to use between slides"));
112 QMapIterator<int, Transition*> i(transitions);
116 gc->addSelection(i.value()->objectName(), QString::number(i.key()));
126 gc->setLabel(
TR(
"Slide Duration (ms)"));
127 gc->setHelpText(
TR(
"The time that a slide is displayed (between transitions), "
128 "in milliseconds."));
136 gc->setLabel(
TR(
"Transition Duration (ms)"));
137 gc->setHelpText(
TR(
"The time that each transition lasts, in milliseconds."));
145 gc->setLabel(
TR(
"Status Delay (ms)"));
146 gc->setHelpText(
TR(
"The delay before showing the Loading/Playing status, "
147 "in milliseconds."));
155 gc->setLabel(
TR(
"Use transitions when browsing"));
156 gc->setHelpText(
TR(
"When cleared, transitions will only be used "
157 "during a slideshow."));
169 gc->setVisible(enabled);
170 gc->setLabel(
TR(
"Import Command"));
171 gc->setHelpText(
TR(
"Command/script that can be run from the menu. "
172 "\n%TMPDIR% will be replaced by a new temporary directory, "
173 "which the import dialog will show automatically. The "
174 "directory will be removed when Gallery exits."));
186 gc->setVisible(enabled);
187 gc->setLabel(
TR(
"Scanner Exclusions"));
188 gc->setHelpText(
TR(
"Comma-separated list of filenames/directory names "
189 "to be ignored when scanning. "
190 "Glob wildcards * and ? are valid."));
206 gc->setVisible(enabled);
207 gc->setLabel(
TR(
"Start Gallery when media inserted"));
208 gc->setHelpText(
TR(
"Set to automatically start Gallery when media "
209 "(USB/CD's containing images) are inserted."));
221 gc->setVisible(enabled);
222 gc->setLabel(
TR(
"Password"));
223 gc->setHelpText(
TR(
"When set all actions that modify the filesystem or "
224 "database are protected (copy, move, transform, "
225 "hiding, covers). Hidden items cannot be viewed. "
226 "Applies to all frontends. "
227 "\nDisabled by an empty password. "
228 "Privileges persist until Gallery exits to main menu."));
240 gc->setVisible(enabled);
241 gc->setLabel(
TR(
"Reset Image Database"));
242 gc->setHelpText(
TR(
"Clears the database and thumbnails for the Image Storage Group. "
243 "A rescan will be required. Images for local media will persist."));
253 QString msg(
TR(
"Warning! This will erase settings for: hidden images, "
254 "directory covers and re-orientations. "
255 "You will have to set them again after re-scanning."));
258 if (dialog->Create())
260 stack->AddScreen(dialog);
static StandardSetting * Password(bool enabled)
Setting for changing password.
static StandardSetting * SlideDuration()
@ kSortByNameDesc
Name Z-A.
StandardSetting * DateFormat() const
@ kSortByExtDesc
Extension Z-A.
QMap< int, Transition * > TransitionMap
static StandardSetting * TransitionType()
static StandardSetting * UseTransitions()
@ kSortByDateDesc
Exif date Latest -> Earliest.
virtual void addChild(StandardSetting *child)
Provides transitions for slideshows.
@ kSortByNameAsc
Name A-Z.
static StandardSetting * StatusDelay()
StandardSetting * DirOrder() const
@ kSortByExtAsc
Extension A-Z.
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
GallerySettings(bool enable)
virtual void setLabel(QString str)
QDateTime fromString(const QString &dtstr)
Converts kFilename && kISODate formats to QDateTime.
Manages transitions available to s psinter.
@ kSortByModTimeDesc
File modified time Latest -> Earliest.
void addSelection(const QString &label, QString value=QString(), bool select=false)
static StandardSetting * Import(bool enabled)
Setting for Importing via script.
Dialog asking for user confirmation. Ok and optional Cancel button.
StandardSetting * ClearDb(bool enabled) const
Setting for clearing image database.
@ kSortByDateAsc
Exif date Earliest -> Latest.
StandardSetting * ImageOrder() const
StandardSetting * Exclusions(bool enabled) const
Setting for excluding image files by pattern.
MythMainWindow * GetMythMainWindow(void)
MythScreenStack * GetStack(const QString &Stackname)
@ kSortByModTimeAsc
File modified time Earliest -> Latest.
Provides Gallery configuration screens.
MythPainter * GetMythPainter(void)
@ kSortBySizeAsc
File size Smallest -> Largest.
TransitionMap GetAll() const
static StandardSetting * Autorun(bool enabled)
Setting for running gallery on start-up.
@ kSortBySizeDesc
File size Largest -> Smallest.
static void AddFormat(HostComboBoxSetting *gc, const QDateTime &date, const QString &format)
static StandardSetting * TransitionDuration()