diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-08-25 20:32:58 +0100 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-08-25 20:32:58 +0100 |
commit | f7292486b34034ffaa407f68bd267ec3ad01e693 (patch) | |
tree | 592d0ecd1c821012fa86251e5fb6237990d09ce8 /tikzit/src | |
parent | 093e7a12524a3ddedd833df6c284025f1d0a4a8c (diff) |
Better debugging: set description for node and edge styles
Diffstat (limited to 'tikzit/src')
-rw-r--r-- | tikzit/src/common/EdgeStyle.m | 4 | ||||
-rw-r--r-- | tikzit/src/common/NodeStyle.m | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tikzit/src/common/EdgeStyle.m b/tikzit/src/common/EdgeStyle.m index 15fbff8..39810fa 100644 --- a/tikzit/src/common/EdgeStyle.m +++ b/tikzit/src/common/EdgeStyle.m @@ -83,6 +83,10 @@ [super dealloc]; } +- (NSString*) description { + return [NSString stringWithFormat:@"Edge style \"%@\"", name]; +} + - (void) updateFromStyle:(EdgeStyle*)style { [self setName:[style name]]; [self setCategory:[style category]]; diff --git a/tikzit/src/common/NodeStyle.m b/tikzit/src/common/NodeStyle.m index f81d7eb..26ab793 100644 --- a/tikzit/src/common/NodeStyle.m +++ b/tikzit/src/common/NodeStyle.m @@ -95,6 +95,10 @@ [super dealloc]; } +- (NSString*) description { + return [NSString stringWithFormat:@"Node style \"%@\"", name]; +} + - (void) updateFromStyle:(NodeStyle*)style { [self setStrokeThickness:[style strokeThickness]]; [self setScale:[style scale]]; |