diff options
Diffstat (limited to 'digikam/showfoto/showfoto.h')
-rw-r--r-- | digikam/showfoto/showfoto.h | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/digikam/showfoto/showfoto.h b/digikam/showfoto/showfoto.h new file mode 100644 index 0000000..fe53c27 --- /dev/null +++ b/digikam/showfoto/showfoto.h @@ -0,0 +1,134 @@ +/* ============================================================ + * + * This file is a part of digiKam project + * http://www.digikam.org + * + * Date : 2004-11-22 + * Description : stand alone digiKam image editor GUI + * + * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu> + * Copyright (C) 2005-2006 by Tom Albers <tomalbers@kde.nl> + * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com> + * Copyright (C) 2006-2008 by Marcel Wiesweg <marcel.wiesweg@gmx.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 SHOWFOTO_H +#define SHOWFOTO_H + +// KDE includes. + +#include <kurl.h> + +// Local includes. + +#include "editorwindow.h" + +namespace KIO +{ +class Job; +} + +namespace Digikam +{ +class SlideshowSettings; +} + +namespace ShowFoto +{ + +class ShowFotoPriv; + +class ShowFoto : public Digikam::EditorWindow +{ + Q_OBJECT + +public: + + ShowFoto(const KURL::List& urlList); + ~ShowFoto(); + + virtual void show(); + bool setup(bool iccSetupPage=false); + +private: + + bool queryClose(); + bool queryExit(); + + void setupActions(); + void setupConnections(); + void setupUserArea(); + + void readSettings(); + void saveSettings(); + void applySettings(); + + void toggleActions(bool val); + + void toggleGUI2FullScreen(); + + void toggleNavigation(int index); + + bool save(); + bool saveAs(); + void finishSaving(bool success); + + void saveIsComplete(); + void saveAsIsComplete(); + + void slideShow(bool startWithCurrent, Digikam::SlideShowSettings& settings); + + void openFolder(const KURL& url); + + Digikam::Sidebar* rightSideBar() const; + +private slots: + + void slotForward(); + void slotBackward(); + void slotLast(); + void slotFirst(); + void slotFilePrint(); + + void slotOpenFile(); + void slotOpenURL(const KURL& url); + void slotOpenFolder(const KURL& url); + void slotOpenFilesInFolder(); + void slotDeleteCurrentItem(); + + void slotToggleShowBar(); + void slotChangeBCG(); + + void slotChanged(); + void slotUndoStateChanged(bool, bool, bool); + void slotUpdateItemInfo(); + + void slotDeleteCurrentItemResult( KIO::Job * job ); + + void slotLoadingStarted(const QString &filename); + void slotLoadingFinished(const QString &filename, bool success); + void slotSavingStarted(const QString &filename); + + void slotContextMenu(); + void slotRevert(); + +private: + + ShowFotoPriv* d; +}; + +} // namespace ShowFoto + +#endif /* SHOWFOTO_H */ |