HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OP_Compare.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: OPUI_ShowChanges.h
7 *
8 * COMMENTS: Dialog that launches a comparison of an operator type
9 * instance against a saved version.
10 *
11 */
12 
13 #ifndef __OP_Compare_h__
14 #define __OP_Compare_h__
15 
16 #include "OP_API.h"
17 #include <UT/UT_MIME.h>
18 #include <UT/UT_IStream.h>
19 #include <UT/UT_OFStream.h>
20 #include <UT/UT_Options.h>
21 #include <UT/UT_SharedPtr.h>
22 #include <UT/UT_StringArray.h>
23 #include <UT/UT_UniquePtr.h>
24 
25 class OP_Node;
26 class OP_Network;
27 class OP_OTLLibrary;
28 class OP_OTLDefinition;
29 class OP_CompareData;
30 
32 {
33 public:
34  OP_Compare();
35  virtual ~OP_Compare();
36 
37 
38 
39  typedef enum
40  {
43  ModeHDA
44  } DialogMode;
45 
46  typedef enum
47  {
56  SourceLastSaved
57  } CompareSource;
58 
59  void setOptions(const UT_Options &options)
60  {
61  myOptions = options;
62  prepareFilters();
63  }
64  const UT_Options &getOptions() const
65  {
66  return myOptions;
67  }
68 
69  void getCompareFilters(UT_WorkBuffer &inclusions,
70  UT_WorkBuffer &exclusions,
71  UT_MIME::TextFilterList &text_filters) const;
72  void prepareFilters();
73 
74  void prepareNetworkFile(const UT_StringHolder &source_file,
75  UT_StringHolder &filename) const;
76 
77  void prepareHDA(const UT_StringHolder &source_file,
78  UT_StringHolder &filename) const;
79 
80  void prepareHDANetwork(const UT_StringHolder &source_file,
81  const UT_StringHolder &table_and_name,
82  UT_StringHolder &filename) const;
83 
84  void prepareNetwork(OP_Network *network,
85  UT_StringHolder &filename) const;
86 
87 private:
88  UT_Options myOptions;
89  OP_CompareData *myCompareData;
90 };
91 
92 #endif
void setOptions(const UT_Options &options)
Definition: OP_Compare.h:59
A map of string to various well defined value types.
Definition: UT_Options.h:42
#define OP_API
Definition: OP_API.h:10
const UT_Options & getOptions() const
Definition: OP_Compare.h:64