~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/utilities/imageeditor/undomanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream) (37 hardy)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-1bw3w3nrsso7yj4z
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
3
 
 *         J�rn Ahrens <joern.ahrens@kdemail.net>
4
 
 * Date  : 2005-02-06
5
 
 * Copyright 2005 by Renchi Raju, J�rn Ahrens
6
 
 *
7
 
 * This program is free software; you can redistribute it
8
 
 * and/or modify it under the terms of the GNU General
9
 
 * Public License as published by the Free Software Foundation;
10
 
 * either version 2, or (at your option)
11
 
 * any later version.
12
 
 * 
13
 
 * This program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 * ============================================================ */
18
 
 
19
 
#ifndef UNDOMANAGER_H
20
 
#define UNDOMANAGER_H
21
 
 
22
 
#include <qvaluelist.h>
23
 
 
24
 
class UndoManagerPriv;
25
 
class UndoAction;
26
 
class UndoCache;
27
 
class QStringList;
28
 
 
29
 
namespace Digikam
30
 
{
31
 
class ImlibInterface;
32
 
}
33
 
 
34
 
class UndoManager
35
 
{
36
 
public:
37
 
 
38
 
    UndoManager(Digikam::ImlibInterface* iface);
39
 
    ~UndoManager();
40
 
 
41
 
    void undo();
42
 
    void redo();
43
 
    
44
 
    void clear(bool clearCache=true);
45
 
    bool anyMoreUndo();
46
 
    bool anyMoreRedo();    
47
 
    void getUndoHistory(QStringList &titles);
48
 
    void getRedoHistory(QStringList &titles);
49
 
 
50
 
    void addAction(UndoAction* action);
51
 
 
52
 
private:
53
 
    
54
 
    void clearUndoActions();
55
 
    void clearRedoActions();
56
 
 
57
 
    Digikam::ImlibInterface* m_iface;
58
 
    
59
 
    QValueList<UndoAction*>  m_undoActions;
60
 
    QValueList<UndoAction*>  m_redoActions;
61
 
    
62
 
    UndoCache*               m_cache;
63
 
};
64
 
 
65
 
#endif /* UNDOMANAGER_H */