VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfDeletionHandler Class Reference

The DtVrfDeletionHandler will delete objects from the local object manager (if local) or from the simulation. If there are ORBAT objects in the deletion set and the setting to present a user with a choice for what to do is enabled, present the user a dialog asking them if they want to remove the object from the simulation or from the simulation and ORBAT.

Inheritance diagram for makVrf::DtVrfDeletionHandler:
Inheritance graph
[legend]

Public Member Functions

 DtVrfDeletionHandler (makVrv::DtDe &)
 
virtual ~DtVrfDeletionHandler ()
 
virtual void deleteObjects (const makVrv::DtSelectionManager::IdSet &)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtVrfDeletionHandlerinstance (makVrv::DtDe &de)
 
static void registerInstance (makVrv::DtDe &, DtVrfDeletionHandler *)
 

Public Attributes

boost::signals2::signal< void(makVrv::DtSelectionManager::IdSet
&, bool &shouldDelete)> 
signal_objectsAboutToBeDeleted
 
boost::signals2::signal< void(const
makVrv::DtSelectionManager::IdSet &)> 
signal_objectsAboutToBeDeletedFromSimulation
 

Protected Types

enum  OrbatDeleteFlags { OrbatOnly = 0x00000001, SimulationOnly = 0x00000002, Both = OrbatOnly | SimulationOnly }
 

Protected Member Functions

virtual void executeDeleteAction (const makVrv::DtSelectionManager::IdSet &)
 
virtual bool orbatDeleteOptions (int &orbatDeleteFlags)
 
virtual void deleteCalledFromManipulationManager (bool &handled)
 

Protected Attributes

makVrv::DtDemyDe
 
int myOrbatDeleteFlags
 
makVrv::DtSignalConnectionManager myConnections
 
bool myAllowDeletionChoice
 

Member Enumeration Documentation

Enumerator
OrbatOnly 
SimulationOnly 
Both 

Constructor & Destructor Documentation

makVrf::DtVrfDeletionHandler::DtVrfDeletionHandler ( makVrv::DtDe )
virtual makVrf::DtVrfDeletionHandler::~DtVrfDeletionHandler ( )
virtual

Member Function Documentation

static DtVrfDeletionHandler& makVrf::DtVrfDeletionHandler::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

static void makVrf::DtVrfDeletionHandler::registerInstance ( makVrv::DtDe ,
DtVrfDeletionHandler  
)
static
virtual void makVrf::DtVrfDeletionHandler::deleteObjects ( const makVrv::DtSelectionManager::IdSet )
virtual

Delete the objects in the set from the appropriate manager. Will emit the signal_objectToBeDeleted for each object to be deleted.

virtual void makVrf::DtVrfDeletionHandler::executeDeleteAction ( const makVrv::DtSelectionManager::IdSet )
protectedvirtual
virtual bool makVrf::DtVrfDeletionHandler::orbatDeleteOptions ( int orbatDeleteFlags)
protectedvirtual
virtual void makVrf::DtVrfDeletionHandler::deleteCalledFromManipulationManager ( bool handled)
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (makVrv::DtSelectionManager::IdSet&, bool& shouldDelete)> makVrf::DtVrfDeletionHandler::signal_objectsAboutToBeDeleted

Sent before the given set of objects is to be deleted. Return false if not to continue with deletion or change the set given to modify what should be deleted.

boost::signals2::signal<void (const makVrv::DtSelectionManager::IdSet&)> makVrf::DtVrfDeletionHandler::signal_objectsAboutToBeDeletedFromSimulation

The objects that are about to be deleted from the simulation.

makVrv::DtDe& makVrf::DtVrfDeletionHandler::myDe
protected
int makVrf::DtVrfDeletionHandler::myOrbatDeleteFlags
protected
makVrv::DtSignalConnectionManager makVrf::DtVrfDeletionHandler::myConnections
protected
bool makVrf::DtVrfDeletionHandler::myAllowDeletionChoice
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)