本文整理汇总了C++中QsciScintillaBase类的典型用法代码示例。如果您正苦于以下问题:C++ QsciScintillaBase类的具体用法?C++ QsciScintillaBase怎么用?C++ QsciScintillaBase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了QsciScintillaBase类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sciWidget
// Set the cursor offset.
void QsciAccessibleScintillaBase::setCursorPosition(int position)
{
QsciScintillaBase *sb = sciWidget();
sb->SendScintilla(QsciScintillaBase::SCI_GOTOPOS,
offsetAsPosition(sb, position));
}
示例2: setColor
// Set the color attribute.
void QsciStyle::setColor(const QColor &color)
{
style_color = color;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETFORE, style_nr,
style_color);
}
}
示例3: setHotspot
// Set the hotspot attribute.
void QsciStyle::setHotspot(bool hotspot)
{
style_hotspot = hotspot;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETHOTSPOT,
style_nr, style_hotspot);
}
}
示例4: setChangeable
// Set the changeable attribute.
void QsciStyle::setChangeable(bool changeable)
{
style_changeable = changeable;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETCHANGEABLE,
style_nr, style_changeable);
}
}
示例5: setVisible
// Set the visible attribute.
void QsciStyle::setVisible(bool visible)
{
style_visible = visible;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETVISIBLE,
style_nr, style_visible);
}
}
示例6: setTextCase
// Set the text case attribute.
void QsciStyle::setTextCase(QsciStyle::TextCase text_case)
{
style_case = text_case;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETCASE, style_nr,
(long)style_case);
}
}
示例7: setEolFill
// Set the eol fill attribute.
void QsciStyle::setEolFill(bool eolFill)
{
style_eol_fill = eolFill;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETEOLFILLED,
style_nr, style_eol_fill);
}
}
示例8: setPaper
// Set the paper attribute.
void QsciStyle::setPaper(const QColor &paper)
{
style_paper = paper;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETBACK, style_nr,
style_paper);
}
}
示例9: detach
// Detach the underlying document.
void QsciDocument::detach()
{
if (!pdoc)
return;
if (--pdoc->nr_attaches == 0)
{
if (pdoc->doc && pdoc->nr_displays == 0)
{
QsciScintillaBase *qsb = QsciScintillaBase::pool();
// Release the explicit reference to the document. If the pool is
// empty then we just accept the memory leak.
if (qsb)
qsb->SendScintilla(QsciScintillaBase::SCI_RELEASEDOCUMENT, 0,
pdoc->doc);
}
delete pdoc;
}
pdoc = 0;
}
示例10: setFont
// Set the font attribute.
void QsciStyle::setFont(const QFont &font)
{
style_font = font;
if (style_nr >= 0)
{
QsciScintillaBase *sci = QsciScintillaBase::pool();
if (sci)
{
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETFONT, style_nr,
style_font.family().toAscii().data());
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETSIZE, style_nr,
style_font.pointSize());
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETBOLD, style_nr,
style_font.bold());
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETITALIC, style_nr,
style_font.italic());
sci->SendScintilla(QsciScintillaBase::SCI_STYLESETUNDERLINE,
style_nr, style_font.underline());
}
}
}