home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
uicldd.zip
/
IDMCOMM.HPP
< prev
next >
Wrap
Text File
|
1993-09-07
|
7KB
|
134 lines
#ifndef _IDMCOMM_
#define _IDMCOMM_
#ifndef _ISTRING_
#include <istring.hpp>
#endif
struct IDM {
/*-------------------------------- Enumerations --------------------------------
| These enumerations define various direct manipulation values: |
| Source - Enumeration of the possible drag start sources: |
| pointingDevice - Drag initiated via mouse. |
| keyboard - Drag initiated via keyboard. |
| |
| DropIndicator - Enumeration of possible drop indicator values: |
| ok - Drop permitted. |
| notOk - Not permitted at this location. |
| operationNotOk - Operation(s) not permitted. |
| neverOk - Not permitted on this window. |
| |
| RenderCompletion - Enumeration of render completion values: |
| retry - Source has completed the rendering |
| operation and will allow the |
| target to retry its part of the |
| operation if it fails. |
| renderOk - Source has completed the rendering |
| operation. |
| fail - Source failed to complete the |
| rendering operation. |
| |
| DragImageStyle - Enumeration of the possible styles to be used when |
| displaying the drag images: |
| stack3AndFade - Show 3 images in full and then show |
| an image which looks as if the rest |
| fade out. This is optimal when the |
| user is dragging more than 3 items. |
| Performance is increased by not |
| having to draw an image for every |
| item. The images used are provided |
| by the application and stored in |
| the individual IDMItem objects |
| allStacked - Show an image for each drag item. |
| For many drag items, performance |
| while dragging could be slow. (See |
| stack3AndFade) The images used are |
| provided by the application and |
| stored in the individual IDMItem |
| objects. |
| systemImages - Use generic system images and |
| ignore the images in the IDMItem |
| objects if they are there. NOTE: |
| It is not necessary to create |
| images if this style is used since |
| they will be ignored. |
| |
| DiscardIndicator - Enumeration of possible discard indicator values: |
| sourceDiscards - Source window accepts |
| responsibility for the operation. |
| targetDiscards - Target window accepts |
| responsibility for the operation. |
| abortDiscard - Aborts the entire operation. |
| |
| PrintIndicator - Enumeration of possible print indicator values: |
| sourcePrints - Source window accepts |
| responsibility for the operation. |
| targetPrints - Target window accepts |
| responsibility for the operation. |
| abortPrint - Aborts the entire operation. |
------------------------------------------------------------------------------*/
enum Source
{
pointingDevice,
keyboard
};
enum DropIndicator
{
notOk = 0x0000,
ok = 0x0001,
operationNotOk = 0x0002,
neverOk = 0x0003
};
enum RenderCompletion
{
retry = 0x0008,
renderOk = 0x0010,
fail = 0x0020
};
enum DragImageStyle
{
stack3AndFade,
allStacked,
systemImages
};
enum DiscardIndicator
{
sourceDiscards = 0x0001,
targetDiscards = 0x0002,
abortDiscard = 0x0003
};
enum PrintIndicator
{
sourcePrints = 0x0001,
targetPrints = 0x0002,
abortPrint = 0x0003
};
/*------------------------------- Type Constants ------------------------------+
| These static constants define various direct manipulation drag item types: |
| TEXT - Generic text drag item type |
| BITMAP - Bitmap drag item type |
| ICON - Icon drag item type |
| FILE - FILE drag item type |
| CONTAINER - Container drag item type |
| CONTAINEROBJECT - Container object drag item type |
| UNKNOWN - Unknown drag item type |
------------------------------------------------------------------------------*/
static const IString
TEXT,
BITMAP,
ICON,
FILE,
CONTAINER,
CONTAINEROBJECT,
UNKNOWN;
};
#endif