BlockView cosmetics, more enums, fixed right-click on bus point/segment move
This commit is contained in:
@@ -32,42 +32,29 @@
|
||||
#include "qad_blockview_export.h"
|
||||
|
||||
|
||||
/// data:
|
||||
/// 1002 - flag for move parent (true)
|
||||
/// 1003 - flag for visualize selection (true)
|
||||
/// 1004 - BlockItemPin ("pin")
|
||||
/// 1005 - BlockBusItem ("connection")
|
||||
/// 1006 - BlockItem ("item")
|
||||
/// 1007 - BlockItem selection (true)
|
||||
/// 1008 - item is NOT decor, ignore for function decors() (true)
|
||||
/// 1009 - item is scene decor ("decor")
|
||||
/// 1010 - BlockItem decor (src text for QGraphicsSimpleTextItem)
|
||||
/// 1011 - item is BlockItem decor (true)
|
||||
/// 1100 - flag for correct move (true)
|
||||
|
||||
static const int _blockitem_current_version_ = 1;
|
||||
|
||||
|
||||
enum BlockviewItemData {
|
||||
bvidSelected = 1000, // bool
|
||||
bvidItemPos = 1001, // QpointF
|
||||
bvidMoveParent = 1002, // bool
|
||||
bvidVisualizeSelection = 1003, // bool
|
||||
bvidType = 1005, // BlockviewItemType
|
||||
bvidInvalidItem = 1008, // bool
|
||||
bvidDecorText = 1010, // QString
|
||||
bvidBlockDecor = 1011, // bool
|
||||
bvidDTHandle = 1012, // bool
|
||||
bvidCorrectMove = 1100, // bool
|
||||
bvidSelected = 1000, // bool
|
||||
bvidType , // BlockviewItemType
|
||||
bvidItemPos , // QPointF
|
||||
bvidDecorText , // QString src text for QGraphicsSimpleTextItem
|
||||
bvidMoveParent , // bool flag for move parent
|
||||
bvidVisualizeSelection , // bool flag for visualize selection
|
||||
bvidItemSelection , // bool BlockItem selection
|
||||
bvidInvalidItem , // bool item is NOT decor, ignore for function decors
|
||||
bvidBlockDecor , // bool item is BlockItem decor
|
||||
bvidDTHandle , // bool
|
||||
bvidCorrectMove , // bool
|
||||
};
|
||||
|
||||
enum BlockviewItemType {
|
||||
bvitInvalid,
|
||||
bvitPin,
|
||||
bvitBus,
|
||||
bvitBlock,
|
||||
bvitSelection,
|
||||
bvitDecor,
|
||||
bvitItemText,
|
||||
};
|
||||
|
||||
QAD_BLOCKVIEW_EXPORT QDataStream & operator <<(QDataStream & s, const QGraphicsItem * item);
|
||||
|
||||
Reference in New Issue
Block a user