75 layout->addLayout (boxes, 2, 1, 1, 2); |
75 layout->addLayout (boxes, 2, 1, 1, 2); |
76 layout->addWidget (bbx_buttons, 3, 2); |
76 layout->addWidget (bbx_buttons, 3, 2); |
77 |
77 |
78 setLayout (layout); |
78 setLayout (layout); |
79 setWindowIcon (getIcon ("brick")); |
79 setWindowIcon (getIcon ("brick")); |
80 setWindowTitle (APPNAME_DISPLAY ": New Part"); |
80 setWindowTitle (APPNAME ": New Part"); |
81 } |
81 } |
82 |
82 |
83 // ============================================================================= |
83 // ============================================================================= |
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
85 // ============================================================================= |
85 // ============================================================================= |
104 (idx == LICENSE_NonCA) ? "Not redistributable : see NonCAreadme.txt" : |
104 (idx == LICENSE_NonCA) ? "Not redistributable : see NonCAreadme.txt" : |
105 null; |
105 null; |
106 |
106 |
107 objs.push_back (new LDComment (dlg.le_name->text ())); |
107 objs.push_back (new LDComment (dlg.le_name->text ())); |
108 objs.push_back (new LDComment ("Name: <untitled>.dat")); |
108 objs.push_back (new LDComment ("Name: <untitled>.dat")); |
109 objs.push_back (new LDComment (format ("Author: %s", zAuthor.chars()))); |
109 objs.push_back (new LDComment (fmt ("Author: %s", zAuthor.chars()))); |
110 objs.push_back (new LDComment (format ("!LDRAW_ORG Unofficial_Part"))); |
110 objs.push_back (new LDComment (fmt ("!LDRAW_ORG Unofficial_Part"))); |
111 |
111 |
112 if (sLicense != null) |
112 if (sLicense != null) |
113 objs.push_back (new LDComment (format ("!LICENSE %s", sLicense))); |
113 objs.push_back (new LDComment (fmt ("!LICENSE %s", sLicense))); |
114 |
114 |
115 objs.push_back (new LDEmpty); |
115 objs.push_back (new LDEmpty); |
116 objs.push_back (new LDBFC (eBFCType)); |
116 objs.push_back (new LDBFC (eBFCType)); |
117 objs.push_back (new LDEmpty); |
117 objs.push_back (new LDEmpty); |
118 |
118 |