QViScintilla
::QViScintilla( QWidget* parent
) : QsciScintilla(parent)
{
fontsize = 12;
numerobase = 0;
font.
setFamily(QString::fromUtf8("Arial"));
font.setPointSize(fontsize);
setFont(font);
setIndentationGuidesBackgroundColor
(QColor("#e6e6de"));
setAutoCompletionThreshold(2);
setFolding(QsciScintilla::BoxedFoldStyle);;
setMarginLineNumbers(1,true);
setAutoCompletionFillupsEnabled(true);
setAutoCompletionSource(QsciScintilla::AcsAll);
setCaretWidth(10);
setCaretLineBackgroundColor
(QColor("#e6fff0"));
setCaretLineVisible(true);
ensureLineVisible(1);
setUtf8(true);
setWhitespaceVisibility(QsciScintilla::WsVisible);
QsciLexerHTML *htmllex = new QsciLexerHTML(this);
setLexer(htmllex);
model = PAGER_LOADING_FUNCTIONS; /* start on tmp mode typedef set after connect run */
connect(shortcut1, SIGNAL(activated()),this, SLOT(SaveCurrentDoc()));
/////////connect(this, SIGNAL(textChanged()),this, SLOT(UpdateParent()));
connect(shortcut7, SIGNAL(activated()),this, SLOT(Decreasefont()));
connect(shortcut8, SIGNAL(activated()),this, SLOT(Increasefont()));
}
QViScintilla::QViScintilla( QWidget* parent )
: QsciScintilla(parent)
{
fontsize = 12;
numerobase = 0;
QFont font;
font.setFamily(QString::fromUtf8("Arial"));
font.setPointSize(fontsize);
setFont(font);
setPaper(QColor("#fbffcb"));
setIndentationGuidesBackgroundColor(QColor("#e6e6de"));
setAutoCompletionThreshold(2);
setFolding(QsciScintilla::BoxedFoldStyle);;
setMarginLineNumbers(1,true);
setAutoCompletionFillupsEnabled(true);
setAutoCompletionSource(QsciScintilla::AcsAll);
setCaretWidth(10);
setCaretLineBackgroundColor(QColor("#e6fff0"));
setCaretLineVisible(true);
ensureLineVisible(1);
setUtf8(true);
setWhitespaceVisibility(QsciScintilla::WsVisible);
QsciLexerHTML *htmllex = new QsciLexerHTML(this);
setLexer(htmllex);
shortcut1 = new QShortcut(QKeySequence("Ctrl+S"),this);
model = PAGER_LOADING_FUNCTIONS; /* start on tmp mode typedef set after connect run */
connect(shortcut1, SIGNAL(activated()),this, SLOT(SaveCurrentDoc()));
/////////connect(this, SIGNAL(textChanged()),this, SLOT(UpdateParent()));
shortcut7 = new QShortcut(QKeySequence::ZoomOut,this); /* CTRL- */
shortcut8 = new QShortcut(QKeySequence::ZoomIn,this); /* CTRL+ */
connect(shortcut7, SIGNAL(activated()),this, SLOT(Decreasefont()));
connect(shortcut8, SIGNAL(activated()),this, SLOT(Increasefont()));
}
To copy to clipboard, switch view to plain text mode
Bookmarks