From 021ac0b5754cc8090633aa043cb80d5622ff9c12 Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 12 Feb 2009 11:13:09 +0000 Subject: added more commands to parse_non_drawing_commands() git-svn-id: http://dzen.googlecode.com/svn/trunk@244 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- draw.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/draw.c b/draw.c index 67880f9..9b616fb 100644 --- a/draw.c +++ b/draw.c @@ -1040,16 +1040,40 @@ parse_non_drawing_commands(char * text) { a_togglecollapse(NULL); return 0; } + if(!strncmp(text, "^collapse()", strlen("^collapse()"))) { + a_collapse(NULL); + return 0; + } + if(!strncmp(text, "^uncollapse()", strlen("^uncollapse()"))) { + a_uncollapse(NULL); + return 0; + } if(!strncmp(text, "^togglestick()", strlen("^togglestick()"))) { a_togglestick(NULL); return 0; } + if(!strncmp(text, "^stick()", strlen("^stick()"))) { + a_stick(NULL); + return 0; + } + if(!strncmp(text, "^unstick()", strlen("^unstick()"))) { + a_unstick(NULL); + return 0; + } if(!strncmp(text, "^togglehide()", strlen("^togglehide()"))) { a_togglehide(NULL); return 0; } + if(!strncmp(text, "^hide()", strlen("^ide()"))) { + a_hide(NULL); + return 0; + } + if(!strncmp(text, "^unhide()", strlen("^unhide()"))) { + a_unhide(NULL); + return 0; + } if(!strncmp(text, "^raise()", strlen("^raise()"))) { a_raise(NULL); -- cgit v1.2.3