comparison examples/dialogs/classwizard/classwizard_d1.d @ 253:073b9153ed8a

Rev. 264 done right. Problems: - classwizard segfaults on exit due to a bug in signals/slots or runtime. - hellogl doesn't compile with dmd2 due to a bug in the compiler backend
author maxter
date Sun, 30 Aug 2009 09:59:12 +0000
parents 06e7d3219464
children 256ab6cb8e85
comparison
equal deleted inserted replaced
252:37eed70de029 253:073b9153ed8a
137 if (field("protect").toBool()) { 137 if (field("protect").toBool()) {
138 block ~= "\n"; 138 block ~= "\n";
139 block ~= "#endif\n"; 139 block ~= "#endif\n";
140 } 140 }
141 141
142 auto headerFile = new QFile(outputDir ~ "/" ~ header); 142 scope headerFile = new QFile(outputDir ~ "/" ~ header);
143 if (!headerFile.open(QFile.WriteOnly | QFile.Text)) { 143 if (!headerFile.open(QFile.WriteOnly | QFile.Text)) {
144 QMessageBox.warning(null, tr("Simple Wizard"), 144 QMessageBox.warning(null, tr("Simple Wizard"),
145 Format(tr("Cannot write file {}:\n{}"), 145 Format(tr("Cannot write file {}:\n{}"),
146 headerFile.fileName(), 146 headerFile.fileName(),
147 headerFile.errorString())); 147 headerFile.errorString()));
191 block ~= " return *this;\n"; 191 block ~= " return *this;\n";
192 block ~= "}\n"; 192 block ~= "}\n";
193 } 193 }
194 } 194 }
195 195
196 auto implementationFile = new QFile(outputDir ~ "/" ~ implementation); 196 scope implementationFile = new QFile(outputDir ~ "/" ~ implementation);
197 if (!implementationFile.open(QFile.WriteOnly | QFile.Text)) { 197 if (!implementationFile.open(QFile.WriteOnly | QFile.Text)) {
198 QMessageBox.warning(null, tr("Simple Wizard"), 198 QMessageBox.warning(null, tr("Simple Wizard"),
199 Format(tr("Cannot write file {}:\n{}"), 199 Format(tr("Cannot write file {}:\n{}"),
200 implementationFile.fileName(), 200 implementationFile.fileName(),
201 implementationFile.errorString())); 201 implementationFile.errorString()));