OpendTect-6_4  6.4
uilistboxchoiceio.h
Go to the documentation of this file.
1 #ifndef uilistboxchoiceio_h
2 #define uilistboxchoiceio_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jun 2014
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "bufstringset.h"
17 #include "callback.h"
18 #include "uistring.h"
19 class uiListBox;
20 class CtxtIOObj;
21 
22 
38 public:
39 
40  uiListBoxChoiceIO(uiListBox&,const char* omftypekey);
42 
43  // When store requested, fill with a key for each item:
44  BufferStringSet& keys() { return keys_; }
45 
46  // When read done:
47  const BufferStringSet& chosenNames() const { return chosennames_; }
48  const BufferStringSet& chosenKeys() const { return keys_; }
49  void setChosen(const BufferStringSet& names);
50 
53 
54 protected:
55 
60 
61  void readReqCB(CallBacker*);
62  void storeReqCB(CallBacker*);
63 
64 };
65 
66 
67 
68 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferStringSet keys_
Definition: uilistboxchoiceio.h:58
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Notifier< uiListBoxChoiceIO > storeRequested
opportunity to set the keys
Definition: uilistboxchoiceio.h:51
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferStringSet chosennames_
Definition: uilistboxchoiceio.h:59
Notifier< uiListBoxChoiceIO > readDone
now use setChosen
Definition: uilistboxchoiceio.h:52
const BufferStringSet & chosenNames() const
Definition: uilistboxchoiceio.h:47
Set of BufferString objects.
Definition: bufstringset.h:28
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:142
List Box.
Definition: uilistbox.h:75
BufferStringSet & keys()
Definition: uilistboxchoiceio.h:44
Allows save/restore of chosen items for a uiListBox.
Definition: uilistboxchoiceio.h:36
CtxtIOObj & ctio_
Definition: uilistboxchoiceio.h:57
const BufferStringSet & chosenKeys() const
Definition: uilistboxchoiceio.h:48
uiListBox & lb_
Definition: uilistboxchoiceio.h:56

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