46 size_t CIDGroupTableSize,
47 const std::string &sequenceName,
48 size_t numAllowedEntries,
49 bool zeroEntriesAllowed,
50 const std::string &cidEntryDefault=
"");
90 #ifndef DicomCIDEditTagInterface_DEACTIVATE_PROTECTION
113 #ifndef DicomCIDEditTagInterface_DEACTIVATE_PROTECTION
123 const size_t _CIDGroupTableSize;
126 const std::string _sequenceName;
129 const size_t _numAllowedEntries;
132 const bool _zeroEntriesAllowed;
135 const std::string _cidEntryDefault;
140 BoolField *_makeCIDEditGUIInsensitiveFld;
Tables containing DICOM tables from Part 16.
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Field to encapsulate a boolean value.
Manages a module field interface to edit a list of CID value from a given table.
EnumField * _cidEntryFld
Enumerator field selecting one of the entries of the CIDGroupTable.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
NotifyField * _clearFld
Removes all entries from _contextGroupSequenceFld.
BoolField & getMakeGUIInsensitiveFld()
Return reference to _makeGUIInsensitiveFld to allow modules hosting this add to change sensitivity.
NotifyField * _prependEntryFld
Inserts the selected entry at first position to _contextGroupSequenceFld.
void handleFieldActivationChanges() override
Handle class changes according to Module::activateAttachments.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
DicomCIDEditTagInterface(Module &modRef, const char *const CIDGroupTable[][CIDGroups::NUM_CID_COLUMNS], size_t CIDGroupTableSize, const std::string &sequenceName, size_t numAllowedEntries, bool zeroEntriesAllowed, const std::string &cidEntryDefault="")
Constructor, setting the reference of the module for which the fields shall be managed.
virtual void setCIDEntryDefault()
Initializes _cidEntryFld to the default value as described for constructor parameter cidEntryDefault ...
bool isActive() const
Returns true if FieldAddOn is active,,otherwise false.
NotifyField * _appendEntryFld
Appends the selected entry to _contextGroupSequenceFld.
ReleaseToolsString::StringVector getCodeSequence() const
Returns the sequence of codes which is managed by the editor as string vector; always returns an empt...
void setActive(bool active)
Sets flag which (de)activates this FieldAddOn; if deactivated: checkConsistency always returns an emp...
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications according to Module::activateAttachments with a return of field change sta...
StringField * _contextGroupSequenceFld
The string containing the composition of CID entries separated by "/"; it is the field which typica...
void addFields() override
Add fields to field container of module.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Field to encapsulate an enumerated value.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for all fields used in the ML.
Base class for an image processing module of the ML.
Field without value for notifications.
Field to encapsulate a string value.
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree