void MainWindow::NewProject() { if (!is_project_open_ || project_widget_->Close()) { SourceForm *source_form = new SourceForm(project_); source_form->show(); connect(source_form, SIGNAL(ProjectCreated()), this, SLOT(ViewCreatedProject())); } }
bool HierarchyTreeController::NewProject(const QString& projectPath) { hierarchyTree.CreateProject(); bool res = SaveAll(projectPath); if (res) { emit ProjectCreated(); } return res; }