Guitar
|
#include <AbstractCharacterBasedApplication.h>
Additional Inherited Members | |
Public Types inherited from AbstractCharacterBasedApplication | |
enum | WriteMode { WriteMode::Insert, WriteMode::Overwrite } |
enum | State { State::Normal, State::Exit } |
enum | LineFlag { LineChanged = 1 } |
Public Member Functions inherited from AbstractCharacterBasedApplication | |
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 |
virtual void | layoutEditor () |
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 (QTextCodec *codec) |
void | setCursorVisible (bool show) |
bool | isCursorVisible () |
void | setModifierKeys (Qt::KeyboardModifiers 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 (const char *ptr, int len) |
void | clear () |
Static Public Member Functions inherited from AbstractCharacterBasedApplication | |
static int | charWidth (uint32_t c) |
Static Public Attributes inherited from AbstractCharacterBasedApplication | |
static const int | LEFT_MARGIN = 8 |
static const int | RIGHT_MARGIN = 10 |
Protected Member Functions inherited from AbstractCharacterBasedApplication | |
int | char_screen_w () const |
int | char_screen_h () const |
std::vector< Character > * | char_screen () |
const std::vector< Character > * | 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 () |
const TextEditorContext * | 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) |
virtual void | updateVisibility (bool ensure_current_line_visible, bool change_col, bool auto_scroll)=0 |
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... | |
virtual void | setCursorRow (int row, bool auto_scroll=true, bool by_mouse=false) |
virtual void | setCursorCol (int col) |
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) |
Protected Attributes inherited from AbstractCharacterBasedApplication | |
SelectionAnchor | selection_start |
SelectionAnchor | selection_end |
const int | reference_char_width_ = 1 |
std::shared_ptr< TextEditorContext > | editor_cx |
std::shared_ptr< TextEditorContext > | dialog_cx |