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

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