Method: Ruber::NewProjectDialog::NewProjectWidget#initialize
- Defined in:
- lib/ruber/main_window/main_window_actions.rb
#initialize(parent = nil) ⇒ NewProjectWidget
Returns a new instance of NewProjectWidget.
814 815 816 817 818 819 820 821 822 823 824 825 |
# File 'lib/ruber/main_window/main_window_actions.rb', line 814 def initialize parent = nil super @ui = Ui::NewProjectWidget.new @ui.setupUi self @ui.container_dir.url = KDE::Url.new Ruber[:config][:general, :default_project_directory] @ui.container_dir.mode = KDE::File::Directory | KDE::File::LocalOnly| KDE::File::ExistingOnly connect @ui.project_name, SIGNAL('textChanged(QString)'), self, SLOT('data_changed()') connect @ui.container_dir, SIGNAL('textChanged(QString)'), self, SLOT('data_changed()') @ui.project_name.set_focus self.focus_proxy = @ui.project_name end |