OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::VersionGraphManager Class Reference

#include "VersionGraphManager.h"

Inheritance diagram for ot::VersionGraphManager:
ot::QWidgetInterface

Classes

class  VersionInfo
 

Public Types

enum  ViewMode {
  ViewAll , Compact , CompactLabeled , LabeledOnly ,
  Iterator
}
 

Public Slots

void updateCurrentGraph (void)
 

Public Member Functions

 VersionGraphManager ()
 
virtual ~VersionGraphManager ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
VersionGraphgetGraph (void)
 
const VersionGraphgetGraph (void) const
 
void setupConfig (VersionGraphCfg &&_config)
 
void setCurrentViewMode (ViewMode _mode)
 
ViewMode getCurrentViewMode (void) const
 
VersionGraphVersionCfginsertVersion (VersionGraphVersionCfg &&_config)
 
VersionGraphVersionCfginsertVersion (const ConstJsonObject &_versionConfig)
 
void activateVersion (const std::string &_versionName, const std::string &_activeBranchVersionName)
 
void removeVersion (const std::string &_versionName)
 
void removeVersions (const std::list< std::string > &_versionNames)
 
bool versionIsBranchNode (const std::string &_versionName)
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Static Public Member Functions

static std::string viewModeToString (ViewMode _mode)
 
static ViewMode stringToViewMode (const std::string &_mode)
 

Additional Inherited Members

- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Member Enumeration Documentation

◆ ViewMode

Enumerator
ViewAll 
Compact 
CompactLabeled 
LabeledOnly 
Iterator 

Constructor & Destructor Documentation

◆ VersionGraphManager()

ot::VersionGraphManager::VersionGraphManager ( )

◆ ~VersionGraphManager()

ot::VersionGraphManager::~VersionGraphManager ( )
virtual

Member Function Documentation

◆ activateVersion()

void ot::VersionGraphManager::activateVersion ( const std::string & _versionName,
const std::string & _activeBranchVersionName )

◆ getCurrentViewMode()

ot::VersionGraphManager::ViewMode ot::VersionGraphManager::getCurrentViewMode ( void ) const

◆ getGraph() [1/2]

VersionGraph * ot::VersionGraphManager::getGraph ( void )
inline

◆ getGraph() [2/2]

const VersionGraph * ot::VersionGraphManager::getGraph ( void ) const
inline

◆ getQWidget() [1/2]

virtual const QWidget * ot::VersionGraphManager::getQWidget ( void ) const
inlineoverridevirtual

Implements ot::QWidgetInterface.

◆ getQWidget() [2/2]

virtual QWidget * ot::VersionGraphManager::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ insertVersion() [1/2]

ot::VersionGraphVersionCfg * ot::VersionGraphManager::insertVersion ( const ConstJsonObject & _versionConfig)

◆ insertVersion() [2/2]

ot::VersionGraphVersionCfg & ot::VersionGraphManager::insertVersion ( VersionGraphVersionCfg && _config)

◆ removeVersion()

void ot::VersionGraphManager::removeVersion ( const std::string & _versionName)

◆ removeVersions()

void ot::VersionGraphManager::removeVersions ( const std::list< std::string > & _versionNames)

◆ setCurrentViewMode()

void ot::VersionGraphManager::setCurrentViewMode ( ViewMode _mode)

◆ setupConfig()

void ot::VersionGraphManager::setupConfig ( VersionGraphCfg && _config)

◆ stringToViewMode()

ot::VersionGraphManager::ViewMode ot::VersionGraphManager::stringToViewMode ( const std::string & _mode)
static

◆ updateCurrentGraph

void ot::VersionGraphManager::updateCurrentGraph ( void )
slot

◆ versionIsBranchNode()

bool ot::VersionGraphManager::versionIsBranchNode ( const std::string & _versionName)

◆ viewModeToString()

std::string ot::VersionGraphManager::viewModeToString ( ViewMode _mode)
static

The documentation for this class was generated from the following files: