|
| | Buffer (const std::string &name="", bool noUndoRedo=false) |
| |
| virtual | ~Buffer () |
| |
| virtual void | insert (char c) |
| |
| virtual void | insert (const std::string &str) |
| |
| void | remove (bool removeCurrent=false) |
| | main remove method More...
|
| |
| std::string | removeAndCopy () |
| |
| std::string | removeRegion (const Point &start, const Point &end) |
| | removes region between start and end More...
|
| |
| std::string | killLine (bool pushToStack=true) |
| |
| void | sortRegion () |
| |
| void | keepRemoveLines (parser::NFA ®ex, bool keep) |
| | Keep/Remove lines that match the input regex. More...
|
| |
| virtual void | clear () |
| |
| bool | undo () |
| | undo the previous operation More...
|
| |
| bool | redo () |
| | redo the previously undid operation. More...
|
| |
| bool | matchCurrentParen () |
| | find matching paren at the current location More...
|
| |
| virtual void | load (const std::string &file, int line=0) |
| |
| int | length () const |
| |
| Line & | at (int idx) |
| |
| const Line & | at (int idx) const |
| |
| Point | buffer2screen (const Point &loc, const Point &start, const Point &dim) const |
| |
| Point | screen2buffer (const Point &loc, const Point &start, const Point &dim) const |
| |
| char | charAt (const Point &pos) const |
| |
| virtual void | draw (Editor &ed, const Window &win) |
| |
| void | drawPoint (Editor &ed, const AttrColor &bg, const Window &win) |
| |
| void | startOfLine () |
| |
| void | endOfLine () |
| |
| void | left () |
| |
| void | right () |
| |
| void | down () |
| |
| void | up () |
| |
| void | begin () |
| |
| void | end () |
| |
| void | pageDown (int ijump) |
| |
| void | pageUp (int ijump) |
| |
| void | nextPara () |
| |
| void | previousPara () |
| |
| void | nextWord () |
| |
| void | previousWord () |
| |
| void | gotoLine (int lineNum, const Point &dim) |
| |
| bool | hasPointOn (int line) const |
| |
| const Point & | getPoint () const |
| |
| void | setPoint (const Point &p) |
| |
| bool | isRegionActive () const |
| |
| std::string | regionAsStr () const |
| |
| std::string | regionAsStr (const Point &start, const Point &end) const |
| |
| void | startRegion () |
| |
| void | stopRegion () |
| |
| const Point & | getRegion () const |
| |
| int | lengthOf (int i) const |
| |
| void | indent () |
| |
| virtual int | totalLinesNeeded (const Point &dim) const |
| |
| virtual void | lineUp (const Point &dim) |
| |
| virtual void | lineDown () |
| |
| void | lineReset () |
| |
| void | lineEnd (const Point &start, const Point &dim) |
| |
| virtual bool | save (const std::string &fName="") |
| |
| const std::string & | bufferName () const |
| |
| const std::string & | getFileName () const |
| |
| const std::string & | pwd () const |
| |
| bool | isRO () const |
| |
| bool | isModified () const |
| |
| virtual int | getMinStartLoc () const |
| |
| std::string | dirModeGetFileAtLine (int line) |
| |
| void | reload () |
| |
| const AttrColor & | getColor (const std::string &name) const |
| |
| const std::string & | getWord () const |
| |
| const std::string & | modeName () const |
| |
| void | makeReadOnly () |
| |
| void | setMode (ModePtr m) |
| |
| template<typename ModeT > |
| ModeT * | getMode (const std::string &name) |
| |
| Strings | cmdNames () const |
| |
|
| void | insertImpl (char c) |
| |
| void | addLine () |
| |
| void | resetBufferState (int line, const std::string &file, bool dir) |
| |
| KeyCmdMap & | getKeyCmdMap () |
| |
| void | loadFile (const std::string &file, int line) |
| |
| void | loadDir (const std::string &dir) |
| |
| std::string | removeFrom (const Point &start, const Point &end) |
| |
| Point | matchCurrentParen (bool &isOpen) |
| |
| int | dirModeFileOffset () const |
| |
| void | drawStatusBar (Editor &ed, const Window &win) |
| |
| virtual int | drawLine (int y, const std::string &line, Editor &ed, int lineNum, const Window &win) |
| |
| std::string | removeChar () |
| |
| std::string | removeCurrentChar () |
| |
| void | applyInsertOp (OpData &op, bool pushToStack=true) |
| | Insert characters into the buffer. More...
|
| |
| void | applyDeleteOp (OpData &op) |
| | Delete characters/regions from the buffer. More...
|
| |
| void | addLines (const RemovedLines &rlines) |
| |
| void | removeLines (const RemovedLines &rlines) |
| |
| void | pushNewOp (OpData &op) |
| |
| void | clearStack (OpStack &st) |
| |
Class for representing text files as a vector of lines (aka Buffer)