Class: Watobo::Plugin::Crawler::Gui::SettingsTabBook
- Inherits:
-
FXTabBook
- Object
- FXTabBook
- Watobo::Plugin::Crawler::Gui::SettingsTabBook
- Defined in:
- plugins/crawler/gui/settings_tabbook.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#general ⇒ Object
readonly
Returns the value of attribute general.
-
#hooks ⇒ Object
readonly
Returns the value of attribute hooks.
-
#log_viewer ⇒ Object
readonly
Returns the value of attribute log_viewer.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(owner) ⇒ SettingsTabBook
constructor
A new instance of SettingsTabBook.
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
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
28 29 30 |
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28 def auth @auth end |
#general ⇒ Object (readonly)
Returns the value of attribute general.
28 29 30 |
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28 def general @general end |
#hooks ⇒ Object (readonly)
Returns the value of attribute hooks.
28 29 30 |
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28 def hooks @hooks end |
#log_viewer ⇒ Object (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 |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
28 29 30 |
# File 'plugins/crawler/gui/settings_tabbook.rb', line 28 def scope @scope end |