mirror of https://github.com/buggins/dlangide.git
new project creation
This commit is contained in:
parent
4f3a13abb7
commit
94398cce6a
|
@ -29,70 +29,61 @@ class NewProjectDlg : Dialog {
|
||||||
super.init();
|
super.init();
|
||||||
Widget content = parseML(q{
|
Widget content = parseML(q{
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
id: vlayout
|
id: vlayout
|
||||||
margins: Rect { left: 5; right: 3; top: 2; bottom: 4 }
|
margins: Rect { left: 5; right: 3; top: 2; bottom: 4 }
|
||||||
padding: Rect { 5, 4, 3, 2 } // same as Rect { left: 5; top: 4; right: 3; bottom: 2 }
|
padding: Rect { 5, 4, 3, 2 } // same as Rect { left: 5; top: 4; right: 3; bottom: 2 }
|
||||||
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
|
||||||
HorizontalLayout {
|
|
||||||
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
||||||
VerticalLayout {
|
HorizontalLayout {
|
||||||
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
||||||
TextWidget {
|
|
||||||
text: "Project type"
|
|
||||||
}
|
|
||||||
StringListWidget { id: projectTypeList }
|
|
||||||
}
|
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
||||||
TextWidget {
|
TextWidget { text: "Project template" }
|
||||||
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 }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TableLayout {
|
HorizontalLayout {
|
||||||
colCount: 2
|
TableLayout {
|
||||||
|
colCount: 2
|
||||||
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
||||||
TextWidget { text: "Project name" }
|
TextWidget { text: "Project name" }
|
||||||
EditLine {
|
EditLine {
|
||||||
id: edProjectName
|
id: edProjectName
|
||||||
|
}
|
||||||
|
TextWidget { text: "Solution name" }
|
||||||
|
EditLine {
|
||||||
|
id: edSolutionName
|
||||||
|
}
|
||||||
|
TextWidget { text: "Location" }
|
||||||
|
EditLine {
|
||||||
|
id: edLocation
|
||||||
|
}
|
||||||
|
TextWidget { text: "" }
|
||||||
|
CheckBox { id: cbCreateSubdir; text: "Create subdirectory for project" }
|
||||||
}
|
}
|
||||||
TextWidget { text: "Solution name" }
|
VerticalLayout {
|
||||||
EditLine {
|
layoutWidth: FILL_PARENT; layoutHeight: FILL_PARENT
|
||||||
id: edSolutionName
|
TextWidget { text: "Description" }
|
||||||
|
EditBox { id: directoryLayout }
|
||||||
}
|
}
|
||||||
TextWidget { text: "Location" }
|
|
||||||
EditLine {
|
|
||||||
id: edLocation
|
|
||||||
}
|
|
||||||
TextWidget { text: "" }
|
|
||||||
CheckBox { id: cbCreateSubdir; text: "Create subdirectory for project" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
_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));
|
||||||
|
|
Loading…
Reference in New Issue