ui: improved file nodes

* added colors for file nodes and dependency edges
* use TokenComponentFilePath on file nodes to store FilePath
This commit is contained in:
Eberhard Graether
2015-03-09 14:07:58 +01:00
parent 3893868386
commit ca9dfe7f75
15 changed files with 114 additions and 48 deletions
@@ -0,0 +1,20 @@
#include "data/graph/token_component/TokenComponentFilePath.h"
TokenComponentFilePath::TokenComponentFilePath(const FilePath& path)
: m_path(path)
{
}
TokenComponentFilePath::~TokenComponentFilePath()
{
}
std::shared_ptr<TokenComponent> TokenComponentFilePath::copy() const
{
return std::make_shared<TokenComponentFilePath>(*this);
}
const FilePath& TokenComponentFilePath::getFilePath() const
{
return m_path;
}
@@ -0,0 +1,23 @@
#ifndef TOKEN_COMPONENT_FILE_PATH_H
#define TOKEN_COMPONENT_FILE_PATH_H
#include "utility/file/FilePath.h"
#include "data/graph/token_component/TokenComponent.h"
class TokenComponentFilePath
: public TokenComponent
{
public:
TokenComponentFilePath(const FilePath& path);
virtual ~TokenComponentFilePath();
virtual std::shared_ptr<TokenComponent> copy() const;
const FilePath& getFilePath() const;
private:
const FilePath m_path;
};
#endif // TOKEN_COMPONENT_FILE_PATH_H