void Parser::parsedBlockCode(struct buf *ob, struct buf *text) { if(!text) return; // Analyze seems to believe that text can be null here parsedNormalText(ob, text); eraseTrailingControlCharacters(NEWLINE); bufreset(text); appendElementMarker(text); handleBlock(BLOCK_CODE, ob, text); }
bool run() { for (BlockIndex blockIndex = 0; blockIndex < m_graph.numBlocks(); ++blockIndex) { m_currentBlock = m_graph.block(blockIndex); if (!m_currentBlock) continue; handleBlock(m_currentBlock); } return true; }
bool run() { ASSERT(m_graph.m_form == SSA); m_changed = false; for (BlockIndex blockIndex = m_graph.numBlocks(); blockIndex--;) handleBlock(blockIndex); return m_changed; }
PicMosaic::PicMosaic(QWidget *parent) : QWidget(parent), ui(new Ui::PicMosaic) { this->pixmap = new QPixmap; this->thread = new mosaicThread(this); ui->setupUi(this); this->ui->label->setPixmap(*this->pixmap); this->connect(this->thread,SIGNAL(throwBlock(Block)),this,SLOT(handleBlock(Block))); this->connect(this->thread,SIGNAL(finished()),this,SLOT(finishSlot())); this->ui->reset->setEnabled(false); this->ui->stop->setEnabled(false); this->connect(this->ui->stop,SIGNAL(clicked()),this->thread,SLOT(stop())); }
void Parser::parsedParagraph(struct buf *ob, struct buf *text) { handleBlock(PARAGRAPH, ob, text); }
void Parser::parsedListItem(struct buf *ob, struct buf *text, int flags) { handleBlock(LIST_ITEM, ob, text); }
void Parser::parsedList(struct buf *ob, struct buf *text, int flags) { handleBlock(LIST, ob, text, flags); }
void Parser::parsedHrule(struct buf *ob) { handleBlock(HRULE, ob); }
void Parser::parsedHeader(struct buf *ob, struct buf *text, int level) { handleBlock(HEADER, ob, text, level); }
void Parser::parsedBlockQuote(struct buf *ob, struct buf *text) { handleBlock(BLOCK_QUOTE, ob, text); }