OpendTect  6.3
uibatchjobdispatchersel.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: Jan 2014
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uitoolsmod.h"
14 #include "uigroup.h"
15 #include "batchjobdispatch.h"
16 
18 class uiButton;
19 class uiCheckBox;
20 class uiGenInput;
21 
22 
27 public:
28 
29  uiBatchJobDispatcherSel(uiParent*,bool optional,
32  uiBatchJobDispatcherSel(uiParent*,bool optional,
33  const Batch::JobSpec&);
34 
35  void jobSpecUpdated();
36  void setJobSpec(const Batch::JobSpec&);
37  void setJobName(const char*);
38  void setWantBatch(bool);
39 
40  Batch::JobSpec& jobSpec() { return jobspec_; }
41  uiString selected() const;
42  const uiString selectedInfo() const;
43  uiBatchJobDispatcherLauncher* selectedLauncher();
44 
45  bool wantBatch() const;
46  bool start();
47 
50 
51 protected:
52 
55  uiButton* optsbut_;
56 
60 
61  void init(bool optional);
62  int selIdx() const;
63 
64  void initFlds(CallBacker*);
65  void selChg(CallBacker*);
66  void fldChck(CallBacker*);
67  void optsPush(CallBacker*);
68 
69  bool noLaunchersAvailable() const { return !optsbut_; }
70 };
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
BufferString jobname_
Definition: uibatchjobdispatchersel.h:57
Definition: batchjobdispatch.h:28
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
bool init()
uiGenInput * selfld_
only when isoptional
Definition: uibatchjobdispatchersel.h:53
Notifier< uiBatchJobDispatcherSel > selectionChange
Definition: uibatchjobdispatchersel.h:48
Definition: uistring.h:88
Definition: uiparent.h:24
the data we need to specify an OD batch job.
Definition: batchjobdispatch.h:24
Notifier< uiBatchJobDispatcherSel > checked
Definition: uibatchjobdispatchersel.h:49
uiCheckBox * dobatchbox_
Definition: uibatchjobdispatchersel.h:54
General Input Element.
Definition: uigeninput.h:56
Lets user select a batch job dispatcher suited for the job.
Definition: uibatchjobdispatchersel.h:25
Batch::JobSpec & jobSpec()
useful if isoptional
Definition: uibatchjobdispatchersel.h:40
ObjectSet< uiBatchJobDispatcherLauncher > uidispatchers_
Definition: uibatchjobdispatchersel.h:59
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
uiButton * optsbut_
Definition: uibatchjobdispatchersel.h:55
Batch::JobSpec jobspec_
Definition: uibatchjobdispatchersel.h:58
ProcType
Definition: batchjobdispatch.h:28
bool noLaunchersAvailable() const
Definition: uibatchjobdispatchersel.h:69
Definition: uibutton.h:130
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. 2017