Class: Watobo::PluginGui
- Inherits:
-
FXDialogBox
- Object
- FXDialogBox
- Watobo::PluginGui
- Extended by:
- Subscriber
- Includes:
- Gui, Gui::Icons
- Defined in:
- lib/watobo/gui/templates/plugin_base.rb
Constant Summary
Constants included from Gui::Icons
Gui::Icons::ICON_ADD_PROJECT, Gui::Icons::ICON_BROWSER_MEDIUM, Gui::Icons::ICON_BROWSER_SMALL, Gui::Icons::ICON_BTN_DOWN, Gui::Icons::ICON_BTN_UP, Gui::Icons::ICON_CB_CHECKED, Gui::Icons::ICON_CB_CHECKED_ORANGE, Gui::Icons::ICON_CB_UNCHECKED, Gui::Icons::ICON_CONVERSATION, Gui::Icons::ICON_DASHBOARD, Gui::Icons::ICON_DIFFER, Gui::Icons::ICON_FOLDER, Gui::Icons::ICON_FOLDER_SMALL, Gui::Icons::ICON_FUZZER, Gui::Icons::ICON_FUZZER_MEDIUM, Gui::Icons::ICON_FUZZER_SMALL, Gui::Icons::ICON_FUZZ_FILTER, Gui::Icons::ICON_FUZZ_GENERATOR, Gui::Icons::ICON_FUZZ_TAG, Gui::Icons::ICON_HINTS, Gui::Icons::ICON_HINTS_INFO, Gui::Icons::ICON_HINTS_INFO_SMALL, Gui::Icons::ICON_HINTS_SMALL, Gui::Icons::ICON_INFO, Gui::Icons::ICON_INFO_INFO, Gui::Icons::ICON_INFO_INFO_SMALL, Gui::Icons::ICON_INFO_SMALL, Gui::Icons::ICON_INFO_USER, Gui::Icons::ICON_INFO_USER_SMALL, Gui::Icons::ICON_INTERCEPTOR, Gui::Icons::ICON_LOGIN_WIZZARD, Gui::Icons::ICON_MANUAL_REQUEST, Gui::Icons::ICON_MANUAL_REQUEST_MEDIUM, Gui::Icons::ICON_MANUAL_REQUEST_SMALL, Gui::Icons::ICON_PAUSE, Gui::Icons::ICON_PLUGIN, Gui::Icons::ICON_PROJECT, Gui::Icons::ICON_PROJECT_SMALL, Gui::Icons::ICON_REPORT, Gui::Icons::ICON_REQUEST, Gui::Icons::ICON_REQUEST_SMALL, Gui::Icons::ICON_SEND_REQUEST, Gui::Icons::ICON_SITE, Gui::Icons::ICON_SITE_SMALL, Gui::Icons::ICON_START, Gui::Icons::ICON_STOP, Gui::Icons::ICON_TOKEN, Gui::Icons::ICON_TRANSCODER, Gui::Icons::ICON_VULN, Gui::Icons::ICON_VULN_BP, Gui::Icons::ICON_VULN_BP_SMALL, Gui::Icons::ICON_VULN_CRITICAL, Gui::Icons::ICON_VULN_CRITICAL_SMALL, Gui::Icons::ICON_VULN_HIGH, Gui::Icons::ICON_VULN_HIGH_SMALL, Gui::Icons::ICON_VULN_LOW, Gui::Icons::ICON_VULN_LOW_SMALL, Gui::Icons::ICON_VULN_MEDIUM, Gui::Icons::ICON_VULN_MEDIUM_SMALL, Gui::Icons::ICON_VULN_SMALL, Gui::Icons::ICON_WATOBO, Gui::Icons::SIBERAS_ICON, Gui::Icons::TBL_ICON_LOCK, Gui::Icons::WATOBO_LOGO
Constants included from Gui
Gui::DIFF_TYPE_NEW, Gui::DIFF_TYPE_ORIG, Gui::SEL_TYPE_GREP, Gui::SEL_TYPE_HIGHLIGHT, Gui::TABLE_COL_COMMENT, Gui::TABLE_COL_COOKIE, Gui::TABLE_COL_HOST, Gui::TABLE_COL_METHOD, Gui::TABLE_COL_PARMS, Gui::TABLE_COL_PATH, Gui::TABLE_COL_SSL, Gui::TABLE_COL_STATUS
Constants included from Diff::LCS
Diff::LCS::BalancedCallbacks, Diff::LCS::PATCH_MAP, Diff::LCS::SequenceCallbacks, Diff::LCS::VERSION
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ PluginGui
constructor
A new instance of PluginGui.
- #updateView ⇒ Object
Methods included from Subscriber
clearEvents, notify, subscribe
Methods included from Gui
add_plugin, application, browser_preview, check_first_run, clear_plugins, create_application, history, load_gui_icon, load_icon, plugins, project, project=, save_default_settings_UNUSED, save_scanner_settings, save_settings, start
Methods included from Diff::LCS
LCS, __diff_direction, __inverse_vector, __lcs, __normalize_patchset, __position_hash, __replace_next_larger, diff, #diff, #lcs, patch, #patch, #patch!, patch!, sdiff, #sdiff, traverse_balanced, #traverse_balanced, traverse_sequences, #traverse_sequences, #unpatch, #unpatch!, unpatch!
Constructor Details
#initialize(opts = {}) ⇒ PluginGui
Returns a new instance of PluginGui.
113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/watobo/gui/templates/plugin_base.rb', line 113 def initialize( opts = {} ) # _width = instance_variable_get("@width") # puts _width # puts _width.class copts = { :opts => DECOR_ALL,:width=>800, :height=>600 } copts.update opts title = self.class.instance_variable_defined?("@window_title") ? window_title : "#{self}" super(Watobo::Gui.application, title, copts) @timer_lock = Mutex.new load_icon end |
Class Method Details
.inherited(subclass) ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/watobo/gui/templates/plugin_base.rb', line 88 def self.inherited(subclass) %w( icon_file icons_path window_title width height config_path ).each do |cvar| define_method(cvar){ self.class.instance_variable_get("@#{cvar}")} define_singleton_method("get_#{cvar}"){ return nil unless instance_variable_defined?("@#{cvar}") instance_variable_get("@#{cvar}") } define_singleton_method("#{cvar}"){ |val| instance_variable_set("@#{cvar}",val)} end base_class = class_eval( subclass.to_s.gsub(/::Gui/,'')) plugin_path = base_class.get_plugin_path ipath = File.join(plugin_path, "icons") if File.exist?(ipath) # define_singleton_method("icons_path"){ "#{ipath}" } subclass.icons_path ipath end end |
Instance Method Details
#updateView ⇒ Object
109 110 111 |
# File 'lib/watobo/gui/templates/plugin_base.rb', line 109 def updateView() raise "!!! updateView not defined" end |