當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。