22#include "albaServiceClient.h"
23#include "albaAbsLogicManager.h"
152 void SetCanundo(
bool can_undo =
true) { m_Canundo = can_undo; };
Implementation of the message object for the Subject/Observer design pattern.
class name: albaGUIHolder Secialized panel in which a developer can put a albaGUI.
class name: albaGUISettings base class for more complex specified classes regarding the setting of ap...
albaGUI is a panel with function to easily create GUI.
Abstract superclass for all ALBA classes implementing RTTI APIs.
Interface implementing the Observer of the Subject/Observer design pattern.
virtual bool InternalAccept(albaVME *vme)
Return true for the acceptable vme type.
albaGUISettings * GetSetting()
Get the reference to the operation's setting panel.
virtual void ForceStopWithCancel()
Stop operation with CANCEL condition.
albaVME * m_Input
Pointer to the Input VME.
virtual albaString GetParameters()
Return parameters used by operation.
bool m_TestMode
Flag used with cppunitTest: put this flag at true when executing tests to avoid busy-info or splash s...
virtual char ** GetIcon()
Return an xpm-icon that can be used to represent this operation.
virtual void OpDo()
Execute the operation.
void SetMouse(albaDeviceButtonsPadMouse *mouse)
Initialize the mouse device.
void TestModeOff()
Used to turn off m_TestMode flag.
virtual bool OkEnabled()
Return true if the OK button in operation's interface is enabled.
void HideGui()
Send the event to remove the interface from the side bar.
virtual const char ** GetActions()
virtual void OpUndo()
Makes the undo for the operation.
void TestModeOn()
Turn On m_TestMode flag.
bool m_Canundo
Flag to establish if the operation define the UnDo method or not.
void SetCanundo(bool can_undo=true)
Set the Canundo flag for the operation when is plugged.
virtual void SetOutput(albaVME *output)
virtual bool CanUndo()
Return true if the operation is undoable.
bool GetTestMode()
Get TestMode.
albaDeviceButtonsPadMouse * GetMouse()
bool Accept(albaVME *vme)
Return true for the acceptable vme type.
virtual void OpStop(int result)
This method is called at the end of the operation and result contain the wxOK or wxCANCEL.
bool IsInputPreserving()
Return true if the operation preserve the input vme.
virtual void OpRun()
Builds operation's interface.
int m_Id
Index of the operation referring to the operation list.
virtual void ForceStopWithOk()
Stop operation with OK condition.
virtual void SetParameters(void *param)
Initialize operation's variables according to the parameter's list.
virtual albaVME * GetInput()
virtual albaVME * GetOutput()
Return the albaVME result of the operation.
albaGUI * m_Gui
Pointer to the operation's GUI.
virtual void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
wxString m_Label
Label of the operation that will appear on the SideBar tab.
bool m_InputPreserving
Flag to say if the operation change the input data (m_InputPreserving = false) or not.
void ShowGui()
Puts the operation's interface into the gui holder and send the event to plug the interface on the si...
bool GetCanundo()
Return the Canundo flag for the operation.
virtual void SetInput(albaVME *vme)
Set/Get the input vme for the operation.
albaOp(const wxString &label)
albaGUISettings * m_SettingPanel
virtual albaGUI * GetGui()
Return the operation's interface.
albaOp * m_Next
Pointer to the next operation in the operation's list.
bool IsCompatible(long state)
albaDeviceButtonsPadMouse * m_Mouse
albaObserver * m_Listener
void SetSetting(albaGUISettings *setting)
Set the reference to the operation's setting panel.
void SetListener(albaObserver *Listener)
void EnableAccept(bool enable=true)
albaVME * m_Output
Pointer to the Output VME.
int m_OpType
Store the type of the operation: OPTYPE_OP, OPTYPE_IMPORTER, OPTYPE_EXPORTER.
int GetType()
Return the type of the operation: OPTYPE_OP, OPTYPE_IMPORTER, OPTYPE_EXPORTER, OPTYPE_EDIT or OPTYPE_...
albaTypeMacro(albaOp, albaObject)
albaString - performs common string operations on c-strings.