- std::string* result;
- //wxProgressDialog* loadBar = new wxProgressDialog(wxT("Compiling"), wxT("Please wait while the compilation is executing..."), 100, this);
- //loadBar->Pulse();
- if(!this->project->Build(result, buildDlgStr))
+ file = wxDirSelector(
+ wxT("Please select the folder where your project is to be built."),
+ crea::std2wx(this->project->GetBuildPath())
+ );
+ }
+
+ if(!file.IsEmpty())
+ {
+ this->project->SetBuildPath(crea::wx2std(file), result);
+
+ wxTextEntryDialog* buildDlg = new wxTextEntryDialog(
+ this,
+ wxT("Check the compilation instruction:"),
+ wxT("Project Compilation - CreaDevManager"),
+ crea::std2wx(this->project->GetBuildInstruction()),
+ wxTE_MULTILINE | wxOK | wxCANCEL
+ );
+
+ if (buildDlg->ShowModal() == wxID_OK)