changeset 1306:8c0a4684c1f7

Expose methods from component_manager
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 19 Jan 2011 18:47:40 +0800
parents 573a51b1eb37
children cfbc0f3e54e3
files pyink/domview.py pyink/domview_ui.py
diffstat 2 files changed, 47 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/domview.py	Wed Jan 19 18:28:16 2011 +0800
+++ b/pyink/domview.py	Wed Jan 19 18:47:40 2011 +0800
@@ -270,6 +270,14 @@
     def rm_timeline(self, timeline_name):
         self._cur_comp.rm_timeline(timeline_name)
         pass
+
+    def all_timeline_names(self):
+        r = self._cur_comp.all_timeline_names()
+        return r
+
+    def has_timeline(self, name):
+        r = self._cur_comp.has_timeline(name)
+        return r
     pass
 
 
--- a/pyink/domview_ui.py	Wed Jan 19 18:28:16 2011 +0800
+++ b/pyink/domview_ui.py	Wed Jan 19 18:47:40 2011 +0800
@@ -397,6 +397,45 @@
         self._comp_dock.install_dock(desktop) # from component_manager
         pass
     
+    def add_component(self, name):
+        self._dom.add_component(name)
+        pass
+
+    def rm_component(self, name):
+        self._dom.rm_component(name)
+        pass
+
+    def switch_component(self, name):
+        self._dom.switch_component(name)
+        pass
+
+    def all_comp_names(self):
+        names = self._dom.all_comp_names()
+        return names
+
+    def has_component(self, name):
+        r = self._dom.has_component(name)
+        return r
+
+    def add_timeline(self, name):
+        self._dom.add_timeline(name)
+        pass
+
+    def rm_timeline(self, name):
+        self._dom.rm_timeline(name)
+        pass
+
+    def switch_timeline(self, name):
+        self._dom.siwtch_timeline(name)
+        pass
+
+    def all_timeline_names(self):
+        names = self._dom.all_timeline_names()
+        return names
+
+    def has_timeline(self, name):
+        r = self._dom.has_timeline(name)
+        return r
     pass