![]() |
Kactus2
Kactus2 reference guide
|
Interface for editing filesets. More...
#include <FileSetInterface.h>
Public Member Functions | |
FileSetInterface (QSharedPointer< FileSetValidator > validator, QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter, FileInterface *fileInterface, FileBuilderInterface *fileBuilderInterface) | |
virtual | ~FileSetInterface ()=default |
void | addFileSet (int const &row, std::string const &newFileSetName=std::string("")) |
void | addFileSet (std::string const &newFileSetName=std::string("")) |
bool | fileSetExists (std::string const &fileSetName) const |
virtual int | getAllReferencesToIdInItem (const std::string &itemName, std::string const &valueID) const override final |
std::vector< std::string > | getDependencies (std::string const &fileSetName) const |
std::vector< std::string > | getExpressionsInSelectedFileSets (std::vector< std::string > fileSetNames) const |
FileBuilderInterface * | getFileBuilderInterface () const |
FileInterface * | getFileInterface () const |
std::vector< std::string > | getGroups (std::string const &fileSetName) const |
std::string | getIndexedItemName (int itemIndex) const final |
virtual int | getItemIndex (std::string const &itemName) const override final |
virtual std::vector< std::string > | getItemNames () const override final |
virtual int | itemCount () const override final |
virtual bool | itemHasValidName (std::string const &itemName) const override final |
bool | removeFileSet (std::string const &fileSetName) |
bool | setDependencies (std::string const &fileSetName, std::vector< std::string > const &newDependencies) |
void | setFileSets (QSharedPointer< QList< QSharedPointer< FileSet > > > newFileSets) |
bool | setGroups (std::string const &fileSetName, std::vector< std::string > const &newGroups) |
virtual bool | setName (std::string const ¤tName, std::string const &newName) override final |
virtual bool | validateItems () const override final |
![]() | |
ParameterizableInterface (const ParameterizableInterface &other)=delete | |
No copying. No assignment. | |
ParameterizableInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
virtual | ~ParameterizableInterface ()=default |
ParameterizableInterface & | operator= (const ParameterizableInterface &other)=delete |
![]() | |
NameGroupInterface () | |
NameGroupInterface (const NameGroupInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~NameGroupInterface ()=default |
virtual std::string | getDescription (std::string const &itemName) const |
virtual std::string | getDisplayName (std::string const &itemName) const |
virtual std::string | getShortDescription (std::string const &itemName) const |
NameGroupInterface & | operator= (const NameGroupInterface &other)=delete |
virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) |
virtual bool | setDisplayName (std::string const &itemName, std::string const &newDisplayName) const |
bool | setShortDescription (std::string const &itemName, std::string const &newShortDescription) const |
![]() | |
CommonInterface ()=default | |
CommonInterface (const CommonInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~CommonInterface ()=default |
CommonInterface & | operator= (const CommonInterface &other)=delete |
Additional Inherited Members | |
![]() | |
QString | formattedValueFor (QString const &expression) const |
QString | parseExpressionToBaseNumber (QString const &expression, unsigned int const &baseNumber, bool *expressionIsValid=nullptr) const |
QString | parseExpressionToDecimal (QString const &expression, bool *expressionIsValid=nullptr) const |
![]() | |
QString | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
Interface for editing filesets.
Definition at line 32 of file FileSetInterface.h.
FileSetInterface::FileSetInterface | ( | QSharedPointer< FileSetValidator > | validator, |
QSharedPointer< ExpressionParser > | expressionParser, | ||
QSharedPointer< ExpressionFormatter > | expressionFormatter, | ||
FileInterface * | fileInterface, | ||
FileBuilderInterface * | fileBuilderInterface ) |
The constructor.
[in] | validator | Validator for files. |
[in] | expressionParser | Parser for expressions. |
[in] | expressionFormatter | Formatter for expressions. |
[in] | fileInterface | Sub interface for files. |
[in] | fileBuilderInterface | Sub interface for file builders. |
|
virtualdefault |
The destructor.
void FileSetInterface::addFileSet | ( | int const & | row, |
std::string const & | newFileSetName = std::string("") ) |
Add a new file set, inserting it to a specified position given by row.
[in] | row | Row of the new file set. |
[in] | newFileSetName | Name of the new file set. |
void FileSetInterface::addFileSet | ( | std::string const & | newFileSetName = std::string("") | ) |
Add a new file set. This overload should be preferred when using Python.
[in] | newFileSetName | Name of the new file set. |
bool FileSetInterface::fileSetExists | ( | std::string const & | fileSetName | ) | const |
Check if the selected file set exists.
[in] | fileSetName | Name of the selected file set. |
|
finaloverridevirtual |
Calculate all the references to the selected ID in the selected item.
[in] | itemName | Name of the selected item. |
[in] | valueID | The selected ID. |
Implements ParameterizableInterface.
std::vector< std::string > FileSetInterface::getDependencies | ( | std::string const & | fileSetName | ) | const |
Get the dependencies of the selected file set.
[in] | fileSetName | Name of the selected file set. |
std::vector< std::string > FileSetInterface::getExpressionsInSelectedFileSets | ( | std::vector< std::string > | fileSetNames | ) | const |
Get the expressions in the selected file sets.
[in] | fileSetNames | Names of the selected file sets. |
FileBuilderInterface * FileSetInterface::getFileBuilderInterface | ( | ) | const |
Get the interface for accessing file builders.
FileInterface * FileSetInterface::getFileInterface | ( | ) | const |
Get the interface for accessing files.
std::vector< std::string > FileSetInterface::getGroups | ( | std::string const & | fileSetName | ) | const |
Get the groups of the selected file set.
[in] | fileSetName | Name of the selected file set. |
|
finalvirtual |
Get name of the indexed item.
[in] | itemIndex | Index of the selected item. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get index of the selected item.
[in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get the names of the available items.
Implements CommonInterface.
|
finaloverridevirtual |
|
finaloverridevirtual |
Check if the selected item has a valid name.
[in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
bool FileSetInterface::removeFileSet | ( | std::string const & | fileSetName | ) |
Remove the selected file set.
[in] | fileSetName | Name of the selected file set. |
bool FileSetInterface::setDependencies | ( | std::string const & | fileSetName, |
std::vector< std::string > const & | newDependencies ) |
Set new dependencies for the selected item.
[in] | fileSetName | Name of the selected file set. |
[in] | newDependencies | The new dependencies. |
void FileSetInterface::setFileSets | ( | QSharedPointer< QList< QSharedPointer< FileSet > > > | newFileSets | ) |
Set available file sets.
[in] | newFileSets | The new file sets. |
bool FileSetInterface::setGroups | ( | std::string const & | fileSetName, |
std::vector< std::string > const & | newGroups ) |
Set new groups for the selected item.
[in] | fileSetName | Name of the selected file set. |
[in] | newGroups | The new groups. |
|
finaloverridevirtual |
Set a new name for the selected item.
[in] | currentName | Name of the selected item. |
[in] | newName | New name for the item. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Validates the contained items.
Implements CommonInterface.