OpendTect  6.6
uiattrtypesel.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: A.H. Bril
7  Date: Oct 2006
8  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiattributesmod.h"
14 #include "uigroup.h"
15 #include "bufstringset.h"
16 
17 class uiComboBox;
18 
26 mExpClass(uiAttributes) uiAttrTypeSel : public uiGroup
27 {
28 public:
29  uiAttrTypeSel(uiParent*,bool sorted=true);
31  void fill(BufferStringSet* selgrps=0);
33 
34  const char* group() const;
35  const char* attr() const;
36  void setGrp(const char*);
37  void setAttr(const char*);
38 
40 
41  void add(const char* grp,const char* attr);
42  void update();
43  void setEmpty();
44 
45  static const char* sKeyAllGrp;
46 
47 protected:
48 
51 
55  int* idxs_;
56  bool sorted_;
57 
60  int curGrpIdx() const;
61  void updAttrNms(const char* s=0);
62  bool isPrefAttrib(int,const char*) const;
63 
64  void clear();
65 };
66 
67 
uiAttrTypeSel::attrSel
void attrSel(CallBacker *)
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
uiComboBox
Combo box.
Definition: uicombobox.h:32
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiAttrTypeSel::grpSel
void grpSel(CallBacker *)
uiAttrTypeSel::idxs_
int * idxs_
Definition: uiattrtypesel.h:55
uiAttrTypeSel::fill
void fill(BufferStringSet *selgrps=0)
with factory entries
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiAttrTypeSel::updAttrNms
void updAttrNms(const char *s=0)
uigroup.h
uiAttrTypeSel::setAttr
void setAttr(const char *)
uiAttrTypeSel::update
void update()
after a number of add()'s
uiAttrTypeSel::attrgroups_
TypeSet< int > attrgroups_
Definition: uiattrtypesel.h:54
uiAttrTypeSel::attrnms_
BufferStringSet attrnms_
Definition: uiattrtypesel.h:53
uiGroup
Definition: uigroup.h:54
uiAttrTypeSel::group
const char * group() const
Notifier< uiAttrTypeSel >
uiAttrTypeSel::selChg
Notifier< uiAttrTypeSel > selChg
Definition: uiattrtypesel.h:39
uiAttrTypeSel::uiAttrTypeSel
uiAttrTypeSel(uiParent *, bool sorted=true)
uiAttrTypeSel::grpfld_
uiComboBox * grpfld_
Definition: uiattrtypesel.h:49
uiAttrTypeSel::setEmpty
void setEmpty()
uiAttrTypeSel::attr
const char * attr() const
uiAttrTypeSel::curGrpIdx
int curGrpIdx() const
uiAttrTypeSel::grpnms_
BufferStringSet grpnms_
Definition: uiattrtypesel.h:52
bufstringset.h
uiAttrTypeSel::sorted_
bool sorted_
Definition: uiattrtypesel.h:56
uiAttrTypeSel::isPrefAttrib
bool isPrefAttrib(int, const char *) const
uiAttrTypeSel::clear
void clear()
uiAttrTypeSel
Selector for attribute type.
Definition: uiattrtypesel.h:27
uiParent
Definition: uiparent.h:26
uiAttrTypeSel::attrfld_
uiComboBox * attrfld_
Definition: uiattrtypesel.h:50
uiAttrTypeSel::~uiAttrTypeSel
~uiAttrTypeSel()
uiAttrTypeSel::sKeyAllGrp
static const char * sKeyAllGrp
Definition: uiattrtypesel.h:45
uiAttrTypeSel::add
void add(const char *grp, const char *attr)
TypeSet< int >
uiAttrTypeSel::setGrp
void setGrp(const char *)

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021