Class: Ruber::ProjectConfigWidget

Inherits:
Qt::Widget
  • Object
show all
Defined in:
lib/ruber/project.rb,
lib/ruber/project.rb,
lib/ruber/project.rb

Overview

Small class which can be used instead of Qt::Widget for widgets to be used in the configuration dialog.

The only difference between this class and Qt::Widget is in the arguments taken by the constructor: instead of taking the parent (which is instead set to nil), this class accepts the project the dialog refers to and stores it in its project attribute.

Direct Known Subclasses

FilesRunner::ProjectWidget, ProjectFilesWidget, RSpec::ProjectWidget, Rake::ProjectWidget, RubyRunner::ProjectWidget, RubyRunner::RubyOptionsWidget

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ProjectConfigWidget) initialize(project)

Creates a new instance. project is the Project associated with the dialog the widget will be put into.



481
482
483
484
# File 'lib/ruber/project.rb', line 481

def initialize project
  super()
  @project = project
end

Instance Attribute Details

- (Object) project (readonly)

The project associated with the dialog containing the widget



475
476
477
# File 'lib/ruber/project.rb', line 475

def project
  @project
end