OpendTect-6_4  6.4
uibatchjobdispatchersel.h
Go to the documentation of this file.
1 #ifndef uibatchjobdispatchersel_h
2 #define uibatchjobdispatchersel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jan 2014
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 #include "batchjobdispatch.h"
18 
20 class uiButton;
21 class uiCheckBox;
22 class uiGenInput;
23 class IOObj;
24 
25 
30 public:
31 
32  uiBatchJobDispatcherSel(uiParent*,bool optional,
35  uiBatchJobDispatcherSel(uiParent*,bool optional,
36  const Batch::JobSpec&);
37 
38  void jobSpecUpdated();
39  void setJobSpec(const Batch::JobSpec&);
40  void setJobName(const char*);
41  void setWantBatch(bool);
42 
43  Batch::JobSpec& jobSpec() { return jobspec_; }
44  uiString selected() const;
45  const uiString selectedInfo() const;
46  uiBatchJobDispatcherLauncher* selectedLauncher();
47 
48  bool wantBatch() const;
49  bool start();
50  bool saveProcPars(const IOObj&) const;
51 
54 
55 protected:
56 
59  uiButton* optsbut_;
60 
64 
65  void init(bool optional);
66  int selIdx() const;
67 
68  void initFlds(CallBacker*);
69  void selChg(CallBacker*);
70  void fldChck(CallBacker*);
71  void optsPush(CallBacker*);
72 
73  bool noLaunchersAvailable() const { return !optsbut_; }
74 };
75 
76 
77 #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
BufferString jobname_
Definition: uibatchjobdispatchersel.h:61
Definition: batchjobdispatch.h:30
Definition: ioobj.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool init()
uiGenInput * selfld_
only when isoptional
Definition: uibatchjobdispatchersel.h:57
Notifier< uiBatchJobDispatcherSel > selectionChange
Definition: uibatchjobdispatchersel.h:52
Definition: uistring.h:89
Definition: uiparent.h:26
the data we need to specify an OD batch job.
Definition: batchjobdispatch.h:26
Notifier< uiBatchJobDispatcherSel > checked
Definition: uibatchjobdispatchersel.h:53
uiCheckBox * dobatchbox_
Definition: uibatchjobdispatchersel.h:58
General Input Element.
Definition: uigeninput.h:58
Lets user select a batch job dispatcher suited for the job.
Definition: uibatchjobdispatchersel.h:28
Batch::JobSpec & jobSpec()
useful if isoptional
Definition: uibatchjobdispatchersel.h:43
ObjectSet< uiBatchJobDispatcherLauncher > uidispatchers_
Definition: uibatchjobdispatchersel.h:63
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiButton * optsbut_
Definition: uibatchjobdispatchersel.h:59
Batch::JobSpec jobspec_
Definition: uibatchjobdispatchersel.h:62
ProcType
Definition: batchjobdispatch.h:30
bool noLaunchersAvailable() const
Definition: uibatchjobdispatchersel.h:73
Definition: uibutton.h:134
launches the UI of a Batch::JobDispatcher
Definition: uibatchjobdispatcherlauncher.h:26

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