OpendTect  6.3
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 ________________________________________________________________________
9 
10 -*/
11 
12 #include "uiattributesmod.h"
13 #include "uigroup.h"
14 #include "bufstringset.h"
15 
16 class uiComboBox;
17 
25 mExpClass(uiAttributes) uiAttrTypeSel : public uiGroup
26 {
27 public:
28  uiAttrTypeSel(uiParent*,bool sorted=true);
29  ~uiAttrTypeSel();
30  void fill(BufferStringSet* selgrps=0);
32 
33  const char* group() const;
34  const char* attr() const;
35  void setGrp(const char*);
36  void setAttr(const char*);
37 
39 
40  void add(const char* grp,const char* attr);
41  void update();
42  void setEmpty();
43 
44  static const char* sKeyAllGrp;
45 
46 protected:
47 
50 
54  int* idxs_;
55  bool sorted_;
56 
57  void grpSel(CallBacker*);
58  void attrSel(CallBacker*);
59  int curGrpIdx() const;
60  void updAttrNms(const char* s=0);
61  bool isPrefAttrib(int,const char*) const;
62 
63  void clear();
64 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
static const char * sKeyAllGrp
Definition: uiattrtypesel.h:44
bool sorted_
Definition: uiattrtypesel.h:55
void clear(std::ios &)
Combo box.
Definition: uicombobox.h:30
uiComboBox * attrfld_
Definition: uiattrtypesel.h:49
Definition: uiparent.h:24
Set of BufferString objects.
Definition: bufstringset.h:25
bool update(const DataInpSpec &s)
return false if not updated for whatever reason.
BufferStringSet grpnms_
Definition: uiattrtypesel.h:51
int * idxs_
Definition: uiattrtypesel.h:54
TypeSet< int > attrgroups_
Definition: uiattrtypesel.h:53
Selector for attribute type.
Definition: uiattrtypesel.h:25
Notifier< uiAttrTypeSel > selChg
Definition: uiattrtypesel.h:38
BufferStringSet attrnms_
Definition: uiattrtypesel.h:52
void setEmpty()
uiComboBox * grpfld_
Definition: uiattrtypesel.h:48

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