diff options
Diffstat (limited to 'src/showfoto/showfoto.h')
-rw-r--r-- | src/showfoto/showfoto.h | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/src/showfoto/showfoto.h b/src/showfoto/showfoto.h new file mode 100644 index 00000000..8bd3618e --- /dev/null +++ b/src/showfoto/showfoto.h @@ -0,0 +1,135 @@ +/* ============================================================ + * + * 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 <[email protected]> + * Copyright (C) 2005-2006 by Tom Albers <[email protected]> + * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com> + * Copyright (C) 2006-2008 by Marcel Wiesweg <[email protected]> + * + * 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 TDEIO +{ +class Job; +} + +namespace Digikam +{ +class SlideshowSettings; +} + +namespace ShowFoto +{ + +class ShowFotoPriv; + +class ShowFoto : public Digikam::EditorWindow +{ + TQ_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( TDEIO::Job * job ); + + void slotLoadingStarted(const TQString &filename); + void slotLoadingFinished(const TQString &filename, bool success); + void slotSavingStarted(const TQString &filename); + + void slotContextMenu(); + void slotRevert(); + +private: + + ShowFotoPriv* d; +}; + +} // namespace ShowFoto + +#endif /* SHOWFOTO_H */ |