예제 #1
0
파일: typing.cpp 프로젝트: EMacks/HCI
Typing::Typing(QString m, QWidget * parent) : QTextEdit(parent) {
   dofill();
   toMatch = m;
   for(int i = 0; i < toMatch.size(); i++) {
      if(toMatch[i] == '\n')
	 toMatch[i] = ' ';
   }
   QTextCursor textCursor = this->textCursor();
   textCursor.clearSelection();
   this->setTextCursor(textCursor);
   atChar = 0;
   time = new QTime();
   time->start();
}
예제 #2
0
static Bool pdf_generic_fill( PDFCONTEXT *pdfc , int32 filltype )
{
  /* filltype: NZFILL_TYPE or EOFILL_TYPE
   */
  PDF_IMC_PARAMS *imc ;

  PDF_CHECK_MC( pdfc ) ;
  PDF_GET_IMC( imc ) ;

  /* If clipmode is set, must copy the path instead of stealing it. */
  if ( !dofill(&(theIPathInfo(gstateptr)), filltype, GSC_FILL,
        (imc->pdfclipmode != PDF_NO_CLIP) ? FILL_COPYCHARPATH : FILL_NORMAL) )
    return FALSE ;

  return pdf_check_clip( pdfc ) ;
}