20 NoConfigFlags = 0 << 0,
21 IgnoreActivateRequestOnReadOnly = 1 << 0,
22 IgnoreSelectionHandlingOnReadOnly = 1 << 1
33 bool isCurrentVersionEndOfBranch(
void)
const;
34 bool isVersionEndOfBranch(
const std::string& _versionName)
const;
46 void slotSelectionChanged(
void);
47 void slotCenterOnActiveVersion(
void);
51 virtual void showEvent(QShowEvent* _event)
override;
52 virtual void paintEvent(QPaintEvent* _event)
override;
55 typedef std::list<VersionGraphItem*> VersionsList;
57 void updateVersionPositions(
void);
58 QRectF calculateFittedViewportRect(
void)
const;
60 VersionGraphItem* findExistingParentVersionOfBranchLeave(
const std::string& _branchLeaveName);
62 VersionGraphItem* findVersion(
const std::string& _versionName, VersionsList*& _list, VersionsList::const_iterator& _iterator);
63 const VersionGraphItem* findVersion(
const std::string& _versionName,
const VersionsList*& _list, VersionsList::const_iterator& _iterator)
const;
64 const VersionsList* findBranch(
const std::string& _branchName)
const;
65 void highlightVersion(
const std::string& _versionName);
67 bool m_updateItemPositionRequired;
68 QRectF m_lastViewportRect;
69 std::string m_activeVersion;
70 std::string m_activeVersionBranch;
72 std::list<VersionsList> m_branches;