Пример #1
0
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;
 }
Пример #4
0
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()));
}
Пример #5
0
void Parser::parsedParagraph(struct buf *ob, struct buf *text) {
    handleBlock(PARAGRAPH, ob, text);
}
Пример #6
0
void Parser::parsedListItem(struct buf *ob, struct buf *text, int flags) {
    handleBlock(LIST_ITEM, ob, text);
}
Пример #7
0
void Parser::parsedList(struct buf *ob, struct buf *text, int flags) {
    handleBlock(LIST, ob, text, flags);
}
Пример #8
0
void Parser::parsedHrule(struct buf *ob) {
    handleBlock(HRULE, ob);
}
Пример #9
0
void Parser::parsedHeader(struct buf *ob, struct buf *text, int level) {
    handleBlock(HEADER, ob, text, level);
}
Пример #10
0
void Parser::parsedBlockQuote(struct buf *ob, struct buf *text) {
    handleBlock(BLOCK_QUOTE, ob, text);
}