Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreTreeEntry.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TREE_ENTRY__
8 #define __HDI_CORE_TREE_ENTRY__
9 
10 #include "hdicoreEntryValue.h"
11 
12 #include "hdicoreMacros.h"
13 
14 namespace hdi
15 {
16  namespace plugin
17  {
18  class BaseTreeEntryData;
19  }
20 
21  namespace core
22  {
26  class TreeEntry
27  {
28  public:
33  static const char* separatorValue;
34 
46  TreeEntry();
47 
55  TreeEntry(const TreeEntry& e_);
56 
72  TreeEntry(
73  const std::string& id_,
74  const EntryValue& value_,
75  void* userData_,
76  const bool enabled_ = true,
77  const bool expanded_ = false
78  );
79 
85  virtual ~TreeEntry();
86 
96  virtual TreeEntry& operator=(const TreeEntry& rhs_);
97 
105  virtual bool isEmpty() const;
106 
114  virtual std::string entryID() const;
115 
126  virtual void setEntryID(const std::string& id_);
127 
135  virtual EntryValue value() const;
136 
144  virtual void setValue(const EntryValue& value_);
145 
153  virtual bool enabled() const;
154 
162  virtual void setEnabled(const bool enabled_);
163 
171  virtual bool expanded() const;
172 
180  virtual void setExpanded(const bool exp_);
181 
189  virtual void* const userData() const;
190 
198  virtual void setUserData(void* data_);
199 
207  virtual uint32_t childCount() const;
208 
217  virtual std::auto_ptr<TreeEntry> childAtIndex(const uint32_t index_) const;
218 
227  virtual bool pushChild(const TreeEntry& child_);
228 
237  virtual bool popChild(TreeEntry& child__);
238 
247  virtual bool operator==(const TreeEntry& rhs_) const;
248 
257  virtual bool operator!=(const TreeEntry& rhs_) const;
258 
259 
260  private:
261  friend plugin::BaseTreeEntryData* __accessImpl(const TreeEntry&);
262 
266  void* __data;
267 
273  void* __impl() const;
274  };
275 
276  typedef std::auto_ptr<TreeEntry> TreeEntryAP;
277 
278  extern plugin::BaseTreeEntryData* __accessImpl(const TreeEntry&);
279  }
280 }
281 
282 #endif
283 // __HDI_CORE_TREE_ENTRY__
static const char * separatorValue
When you want a separator in a container widget, create a TreeEntry object with this as its string va...
Definition: hdicoreTreeEntry.h:33
Allows for a *Entry class to store either a string value or PNGI image ID for a row/column.
Definition: hdicoreEntryValue.h:19
Header file for storing entry string values or image IDs.
Header file for a variety of Illustrator plugin convenience macros.
Definition: hdicoreaiArray.h:12
Allows hierarchical views to store more data than simply strings and indices.
Definition: hdicoreTreeEntry.h:26