OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 #include "batchjobdispatch.h"
17 
19 class uiButton;
20 class uiCheckBox;
21 class uiGenInput;
22 class IOObj;
23 
24 
29 public:
30 
31  mUseType( Batch, JobSpec );
32  mUseType( JobSpec, ProcType );
33 
35  ProcType pt=JobSpec::NonODBase,
38  const JobSpec&);
39 
41  void setJobSpec(const JobSpec&);
42  void setJobName(const char*);
43  void setWantBatch(bool);
44 
45  JobSpec& jobSpec() { return jobspec_; }
46  uiString selected() const;
47  const uiString selectedInfo() const;
49 
50  bool wantBatch() const;
51  bool start();
52  bool start(Batch::ID&);
53  bool saveProcPars(const IOObj&) const;
54 
57 
58 protected:
59 
60  uiGenInput* selfld_ = nullptr;
61  uiCheckBox* dobatchbox_ = nullptr;
62  uiButton* optsbut_;
63 
64  BufferString jobname_ = "batch_processing";
65  JobSpec jobspec_;
67 
68  void init(bool optional);
69  int selIdx() const;
70 
75 
76  bool noLaunchersAvailable() const { return !optsbut_; }
77 
78 };
uiBatchJobDispatcherSel::setJobName
void setJobName(const char *)
OS::LaunchType
LaunchType
Definition: oscommand.h:26
uiBatchJobDispatcherSel::selectedInfo
const uiString selectedInfo() const
uiBatchJobDispatcherSel::start
bool start(Batch::ID &)
mUseType
#define mUseType(scope, typ)
Definition: commondefs.h:146
ObjectSet< uiBatchJobDispatcherLauncher >
uiBatchJobDispatcherSel::jobSpecUpdated
void jobSpecUpdated()
uiBatchJobDispatcherSel::noLaunchersAvailable
bool noLaunchersAvailable() const
Definition: uibatchjobdispatchersel.h:76
uiBatchJobDispatcherSel::fldChck
void fldChck(CallBacker *)
uiBatchJobDispatcherSel::init
void init(bool optional)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiCheckBox
Definition: uibutton.h:167
uiBatchJobDispatcherSel::uiBatchJobDispatcherSel
uiBatchJobDispatcherSel(uiParent *, bool optional, ProcType pt=JobSpec::NonODBase, OS::LaunchType type=OS::Batch)
uiBatchJobDispatcherSel::selectionChange
Notifier< uiBatchJobDispatcherSel > selectionChange
Definition: uibatchjobdispatchersel.h:55
uiBatchJobDispatcherSel::jobspec_
JobSpec jobspec_
Definition: uibatchjobdispatchersel.h:65
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiBatchJobDispatcherSel::checked
Notifier< uiBatchJobDispatcherSel > checked
Definition: uibatchjobdispatchersel.h:56
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uigroup.h
uiBatchJobDispatcherSel::setWantBatch
void setWantBatch(bool)
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiBatchJobDispatcherSel::jobSpec
JobSpec & jobSpec()
useful if isoptional
Definition: uibatchjobdispatchersel.h:45
uiBatchJobDispatcherSel::start
bool start()
can be false if isoptional
uiBatchJobDispatcherLauncher
launches the UI of a Batch::JobDispatcher
Definition: uibatchjobdispatcherlauncher.h:29
uiBatchJobDispatcherSel::selChg
void selChg(CallBacker *)
uiBatchJobDispatcherSel::saveProcPars
bool saveProcPars(const IOObj &) const
uiBatchJobDispatcherSel::selIdx
int selIdx() const
uiGroup
Definition: uigroup.h:54
uiBatchJobDispatcherSel::wantBatch
bool wantBatch() const
Notifier< uiBatchJobDispatcherSel >
IOObj
Definition: ioobj.h:58
batchjobdispatch.h
uiBatchJobDispatcherSel::optsbut_
uiButton * optsbut_
Definition: uibatchjobdispatchersel.h:62
uiBatchJobDispatcherSel
Lets user select a batch job dispatcher suited for the job.
Definition: uibatchjobdispatchersel.h:28
OS::Batch
@ Batch
Definition: oscommand.h:26
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiBatchJobDispatcherSel::mUseType
mODTextTranslationClass(uiBatchJobDispatcherSel) public mUseType(JobSpec, ProcType)
Batch
Definition: batchjobdispatch.h:22
uiBatchJobDispatcherSel::selectedLauncher
uiBatchJobDispatcherLauncher * selectedLauncher()
uiBatchJobDispatcherSel::uidispatchers_
ObjectSet< uiBatchJobDispatcherLauncher > uidispatchers_
Definition: uibatchjobdispatchersel.h:66
Batch::ID
int ID
Definition: batchjobdispatch.h:24
uiParent
Definition: uiparent.h:26
uiBatchJobDispatcherSel::initFlds
void initFlds(CallBacker *)
uiBatchJobDispatcherSel::selected
uiString selected() const
uiBatchJobDispatcherSel::optsPush
void optsPush(CallBacker *)
uiBatchJobDispatcherSel::setJobSpec
void setJobSpec(const JobSpec &)
uiBatchJobDispatcherSel::uiBatchJobDispatcherSel
uiBatchJobDispatcherSel(uiParent *, bool optional, const JobSpec &)

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