summaryrefslogtreecommitdiff
path: root/tikzit
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit')
-rw-r--r--tikzit/src/common/EdgeStyle.m4
-rw-r--r--tikzit/src/common/NodeStyle.m4
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]];