File: tab_child_widget.rb

package info (click to toggle)
mikutter 5.0.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,700 kB
  • sloc: ruby: 21,307; sh: 181; makefile: 19
file content (32 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-

require_relative 'pane'
require_relative 'cuscadable'
require_relative 'hierarchy_child'
require_relative 'tab'
require_relative 'widget'

class Plugin::GUI::TabChildWidget

  include Plugin::GUI::Cuscadable
  include Plugin::GUI::HierarchyChild
  include Plugin::GUI::Widget
  
  role :tabchildwidget

  def initialize(*args)
    super
    Plugin.call(:tabchildwidget_created, self)
  end

  alias __set_parent_tabchildwidget__ set_parent
  def set_parent(tab)
    Plugin.call(:gui_tabchildwidget_join_tab, self, tab)
    __set_parent_tabchildwidget__(tab)
  end

  def <<(messages)
    Plugin.call(:gui_tabchildwidget_add_messages, self, messages)
  end

end