#include <algorithms.h>
Public Member Functions | |
BasicAlgorithmWithSettings (bool preserveNames=false, bool preserveLabels=false) | |
bool | hasSettingsDialog () const |
void | runSettingsDialog (QWidget *parent) |
algorithm's settings | |
bool | preserveNames () const |
bool | preserveLabels () const |
void | setPreserveNames (bool preserve) |
void | setPreserveLabels (bool preserve) |
Protected Member Functions | |
QString | chooseStateLabel (const QStringList &labelList, int num) const |
QString | chooseStateName (QSharedPointer< IAutomaton > &automaton, const QStringList &nameList, int num) const |
Private Attributes | |
bool | m_preserveLabels |
bool | m_preserveNames |
Definition at line 63 of file algorithms.h.
BasicAlgorithmWithSettings::BasicAlgorithmWithSettings | ( | bool | preserveNames = false , |
|
bool | preserveLabels = false | |||
) |
Definition at line 256 of file algorithms.cpp.
QString BasicAlgorithmWithSettings::chooseStateLabel | ( | const QStringList & | labelList, | |
int | num | |||
) | const [protected] |
Definition at line 285 of file algorithms.cpp.
References preserveLabels().
Referenced by IntersectionParallelAlgorithm::runInternal(), UniteParallelAlgorithm::runInternal(), and DeterminizeAlgorithm::runInternal().
QString BasicAlgorithmWithSettings::chooseStateName | ( | QSharedPointer< IAutomaton > & | automaton, | |
const QStringList & | nameList, | |||
int | num | |||
) | const [protected] |
Definition at line 272 of file algorithms.cpp.
References BasicAlgorithm::makeSureNameUnique(), and preserveNames().
Referenced by IntersectionParallelAlgorithm::runInternal(), UniteParallelAlgorithm::runInternal(), and DeterminizeAlgorithm::runInternal().
bool BasicAlgorithmWithSettings::hasSettingsDialog | ( | ) | const [inline, virtual] |
Reimplemented from BasicAlgorithm.
Definition at line 68 of file algorithms.h.
bool BasicAlgorithmWithSettings::preserveLabels | ( | ) | const [inline] |
Definition at line 74 of file algorithms.h.
References m_preserveLabels.
Referenced by chooseStateLabel(), and SettingsDialog::SettingsDialog().
bool BasicAlgorithmWithSettings::preserveNames | ( | ) | const [inline] |
Definition at line 73 of file algorithms.h.
References m_preserveNames.
Referenced by chooseStateName(), and SettingsDialog::SettingsDialog().
void BasicAlgorithmWithSettings::runSettingsDialog | ( | QWidget * | parent | ) | [virtual] |
Reimplemented from BasicAlgorithm.
Definition at line 260 of file algorithms.cpp.
References SettingsDialog::preserveLabels(), SettingsDialog::preserveNames(), setPreserveLabels(), and setPreserveNames().
void BasicAlgorithmWithSettings::setPreserveLabels | ( | bool | preserve | ) | [inline] |
Definition at line 76 of file algorithms.h.
References m_preserveLabels.
Referenced by runSettingsDialog().
void BasicAlgorithmWithSettings::setPreserveNames | ( | bool | preserve | ) | [inline] |
Definition at line 75 of file algorithms.h.
References m_preserveNames.
Referenced by runSettingsDialog().
bool BasicAlgorithmWithSettings::m_preserveLabels [private] |
Definition at line 86 of file algorithms.h.
Referenced by preserveLabels(), and setPreserveLabels().
bool BasicAlgorithmWithSettings::m_preserveNames [private] |
Definition at line 85 of file algorithms.h.
Referenced by preserveNames(), and setPreserveNames().