X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=lib%2Feditor%2Fdock%2Fbase.rb;fp=lib%2Feditor%2Fdock%2Fbase.rb;h=0000000000000000000000000000000000000000;hb=98eb2c0a10f3e60b5dc8ba9a0f51b6cbccbf203e;hp=2bc52f52b6a86e98ea171ffa6efe90496a04896c;hpb=c75552d8db3397821ffc4913bc9e465f6141b5c5;p=pettanr%2Fpettanr.git diff --git a/lib/editor/dock/base.rb b/lib/editor/dock/base.rb deleted file mode 100644 index 2bc52f52..00000000 --- a/lib/editor/dock/base.rb +++ /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