OSDN Git Service

fom
[pettanr/pettanr.git] / lib / editor / dock / base.rb
diff --git a/lib/editor/dock/base.rb b/lib/editor/dock/base.rb
deleted file mode 100644 (file)
index 2bc52f5..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-module Editor
-
-  module TabModule
-    class Base
-      attr_accessor :parent, :tabs
-      def initialize parent
-        @parent = parent
-        @tabs = []
-      end
-      
-      def root_item
-        @parent.root_item
-      end
-      
-      def add_tab tab, label, body
-        @tabs << tab
-        tab.label = label
-        tab.body = body
-        tab
-      end
-      
-      def root_item
-        @parent.root_item
-      end
-      
-      def template_dir
-        @parent.template_dir
-      end
-      
-      def template_file_name
-        raise "no template_file_name"
-      end
-      
-      def template_name
-        self.template_dir + self.template_file_name
-      end
-      
-    end
-    
-    class Tab < Base
-      attr_accessor :index, :name, :label, :body
-      def initialize parent, index, name
-        super parent
-        @index = index
-        @name = name
-      end
-      
-      def dom_id
-        raise "no dom_id"
-      end
-      
-      def dom_class
-        raise "no dom_class"
-      end
-      
-    end
-    
-    class Label
-      attr_accessor :parent, :caption
-      def initialize parent, caption
-        @parent = parent
-        @caption = caption
-      end
-      
-      def root_item
-        @parent.root_item
-      end
-      
-      def template_dir
-        @parent.template_dir
-      end
-      
-      def template_name
-        self.template_dir + self.template_file_name
-      end
-      
-      def index
-        @parent.index
-      end
-      
-      def name
-        @parent.name
-      end
-      
-      def dom_id
-        raise "no dom_id"
-      end
-      
-      def dom_class
-        raise "no dom_class"
-      end
-      
-      def body
-        @parent.body
-      end
-      
-    end
-    
-    class Body
-      attr_accessor :parent
-      def initialize parent
-        @parent = parent
-      end
-      
-      def root_item
-        @parent.root_item
-      end
-      
-      def template_dir
-        @parent.template_dir
-      end
-      
-      def template_name
-        self.template_dir + self.template_file_name
-      end
-      
-      def index
-        @parent.index
-      end
-      
-      def name
-        @parent.name
-      end
-      
-      def label
-        @parent.label
-      end
-      
-      def dom_id
-        raise "no dom_id"
-      end
-      
-      def dom_class
-        raise "no dom_class"
-      end
-      
-    end
-    
-  end
-end