예제 #1
0
 protected void SetFormat(int start, int count, QTextCharFormat format)
 {
     interceptor.Invoke("setFormat$$#", "setFormat(int, int, const QTextCharFormat&)", typeof(void), typeof(int), start, typeof(int), count, typeof(QTextCharFormat), format);
 }
예제 #2
0
 public void MergeCurrentCharFormat(QTextCharFormat modifier)
 {
     interceptor.Invoke("mergeCurrentCharFormat#", "mergeCurrentCharFormat(const QTextCharFormat&)", typeof(void), typeof(QTextCharFormat), modifier);
 }
예제 #3
0
 public void SetCurrentCharFormat(QTextCharFormat format)
 {
     interceptor.Invoke("setCurrentCharFormat#", "setCurrentCharFormat(const QTextCharFormat&)", typeof(void), typeof(QTextCharFormat), format);
 }
예제 #4
0
파일: QPlainTextEdit.cs 프로젝트: KDE/qyoto
 public void MergeCurrentCharFormat(QTextCharFormat modifier)
 {
     interceptor.Invoke("mergeCurrentCharFormat#", "mergeCurrentCharFormat(const QTextCharFormat&)", typeof(void), typeof(QTextCharFormat), modifier);
 }
예제 #5
0
파일: QPlainTextEdit.cs 프로젝트: KDE/qyoto
 public void SetCurrentCharFormat(QTextCharFormat format)
 {
     interceptor.Invoke("setCurrentCharFormat#", "setCurrentCharFormat(const QTextCharFormat&)", typeof(void), typeof(QTextCharFormat), format);
 }
예제 #6
0
 public void SetWeekdayTextFormat(Qt.DayOfWeek dayOfWeek, QTextCharFormat format)
 {
     interceptor.Invoke("setWeekdayTextFormat$#", "setWeekdayTextFormat(Qt::DayOfWeek, const QTextCharFormat&)", typeof(void), typeof(Qt.DayOfWeek), dayOfWeek, typeof(QTextCharFormat), format);
 }
예제 #7
0
 protected void SetFormat(int start, int count, QTextCharFormat format)
 {
     interceptor.Invoke("setFormat$$#", "setFormat(int, int, const QTextCharFormat&)", typeof(void), typeof(int), start, typeof(int), count, typeof(QTextCharFormat), format);
 }
예제 #8
0
 public void InsertBlock(QTextBlockFormat format, QTextCharFormat charFormat)
 {
     interceptor.Invoke("insertBlock##", "insertBlock(const QTextBlockFormat&, const QTextCharFormat&)", typeof(void), typeof(QTextBlockFormat), format, typeof(QTextCharFormat), charFormat);
 }
예제 #9
0
 public void SetDateTextFormat(QDate date, QTextCharFormat format)
 {
     interceptor.Invoke("setDateTextFormat##", "setDateTextFormat(const QDate&, const QTextCharFormat&)", typeof(void), typeof(QDate), date, typeof(QTextCharFormat), format);
 }
예제 #10
0
파일: ChatWindow.cs 프로젝트: goto/synapse
 void on_textEdit_currentCharFormatChanged(QTextCharFormat format)
 {
     var font = format.Font();
     m_BoldAction.Checked = font.Bold();
     m_ItalicAction.Checked = font.Italic();
     m_UnderlineAction.Checked = font.Underline();
     m_StrikethroughAction.Checked = font.StrikeOut();
 }
예제 #11
0
 public void InsertText(string text, QTextCharFormat format)
 {
     interceptor.Invoke("insertText$#", "insertText(const QString&, const QTextCharFormat&)", typeof(void), typeof(string), text, typeof(QTextCharFormat), format);
 }
예제 #12
0
파일: ChatWindow.cs 프로젝트: goto/synapse
        void HandleFormatMenuActionTriggered(QAction action)
        {
            var cursor = textEdit.TextCursor();

            QTextCharFormat fmt = new QTextCharFormat();

            if (action == m_ClearFormattingAction) {
                cursor.SetCharFormat(fmt);
                textEdit.SetCurrentCharFormat(fmt);
                return;
            }

            if (action == m_BoldAction)
                fmt.SetFontWeight(action.Checked ? (int)QFont.Weight.Bold : (int)QFont.Weight.Normal);
            else if (action == m_ItalicAction)
                fmt.SetFontItalic(action.Checked);
            else if (action == m_UnderlineAction)
                fmt.SetFontUnderline(action.Checked);
            else if (action == m_StrikethroughAction)
                fmt.SetFontStrikeOut(action.Checked);

            cursor.MergeCharFormat(fmt);
            textEdit.MergeCurrentCharFormat(fmt);
        }
예제 #13
0
 public void SetVerticalAlignment(QTextCharFormat.VerticalAlignment alignment)
 {
     interceptor.Invoke("setVerticalAlignment$", "setVerticalAlignment(QTextCharFormat::VerticalAlignment)", typeof(void), typeof(QTextCharFormat.VerticalAlignment), alignment);
 }
예제 #14
0
 public void SetUnderlineStyle(QTextCharFormat.UnderlineStyle style)
 {
     interceptor.Invoke("setUnderlineStyle$", "setUnderlineStyle(QTextCharFormat::UnderlineStyle)", typeof(void), typeof(QTextCharFormat.UnderlineStyle), style);
 }
예제 #15
0
 public void SetDateTextFormat(QDate date, QTextCharFormat format)
 {
     interceptor.Invoke("setDateTextFormat##", "setDateTextFormat(const QDate&, const QTextCharFormat&)", typeof(void), typeof(QDate), date, typeof(QTextCharFormat), format);
 }
예제 #16
0
 public void SetWeekdayTextFormat(Qt.DayOfWeek dayOfWeek, QTextCharFormat format)
 {
     interceptor.Invoke("setWeekdayTextFormat$#", "setWeekdayTextFormat(Qt::DayOfWeek, const QTextCharFormat&)", typeof(void), typeof(Qt.DayOfWeek), dayOfWeek, typeof(QTextCharFormat), format);
 }