|
| void | internalUpdateScrollBar () |
| |
| FormattedLines * | fetchLines () |
| | ビューに表示されている範囲のテキストを取得 More...
|
| |
| int | basisCharWidth () const |
| | 基準文字幅 More...
|
| |
| | TextEditorView (QWidget *parent=nullptr) |
| |
| | ~TextEditorView () override |
| |
| void | setTheme (const TextEditorThemePtr &theme) |
| |
| TextEditorTheme const * | theme () const |
| |
| int | lineHeight () const |
| | 行の高さ More...
|
| |
| void | updateVisibility (bool ensure_current_line_visible, bool change_col, bool auto_scroll) override |
| |
| bool | event (QEvent *event) override |
| |
| void | bindScrollBar (QScrollBar *vsb, QScrollBar *hsb) |
| |
| void | setupForLogWidget (const TextEditorThemePtr &theme) |
| |
| RowCol | mapFromPixel (const QPoint &pt) |
| | ビューのピクセル座標から行と桁を求める More...
|
| |
| QVariant | inputMethodQuery (Qt::InputMethodQuery q) const override |
| |
| void | inputMethodEvent (QInputMethodEvent *e) override |
| |
| void | refrectScrollBar () |
| |
| void | move (int cur_row, int cur_col, int scr_row, int scr_col, bool auto_scroll) |
| |
| void | layoutEditor () override |
| |
| void | setFocusFrameVisible (bool f) |
| |
| void | setScrollUnit (int n) |
| |
| int | scrollUnit () const |
| |
| void | setTextFont (const QFont &font) |
| |
| void | updateLayout () |
| |
| PointInView | pointInView (int row, int col) const |
| | 行と桁からビュー座標を求める More...
|
| |
| void | setSomethingBadFlag (bool f) |
| |
| QList< FormattedLine2 > | formatLine_ (const Document::Line &line, int tab_span, int anchor_a=-1, int anchor_b=-1) const |
| |
| QList< FormattedLine2 > | formatLine2_ (int row_index) const |
| |
| int | currentRow () const |
| |
| int | currentCol () const |
| |
| void | scrollUp () |
| |
| void | scrollDown () |
| |
| void | moveCursorOut () |
| |
| void | moveCursorHome () |
| |
| void | moveCursorEnd () |
| |
| void | moveCursorUp () |
| |
| virtual void | moveCursorDown () |
| |
| void | moveCursorLeft () |
| |
| void | moveCursorRight () |
| |
| void | movePageUp () |
| |
| void | movePageDown () |
| |
| void | scrollToTop () |
| |
| | AbstractCharacterBasedApplication () |
| |
| virtual | ~AbstractCharacterBasedApplication () |
| |
| TextEditorEnginePtr | engine () const |
| |
| int | screenWidth () const |
| |
| int | screenHeight () const |
| |
| void | setScreenSize (int w, int h, bool update_layout) |
| |
| void | setTextEditorEngine (const TextEditorEnginePtr &e) |
| |
| void | openFile (QString const &path) |
| |
| void | saveFile (QString const &path) |
| |
| void | loadExampleFile () |
| |
| void | pressEnter () |
| |
| void | pressEscape () |
| |
| State | state () const |
| |
| bool | isLineNumberVisible () const |
| |
| void | showLineNumber (bool show, int left_margin=LEFT_MARGIN) |
| |
| void | showHeader (bool f) |
| |
| void | showFooter (bool f) |
| |
| void | setAutoLayout (bool f) |
| |
| void | setDocument (const QList< Document::Line > *source) |
| |
| void | setSelectionAnchor (SelectionAnchor::Enabled enabled, bool update_anchor, bool auto_scroll) |
| |
| void | setNormalTextEditorMode (bool f) |
| |
| void | setToggleSelectionAnchorEnabled (bool f) |
| |
| void | setReadOnly (bool f) |
| |
| bool | isReadOnly () const |
| |
| void | editPaste () |
| |
| void | editCopy () |
| |
| void | editCut () |
| |
| void | setWriteMode (WriteMode wm) |
| |
| bool | isInsertMode () const |
| |
| bool | isOverwriteMode () const |
| |
| void | setTerminalMode (bool f) |
| |
| bool | isTerminalMode () const |
| |
| void | moveToTop () |
| |
| void | moveToBottom () |
| |
| bool | isBottom () const |
| |
| void | setLineMargin (int n) |
| |
| void | write (uint32_t c, bool by_keyboard) |
| |
| void | write (char const *ptr, int len, bool by_keyboard) |
| |
| void | write (std::string const &text) |
| |
| void | write (QKeyEvent *e) |
| |
| void | setTextCodec (std::shared_ptr< MyTextCodec > codec) |
| |
| void | setCursorVisible (bool show) |
| |
| bool | isCursorVisible () |
| |
| void | setModifierKeys (Qt::KeyboardModifiers const &keymod) |
| |
| bool | isControlModifierPressed () const |
| |
| bool | isShiftModifierPressed () const |
| |
| void | clearShiftModifier () |
| |
| void | retrieveLastText (std::vector< char > *out, int maxlen) const |
| |
| bool | isChanged () const |
| |
| void | setChanged (bool f) |
| |
| void | logicalMoveToBottom () |
| |
| void | logicalMoveToBottom2 () |
| |
| void | appendBulk (std::string_view const &str) |
| |
| void | clear () |
| |
|
| void | paintEvent (QPaintEvent *) override |
| | 描画 More...
|
| |
| void | mousePressEvent (QMouseEvent *event) override |
| |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| |
| void | mouseMoveEvent (QMouseEvent *event) override |
| |
| void | wheelEvent (QWheelEvent *event) override |
| |
| void | resizeEvent (QResizeEvent *event) override |
| |
| void | contextMenuEvent (QContextMenuEvent *event) override |
| |
| QFont | textFont () const |
| |
| void | drawText (QPainter *painter, int px, int py, QString const &str) |
| |
| void | timerEvent (QTimerEvent *) override |
| |
| void | setCursorCol (int col) override |
| | 桁位置を変更する More...
|
| |
| void | setCursorRow (int row, bool auto_scroll, bool by_mouse) override |
| | 行位置を変更する More...
|
| |
| int | char_screen_w () const |
| |
| int | char_screen_h () const |
| |
| std::vector< Character > * | char_screen () |
| |
| std::vector< Character > const * | char_screen () const |
| |
| std::vector< uint8_t > * | line_flags () |
| |
| void | initEditor () |
| |
| void | fetchCurrentLine () const |
| |
| QByteArray | fetchLine (int row) const |
| | 現在行を取得 More...
|
| |
| void | clearParsedLine () |
| |
| int | currentColX () const |
| |
| void | setCurrentRow (int row) |
| |
| void | setCurrentCol (int col) |
| |
| int | cursorCol () const |
| |
| int | cursorRow () const |
| |
| int | editorViewportWidth () const |
| |
| int | editorViewportHeight () const |
| |
| virtual int | print (int x, int y, QString const &text, Option const &opt) |
| |
| TextEditorContext * | cx () |
| |
| TextEditorContext const * | cx () const |
| |
| Document * | document () |
| |
| int | documentLines () const |
| |
| bool | isSingleLineMode () const |
| |
| void | ensureCurrentLineVisible () |
| |
| int | decideColumnScrollPos () const |
| |
| int | calcVisualWidth (Document::Line const &line) const |
| |
| int | leftMargin_ () const |
| |
| void | makeBuffer () |
| |
| int | printArea (const TextEditorContext *cx, SelectionAnchor const *sel_a=nullptr, SelectionAnchor const *sel_b=nullptr) |
| |
| void | commitLine (const std::vector< Char > &vec) |
| |
| void | doDelete () |
| |
| void | doBackspace () |
| |
| bool | isDialogMode () |
| |
| void | setDialogMode (bool f) |
| |
| void | closeDialog (bool result) |
| |
| void | setDialogOption (QString const &title, QString const &value, const DialogHandler &handler) |
| |
| void | execDialog (QString const &dialog_title, const QString &dialog_value, const DialogHandler &handler) |
| |
| void | deselect () |
| |
| std::vector< Char > * | parseCurrentLine (std::vector< Char > *vec, int increase_hint, bool force) |
| | 行のレイアウトを解析 More...
|
| |
| void | parseLine (int row, std::vector< Char > *vec) const |
| | 行の桁位置を求める More...
|
| |
| void | setCursorPosByMouse (RowCol pos, QPoint pt) |
| |
| void | setCursorPos (int row, int col) |
| |
| int | nextTabStop (int x) const |
| |
| int | scrollBottomLimit () const |
| |
| int | scrollBottomLimit2 () const |
| |
| bool | isPaintingSuppressed () const |
| |
| void | setPaintingSuppressed (bool f) |
| |
| void | addNewLineToBottom () |
| |
| void | appendNewLine (std::vector< Char > *vec) |
| |
| void | writeNewLine () |
| |
| void | updateCursorPos (bool auto_scroll) |
| |
| QString | statusLine () const |
| |
| void | preparePaintScreen () |
| |
| void | setRecentlyUsedPath (QString const &path) |
| |
| QString | recentlyUsedPath () |
| |
| void | clearRect (int x, int y, int w, int h) |
| |
| void | paintLineNumbers (std::function< void(int, QString const &, Document::Line const *)> const &draw) |
| |
| bool | isAutoLayout () const |
| |
| void | invalidateArea (int top_y=0) |
| |
| void | savePos () |
| |
| void | restorePos () |
| |
| void | write_ (char const *ptr, bool by_keyboard) |
| |
| void | write_ (QString const &text, bool by_keyboard) |
| |
| void | makeColumnPosList (std::vector< int > *out) |
| | 現在行の桁座標リストを作成する More...
|
| |
| bool | isValidRowIndex (int row_index) const |
| |
| bool | hasSelection () const |
| |
| void | updateSelectionAnchor1 (bool auto_scroll) |
| |
| void | updateSelectionAnchor2 (bool auto_scroll) |
| |
|
| void | paintScreen (QPainter *painter) |
| | 描画(CharacterMode用) More...
|
| |
| void | drawCursor (int row, int col, QPainter *pr, QColor const &color) |
| | カーソルを描画 More...
|
| |
| void | drawCursor (QPainter *pr) |
| | 現在位置にカーソルを描画 More...
|
| |
| void | drawFocusFrame (QPainter *pr) |
| |
| void | updateCursorRect (bool auto_scroll) |
| |
| QColor | defaultForegroundColor () |
| |
| QColor | defaultBackgroundColor () |
| |
| QColor | colorForIndex (CharAttr const &attr, bool foreground) |
| |
| void | internalUpdateVisibility (bool ensure_current_line_visible, bool change_col, bool auto_scroll) |
| |
| void | moveCursorByMouse () |
| |
| int | calcPixelPosX (int row, int col, bool adjust_scroll, std::vector< Char > *chars) const |
| | 行と桁位置からピクセルX座標を求める More...
|
| |
| void | parse (int row, std::vector< Char > *chars) const |
| |
| int | scrollPosX () const |
| | 水平スクロール位置のピクセル値を取得 More...
|
| |
| void | calcPixelPosX (std::vector< Char > *chars, const QFontMetrics &fm) const |
| | 全文字のX座標を計算する More...
|
| |
| int | view_y_from_row (int row) const |
| |