#include <albaOpManager.h>
Definition at line 61 of file albaOpManager.h.
◆ albaOpManager()
albaOpManager::albaOpManager |
( |
| ) |
|
◆ ~albaOpManager()
virtual albaOpManager::~albaOpManager |
( |
| ) |
|
|
virtual |
◆ SetListener()
virtual void albaOpManager::SetListener |
( |
albaObserver * |
Listener | ) |
|
|
inlinevirtual |
◆ OnEvent()
process the events sent by subjects
Implements albaObserver.
◆ OpAdd()
virtual void albaOpManager::OpAdd |
( |
albaOp * |
op, |
|
|
wxString |
menuPath = "" , |
|
|
bool |
can_undo = true , |
|
|
albaGUISettings * |
setting = NULL |
|
) |
| |
|
virtual |
Event IDs used in collaborative modality.
Add the operation 'op' to the list of available operations.
◆ FillMenu()
virtual void albaOpManager::FillMenu |
( |
wxMenu * |
import, |
|
|
wxMenu * |
mexport, |
|
|
wxMenu * |
operations |
|
) |
| |
|
virtual |
Fill the application men with the operations name.
◆ FillSettingDialog()
Fill the setting dialog with the settings associated to the plugged operations.
◆ VmeSelected()
virtual void albaOpManager::VmeSelected |
( |
albaVME * |
v | ) |
|
|
virtual |
Record the selected vme and enable the menu_entries relative to the compatible operations.
◆ VmeModified()
virtual void albaOpManager::VmeModified |
( |
albaVME * |
v | ) |
|
|
virtual |
Record the modified vme and enable the menu_entries relative to the compatible operations.
◆ VmeRemove()
virtual void albaOpManager::VmeRemove |
( |
albaVME * |
v | ) |
|
|
virtual |
Vme removed notification.
◆ GetSelectedVme()
virtual albaVME * albaOpManager::GetSelectedVme |
( |
| ) |
|
|
virtual |
◆ OpRun() [1/3]
virtual void albaOpManager::OpRun |
( |
int |
op_id | ) |
|
|
virtual |
◆ OpRun() [2/3]
virtual void albaOpManager::OpRun |
( |
albaOp * |
op, |
|
|
void * |
op_param = NULL |
|
) |
| |
|
virtual |
Call this to exec an operation with user interaction and undo/redo services.
◆ OpRun() [3/3]
virtual void albaOpManager::OpRun |
( |
albaString & |
op_type, |
|
|
void * |
op_param = NULL |
|
) |
| |
|
virtual |
Run the operation by searching it from its type name.
◆ RunOpAddGroup()
void albaOpManager::RunOpAddGroup |
( |
| ) |
|
◆ RunOpCut()
void albaOpManager::RunOpCut |
( |
| ) |
|
◆ RunOpCopy()
void albaOpManager::RunOpCopy |
( |
| ) |
|
◆ RunOpPaste()
void albaOpManager::RunOpPaste |
( |
| ) |
|
◆ RunOpDelete()
void albaOpManager::RunOpDelete |
( |
| ) |
|
◆ RunOpRename()
void albaOpManager::RunOpRename |
( |
| ) |
|
◆ RunOpReparentTo()
void albaOpManager::RunOpReparentTo |
( |
| ) |
|
◆ RunOpShowHistory()
void albaOpManager::RunOpShowHistory |
( |
| ) |
|
◆ OpExec()
virtual void albaOpManager::OpExec |
( |
albaOp * |
op | ) |
|
|
virtual |
Execute the operation 'op' and warn the user if the operation is undoable.
◆ OpSelect()
virtual void albaOpManager::OpSelect |
( |
albaVME * |
v | ) |
|
|
virtual |
Execute the select operation.
◆ WarningIfCantUndo()
virtual void albaOpManager::WarningIfCantUndo |
( |
bool |
warn | ) |
|
|
inlinevirtual |
Set the flag for warning the user if the operation is undoable.
Definition at line 120 of file albaOpManager.h.
◆ SetToolbar()
virtual void albaOpManager::SetToolbar |
( |
wxToolBar * |
tb | ) |
|
|
inlinevirtual |
◆ SetMenubar()
virtual void albaOpManager::SetMenubar |
( |
wxMenuBar * |
mb | ) |
|
|
inlinevirtual |
◆ Running()
virtual bool albaOpManager::Running |
( |
| ) |
|
|
inlinevirtual |
return true if there is a running operation.
Definition at line 129 of file albaOpManager.h.
◆ ClearUndoStack()
virtual void albaOpManager::ClearUndoStack |
( |
| ) |
|
|
virtual |
Clear the stack of executed operation.
◆ ForceStopWithOk()
virtual bool albaOpManager::ForceStopWithOk |
( |
| ) |
|
|
virtual |
Try to Stop the Current operation with OK condition.
◆ ForceStopWithCancel()
virtual bool albaOpManager::ForceStopWithCancel |
( |
| ) |
|
|
virtual |
Try to Stop the Current Stop operation with CANCEL condition.
◆ StopCurrentOperation()
virtual bool albaOpManager::StopCurrentOperation |
( |
| ) |
|
|
virtual |
Stop the current operation in any case - to be used as last resort.
◆ EnableContextualMenu()
◆ GetRunningOperation()
albaOp * albaOpManager::GetRunningOperation |
( |
| ) |
|
Return the current running operation.
Return NULL if no operation is running.
◆ GetOperationById()
albaOp * albaOpManager::GetOperationById |
( |
int |
id | ) |
|
Return an instance of operation from id.
◆ SetMouse()
Initialize the action for the mouse device.
◆ RefreshMenu()
void albaOpManager::RefreshMenu |
( |
| ) |
|
Called by logic to refresh the operation's menù items.
◆ SetMafUser()
void albaOpManager::SetMafUser |
( |
albaUser * |
user | ) |
|
◆ GetMafUser()
albaUser * albaOpManager::GetMafUser |
( |
| ) |
|
|
inline |
◆ EnableOp()
virtual void albaOpManager::EnableOp |
( |
bool |
CanEnable = true | ) |
|
|
virtual |
Enable/Disable the men items operation.
◆ GetBuildNum()
◆ SetBuildNum()
◆ OpDo()
virtual void albaOpManager::OpDo |
( |
albaOp * |
op | ) |
|
|
protectedvirtual |
Execute the current operation.
◆ OpRunOk()
virtual void albaOpManager::OpRunOk |
( |
albaOp * |
op | ) |
|
|
protectedvirtual |
This method is called if the operation must be executed.
◆ OpRunCancel()
virtual void albaOpManager::OpRunCancel |
( |
albaOp * |
op | ) |
|
|
protectedvirtual |
The operation is not executed and is deleted.
◆ OpUndo()
virtual void albaOpManager::OpUndo |
( |
| ) |
|
|
protectedvirtual |
Execute the 'UnDo' method of the operation.
◆ OpRedo()
virtual void albaOpManager::OpRedo |
( |
| ) |
|
|
protectedvirtual |
Execute the 'Do' method of the operation.
◆ WarnUser()
virtual bool albaOpManager::WarnUser |
( |
albaOp * |
op | ) |
|
|
protectedvirtual |
Warn the user if the operation is undoable.
◆ Notify()
virtual void albaOpManager::Notify |
( |
int |
msg, |
|
|
long |
arg = 0L |
|
) |
| |
|
protectedvirtual |
Sent a string message to the listener.
◆ EnableToolbar()
virtual void albaOpManager::EnableToolbar |
( |
bool |
CanEnable = true | ) |
|
|
protectedvirtual |
Enable/Disable the toolbar's buttons.
◆ FillTraceabilityAttribute()
void albaOpManager::FillTraceabilityAttribute |
( |
albaOp * |
op, |
|
|
albaVME * |
in_node, |
|
|
albaVME * |
out_node |
|
) |
| |
|
protected |
Fill the attribute for traceability events.
◆ SetAccelerator()
void albaOpManager::SetAccelerator |
( |
albaOp * |
op | ) |
|
|
protected |
◆ albaOpManagerTest
friend class albaOpManagerTest |
|
friend |
◆ m_Mouse
◆ m_Warn
bool albaOpManager::m_Warn |
|
protected |
Flag to warn the user when an operation that can not undo is starting.
Definition at line 205 of file albaOpManager.h.
◆ m_Context
◆ m_RunningOp
albaOp* albaOpManager::m_RunningOp |
|
protected |
◆ m_Menu
wxMenu* albaOpManager::m_Menu[3] |
|
protected |
Array of pointers to the menu 'Operations', 'Importer' and 'Exporter'.
Definition at line 208 of file albaOpManager.h.
◆ m_Selected
◆ m_NaturalNode
albaVME* albaOpManager::m_NaturalNode |
|
protected |
Pointer to the NATURAL node on which is running a non-input preserving operation.
Definition at line 210 of file albaOpManager.h.
◆ m_User
◆ m_OpList
std::vector<albaOp *> albaOpManager::m_OpList |
|
protected |
◆ m_NumOp
int albaOpManager::m_NumOp |
|
protected |
◆ m_OpAccelEntries
wxAcceleratorEntry albaOpManager::m_OpAccelEntries[MAXOP] |
|
protected |
◆ m_NumOfAccelerators
int albaOpManager::m_NumOfAccelerators |
|
protected |
◆ m_OpParameters
void* albaOpManager::m_OpParameters |
|
protected |
Pointer to the operation's parameter list.
Definition at line 219 of file albaOpManager.h.
◆ m_OpSelect
Pointer to the (always available) operation for selecting VMEs.
Definition at line 221 of file albaOpManager.h.
◆ m_OpCut
Pointer to the (always available) operation for cutting VMEs.
Definition at line 222 of file albaOpManager.h.
◆ m_OpCopy
Pointer to the (always available) operation for copying VMEs.
Definition at line 223 of file albaOpManager.h.
◆ m_OpPaste
Pointer to the (always available) operation for pasting VMEs.
Definition at line 224 of file albaOpManager.h.
◆ m_OpRename
Pointer to the (always available) operation for reparenting VMEs.
Definition at line 225 of file albaOpManager.h.
◆ m_OpReparent
albaOpReparentTo* albaOpManager::m_OpReparent |
|
protected |
Pointer to the (always available) operation for reparenting VMEs.
Definition at line 226 of file albaOpManager.h.
◆ m_OpAddGroup
albaOpCreateGroup* albaOpManager::m_OpAddGroup |
|
protected |
Pointer to the (always available) operation for Adding Group VMEs.
Definition at line 227 of file albaOpManager.h.
◆ m_OpShowHistory
albaOpShowHistory* albaOpManager::m_OpShowHistory |
|
protected |
◆ m_MenuBar
wxMenuBar* albaOpManager::m_MenuBar |
|
protected |
◆ m_ToolBar
wxToolBar* albaOpManager::m_ToolBar |
|
protected |
◆ m_BuildNum
◆ m_Listener
The documentation for this class was generated from the following file: