HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CH_UndoSetDefaultContextOption.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CH_UndoBookmark.h ( CH Library, C++)
7  *
8  * COMMENTS: This class handles the undoing of Bookmark
9  * operations.
10  *
11  * This class handles the updating of playbar bookmarks
12  * when they are modified, created, or deleted
13  */
14 
15 #ifndef __CH_UndoSetDefaultContextOption__
16 #define __CH_UndoSetDefaultContextOption__
17 
18 #include "CH_API.h"
19 #include <UT/UT_StringHolder.h>
20 #include <UT/UT_Undo.h>
21 #include <SYS/SYS_Types.h>
22 
24 {
25 public:
28 
29  void undo() override;
30  void redo() override;
31 
32 private:
33  void initializeData();
34  void swap();
35 
36  UT_StringHolder myOptionName;
37  UT_StringHolder myOptionStringValue;
38  fpreal64 myOptionFloatValue;
39  bool myOptionIsString;
40  bool myOptionExists;
41 };
42 
43 #endif
44 
virtual void redo()=0
void swap(T &lhs, T &rhs)
Definition: pugixml.cpp:7172
double fpreal64
Definition: SYS_Types.h:201
virtual void undo()=0
#define CH_API
Definition: CH_API.h:10