QCodeEdit blockselection patch, ready to use
This commit is contained in:
@@ -143,11 +143,11 @@ private:
|
||||
QFrame * widget_help;
|
||||
_QCE_Viewport * overlay;
|
||||
QTextEdit::ExtraSelection es_line, es_cursor, es_bracket, es_range, es_search, es_link;
|
||||
QList<QTextEdit::ExtraSelection> es_selected, es_custom, es_brackets, es_search_list;
|
||||
QList<QTextEdit::ExtraSelection> es_selected, es_custom, es_brackets, es_search_list, es_blockselection;
|
||||
QMap<int, ACClass> ac_classes;
|
||||
QStringList cursor_scope;
|
||||
ACEntry link_entry, help_entry;
|
||||
QTextCursor block_start_cursor;
|
||||
QTextCursor block_start_cursor, drag_cursor;
|
||||
int prev_lc, auto_comp_pl, timer_parse, timer_blink, cur_search_ind, pos_press, pos_el_press;
|
||||
int cursor_width;
|
||||
bool spaces_, _ignore_focus_out, _first, _destructor, _replacing;
|
||||
@@ -164,7 +164,7 @@ private:
|
||||
void clearSearch();
|
||||
void moveToSearch();
|
||||
int searchIndFromCursor();
|
||||
QRect cursorRect(QRect * line = 0);
|
||||
QRect cursorRect();
|
||||
QRect blockSelectionRect();
|
||||
void repaintCursor();
|
||||
void drawCursor();
|
||||
@@ -174,6 +174,8 @@ private:
|
||||
void switchBlockSelection(QKeyEvent * ke = 0);
|
||||
bool removeBlockSelection(bool is_del);
|
||||
void insertBlockSelection(QString text);
|
||||
void createBlockSelection();
|
||||
void cancelDragCursor();
|
||||
ACEntry findEntryOnCursor(QTextCursor tc, int arg = -1, ACClass * acc = 0, QPair<QStringList, QString> * scope = 0);
|
||||
|
||||
private slots:
|
||||
@@ -202,6 +204,7 @@ private slots:
|
||||
void textEdit_cursorPositionChanged();
|
||||
void textEdit_textChanged();
|
||||
void textEdit_selectionChanged();
|
||||
void textEdit_redoAvailable(bool available);
|
||||
void on_comboSearch_currentTextChanged(const QString & t);
|
||||
void on_buttonReplace_clicked();
|
||||
void on_buttonReplaceSearch_clicked();
|
||||
|
||||
Reference in New Issue
Block a user