Interface for editing file builders.
More...
#include <FileBuilderInterface.h>
Interface for editing file builders.
Definition at line 29 of file FileBuilderInterface.h.
◆ FileBuilderInterface()
The constructor.
- Parameters
-
[in] | expressionParser | Parser for expressions. |
[in] | expressionFormatter | Formatter for expressions. |
◆ ~FileBuilderInterface()
virtual FileBuilderInterface::~FileBuilderInterface |
( |
| ) |
|
|
virtualdefault |
◆ addFileBuilder() [1/2]
void FileBuilderInterface::addFileBuilder |
( |
int const & | row, |
|
|
std::string const & | newFileBuilderName = std::string("") ) |
Add a new file builder, inserting it to the position given by row.
- Parameters
-
[in] | row | Row of the new file builder. |
[in] | newFileBuilderName | Name of the new file builder. |
◆ addFileBuilder() [2/2]
void FileBuilderInterface::addFileBuilder |
( |
std::string const & | newFileBuilderName = std::string("") | ) |
|
Add a new file builder. This overload should be preferred when using Python.
- Parameters
-
[in] | newFileBuilderName | Name of the new file builder. |
◆ getAllReferencesToIdInItem()
virtual int FileBuilderInterface::getAllReferencesToIdInItem |
( |
const std::string & | itemName, |
|
|
std::string const & | valueID ) const |
|
finaloverridevirtual |
Calculate all the references to the selected ID in the selected item.
- Parameters
-
[in] | itemName | Name of the selected item. |
[in] | valueID | The selected ID. |
- Returns
- Number of references to the selected ID in the selected item.
Implements ParameterizableInterface.
◆ getCommand()
std::string FileBuilderInterface::getCommand |
( |
std::string const & | fileType | ) |
const |
Get the command of the selected item.
- Parameters
-
[in] | fileType | File type of the selected item. |
- Returns
- Command of the selected item.
◆ getExpressionsInSelectedFileBuilders()
std::vector< std::string > FileBuilderInterface::getExpressionsInSelectedFileBuilders |
( |
std::vector< std::string > | fileBuilderNames | ) |
const |
Get the expressions in the selected file builders.
- Parameters
-
[in] | fileBuilderNames | Names of the selected file builders. |
- Returns
- The expressions of the selected file builders.
◆ getFlags()
std::string FileBuilderInterface::getFlags |
( |
std::string const & | fileType | ) |
const |
Get the flags of the selected item.
- Parameters
-
[in] | fileType | File type of the selected item. |
- Returns
- Flags of the selected item.
◆ getIndexedFileType()
std::string FileBuilderInterface::getIndexedFileType |
( |
int const & | itemIndex | ) |
|
Get the file type of the indexed file builder.
- Parameters
-
[in] | itemIndex | Index of the selected file builder. |
- Returns
- File type of the selected file builder.
◆ getItemNames()
virtual std::vector< std::string > FileBuilderInterface::getItemNames |
( |
| ) |
const |
|
finaloverridevirtual |
Get the names of the available items.
- Returns
- Names of the available items.
Implements CommonInterface.
◆ getReplaceDefaultFlagsExpression()
std::string FileBuilderInterface::getReplaceDefaultFlagsExpression |
( |
std::string const & | fileType | ) |
const |
Get the replace default flags expression of the selected item.
- Parameters
-
[in] | fileType | The selected file type. |
- Returns
- Replace default flags expression of the selected file.
◆ getReplaceDefaultFlagsFormattedExpression()
std::string FileBuilderInterface::getReplaceDefaultFlagsFormattedExpression |
( |
std::string const & | fileType | ) |
const |
Get the formatted replace default flags expression of the selected item.
- Parameters
-
[in] | fileType | The selected file type. |
- Returns
- Formatted replace default flags expression of the selected item.
◆ getReplaceDefaultFlagsValue()
std::string FileBuilderInterface::getReplaceDefaultFlagsValue |
( |
std::string const & | fileType, |
|
|
int const & | baseNumber = 0 ) const |
Get the calculated replace default flags value of the selected item.
- Parameters
-
[in] | fileType | The selected file type. |
[in] | baseNumber | Base for displaying the value. |
- Returns
- Calculated replace default flags value of the selected item.
◆ itemCount()
virtual int FileBuilderInterface::itemCount |
( |
| ) |
const |
|
finaloverridevirtual |
Get the number of available items.
- Returns
- Number of available items.
Implements CommonInterface.
◆ removeFileBuilder()
bool FileBuilderInterface::removeFileBuilder |
( |
std::string const & | fileBuilderName | ) |
|
Remove the selected file builder.
- Parameters
-
[in] | fileBuilderName | Name of the selected file builder. |
- Returns
- True, if successful, false otherwise.
◆ setCommand()
bool FileBuilderInterface::setCommand |
( |
std::string const & | fileType, |
|
|
std::string const & | newCommand ) |
Set a new command for the selected item.
- Parameters
-
[in] | fileType | File type of the selected item. |
[in] | newCommand | The new command for the item. |
- Returns
- True, if successful, false otherwise.
◆ setFileBuilders()
void FileBuilderInterface::setFileBuilders |
( |
QSharedPointer< QList< QSharedPointer< FileBuilder > > > | newFileBuilders | ) |
|
Set available file builders.
- Parameters
-
[in] | newFileBuilders | The new file builders. |
◆ setFileType()
bool FileBuilderInterface::setFileType |
( |
std::string const & | currentFileType, |
|
|
std::string const & | newFileType ) |
Set a new file type for the selected item.
- Parameters
-
[in] | currentFileType | File type of the selected item. |
[in] | newFileType | The new file type for the item. |
- Returns
- True, if successful, false otherwise.
◆ setFlags()
bool FileBuilderInterface::setFlags |
( |
std::string const & | fileType, |
|
|
std::string const & | newFlags ) |
Set new flags value for the selected item.
- Parameters
-
[in] | fileType | File type of the selected item. |
[in] | newFlags | The new flags value. |
- Returns
- True, if successful, false otherwise.
◆ setReplaceDefaultFlags()
bool FileBuilderInterface::setReplaceDefaultFlags |
( |
std::string const & | filetype, |
|
|
std::string const & | newReplaceDefaultFlags ) |
Set a new replace default flags value for the selected item.
- Parameters
-
[in] | fileType | The selected file type. |
[in] | newReplaceDefaultFlags | New replace default flags value. |
- Returns
- True, if successful, false otherwise.
◆ validateItems()
virtual bool FileBuilderInterface::validateItems |
( |
| ) |
const |
|
virtual |
Validates the contained items.
- Returns
- True, if all the items are valid, false otherwise.
Implements CommonInterface.
The documentation for this class was generated from the following file: