Class: Watobo::Plugin::Crawler::Gui::SettingsTabBook

Inherits:
FXTabBook
  • Object
show all
Defined in:
plugins/crawler/gui/settings_tabbook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner) ⇒ SettingsTabBook

Returns a new instance of SettingsTabBook.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'plugins/crawler/gui/settings_tabbook.rb', line 32

def initialize(owner)
  #@tab = FXTabBook.new(self, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)
  super(owner, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)
  FXTabItem.new(self, "General", nil)
  # frame = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED)
  @general = GeneralSettingsFrame.new(self)
  
  FXTabItem.new(self, "Scope", nil)
  @scope = ScopeFrame.new(self)
  
  FXTabItem.new(self, "Auth", nil)
  @auth = AuthFrame.new(self)

  
  FXTabItem.new(self, "Hooks", nil)
  @hooks = HooksFrame.new(self)
  
  FXTabItem.new(self, "Log", nil)
  frame = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_THICK|FRAME_RAISED)
  @log_viewer = Watobo::Gui::LogViewer.new(frame, :append, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN)
  
  self.connect(SEL_COMMAND){
    @hooks.selected if self.current == 3
  }
end

Instance Attribute Details

#authObject (readonly)

Returns the value of attribute auth.



28
29
30
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28

def auth
  @auth
end

#generalObject (readonly)

Returns the value of attribute general.



28
29
30
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28

def general
  @general
end

#hooksObject (readonly)

Returns the value of attribute hooks.



28
29
30
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28

def hooks
  @hooks
end

#log_viewerObject (readonly)

Returns the value of attribute log_viewer.



28
29
30
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28

def log_viewer
  @log_viewer
end

#scopeObject (readonly)

Returns the value of attribute scope.



28
29
30
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28

def scope
  @scope
end