本文整理汇总了C++中ContentChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ ContentChanged函数的具体用法?C++ ContentChanged怎么用?C++ ContentChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ContentChanged函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ContentChanged
void
nsHTMLStyleElement::ContentAppended(nsIDocument* aDocument,
nsIContent* aContainer,
PRInt32 aNewIndexInContainer)
{
ContentChanged(aContainer);
}
示例2: ContentChanged
void
SVGStyleElement::CharacterDataChanged(nsIDocument* aDocument,
nsIContent* aContent,
CharacterDataChangeInfo* aInfo)
{
ContentChanged(aContent);
}
示例3: QPlainTextEdit
GLSLTextEditor::GLSLTextEditor(QWidget* parent)
: QPlainTextEdit (parent)
{
_highlighter = new GLSLSyntaxHighlighter(document());
_lineNumberArea = new LineNumberArea (this);
connect(this, SIGNAL(blockCountChanged(int)), this, SLOT(UpdateLineNumberAreaWidth(int)));
connect(this, SIGNAL(updateRequest(QRect,int)), this, SLOT(UpdateLineNumberArea(QRect,int)));
connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(HighlightCurrentLine()));
setWordWrapMode(QTextOption::NoWrap);
QTextDocument* doc = document();
#ifdef _WIN32
QFont f ("Courier");
#else
QFont f ("Monospace");
#endif
f.setStyleHint(QFont::Monospace);
f.setPixelSize(11);
doc->setDefaultFont(f);
connect (doc, SIGNAL(contentsChange(int,int,int)), SLOT(on_document_contentChanged (int, int, int)));
connect(doc, SIGNAL(contentsChanged()), this, SIGNAL(ContentChanged()));
}
示例4: ContentChanged
void
HTMLTextAreaElement::CharacterDataChanged(nsIDocument* aDocument,
nsIContent* aContent,
CharacterDataChangeInfo* aInfo)
{
ContentChanged(aContent);
}
示例5: ContentChanged
void
nsHTMLTextAreaElement::ContentInserted(nsIDocument* aDocument,
nsIContent* aContainer,
nsIContent* aChild,
PRInt32 aIndexInContainer)
{
ContentChanged(aChild);
}
示例6: ContentChanged
bool HexView::Redo()
{
if(m_pDataSeq->redo())
{
m_nSelectionStart = m_pDataSeq->event_index();
m_nSelectionEnd = m_pDataSeq->event_length() + m_nSelectionStart;
m_nCursorOffset = m_nSelectionEnd;
ContentChanged();
return true;
}
else
{
return false;
}
}
示例7: SelectionSize
bool HexView::ForwardDelete()
{
if(SelectionSize() > 0)
{
m_pDataSeq->erase(SelectionStart(), SelectionSize());
m_nCursorOffset = SelectionStart();
m_pDataSeq->breakopt();
}
else
{
m_pDataSeq->erase(m_nCursorOffset, 1);
}
m_nSelectionStart = m_nCursorOffset;
m_nSelectionEnd = m_nCursorOffset;
ContentChanged();
return true;
}
示例8: ContentChanged
void HTMLTextAreaElement::ContentAppended(nsIContent* aFirstNewContent) {
ContentChanged(aFirstNewContent);
}
示例9: ContentChanged
void SVGStyleElement::ContentRemoved(nsIContent* aChild,
nsIContent* aPreviousSibling) {
ContentChanged(aChild);
}
示例10: MessageBeep
LRESULT HexView::OnChar(UINT nChar)
{
if(nChar < 32)
return 0;
if(m_nEditMode == HVMODE_READONLY)
{
MessageBeep(MB_ICONASTERISK);
return 0;
}
if(m_nWhichPane == 0) // hex column
{
int cl[4] = { 2, 3, 3, 8 };
int cb[4] = { 16, 10, 8, 2 };
//int cw[4] = { 2, 3, 3, 2 };
int cf = m_nControlStyles & HVS_FORMAT_MASK;
int val;
BYTE b = 0;
// get data under caret
if(m_nSubItem > 0)
{
b = m_pDataSeq->getlastmodref();
}
else
{
GetData(m_nCursorOffset, &b, 1);
}
// check this is an allowed character
if(cf == HVS_FORMAT_HEX && !isxdigit(nChar) ||
cf == HVS_FORMAT_DEC && !(nChar >= '0' && nChar <= '9') ||
cf == HVS_FORMAT_OCT && !(nChar >= '0' && nChar <= '7') ||
cf == HVS_FORMAT_BIN && !(nChar >= '0' && nChar <= '1')
)
{
MessageBeep(MB_ICONASTERISK);
return 0;
}
int val2;
if(nChar >= 'a') val2 = nChar - 'a' + 0x0a;
else if(nChar >= 'A') val2 = nChar - 'A' + 0x0A;
else val2 = nChar - '0';
int power = 1;
int base = cb[cf];
for(int i = cl[cf] - 1; i > m_nSubItem; i--)
power *= base;
if(m_nEditMode == HVMODE_INSERT)
b = 0;
val = b;
val = (val / power) % base;
val *= power;
val = b - val;
val += val2 * power;
// check that we won't overflow the underlying value
if(val > 0xff)
{
//MessageBeep(MB_ICONASTERISK);
//return 0;
val -= b % power;
}
if(m_nSubItem++ == 0)
{
b = (BYTE)val;
// enter the data
EnterData(&b, 1, m_nWhichPane == 0 ? false : true, true, false);
}
else
{
// directly edit the byte in the sequence - this
// prevents us from introducing any more spans than necessary
// and keeps this as a single 'byte' edit
m_pDataSeq->getlastmodref() = val;
ContentChanged();
if(m_nSubItem == cl[cf])
{
m_nSubItem = 0;
m_nCursorOffset++;
}
RepositionCaret();
}
}
else
{
BYTE b = nChar;
// ascii column - enter the data as-is
m_nSubItem = 0;
EnterData(&b, 1, true, true, false);
//.........这里部分代码省略.........
示例11: ContentChanged
void FlowTab::EmitContentChanged()
{
m_safeToLoad = false;
emit ContentChanged();
}