HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_Options.h>
19 
20 class OP_Node;
21 class OP_Network;
22 class OP_OTLLibrary;
23 class OP_OTLDefinition;
24 class OP_CompareData;
25 
27 {
28 public:
29  OP_Compare();
30  virtual ~OP_Compare();
31 
32 
33 
34  typedef enum
35  {
38  ModeHDA
39  } DialogMode;
40 
41  typedef enum
42  {
51  SourceLastSaved
52  } CompareSource;
53 
54  void setOptions(const UT_Options &options)
55  {
56  myOptions = options;
57  prepareFilters();
58  }
59  const UT_Options &getOptions() const
60  {
61  return myOptions;
62  }
63 
64  void getCompareFilters(UT_WorkBuffer &inclusions,
65  UT_WorkBuffer &exclusions,
66  UT_MIME::TextFilterList &text_filters) const;
67  void prepareFilters();
68 
69  void prepareNetworkFile(const UT_StringHolder &source_file,
70  UT_StringHolder &filename) const;
71 
72  void prepareHDA(const UT_StringHolder &source_file,
73  UT_StringHolder &filename) const;
74 
75  void prepareHDANetwork(const UT_StringHolder &source_file,
76  const UT_StringHolder &table_and_name,
77  UT_StringHolder &filename) const;
78 
79  void prepareNetwork(OP_Network *network,
80  UT_StringHolder &filename) const;
81 
82 private:
83  UT_Options myOptions;
84  OP_CompareData *myCompareData;
85 };
86 
87 #endif
GT_API const UT_StringHolder filename
void setOptions(const UT_Options &options)
Definition: OP_Compare.h:54
A map of string to various well defined value types.
Definition: UT_Options.h:84
#define OP_API
Definition: OP_API.h:10
const UT_Options & getOptions() const
Definition: OP_Compare.h:59