Method: Ruber::Application#initialize

Defined in:
lib/ruber/application/application.rb

#initialize(manager, psf) ⇒ Application

Creates a new instance of Ruber::Application

It loads the core components and sets up a single shot timer which calls #setup and is fired as soon as the event loop starts.

Parameters:


105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/ruber/application/application.rb', line 105

def initialize manager, psf
  super()
  @components = manager
  @components.parent = self
  Ruber.instance_variable_set :@components, @components
  initialize_plugin psf
  KDE::Global.dirs.addPrefix File.expand_path(File.join( RUBER_DATA_DIR, '..', 'data'))
  icon_path = KDE::Global.dirs.find_resource('icon', 'ruber')
  self.window_icon = Qt::Icon.new icon_path
  KDE::Global.main_component.about_data.program_icon_name = icon_path
  @cmd_line_options = KDE::CmdLineArgs.parsed_args
  @plugin_dirs = []
  load_core_components
  @status = :starting
  @chdir_lock = Mutex.new
  Qt::Timer.single_shot(0, self, SLOT(:setup))
end