digiKam
undostate.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2003-01-15
7  * Description : Undo state container
8  *
9  * Copyright (C) 2004-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_UNDO_STATE_H
25 #define DIGIKAM_UNDO_STATE_H
26 
27 namespace Digikam
28 {
29 
30 class UndoState
31 {
32 public:
33 
34  explicit UndoState()
35  : hasUndo (false),
36  hasRedo (false),
37  hasChanges (false),
38  hasUndoableChanges(false)
39  {
40  }
41 
43  {
44  }
45 
46 public:
47 
48  bool hasUndo;
49  bool hasRedo;
50  bool hasChanges;
52 };
53 
54 } // namespace Digikam
55 
56 #endif // DIGIKAM_UNDO_STATE_H
Definition: undostate.h:31
UndoState()
Definition: undostate.h:34
bool hasUndo
Definition: undostate.h:48
bool hasUndoableChanges
Definition: undostate.h:51
bool hasChanges
Definition: undostate.h:50
bool hasRedo
Definition: undostate.h:49
~UndoState()
Definition: undostate.h:42
Definition: datefolderview.cpp:43