1 #ifndef uiattribfactory_h 2 #define uiattribfactory_h 15 #include "uiattributesmod.h" 29 virtual ~uiAttributeFactory();
31 int add(
const char* displaynm,
const char* attrnm,
34 bool dispnm=
true)
const;
36 int size()
const {
return entries_.size(); }
38 {
return entries_[idx]->attrnm_; }
40 {
return entries_[idx]->dispnm_; }
42 {
return entries_[idx]->grpnm_; }
44 {
return entries_[idx]->domtyp_; }
48 {
return entries_[idx]->dimtyp_; }
52 const char* dispNameOf(
const char*)
const;
53 const char* attrNameOf(
const char*)
const;
54 bool isPresent(
const char*,
bool dispnm)
const;
60 Entry(
const char* dn,
const char* an,
81 Entry* getEntry(
const char*,
bool)
const;
83 friend mGlobal(uiAttributes) uiAttributeFactory&
uiAF();
87 mGlobal(uiAttributes) uiAttributeFactory& uiAF();
#define mExpClass(module)
Definition: commondefs.h:160
int dimensionType(int idx) const
Definition: uiattribfactory.h:47
Definition: uiattribfactory.h:26
#define mGlobal(module)
Definition: commondefs.h:163
const char * getGroupName(int idx) const
Definition: uiattribfactory.h:41
Attribute description editor.
Definition: uiattrdesced.h:83
int size() const
Definition: uiattribfactory.h:36
Definition: uiparent.h:26
BufferString attrnm_
Definition: uiattribfactory.h:72
Entry(const char *dn, const char *an, const char *gn, uiAttrDescEdCreateFunc fn, int dt, int dimtyp)
Definition: uiattribfactory.h:60
Set of pointers to objects.
Definition: commontypes.h:32
uiAttrDescEdCreateFunc crfn_
Definition: uiattribfactory.h:76
BufferString grpnm_
Definition: uiattribfactory.h:73
const char * getAttribName(int idx) const
Definition: uiattribfactory.h:37
BufferString dispnm_
Definition: uiattribfactory.h:71
Definition: uiattribfactory.h:58
uiAttributeFactory & uiAF()
int domtyp_
Definition: uiattribfactory.h:74
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const char * getDisplayName(int idx) const
Definition: uiattribfactory.h:39
static uiHor3DInterpol * create(uiParent *)
int domainType(int idx) const
Definition: uiattribfactory.h:43
ObjectSet< Entry > entries_
Definition: uiattribfactory.h:79
uiAttrDescEd *(* uiAttrDescEdCreateFunc)(uiParent *, bool)
Factory for attrib editors.
Definition: uiattribfactory.h:24
int dimtyp_
Definition: uiattribfactory.h:75