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

A menu that validates itself on selection.

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

Public Member Functions

 DtSelectionEnabledMenu (const QString &title, QWidget *parent, makVrv::DtDe &)
 
virtual ~DtSelectionEnabledMenu () override
 
virtual void slot_validateMenuItems ()
 
virtual void setBlockSelectionChange (bool b)
 
bool blockSelectionChange () const
 
virtual bool needsValidation () const
 
const
makVrv::DtSelectionManager::IdSet
validatingFor () const
 
virtual bool setSelectionSetForValidate (const makVrv::DtSelectionManager::IdSet &selection)
 
virtual bool validateSelection (const makVrv::DtSelectionManager::IdSet &selection) const
 
virtual void setUseLastSelection (bool useLastSelection)
 
virtual bool useLastSelection () const
 
virtual void setUseOnlyLastSingleSelection (bool useOnlyLastSingleSelection)
 
virtual bool useOnlyLastSingleSelection () const
 
virtual void setActiveMenu (bool)
 
- Public Member Functions inherited from makVrf::DtAssembledMenu
 DtAssembledMenu (const QString &title, QWidget *parent, makVrv::DtDe &)
 
virtual ~DtAssembledMenu () override
 
const DtConfigurableMenuAssemblerassembler () const
 

Protected Member Functions

virtual void initValidationConnections ()
 
virtual void slot_terrainPatchToBeDeleted ()
 
virtual void slot_selectionChanged ()
 
virtual void validateMenuItems (int terrainPatchOffset)=0
 
virtual bool terrainLoaded (int terrainCountOffset) const
 

Protected Attributes

bool myBlockSelectionChange
 
makVrv::DtSignalConnectionManager myValidationConnections
 
makVrv::DtSelectionManager::IdSet myValidatedFor
 
bool myUseLastSelection
 
bool myUseOnlyLastSingleSelection
 
- Protected Attributes inherited from makVrf::DtAssembledMenu
makVrv::DtDemyDe
 
makVrv::DtSignalConnectionManager myConnectionManager
 
DtConfigurableMenuAssembler myAssembler
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrf::DtAssembledMenu
static void sortMenu (QMenu *)
 
- Public Attributes inherited from makVrf::DtAssembledMenu
boost::signals2::signal< void(DtAssembledMenu *)> signal_preAssembleMenu
 
boost::signals2::signal< void(DtAssembledMenu *)> signal_postAssembleMenu
 

Constructor & Destructor Documentation

makVrf::DtSelectionEnabledMenu::DtSelectionEnabledMenu ( const QString &  title,
QWidget *  parent,
makVrv::DtDe  
)

CTOR.

virtual makVrf::DtSelectionEnabledMenu::~DtSelectionEnabledMenu ( )
overridevirtual

DTOR.

Member Function Documentation

virtual void makVrf::DtSelectionEnabledMenu::slot_validateMenuItems ( )
virtual
virtual void makVrf::DtSelectionEnabledMenu::setBlockSelectionChange ( bool  b)
inlinevirtual
bool makVrf::DtSelectionEnabledMenu::blockSelectionChange ( ) const
inline
virtual bool makVrf::DtSelectionEnabledMenu::needsValidation ( ) const
virtual

Reimplemented in makVrf::DtVrfTaskSetMenu.

const makVrv::DtSelectionManager::IdSet& makVrf::DtSelectionEnabledMenu::validatingFor ( ) const
inline

When connecting to the signal_validateMenuItem from the menu signaler, this method will contain the entities being validated.

virtual bool makVrf::DtSelectionEnabledMenu::setSelectionSetForValidate ( const makVrv::DtSelectionManager::IdSet selection)
virtual

Assign myValidatedFor the IdSet parameter If myUseLastSelection is true, myValidatedFor may not be updated, if the IdSet paramater does not contain a valid selection The last selection can be limited to single selection only, according to myUseOnlyLastSingleSelection's value The function return true if myValidatedFor was updated, false if not.

virtual bool makVrf::DtSelectionEnabledMenu::validateSelection ( const makVrv::DtSelectionManager::IdSet selection) const
virtual

Validate if the selection contains a valid VRF object.

virtual void makVrf::DtSelectionEnabledMenu::setUseLastSelection ( bool  useLastSelection)
virtual

Set/Get the myUseLastSelection flag.

virtual bool makVrf::DtSelectionEnabledMenu::useLastSelection ( ) const
virtual
virtual void makVrf::DtSelectionEnabledMenu::setUseOnlyLastSingleSelection ( bool  useOnlyLastSingleSelection)
virtual

Set/Get the myUseOnlyLastSingleSelection flag.

virtual bool makVrf::DtSelectionEnabledMenu::useOnlyLastSingleSelection ( ) const
virtual
virtual void makVrf::DtSelectionEnabledMenu::setActiveMenu ( bool  )
virtual

Set to have this menu be a menu that listens to connections and changes with selections. Default is true if a validating menu.

virtual void makVrf::DtSelectionEnabledMenu::initValidationConnections ( )
protectedvirtual
virtual void makVrf::DtSelectionEnabledMenu::slot_terrainPatchToBeDeleted ( )
protectedvirtual
virtual void makVrf::DtSelectionEnabledMenu::slot_selectionChanged ( )
protectedvirtual
virtual void makVrf::DtSelectionEnabledMenu::validateMenuItems ( int  terrainPatchOffset)
protectedpure virtual
virtual bool makVrf::DtSelectionEnabledMenu::terrainLoaded ( int  terrainCountOffset) const
protectedvirtual

Member Data Documentation

bool makVrf::DtSelectionEnabledMenu::myBlockSelectionChange
protected
makVrv::DtSignalConnectionManager makVrf::DtSelectionEnabledMenu::myValidationConnections
protected
makVrv::DtSelectionManager::IdSet makVrf::DtSelectionEnabledMenu::myValidatedFor
protected
bool makVrf::DtSelectionEnabledMenu::myUseLastSelection
protected
bool makVrf::DtSelectionEnabledMenu::myUseOnlyLastSingleSelection
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)