• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

albumsettings.h

Go to the documentation of this file.
00001 /* ============================================================
00002  *
00003  * This file is a part of digiKam project
00004  * http://www.digikam.org
00005  *
00006  * Date        : 2003-16-10
00007  * Description : albums settings interface
00008  *
00009  * Copyright (C) 2003-2004 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
00010  * Copyright (C) 2003-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
00011  * Copyright (C) 2007 by Arnd Baecker <arnd dot baecker at web dot de>
00012  *
00013  * This program is free software; you can redistribute it
00014  * and/or modify it under the terms of the GNU General
00015  * Public License as published by the Free Software Foundation;
00016  * either version 2, or (at your option)
00017  * any later version.
00018  *
00019  * This program is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022  * GNU General Public License for more details.
00023  *
00024  * ============================================================ */
00025 
00026 #ifndef ALBUMSETTINGS_H
00027 #define ALBUMSETTINGS_H
00028 
00029 // Qt includes.
00030 
00031 #include <QStringList>
00032 #include <QString>
00033 
00034 // Local includes.
00035 
00036 #include "digikam_export.h"
00037 
00038 namespace Digikam
00039 {
00040 
00041 class AlbumSettingsPrivate;
00042 
00043 class AlbumSettings 
00044 {
00045 public:
00046 
00047     enum AlbumSortOrder
00048     {
00049         ByFolder = 0,
00050         ByCollection,
00051         ByDate
00052     };
00053 
00054     enum ImageSortOrder
00055     {
00056         ByIName = 0,
00057         ByIPath,
00058         ByIDate,
00059         ByISize,
00060         ByIRating
00061     };
00062 
00063     enum ItemRightClickAction
00064     {
00065         ShowPreview = 0,
00066         StartEditor
00067     };
00068 
00069     void readSettings();
00070     void saveSettings();
00071 
00072     bool showToolTipsIsValid() const;
00073 
00074     void setAlbumLibraryPath(const QString& path);
00075     QString getAlbumLibraryPath() const;
00076 
00077     void setDatabaseFilePath(const QString& path);
00078     QString getDatabaseFilePath() const;
00079 
00080     void setShowSplashScreen(bool val);
00081     bool getShowSplashScreen() const;
00082 
00083     void setScanAtStart(bool val);
00084     bool getScanAtStart() const;
00085 
00086     void setAlbumCollectionNames(const QStringList& list);
00087     QStringList getAlbumCollectionNames();
00088 
00089     bool addAlbumCollectionName(const QString& name);
00090     bool delAlbumCollectionName(const QString& name);
00091 
00092     void setAlbumSortOrder(const AlbumSortOrder order);
00093     AlbumSortOrder getAlbumSortOrder() const;
00094 
00095     void setImageSortOrder(const ImageSortOrder order);
00096     ImageSortOrder getImageSortOrder() const;
00097 
00098     void setItemRightClickAction(const ItemRightClickAction action);
00099     ItemRightClickAction getItemRightClickAction() const;
00100 
00101     QString getImageFileFilter() const;
00102     void addToImageFileFilter(const QString &extensions);
00103 
00104     QString getMovieFileFilter() const;
00105 
00106     QString getAudioFileFilter() const;
00107 
00108     QString getRawFileFilter() const;
00109 
00110     bool    addImageFileExtension(const QString& ext);
00111     QString getAllFileFilter() const;
00112 
00113     void setDefaultIconSize(int val);
00114     int  getDefaultIconSize() const;
00115 
00116     void setDefaultTreeIconSize(int val);
00117     int  getDefaultTreeIconSize() const;
00118 
00119     void setRatingFilterCond(int val);
00120     int  getRatingFilterCond() const;
00121 
00122     void setIconShowName(bool val);
00123     bool getIconShowName() const;
00124 
00125     void setIconShowSize(bool val);
00126     bool getIconShowSize() const;
00127 
00128     void setIconShowComments(bool val);
00129     bool getIconShowComments() const;
00130 
00131     void setIconShowResolution(bool val);
00132     bool getIconShowResolution() const;
00133 
00134     void setIconShowTags(bool val);
00135     bool getIconShowTags() const;
00136 
00137     void setIconShowDate(bool val);
00138     bool getIconShowDate() const;
00139 
00140     void setIconShowModDate(bool val);
00141     bool getIconShowModDate() const;
00142 
00143     void setIconShowRating(bool val);
00144     bool getIconShowRating() const;
00145 
00146     void setExifRotate(bool val);
00147     bool getExifRotate() const;
00148 
00149     void setExifSetOrientation(bool val);
00150     bool getExifSetOrientation() const;
00151 
00152     void setSaveTags(bool val);
00153     bool getSaveTags() const;
00154 
00155     void setSavePhotographerId(bool val);
00156     bool getSavePhotographerId() const;
00157 
00158     void setSaveCredits(bool val);
00159     bool getSaveCredits() const;
00160 
00161     void setAuthor(const QString& author);
00162     QString getAuthor() const;
00163 
00164     void setAuthorTitle(const QString& authorTitle);
00165     QString getAuthorTitle() const;
00166 
00167     void setCredit(const QString& credit);
00168     QString getCredit() const;
00169 
00170     void setSource(const QString& source);
00171     QString getSource() const;
00172 
00173     void setCopyright(const QString& copyright);
00174     QString getCopyright() const;
00175 
00176     void setSaveComments(bool val);
00177     bool getSaveComments() const;
00178 
00179     void setSaveDateTime(bool val);
00180     bool getSaveDateTime() const;
00181 
00182     void setSaveRating(bool val);
00183     bool getSaveRating() const;
00184 
00185     void setShowToolTips(bool val);
00186     bool getShowToolTips() const;
00187 
00188     void setToolTipsShowFileName(bool val);
00189     bool getToolTipsShowFileName() const;
00190 
00191     void setToolTipsShowFileDate(bool val);
00192     bool getToolTipsShowFileDate() const;
00193 
00194     void setToolTipsShowFileSize(bool val);
00195     bool getToolTipsShowFileSize() const;
00196 
00197     void setToolTipsShowImageType(bool val);
00198     bool getToolTipsShowImageType() const;
00199 
00200     void setToolTipsShowImageDim(bool val);
00201     bool getToolTipsShowImageDim() const;
00202 
00203     void setToolTipsShowPhotoMake(bool val);
00204     bool getToolTipsShowPhotoMake() const;
00205 
00206     void setToolTipsShowPhotoDate(bool val);
00207     bool getToolTipsShowPhotoDate() const;
00208 
00209     void setToolTipsShowPhotoFocal(bool val);
00210     bool getToolTipsShowPhotoFocal() const;
00211 
00212     void setToolTipsShowPhotoExpo(bool val);
00213     bool getToolTipsShowPhotoExpo() const;
00214 
00215     void setToolTipsShowPhotoMode(bool val);
00216     bool getToolTipsShowPhotoMode() const;
00217 
00218     void setToolTipsShowPhotoFlash(bool val);
00219     bool getToolTipsShowPhotoFlash() const;
00220 
00221     void setToolTipsShowPhotoWB(bool val);
00222     bool getToolTipsShowPhotoWB() const;
00223 
00224     void setToolTipsShowAlbumName(bool val);
00225     bool getToolTipsShowAlbumName() const;
00226 
00227     void setToolTipsShowComments(bool val);
00228     bool getToolTipsShowComments() const;
00229 
00230     void setToolTipsShowTags(bool val);
00231     bool getToolTipsShowTags() const;
00232 
00233     void setToolTipsShowRating(bool val);
00234     bool getToolTipsShowRating() const;
00235 
00236     void    setCurrentTheme(const QString& theme);
00237     QString getCurrentTheme() const;
00238 
00239     void    setUseTrash(bool val);
00240     bool    getUseTrash() const;
00241 
00242     void    setShowTrashDeleteDialog(bool val);
00243     bool    getShowTrashDeleteDialog() const;
00244 
00245     void    setApplySidebarChangesDirectly(bool val);
00246     bool    getApplySidebarChangesDirectly() const;
00247 
00248     void setPreviewLoadFullImageSize(bool val);
00249     bool getPreviewLoadFullImageSize() const;
00250 
00251     void setShowFolderTreeViewItemsCount(bool val);
00252     bool getShowFolderTreeViewItemsCount() const;
00253 
00254     void setRecurseAlbums(bool val);
00255     bool getRecurseAlbums() const;
00256 
00257     void setRecurseTags(bool val);
00258     bool getRecurseTags() const;
00259 
00260     void setShowThumbbar(bool val);
00261     bool getShowThumbbar() const;
00262 
00263     static AlbumSettings *instance();
00264 
00265 private:
00266 
00267     friend class AlbumSettingsCreator;
00268     AlbumSettings();
00269     ~AlbumSettings();
00270 
00271     void init();
00272 
00273     AlbumSettingsPrivate* d;
00274 };
00275 
00276 }  // namespace Digikam
00277 
00278 #endif  // ALBUMSETTINGS_H

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal