14 class VersionGraphItem;
20 NoConfigFlags = 0 << 0,
21 IgnoreActivateRequestOnReadOnly = 1 << 0,
22 IgnoreSelectionHandlingOnReadOnly = 1 << 1
33 bool isCurrentVersionEndOfBranch(
void)
const;
34 bool isVersionIsEndOfBranch(
const std::string& _versionName)
const;
41 void versionDeselected(
void);
42 void versionSelected(
const std::string& _versionName);
43 void versionActivateRequest(
const std::string& _versionName);
46 void slotSelectionChanged(
void);
47 void slotCenterOnActiveVersion(
void);
51 virtual void showEvent(QShowEvent* _event)
override;
52 virtual void paintEvent(QPaintEvent* _event)
override;
55 void updateVersionPositions(
void);
56 QRectF calculateFittedViewportRect(
void)
const;
58 void highlightVersion(
const std::string& _name);
60 bool m_updateItemPositionRequired;
61 QRectF m_lastViewportRect;
62 std::string m_activeVersion;
63 std::string m_activeVersionBranch;
65 VersionGraphConfigFlags m_configFlags;
#define OT_ADD_FLAG_FUNCTIONS(___enumName)
Will add the default bitwise operations for the provided 32 bit bitfield. Use this at the bottom of t...
Definition Flags.h:60
This class is used to manage flags. Don't forget to add OT_ADD_FLAG_FUNCTIONS and the bottom of your ...
Definition Flags.h:91
Base class for all OpenTwin GraphicsItems GraphicsItems should be created by the GraphicsFactory and ...
Definition GraphicsItem.h:35
View widget used to display GraphicsItems Note that the View creates its own scene.
Definition GraphicsView.h:36
Definition VersionGraphCfg.h:13
Definition VersionGraph.h:16
VersionGraphConfig
Definition VersionGraph.h:19
void setVersionGraphConfig(VersionGraphConfig _config, bool _active=true)
Definition VersionGraph.h:36
const VersionGraphConfigFlags & getVersionGraphConfigFlags(void) const
Definition VersionGraph.h:38
void setVersionGraphConfigFlags(const VersionGraphConfigFlags &_flags)
Definition VersionGraph.h:37
Flags< VersionGraphConfig > VersionGraphConfigFlags
Definition VersionGraph.h:24
Definition VersionGraphItem.h:19