Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
CodeReview::CodeReviewManager Class Reference

Public Member Functions

void displayAndRegisterCodeReviewComment (Visualization::Item *associatedItem, NodeReviews *nodeReviews)
 
NodeReviewsListloadReview (const VersionControlUI::DiffSetup &diffSetup, Visualization::ViewItem *viewItem)
 
NodeReviewsnodeReviews (QString nodeId, QString revisionName, QPoint offset)
 
NodeReviewsListnodeReviewsList ()
 
Visualization::ItemoverlayForNodeReviews (Model::Node *nodeReviews)
 
void registerNodeReviewsWithOverlay (Model::Node *nodeReviews, Visualization::Item *overlay)
 
void saveReview (QString managerName, QString newRev)
 

Static Public Member Functions

static CodeReviewManagerinstance ()
 
static QList< QList< VersionControlUI::DiffFrame * > > orderDiffFrames (GroupingFunction groupingFunction, OrderingFunction orderingFunction, QList< VersionControlUI::DiffFrame * > diffFrames)
 

Private Member Functions

 CodeReviewManager (QString oldVersion, QString newVersion)
 

Static Private Member Functions

static QString createNameForPersistence (const VersionControlUI::DiffSetup &diffSetup)
 
static QString createNameForPersistence (QString managerName, QString newRev)
 

Private Attributes

NodeReviewsListnodeReviews_
 
QHash< Model::Node *, Visualization::Item * > nodeReviewsToOverlay_
 

Static Private Attributes

static const QString CODE_REVIEW_COMMENTS_PREFIX = "CodeReviewComments_"
 

Constructor & Destructor Documentation

◆ CodeReviewManager()

CodeReview::CodeReviewManager::CodeReviewManager ( QString  oldVersion,
QString  newVersion 
)
private

Member Function Documentation

◆ createNameForPersistence() [1/2]

QString CodeReview::CodeReviewManager::createNameForPersistence ( const VersionControlUI::DiffSetup diffSetup)
staticprivate

◆ createNameForPersistence() [2/2]

QString CodeReview::CodeReviewManager::createNameForPersistence ( QString  managerName,
QString  newRev 
)
staticprivate

◆ displayAndRegisterCodeReviewComment()

void CodeReview::CodeReviewManager::displayAndRegisterCodeReviewComment ( Visualization::Item associatedItem,
NodeReviews nodeReviews 
)

◆ instance()

CodeReviewManager & CodeReview::CodeReviewManager::instance ( )
static

◆ loadReview()

NodeReviewsList * CodeReview::CodeReviewManager::loadReview ( const VersionControlUI::DiffSetup diffSetup,
Visualization::ViewItem viewItem 
)

◆ nodeReviews()

NodeReviews * CodeReview::CodeReviewManager::nodeReviews ( QString  nodeId,
QString  revisionName,
QPoint  offset 
)

◆ nodeReviewsList()

NodeReviewsList * CodeReview::CodeReviewManager::nodeReviewsList ( )
inline

◆ orderDiffFrames()

QList< QList< VersionControlUI::DiffFrame * > > CodeReview::CodeReviewManager::orderDiffFrames ( GroupingFunction  groupingFunction,
OrderingFunction  orderingFunction,
QList< VersionControlUI::DiffFrame * >  diffFrames 
)
static

◆ overlayForNodeReviews()

Visualization::Item * CodeReview::CodeReviewManager::overlayForNodeReviews ( Model::Node nodeReviews)

◆ registerNodeReviewsWithOverlay()

void CodeReview::CodeReviewManager::registerNodeReviewsWithOverlay ( Model::Node nodeReviews,
Visualization::Item overlay 
)

◆ saveReview()

void CodeReview::CodeReviewManager::saveReview ( QString  managerName,
QString  newRev 
)

Member Data Documentation

◆ CODE_REVIEW_COMMENTS_PREFIX

const QString CodeReview::CodeReviewManager::CODE_REVIEW_COMMENTS_PREFIX = "CodeReviewComments_"
staticprivate

◆ nodeReviews_

NodeReviewsList* CodeReview::CodeReviewManager::nodeReviews_
private

◆ nodeReviewsToOverlay_

QHash<Model::Node*, Visualization::Item*> CodeReview::CodeReviewManager::nodeReviewsToOverlay_
private