-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrcbasic_edit_newProject_dialog.cpp
executable file
·58 lines (48 loc) · 1.93 KB
/
rcbasic_edit_newProject_dialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "rcbasic_edit_newProject_dialog.h"
#include "projects.h"
rcbasic_edit_newProject_dialog::rcbasic_edit_newProject_dialog( wxWindow* parent )
:
rc_newProject_dialog( parent )
{
newProjectValue = false;
}
void rcbasic_edit_newProject_dialog::cancelNewProject( wxCommandEvent& event )
{
// TODO: Implement cancelNewProject
Close();
}
void rcbasic_edit_newProject_dialog::createNewProject( wxCommandEvent& event )
{
newProjectValue = true;
Close();
// TODO: Implement createNewProject
/*wxString project_name = projectName_field->GetValue();
wxString project_location = projectLocation_picker->GetPath();
int main_source_flag = projectCreateMain_radio->GetValue() ? 0 : 1;
wxString main_source_value = main_source_flag==0 ? projectNewMain_field->GetValue() : projectExistingFile_picker->GetTextCtrlValue();
wxString project_author = projectAuthor_field->GetValue();
wxString project_website = projectWebsite_field->GetValue();
wxString project_description = projectDescription_field->GetValue();
*/
//rcbasic_project new_project(project_name, project_location, main_source_flag, main_source_value, project_author, project_website, project_description);
//wxString str, str2;
//str.Printf(wxT("Sash Position: %d"), sashPOS);
//str2.Printf(wxT("Sash Size: %d\n"), sashSize);
//wxPuts(_("Project_Location: ") + project_location);
//wxPuts(_("Main Source: ") + main_source_value);
//open_projects.push_back(new_project);
}
void rcbasic_edit_newProject_dialog::createMainSourceRadioSelected( wxCommandEvent& event )
{
projectNewMain_field->Enable( true );
projectExistingFile_picker->Enable( false );
}
void rcbasic_edit_newProject_dialog::copyExistingSourceRadioSelected( wxCommandEvent& event )
{
projectNewMain_field->Enable( false );
projectExistingFile_picker->Enable( true );
}
bool rcbasic_edit_newProject_dialog::getNewProjectValue()
{
return newProjectValue;
}