diff --git a/Settings/FileVersionDetectionPage.cpp b/Settings/FileVersionDetectionPage.cpp
index 8a155350..618b5a8e 100644
--- a/Settings/FileVersionDetectionPage.cpp
+++ b/Settings/FileVersionDetectionPage.cpp
@@ -1,224 +1,224 @@
/* Copyright (C) 2003-2010 Jesper K. Pedersen KPhotoAlbum is capable of searching for new images and videos when started, this does, "
"however, take some time, so instead you may wish to manually tell KPhotoAlbum to search for new images "
"using Maintenance->Rescan for new images KPhotoAlbum will normally search new images and videos by their file extension. "
"If this option is set, all files neither in the database nor in the block list "
"will be checked by their Mime type, regardless of their extension. This will take "
"significantly longer than finding files by extension! KPhotoAlbum attempts to read all image files whether actual files or symbolic links. If you "
"wish to ignore symbolic links, check this option. This is useful if for some reason you have e.g. "
"both the original files and symbolic links to these files within your image directory. KPhotoAlbum is capable of reading certain kinds of RAW images. "
"Some cameras store both a RAW image and a matching JPEG or TIFF image. "
"This causes duplicate images to be stored in KPhotoAlbum, which may be undesirable. "
"If this option is checked, KPhotoAlbum will not read RAW files for which matching image files also exist. Directories defined here (separated by comma ,) are "
"skipped when searching for new photos. Thumbnail directories of different "
"tools should be configured here. E.g. xml,ThumbNails,.thumbs,.thumbnails. When KPhotoAlbum searches for new files and finds a file that matches the "
"modified file search regexp it is assumed that an original version of "
"the image may exist. The regexp pattern will be replaced with the original "
"file replacement text and if that file exists, all associated metadata (category "
"information, ratings, etc) will be copied or moved from the original file to the new one. A perl regular expression that should match a modified file. "
"
Example: -modified\\.(jpg|tiff)
A string that is used to replace the match from the File versions search regexp. " "This can be a semicolon (;) separated list. Each string is used to replace the match " "in the new file's name until an original file is found or we run out of options.
"); originalFileComponentLabel->setWhatsThis( txt ); m_originalFileComponent->setWhatsThis( txt ); txt = i18n( "The tagging is moved from the original file to the new file. This way " "only the latest version of an image is tagged.
" ); m_moveOriginalContents->setWhatsThis( txt ); txt = i18n( "If this option is set, new versions of an image are automatically stacked " "and placed to the top of the stack. This way the new image is shown when the " "stack is in collapsed state - the default state in KPhotoAlbum.
" ); m_autoStackNewFiles->setWhatsThis( txt ); } // Copy File Support { QGroupBox* copyBox = new QGroupBox( i18nc("Configure the feature to make a copy of a file first and then open the copied file with an external application", "Copy File and Open with an External Application"), this ); topLayout->addWidget( copyBox ); - QVBoxLayout* layout = new QVBoxLayout(copyBox); + auto* layout = new QVBoxLayout(copyBox); QLabel* copyFileComponentLabel = new QLabel( i18n("Copy file search regexp:" ), copyBox ); layout->addWidget(copyFileComponentLabel); m_copyFileComponent = new QLineEdit(copyBox); layout->addWidget(m_copyFileComponent); QLabel* copyFileReplacementComponentLabel = new QLabel( i18n("Copy file replacement text:" ), copyBox ); layout->addWidget(copyFileReplacementComponentLabel); m_copyFileReplacementComponent = new QLineEdit(copyBox); layout->addWidget(m_copyFileReplacementComponent); txt = i18n("KPhotoAlbum can make a copy of an image before opening it with an external application. This configuration defines how the new file is named.
" "The regular expression defines the part of the original file name that is replaced with the replacement text. " "E.g. regexp \"\\.(jpg|png)\" and replacement text \"-mod.\\1\" would copy test.jpg to test-mod.jpg and open the new file in selected application.
"); copyFileComponentLabel->setWhatsThis( txt ); m_copyFileComponent->setWhatsThis( txt ); copyFileReplacementComponentLabel->setWhatsThis( txt ); m_copyFileReplacementComponent->setWhatsThis( txt ); } } Settings::FileVersionDetectionPage::~FileVersionDetectionPage() { delete m_searchForImagesOnStart; delete m_ignoreFileExtension; delete m_skipSymlinks; delete m_skipRawIfOtherMatches; delete m_excludeDirectories; delete m_detectModifiedFiles; delete m_modifiedFileComponent; delete m_originalFileComponent; delete m_moveOriginalContents; delete m_autoStackNewFiles; delete m_copyFileComponent; delete m_copyFileReplacementComponent; } void Settings::FileVersionDetectionPage::loadSettings( Settings::SettingsData* opt ) { m_searchForImagesOnStart->setChecked( opt->searchForImagesOnStart() ); m_ignoreFileExtension->setChecked( opt->ignoreFileExtension() ); m_skipSymlinks->setChecked( opt->skipSymlinks() ); m_skipRawIfOtherMatches->setChecked( opt->skipRawIfOtherMatches() ); m_excludeDirectories->setText( opt->excludeDirectories() ); m_detectModifiedFiles->setChecked( opt->detectModifiedFiles() ); m_modifiedFileComponent->setText( opt->modifiedFileComponent() ); m_originalFileComponent->setText( opt->originalFileComponent() ); m_moveOriginalContents->setChecked( opt->moveOriginalContents() ); m_autoStackNewFiles->setChecked( opt->autoStackNewFiles() ); m_copyFileComponent->setText( opt->copyFileComponent() ); m_copyFileReplacementComponent->setText( opt->copyFileReplacementComponent() ); } void Settings::FileVersionDetectionPage::saveSettings( Settings::SettingsData* opt ) { opt->setSearchForImagesOnStart( m_searchForImagesOnStart->isChecked() ); opt->setIgnoreFileExtension( m_ignoreFileExtension->isChecked() ); opt->setSkipSymlinks( m_skipSymlinks->isChecked() ); opt->setSkipRawIfOtherMatches( m_skipRawIfOtherMatches->isChecked() ); opt->setExcludeDirectories( m_excludeDirectories->text() ); opt->setDetectModifiedFiles( m_detectModifiedFiles->isChecked() ); opt->setModifiedFileComponent( m_modifiedFileComponent->text() ); opt->setOriginalFileComponent( m_originalFileComponent->text() ); opt->setAutoStackNewFiles( m_autoStackNewFiles->isChecked() ); opt->setCopyFileComponent( m_copyFileComponent->text() ); opt->setCopyFileReplacementComponent( m_copyFileReplacementComponent->text() ); } // vi:expandtab:tabstop=4 shiftwidth=4: diff --git a/Settings/FileVersionDetectionPage.h b/Settings/FileVersionDetectionPage.h index 7962ed2d..929d2b19 100644 --- a/Settings/FileVersionDetectionPage.h +++ b/Settings/FileVersionDetectionPage.h @@ -1,60 +1,60 @@ /* Copyright (C) 2003-2010 Jesper K. Pedersen