new project creation

This commit is contained in:
Vadim Lopatin 2015-12-07 09:12:22 +03:00
parent 4f3a13abb7
commit 94398cce6a
1 changed files with 33 additions and 42 deletions

View File

@ -37,26 +37,16 @@ class NewProjectDlg : Dialog {
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
VerticalLayout { VerticalLayout {
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
TextWidget { TextWidget { text: "Project template" }
text: "Project type"
}
StringListWidget { id: projectTypeList }
}
VerticalLayout {
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
TextWidget {
text: "Template"
}
StringListWidget { id: projectTemplateList } StringListWidget { id: projectTemplateList }
} }
VerticalLayout { VerticalLayout {
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
TextWidget { TextWidget { text: "Template description" }
text: "Description" EditBox { id: templateDescription; readOnly: true }
}
EditBox { id: templateDescription }
} }
} }
HorizontalLayout {
TableLayout { TableLayout {
colCount: 2 colCount: 2
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
@ -75,24 +65,25 @@ class NewProjectDlg : Dialog {
TextWidget { text: "" } TextWidget { text: "" }
CheckBox { id: cbCreateSubdir; text: "Create subdirectory for project" } CheckBox { id: cbCreateSubdir; text: "Create subdirectory for project" }
} }
VerticalLayout {
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
TextWidget { text: "Description" }
EditBox { id: directoryLayout }
}
}
} }
}); });
_projectTypeList = content.childById!StringListWidget("projectTypeList");
_projectTemplateList = content.childById!StringListWidget("projectTemplateList"); _projectTemplateList = content.childById!StringListWidget("projectTemplateList");
_templateDescription = content.childById!EditBox("templateDescription"); _templateDescription = content.childById!EditBox("templateDescription");
_projectTypeList.items = [ _projectTemplateList.items = [
"Empty Project"d, "Empty App Project"d,
"Library"d, "Empty Library Project"d,
"Hello World App"d,
"Console Application"d, "Console Application"d,
"DlangUI Library"d, "DlangUI Library"d,
"DlangUI Application"d, "DlangUI Application"d,
]; ];
_projectTemplateList.items = [
"Hello World"d,
"DlangUI Form based app"d,
"DlangUI Frame based app"d,
];
addChild(content); addChild(content);
addChild(createButtonsPanel([ACTION_OK, ACTION_CANCEL], 0, 0)); addChild(createButtonsPanel([ACTION_OK, ACTION_CANCEL], 0, 0));