Exemplo n.º 1
0
void codeGen(TreeNode *syntaxTree, const char *codefile)
{
	writeFileHeader();
	writeVarSection();
	cGen(syntaxTree);
	fillCodeSection();
	writeTempVarSection();
	writeVarRefSection();
	fillSection();
	writeTempVarRefSection();
	fillSection();
	updateFileHeader();
}
Exemplo n.º 2
0
void    Dialog::fillBooks(){
    ui->treeBooks->clear();

    QStringList sections = m_bookStore.getSections();
    StoreSection *section;
    for (int index=0; index < sections.size(); index++) {
        section = m_bookStore.getSection(sections.at(index));

        QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeBooks);
        item->setText(0, section->getTitle());
        ui->treeBooks->addTopLevelItem(item);
        fillSection(section, item);
    }

}