Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreColumnEntry.h
Go to the documentation of this file.
1 
8 #ifndef __HDI_CORE_COLUMN_ENTRY__
9 #define __HDI_CORE_COLUMN_ENTRY__
10 
11 #include <vector>
12 
13 #include "hdicoreMacros.h"
14 
15 #include "hdicoreEntryValue.h"
16 
17 namespace hdi
18 {
19  namespace plugin
20  {
21  class ColumnEntryData;
22  }
23 
24  namespace core
25  {
30  {
31  public:
32  typedef std::vector<EntryValue> ValueVector;
33  typedef std::vector< void* > DataVector;
34 
39  static const char* separatorValue;
40 
52  ColumnEntry();
53 
62  ColumnEntry(const ColumnEntry& e_);
63 
75  const std::string& id_,
76  const ValueVector& values_,
77  const DataVector& userData_,
78  const bool enabled_ = true
79  );
80 
86  virtual ~ColumnEntry();
87 
97  virtual ColumnEntry& operator=(const ColumnEntry& rhs_);
98 
107  virtual bool isEmpty() const;
108 
116  virtual std::string entryID() const;
117 
128  virtual void setEntryID(const std::string& id_);
129 
137  virtual ValueVector values() const;
138 
146  virtual void setValues(const ValueVector& values_);
147 
155  virtual bool enabled() const;
156 
164  virtual void setEnabled(const bool enabled_);
165 
173  virtual DataVector userData() const;
174 
182  virtual void setUserData(const DataVector& data_);
183 
192  virtual bool operator==(const ColumnEntry& rhs_) const;
193 
202  virtual bool operator!=(const ColumnEntry& rhs_) const;
203 
204 
205  private:
206  friend plugin::ColumnEntryData* __accessImpl(const ColumnEntry&);
207 
211  void* __data;
212 
218  void* __impl() const;
219  };
220 
221  typedef std::auto_ptr<ColumnEntry> ColumnEntryAP;
222 
223  extern plugin::ColumnEntryData* __accessImpl(const ColumnEntry&);
224  }
225 }
226 
227 #endif
228 // __HDI_CORE_COLUMN_ENTRY__
static const char * separatorValue
When you want a separator in a container widget, create a ColumnEntry object with this as its string ...
Definition: hdicoreColumnEntry.h:39
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 column views to store more data than simply strings and indices.
Definition: hdicoreColumnEntry.h:29