ui: extented graph view ui features

* fitting boxes to name length
* highlighting active edges and nodes
* hover for edges and nodes
* single click selection for edges and nodes
* edges have transparent second line for easier clicking
* sub structure class members by public/protected/private
This commit is contained in:
Eberhard Graether
2014-11-09 05:18:37 +01:00
parent 3441b6a8f4
commit 5b230cefa0
26 changed files with 644 additions and 417 deletions
@@ -1,5 +1,21 @@
#include "data/graph/token_component/TokenComponentAccess.h"
std::string TokenComponentAccess::getAccessString(AccessType access)
{
switch (access)
{
case ACCESS_PUBLIC:
return "public";
case ACCESS_PROTECTED:
return "protected";
case ACCESS_PRIVATE:
return "private";
case ACCESS_NONE:
return "";
}
return "";
}
TokenComponentAccess::TokenComponentAccess(AccessType access)
: m_access(access)
{
@@ -21,16 +37,5 @@ TokenComponentAccess::AccessType TokenComponentAccess::getAccess() const
std::string TokenComponentAccess::getAccessString() const
{
switch (m_access)
{
case ACCESS_PUBLIC:
return "public";
case ACCESS_PROTECTED:
return "protected";
case ACCESS_PRIVATE:
return "private";
case ACCESS_NONE:
return "";
}
return "";
return getAccessString(m_access);
}
@@ -17,6 +17,8 @@ public:
ACCESS_NONE
};
static std::string getAccessString(AccessType access);
TokenComponentAccess(AccessType access);
virtual ~TokenComponentAccess();