Class: Ruber::NewProjectDialog

Inherits:
KDE::Dialog
  • Object
show all
Defined in:
lib/ruber/main_window/main_window_actions.rb,
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

- (NewProjectDialog) initialize(parent = Ruber[:main_window])

A new instance of NewProjectDialog

Parameters:

  • parent (Qt::Widget, nil) (defaults to: Ruber[:main_window])

    the parent widget



867
868
869
870
871
872
873
874
# File 'lib/ruber/main_window/main_window_actions.rb', line 867

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

- (String) project_file

The path of the project file

Returns:

  • (String)

    the path of the project file



879
880
881
# File 'lib/ruber/main_window/main_window_actions.rb', line 879

def project_file
  main_widget.project_file
end

- (String) project_name

The name chosen by the user for the project

Returns:

  • (String)

    the name chosen by the user for the project



886
887
888
# File 'lib/ruber/main_window/main_window_actions.rb', line 886

def project_name
  main_widget.project_name
end