Method: Ruber::ChoosePluginsDlg#initialize

Defined in:
lib/ruber/main_window/choose_plugins_dlg.rb

#initialize(parent = nil) ⇒ ChoosePluginsDlg

Creates a new ChoosePluginsDlg and initializes it using both the settings in the configuration file and the loaded plugins.



40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/ruber/main_window/choose_plugins_dlg.rb', line 40

def initialize parent = nil
  super
  self.caption = "Choose plugins"
  self.buttons = Ok | Cancel | Apply | Default | Reset
  self.main_widget = ChoosePluginsWidget.new
  enable_button_apply false
  main_widget.connect(SIGNAL('plugins_changed()')){enable_button_apply true}
  main_widget.connect(SIGNAL('directories_changed()')){enable_button_apply true}
  connect self, SIGNAL(:applyClicked), self, SLOT(:write_settings)
  connect self, SIGNAL(:okClicked), self, SLOT(:write_settings)
  connect self, SIGNAL(:defaultClicked), main_widget, SLOT(:apply_defaults)
end