|
creaContours_lib
|
#include <CommandsRegisterStructure.h>
Public Member Functions | |
| CommandsRegisterStructure () | |
| ~CommandsRegisterStructure () | |
| void | registerCommand (CommandObject *theCommand) |
| void | clearActions () |
| bool | moveBack_Actual () |
| bool | moveForward_Actual () |
| bool | moveBack_Last () |
| bool | moveForward_Last () |
| bool | hasLastNext () |
| bool | hasActualNext () |
| bool | hasLastPrevious () |
| bool | hasActualPrevious () |
| void | levelActualToLast () |
| void | levelLastToActual (bool clearingAfterLast=true) |
| void | clearAll_afterLast () |
| void | clearAll_beforeActual () |
| bool | isEmpty () |
| int | getCommandsCount () |
| CommandObject * | getActual_Pointer () |
| CommandObject * | getLast_Pointer () |
| CommandObject * | getCommandAt (int position) |
| int | getActualIndex () |
| int | getLasIndex () |
| void | setActualIndex (int newActualIndex) |
| void | setLasIndex (int newLasIndex) |
| int | getRegistereCommandsCount () |
| int | getTotalCommandsCount () |
Private Attributes | |
| std::vector< CommandObject * > | registeredActions |
| int | actualIndexToExec |
| int | lastAction |
Definition at line 37 of file CommandsRegisterStructure.h.
| CommandsRegisterStructure::CommandsRegisterStructure | ( | ) |
Definition at line 44 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, and lastAction.
| CommandsRegisterStructure::~CommandsRegisterStructure | ( | ) |
Definition at line 53 of file CommandsRegisterStructure.cxx.
References clearActions().

| void CommandsRegisterStructure::clearActions | ( | ) |
Definition at line 99 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, lastAction, and registeredActions.
Referenced by CommandsHandler::clearActions(), and ~CommandsRegisterStructure().

| void CommandsRegisterStructure::clearAll_afterLast | ( | ) |
Definition at line 241 of file CommandsRegisterStructure.cxx.
References lastAction, and registeredActions.
| void CommandsRegisterStructure::clearAll_beforeActual | ( | ) |
Definition at line 255 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, lastAction, and registeredActions.
| CommandObject * CommandsRegisterStructure::getActual_Pointer | ( | ) |
Definition at line 290 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, and getCommandAt().
Referenced by CommandsHandler::getActual_REDO(), and CommandsHandler::getActual_UNDO().


| int CommandsRegisterStructure::getActualIndex | ( | ) |
Definition at line 321 of file CommandsRegisterStructure.cxx.
References actualIndexToExec.
Referenced by CommandsHandler::registerCommand().

| CommandObject * CommandsRegisterStructure::getCommandAt | ( | int | position | ) |
Definition at line 308 of file CommandsRegisterStructure.cxx.
References getCommandsCount(), and registeredActions.
Referenced by CommandsHandler::get_DO_CommandAt(), CommandsHandler::get_UNDO_CommandAt(), getActual_Pointer(), and getLast_Pointer().


| int CommandsRegisterStructure::getCommandsCount | ( | ) |
Indicates the quantity of actions that are registered
Definition at line 281 of file CommandsRegisterStructure.cxx.
References registeredActions.
Referenced by getCommandAt().

| int CommandsRegisterStructure::getLasIndex | ( | ) |
Definition at line 330 of file CommandsRegisterStructure.cxx.
References lastAction.
| CommandObject * CommandsRegisterStructure::getLast_Pointer | ( | ) |
Definition at line 299 of file CommandsRegisterStructure.cxx.
References getCommandAt(), and lastAction.

| int CommandsRegisterStructure::getRegistereCommandsCount | ( | ) |
Definition at line 357 of file CommandsRegisterStructure.cxx.
References registeredActions.
| int CommandsRegisterStructure::getTotalCommandsCount | ( | ) |
Definition at line 366 of file CommandsRegisterStructure.cxx.
References registeredActions.
Referenced by CommandsHandler::getTotalCommands().

| bool CommandsRegisterStructure::hasActualNext | ( | ) |
Definition at line 183 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, and registeredActions.
Referenced by moveForward_Actual(), CommandsHandler::redo(), CommandsHandler::undo(), and CommandsHandler::validateOperationsAvaliability().

| bool CommandsRegisterStructure::hasActualPrevious | ( | ) |
Definition at line 202 of file CommandsRegisterStructure.cxx.
References actualIndexToExec.
Referenced by moveBack_Actual(), CommandsHandler::redo(), CommandsHandler::undo(), and CommandsHandler::validateOperationsAvaliability().

| bool CommandsRegisterStructure::hasLastNext | ( | ) |
Definition at line 173 of file CommandsRegisterStructure.cxx.
References lastAction, and registeredActions.
Referenced by moveForward_Last(), CommandsHandler::redo(), and CommandsHandler::undo().

| bool CommandsRegisterStructure::hasLastPrevious | ( | ) |
Definition at line 193 of file CommandsRegisterStructure.cxx.
References lastAction.
Referenced by moveBack_Last().

| bool CommandsRegisterStructure::isEmpty | ( | ) |
Indicates if there are actions in the vector of not
Definition at line 272 of file CommandsRegisterStructure.cxx.
References registeredActions.
Referenced by levelLastToActual(), moveBack_Actual(), moveBack_Last(), moveForward_Actual(), and moveForward_Last().

| void CommandsRegisterStructure::levelActualToLast | ( | ) |
Definition at line 210 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, and lastAction.
| void CommandsRegisterStructure::levelLastToActual | ( | bool | clearingAfterLast = true | ) |
Definition at line 220 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, isEmpty(), lastAction, and registeredActions.
Referenced by registerCommand().


| bool CommandsRegisterStructure::moveBack_Actual | ( | ) |
Definition at line 117 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, hasActualPrevious(), and isEmpty().
Referenced by CommandsHandler::undo().


| bool CommandsRegisterStructure::moveBack_Last | ( | ) |
Definition at line 145 of file CommandsRegisterStructure.cxx.
References hasLastPrevious(), isEmpty(), and lastAction.
Referenced by CommandsHandler::redo(), and CommandsHandler::undo().


| bool CommandsRegisterStructure::moveForward_Actual | ( | ) |
Definition at line 131 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, hasActualNext(), and isEmpty().
Referenced by CommandsHandler::redo().


| bool CommandsRegisterStructure::moveForward_Last | ( | ) |
Definition at line 159 of file CommandsRegisterStructure.cxx.
References hasLastNext(), isEmpty(), and lastAction.
Referenced by CommandsHandler::redo().


| void CommandsRegisterStructure::registerCommand | ( | CommandObject * | theCommand | ) |
Registers a command in the vector with no verification, is should be well constructed
| theCommand | The command to register |
Definition at line 66 of file CommandsRegisterStructure.cxx.
References actualIndexToExec, lastAction, levelLastToActual(), and registeredActions.
Referenced by CommandsHandler::registerCommand().


| void CommandsRegisterStructure::setActualIndex | ( | int | newActualIndex | ) |
Definition at line 339 of file CommandsRegisterStructure.cxx.
References actualIndexToExec.
Referenced by CommandsHandler::registerCommand().

| void CommandsRegisterStructure::setLasIndex | ( | int | newLasIndex | ) |
Definition at line 348 of file CommandsRegisterStructure.cxx.
References lastAction.
|
private |
Definition at line 237 of file CommandsRegisterStructure.h.
Referenced by clearActions(), clearAll_beforeActual(), CommandsRegisterStructure(), getActual_Pointer(), getActualIndex(), hasActualNext(), hasActualPrevious(), levelActualToLast(), levelLastToActual(), moveBack_Actual(), moveForward_Actual(), registerCommand(), and setActualIndex().
|
private |
Definition at line 243 of file CommandsRegisterStructure.h.
Referenced by clearActions(), clearAll_afterLast(), clearAll_beforeActual(), CommandsRegisterStructure(), getLasIndex(), getLast_Pointer(), hasLastNext(), hasLastPrevious(), levelActualToLast(), levelLastToActual(), moveBack_Last(), moveForward_Last(), registerCommand(), and setLasIndex().
|
private |
Definition at line 231 of file CommandsRegisterStructure.h.
Referenced by clearActions(), clearAll_afterLast(), clearAll_beforeActual(), getCommandAt(), getCommandsCount(), getRegistereCommandsCount(), getTotalCommandsCount(), hasActualNext(), hasLastNext(), isEmpty(), levelLastToActual(), and registerCommand().