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

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