当前位置: 首页>>代码示例>>C++>>正文


C++ ContentChanged函数代码示例

本文整理汇总了C++中ContentChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ ContentChanged函数的具体用法?C++ ContentChanged怎么用?C++ ContentChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ContentChanged函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ContentChanged

void
nsHTMLStyleElement::ContentAppended(nsIDocument* aDocument,
                                    nsIContent* aContainer,
                                    PRInt32 aNewIndexInContainer)
{
  ContentChanged(aContainer);
}
开发者ID:SecareLupus,项目名称:Drood,代码行数:7,代码来源:nsHTMLStyleElement.cpp

示例2: ContentChanged

void
SVGStyleElement::CharacterDataChanged(nsIDocument* aDocument,
                                      nsIContent* aContent,
                                      CharacterDataChangeInfo* aInfo)
{
  ContentChanged(aContent);
}
开发者ID:bbondy,项目名称:mozilla-central,代码行数:7,代码来源:SVGStyleElement.cpp

示例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()));
}
开发者ID:BtbN,项目名称:crimson-core,代码行数:27,代码来源:glsltexteditor.cpp

示例4: ContentChanged

void
HTMLTextAreaElement::CharacterDataChanged(nsIDocument* aDocument,
                                          nsIContent* aContent,
                                          CharacterDataChangeInfo* aInfo)
{
  ContentChanged(aContent);
}
开发者ID:JuannyWang,项目名称:gecko-dev,代码行数:7,代码来源:HTMLTextAreaElement.cpp

示例5: ContentChanged

void
nsHTMLTextAreaElement::ContentInserted(nsIDocument* aDocument,
                                       nsIContent* aContainer,
                                       nsIContent* aChild,
                                       PRInt32 aIndexInContainer)
{
  ContentChanged(aChild);
}
开发者ID:AllenDou,项目名称:firefox,代码行数:8,代码来源:nsHTMLTextAreaElement.cpp

示例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;
	}
}
开发者ID:rajeshpillai,项目名称:HexEdit,代码行数:16,代码来源:HexViewKeyboard.cpp

示例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;
}
开发者ID:rajeshpillai,项目名称:HexEdit,代码行数:21,代码来源:HexViewKeyboard.cpp

示例8: ContentChanged

void HTMLTextAreaElement::ContentAppended(nsIContent* aFirstNewContent) {
  ContentChanged(aFirstNewContent);
}
开发者ID:jasonLaster,项目名称:gecko-dev,代码行数:3,代码来源:HTMLTextAreaElement.cpp

示例9: ContentChanged

void SVGStyleElement::ContentRemoved(nsIContent* aChild,
                                     nsIContent* aPreviousSibling) {
  ContentChanged(aChild);
}
开发者ID:jasonLaster,项目名称:gecko-dev,代码行数:4,代码来源:SVGStyleElement.cpp

示例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);
//.........这里部分代码省略.........
开发者ID:rajeshpillai,项目名称:HexEdit,代码行数:101,代码来源:HexViewKeyboard.cpp

示例11: ContentChanged

void FlowTab::EmitContentChanged()
{
    m_safeToLoad = false;
    emit ContentChanged();
}
开发者ID:AmesianX,项目名称:Sigil,代码行数:5,代码来源:FlowTab.cpp


注:本文中的ContentChanged函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。