Пример #1
0
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()));
    }
}
Пример #2
0
bool HierarchyTreeController::NewProject(const QString& projectPath)
{
	hierarchyTree.CreateProject();
	
	bool res = SaveAll(projectPath);
	if (res)
	{
		emit ProjectCreated();
	}
	
	return res;
}