You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
digikam/digikam/digikam/albumsettings.h

284 lines
7.2 KiB

/* ============================================================
*
* This file is a part of digiKam project
* http://www.digikam.org
*
* Date : 2003-16-10
* Description : albums settings interface
*
* Copyright (C) 2003-2004 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
* Copyright (C) 2003-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2007 by Arnd Baecker <arnd dot baecker at web dot de>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
* Public License as published by the Free Software Foundation;
* either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* ============================================================ */
#ifndef ALBUMSETTINGS_H
#define ALBUMSETTINGS_H
// TQt includes.
#include <tqstringlist.h>
#include <tqstring.h>
// Local includes.
#include "digikam_export.h"
namespace Digikam
{
class AlbumSettingsPrivate;
class DIGIKAM_EXPORT AlbumSettings
{
public:
enum AlbumSortOrder
{
ByFolder = 0,
ByCollection,
ByDate
};
enum ImageSortOrder
{
ByIName = 0,
ByIPath,
ByIDate,
ByISize,
ByIRating
};
enum ItemRightClickAction
{
ShowPreview = 0,
StartEditor
};
AlbumSettings();
~AlbumSettings();
void readSettings();
void saveSettings();
bool showToolTipsIsValid() const;
void setAlbumLibraryPath(const TQString& path);
TQString getAlbumLibraryPath() const;
void setShowSplashScreen(bool val);
bool getShowSplashScreen() const;
void setScanAtStart(bool val);
bool getScanAtStart() const;
void setAlbumCollectionNames(const TQStringList& list);
TQStringList getAlbumCollectionNames();
bool addAlbumCollectionName(const TQString& name);
bool delAlbumCollectionName(const TQString& name);
void setAlbumSortOrder(const AlbumSortOrder order);
AlbumSortOrder getAlbumSortOrder() const;
void setImageSortOrder(const ImageSortOrder order);
ImageSortOrder getImageSortOrder() const;
void setItemRightClickAction(const ItemRightClickAction action);
ItemRightClickAction getItemRightClickAction() const;
void setImageFileFilter(const TQString& filter);
TQString getImageFileFilter() const;
void setMovieFileFilter(const TQString& filter);
TQString getMovieFileFilter() const;
void setAudioFileFilter(const TQString& filter);
TQString getAudioFileFilter() const;
void setRawFileFilter(const TQString& filter);
TQString getRawFileFilter() const;
bool addImageFileExtension(const TQString& ext);
TQString getAllFileFilter() const;
void setDefaultIconSize(int val);
int getDefaultIconSize() const;
void setDefaultTreeIconSize(int val);
int getDefaultTreeIconSize() const;
void setRatingFilterCond(int val);
int getRatingFilterCond() const;
void setIconShowName(bool val);
bool getIconShowName() const;
void setIconShowSize(bool val);
bool getIconShowSize() const;
void setIconShowComments(bool val);
bool getIconShowComments() const;
void setIconShowResolution(bool val);
bool getIconShowResolution() const;
void setIconShowTags(bool val);
bool getIconShowTags() const;
void setIconShowDate(bool val);
bool getIconShowDate() const;
void setIconShowModDate(bool val);
bool getIconShowModDate() const;
void setIconShowRating(bool val);
bool getIconShowRating() const;
void setExifRotate(bool val);
bool getExifRotate() const;
void setExifSetOrientation(bool val);
bool getExifSetOrientation() const;
void setSaveIptcTags(bool val);
bool getSaveIptcTags() const;
void setSaveIptcPhotographerId(bool val);
bool getSaveIptcPhotographerId() const;
void setSaveIptcCredits(bool val);
bool getSaveIptcCredits() const;
void setIptcAuthor(const TQString& author);
TQString getIptcAuthor() const;
void setIptcAuthorTitle(const TQString& authorTitle);
TQString getIptcAuthorTitle() const;
void setIptcCredit(const TQString& credit);
TQString getIptcCredit() const;
void setIptcSource(const TQString& source);
TQString getIptcSource() const;
void setIptcCopyright(const TQString& copyright);
TQString getIptcCopyright() const;
void setSaveComments(bool val);
bool getSaveComments() const;
void setSaveDateTime(bool val);
bool getSaveDateTime() const;
void setSaveRating(bool val);
bool getSaveRating() const;
void setShowToolTips(bool val);
bool getShowToolTips() const;
void setToolTipsShowFileName(bool val);
bool getToolTipsShowFileName() const;
void setToolTipsShowFileDate(bool val);
bool getToolTipsShowFileDate() const;
void setToolTipsShowFileSize(bool val);
bool getToolTipsShowFileSize() const;
void setToolTipsShowImageType(bool val);
bool getToolTipsShowImageType() const;
void setToolTipsShowImageDim(bool val);
bool getToolTipsShowImageDim() const;
void setToolTipsShowPhotoMake(bool val);
bool getToolTipsShowPhotoMake() const;
void setToolTipsShowPhotoDate(bool val);
bool getToolTipsShowPhotoDate() const;
void setToolTipsShowPhotoFocal(bool val);
bool getToolTipsShowPhotoFocal() const;
void setToolTipsShowPhotoExpo(bool val);
bool getToolTipsShowPhotoExpo() const;
void setToolTipsShowPhotoMode(bool val);
bool getToolTipsShowPhotoMode() const;
void setToolTipsShowPhotoFlash(bool val);
bool getToolTipsShowPhotoFlash() const;
void setToolTipsShowPhotoWB(bool val);
bool getToolTipsShowPhotoWB() const;
void setToolTipsShowAlbumName(bool val);
bool getToolTipsShowAlbumName() const;
void setToolTipsShowComments(bool val);
bool getToolTipsShowComments() const;
void setToolTipsShowTags(bool val);
bool getToolTipsShowTags() const;
void setToolTipsShowRating(bool val);
bool getToolTipsShowRating() const;
void setCurrentTheme(const TQString& theme);
TQString getCurrentTheme() const;
void setUseTrash(bool val);
bool getUseTrash() const;
void setShowTrashDeleteDialog(bool val);
bool getShowTrashDeleteDialog() const;
void setApplySidebarChangesDirectly(bool val);
bool getApplySidebarChangesDirectly() const;
TQString getDefaultImageFileFilter() const;
TQString getDefaultMovieFileFilter() const;
TQString getDefaultAudioFileFilter() const;
TQString getDefaultRawFileFilter() const;
void setPreviewLoadFullImageSize(bool val);
bool getPreviewLoadFullImageSize() const;
void setShowFolderTreeViewItemsCount(bool val);
bool getShowFolderTreeViewItemsCount() const;
void setRecurseAlbums(bool val);
bool getRecurseAlbums() const;
void setRecurseTags(bool val);
bool getRecurseTags() const;
static AlbumSettings *instance();
private:
void init();
private:
static AlbumSettings* m_instance;
AlbumSettingsPrivate* d;
};
} // namespace Digikam
#endif // ALBUMSETTINGS_H