MFC Grid manual

CDragDropSettings Class Reference

Drag and drop settings. More...

#include <Dapfor/GUI/DragDropSettings.h>

List of all members.


Public Member Functions

 CDragDropSettings ()
 Default constructor.
 CDragDropSettings (const CDragDropSettings &settings)
 Copy constructor.
 ~CDragDropSettings ()
 Destructor.
void Serialize (CArchive &ar)
 Serializes/Deserializes this object to/from the archive.
Get- methods
bool CanDragFromFixedContext () const
 Indicates whether items can be dragged from fixed context.
bool CanDragFromScrollableContext () const
 Indicates whether items can be dragged from scrollable context.
bool CanDragNonSelectedChildren () const
 Indicates whether non-selected children can be dragged with their parent.
bool CanDragFilteredChildren () const
 Indicates whether CGrid can drag the items, filtered by IGridFilter interface.
bool CanDropToFixedContext () const
 Indicates whether items can be dropped to fixed context.
bool CanDropToScrollableContext () const
 Indicates whether items can be dropped to scrollable context.
bool CanLocalGridCopy () const
 Indicates whether CGrid can copy the clipboard content taken from the same grid.
bool CanLocalGridMove () const
 Indicates whether CGrid can displace the items taken from the same grid via drag&drop operations.
bool CanRemoteGridCopy () const
 Indicates whether CGrid can copy the clipboard content taken from other grids.
bool CanRemoteGridMove () const
 Indicates whether CGrid can detach the items taken from other grids and attach them to their own contexts.
bool CanImportDataFromAnotherApplication () const
 Indicates whether CGrid can import data from other applications.
bool CanGenerateDragImage () const
 Indicates that CGrid creates an image of the clipboard content while dragging.
bool CanHierarchicalDrop () const
 Indicates whether CGrid can drop a clipboard content on any level of hierarchy.
bool MustKeepLevel () const
 Indicates whether dropping items can change their hierarchical level.
bool MustKeepParent () const
 Indicates whether CGrid should drop the clipboard content keeping the hierarchical structure.
COLORREF GetDropColor () const
 Gets a color of the indicators, that point to the dropping position and hierarchical level.
Set- methods
void EnableDragFromFixedContext (bool bEnable)
 Enables items to be dragged from fixed context.
void EnableDragFromScrollableContext (bool bEnable)
 Enables items to be dragged from scrollable context.
void EnableDragNonSelectedChildren (bool bEnable)
 Enables non-selected children to be dragged with their parent.
void EnableDragFilteredChildren (bool bEnable)
 Enables CGrid to drag the items, filtered by IGridFilter interface.
void EnableDropToFixedContext (bool bEnable)
 Enables items to be dropped to fixed context.
void EnableDropToScrollableContext (bool bEnable)
 Enables items to be dropped to scrollable context.
void EnableLocalGridCopy (bool bEnable)
 Enables CGrid to copy the clipboard content taken from the same grid.
void EnableLocalGridMove (bool bEnable)
 Enables CGrid to displace the items taken from the same grid via drag&drop operations.
void EnableRemoteGridCopy (bool bEnable)
 Enables CGrid to copy the clipboard content taken from other grids.
void EnableRemoteGridMove (bool bEnable)
 Enables CGrid to detach the items taken from other grids and attach them to their own contexts.
void EnableImportDataFromAnotherApplication (bool bEnable)
 Enables CGrid to import data from other applications.
void EnableGenerateDragImage (bool bEnable)
 Enables CGrid to create an image of the clipboard content while dragging.
void EnableHierarchicalDrop (bool bEnable)
 Enables CGrid to drop a clipboard content on any level of hierarchy.
void SetKeepLevel (bool bEnable)
 Forces item to be dropped only on the same hierarchical level.
void SetKeepParent (bool bEnable)
 Enables CGrid to drop clipboard content while preserving the hierarchical structure.
void SetDropColor (COLORREF color)
 Sets a new color of the indicators, that point to the dropping position and hierarchical level.

Static Public Member Functions

static int GetSerializeVertion ()
 Serialization version.

Detailed Description

Drag and drop settings.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CDragDropSettings ( const CDragDropSettings settings  ) 

Copy constructor.

Parameters:
[in] settings Drag & drop settings


Member Function Documentation

bool CanDragFromFixedContext (  )  const

Indicates whether items can be dragged from fixed context.

Returns:
True if items can be dragged from the fixed context. Otherwise false.

bool CanDragFromScrollableContext (  )  const

Indicates whether items can be dragged from scrollable context.

Returns:
True if items can be dragged from the scrollable context. Otherwise false.

bool CanDragNonSelectedChildren (  )  const

Indicates whether non-selected children can be dragged with their parent.

Returns:
True if non-selected children can be dragged with their parent. Otherwise false.

bool CanDragFilteredChildren (  )  const

Indicates whether CGrid can drag the items, filtered by IGridFilter interface.

Returns:
True if CGrid can drag the items, filtered by IGridFilter interface. Otherwise false.

bool CanDropToFixedContext (  )  const

Indicates whether items can be dropped to fixed context.

Returns:
True if items can be dropped to the fixed context. Otherwise false.

bool CanDropToScrollableContext (  )  const

Indicates whether items can be dropped to scrollable context.

Returns:
True if items can be dropped to the scrollable context. Otherwise false.

bool CanLocalGridCopy (  )  const

Indicates whether CGrid can copy the clipboard content taken from the same grid.

Returns:
True if CGrid can copy the clipboard content taken from the same grid. Otherwise false.

bool CanLocalGridMove (  )  const

Indicates whether CGrid can displace the items taken from the same grid via drag&drop operations.

Returns:
True if CGrid can displace the items taken from the same grid via drag&drop operations. Otherwise false.

bool CanRemoteGridCopy (  )  const

Indicates whether CGrid can copy the clipboard content taken from other grids.

Returns:
True if CGrid can copy the clipboard content taken from other grids. Otherwise false.

bool CanRemoteGridMove (  )  const

Indicates whether CGrid can detach the items taken from other grids and attach them to their own contexts.

Returns:
True if CGrid can detach the items taken from other grids and attach them to their own contexts. Otherwise false.

bool CanImportDataFromAnotherApplication (  )  const

Indicates whether CGrid can import data from other applications.

Returns:
True if CGrid can import data from other applications. Otherwise false.

bool CanGenerateDragImage (  )  const

Indicates that CGrid creates an image of the clipboard content while dragging.

Returns:
True if CGrid creates an image of the clipboard content while dragging. Otherwise false.

bool CanHierarchicalDrop (  )  const

Indicates whether CGrid can drop a clipboard content on any level of hierarchy.

Returns:
True if CGrid can drop a clipboard content on any level of hierarchy. Otherwise false.

bool MustKeepLevel (  )  const

Indicates whether dropping items can change their hierarchical level.

The parent to which the item is attached can be changed to respect this rule

Returns:
True if dropping items must keep their hierarchical level. Otherwise false.

bool MustKeepParent (  )  const

Indicates whether CGrid should drop the clipboard content keeping the hierarchical structure.

Returns:
True if CGrid should drop the clipboard content keeping the hierarchical structure. Otherwise false.

COLORREF GetDropColor (  )  const

Gets a color of the indicators, that point to the dropping position and hierarchical level.

Returns:
True if it gets a color of the indicators, that point to the dropping position and hierarchical level. Otherwise false.

void EnableDragFromFixedContext ( bool  bEnable  ) 

Enables items to be dragged from fixed context.

Parameters:
[in] bEnable Enables items to be dragged from the fixed context

void EnableDragFromScrollableContext ( bool  bEnable  ) 

Enables items to be dragged from scrollable context.

Parameters:
[in] bEnable Enables items to be dragged from the scrollable context

void EnableDragNonSelectedChildren ( bool  bEnable  ) 

Enables non-selected children to be dragged with their parent.

Parameters:
[in] bEnable Enables non-selected children to be dragged with their parent

void EnableDragFilteredChildren ( bool  bEnable  ) 

Enables CGrid to drag the items, filtered by IGridFilter interface.

Parameters:
[in] bEnable Enables CGrid to drag the items, filtered by IGridFilter interface

void EnableDropToFixedContext ( bool  bEnable  ) 

Enables items to be dropped to fixed context.

Parameters:
[in] bEnable Enables items to be dropped to the fixed context

void EnableDropToScrollableContext ( bool  bEnable  ) 

Enables items to be dropped to scrollable context.

Parameters:
[in] bEnable Enables items to be dropped to the scrollable context

void EnableLocalGridCopy ( bool  bEnable  ) 

Enables CGrid to copy the clipboard content taken from the same grid.

Parameters:
[in] bEnable Enables CGrid to copy the clipboard content taken from the same grid

void EnableLocalGridMove ( bool  bEnable  ) 

Enables CGrid to displace the items taken from the same grid via drag&drop operations.

Parameters:
[in] bEnable Enables CGrid to displace the items taken from the same grid via drag&drop operations

void EnableRemoteGridCopy ( bool  bEnable  ) 

Enables CGrid to copy the clipboard content taken from other grids.

Parameters:
[in] bEnable Enables CGrid to copy the clipboard content taken from other grids

void EnableRemoteGridMove ( bool  bEnable  ) 

Enables CGrid to detach the items taken from other grids and attach them to their own contexts.

Parameters:
[in] bEnable Enables CGrid to detach the items taken from other grids and attach them to their own contexts

void EnableImportDataFromAnotherApplication ( bool  bEnable  ) 

Enables CGrid to import data from other applications.

Parameters:
[in] bEnable Enables CGrid to import data from other applications

void EnableGenerateDragImage ( bool  bEnable  ) 

Enables CGrid to create an image of the clipboard content while dragging.

Parameters:
[in] bEnable Enables CGrid to create an image of the clipboard content while dragging

void EnableHierarchicalDrop ( bool  bEnable  ) 

Enables CGrid to drop a clipboard content on any level of hierarchy.

Parameters:
[in] bEnable Enables CGrid to drop a clipboard content on any level of hierarchy

void SetKeepLevel ( bool  bEnable  ) 

Forces item to be dropped only on the same hierarchical level.

The parent to which the item is attached can be changed to respect this rule.

Parameters:
[in] bEnable Forces an item to be dropped only on the same hierarchical level.

void SetKeepParent ( bool  bEnable  ) 

Enables CGrid to drop clipboard content while preserving the hierarchical structure.

Parameters:
[in] bEnable Enables CGrid to drop the clipboard content keeping the hierarchical structure.

void SetDropColor ( COLORREF  color  ) 

Sets a new color of the indicators, that point to the dropping position and hierarchical level.

Parameters:
[in] color A new color of the indicators, that point to the dropping position and hierarchical level.

int GetSerializeVertion (  )  [static]

Serialization version.

Returns:
Serialization version

void Serialize ( CArchive &  ar  ) 

Serializes/Deserializes this object to/from the archive.

Parameters:
[in] ar Archive to serialize/deserialize this object