Class: Ruber::FilesRunner::ProjectWidget
- Inherits:
-
ProjectConfigWidget
- Object
- Qt::Widget
- ProjectConfigWidget
- Ruber::FilesRunner::ProjectWidget
- Defined in:
- plugins/ruby_development/ruby_development.rb
Overview
Project configuration widget for the Files runner plugin
Instance Attribute Summary
Attributes inherited from ProjectConfigWidget
Instance Method Summary (collapse)
-
- (nil) hide_global_only_widgets
private
Hides the widgets corresponding to global options.
-
- (ProjectWidget) initialize(prj)
constructor
A new instance of ProjectWidget.
-
- (<String>) program_options
Splits the content of the program options widget into an array.
-
- (Object) program_options(value)
Sets the contents of the program options widget script to execute.
Constructor Details
- (ProjectWidget) initialize(prj)
A new instance of ProjectWidget
518 519 520 521 522 523 |
# File 'plugins/ruby_development/ruby_development.rb', line 518 def initialize prj super @ui = Ui::FilesRunnerProjectWidget.new @ui.setupUi self if prj.scope == :document end |
Instance Method Details
- (nil) hide_global_only_widgets (private)
Hides the widgets corresponding to global options
This method is called by the constructor when the widget is associated with a project with document scope.
553 554 555 556 557 558 |
# File 'plugins/ruby_development/ruby_development.rb', line 553 def @ui.main_program_label. @ui._ruby__main_program. @ui.working_dir_label. @ui._ruby__working_dir. end |
- (<String>) program_options
Splits the content of the program options widget into an array
execute. Quotes are preserved.
540 541 542 |
# File 'plugins/ruby_development/ruby_development.rb', line 540 def Shellwords.split_with_quotes @ui..text end |
- (Object) program_options=(value)
Sets the contents of the program options widget script to execute
530 531 532 |
# File 'plugins/ruby_development/ruby_development.rb', line 530 def value @ui..text = value.join " " end |