Class: Ruber::ChoosePluginsDlg

Inherits:
KDE::Dialog
  • Object
show all
Defined in:
lib/ruber/main_window/choose_plugins_dlg.rb

Overview

Dialog where the user can choose the plugins to load and the directories where to look for plugins.

The main functionality is provided by the main widget, of class ChoosePluginsWidget.

Instance Method Summary collapse

Constructor Details

#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

Instance Method Details

#pluginsObject

See ChoosePluginsWidget#plugins



54
55
56
# File 'lib/ruber/main_window/choose_plugins_dlg.rb', line 54

def plugins
  main_widget.plugins
end