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



870
871
872
873
874
875
876
877
# File 'lib/ruber/main_window/main_window_actions.rb', line 870

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



882
883
884
# File 'lib/ruber/main_window/main_window_actions.rb', line 882

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



889
890
891
# File 'lib/ruber/main_window/main_window_actions.rb', line 889

def project_name
  main_widget.project_name
end