Class: Ruber::NewProjectDialog

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

Overview

Dialog where the user enters the parameters to create a new project

Defined Under Namespace

Classes: NewProjectWidget

Instance Method Summary collapse

Constructor Details

#initialize(parent = ) ⇒ NewProjectDialog

Returns a new instance of NewProjectDialog.

Parameters:

  • parent (Qt::Widget, nil) (defaults to: )

    the parent widget



771
772
773
774
775
776
777
778
# File 'lib/ruber/main_window/main_window_actions.rb', line 771

def initialize parent = Ruber[:main_window]
  super
  self.caption = 'New Project'
  self.main_widget = NewProjectWidget.new self
  enableButtonOk false
  self.main_widget.set_focus
  connect main_widget, SIGNAL('complete_status_changed(bool)'), self, SLOT('enableButtonOk(bool)')
end

Instance Method Details

#project_fileString

Returns the path of the project file.

Returns:

  • (String)

    the path of the project file



783
784
785
# File 'lib/ruber/main_window/main_window_actions.rb', line 783

def project_file
  main_widget.project_file
end

#project_nameString

Returns the name chosen by the user for the project.

Returns:

  • (String)

    the name chosen by the user for the project



790
791
792
# File 'lib/ruber/main_window/main_window_actions.rb', line 790

def project_name
  main_widget.project_name
end