
Public Member Functions | |
| PText (BRect frame, PTextBuffer &txt, BScrollBar *bars[], const char *ext) | |
| ~PText () | |
| void | ReInit () |
| void | SetStatus (PStatus *status) |
| virtual void | AttachedToWindow () |
| virtual void | Draw (BRect updateRect) |
| virtual void | MouseDown (BPoint where) |
| void | TrackDrag (BPoint where) |
| virtual void | KeyDown (const char *bytes, int32 numBytes) |
| bool | DoKeyCommand (BMessage *msg) |
| virtual void | MouseMoved (BPoint where, uint32 code, const BMessage *a_message) |
| virtual void | MessageReceived (BMessage *msg) |
| virtual void | WindowActivated (bool active) |
| void | MenusBeginning () |
| virtual void | FrameMoved (BPoint newPosition) |
| virtual void | FrameResized (float w, float h) |
| void | Pulse () |
| void | HandleDrop (BMessage *msg) |
| void | ProcessCommand (unsigned long what, void *param) |
| void | SetText (const char *utf8Text, size_t size) |
| const char * | Text () |
| int | Size () const |
| void | SetDefaultLanguageByExtension (const char *ext) |
| void | SetLanguage (int indx) |
| int | Language () const |
| void | CollectSettings (BMessage &msg) |
| void | ApplySettings (const BMessage &msg) |
| void | GetSettingsMW (BPositionIO &set) |
| void | SetSettingsMW (BPositionIO &set) |
| void | SetFontKind (int kind) |
| int | FontKind () const |
| void | FontChanged (bool reInit=true) |
| void | ChangedInfo (BMessage *msg) |
| void | GetSelectedText (char *&s, bool extend=false) |
| void | CopyBlock (char *&s, int from, int to) |
| bool | WaitMouseMoved (BPoint where) |
| void | ShowContextualMenu (BPoint where) |
| void | ShowFunctionMenu (BPoint where, int which) |
| void | SetDirty (bool dirty) |
| bool | IsDirty () |
| void | AdjustScrollBars () |
| void | ScrollBarChanged (BScrollBar *bar, g_unit_t newValue) |
| void | ScrollToCaret (bool keepContext) |
| void | ScrollToOffset (int offset, int part, bool keepContext) |
| void | ScrollToSelection (bool keepContext, bool centerVertically) |
| virtual void | ScrollTo (BPoint p) |
| void | ShowTabStops (bool show) |
| void | DrawLine (int lineNr, g_unit_t y, bool buffer) |
| void | RedrawDirtyLines () |
| void | ShiftLines (int first, int dy, int part) |
| void | HiliteSelection () |
| void | ToggleCaret () |
| void | DrawCaret () |
| void | HideCaret () |
| void | ShowCaret () |
| int | FindWord (int key, bool subWord=false) |
| int | FindWord (int indx, int key, bool mouseSelect=false, bool subWord=false) |
| int | FindNextWord (int offset) |
| void | RecalculateLineBreaks () |
| void | InsertLinebreaks () |
| void | RemoveLinebreaks () |
| int | FindLineBreak (int offset, bool hard=false) |
| int | RewrapLines (int from, int to, bool hard=false) |
| void | Kiss (int ch) |
| int | FindTheOther (int offset, int ch) |
| void | AutoIndent (int offset) |
| void | SmartBrace () |
| void | ScanForFunctions (CFunctionScanHandler &handler) |
| void | HashLines (vector< int > &hv, bool ignoreCase, bool ignoreWhite) |
| int | Offset2Line (int offset) |
| BPoint | Offset2Position (int offset, int part=-1) |
| int | LinePosition2Offset (int line, g_unit_t position) |
| int | Position2Offset (BPoint where, int part=-1) |
| int | LineStart (int line) const |
| int | LineState (int line) const |
| int | LineCount () const |
| bool | SoftStart (int line) const |
| void | OffsetLineBreaks (int bytes, int line) |
| int | DeleteLineBreaks (int from, int to) |
| int | Offset2Column (int offset) |
| int | Column2Offset (int lineNr, int column) |
| int | RealLine2Line (int lineNr) |
| bool | IsFixedFont () const |
| bool | IsBlockSelect () const |
| void | SetBlockSelect (bool block) |
| void | BlockOffsetsForLine (int lineNr, int &startOffset, int &endOffset) |
| void | Selection2Region (BRegion &rgn, int part=-1) |
| void | ChangeSelection (int newAnchor, int newCaret, bool block=false) |
| void | SelectLine (int lineNr) |
| void | SelectParagraph () |
| void | InvertRegion (BRegion &rgn) |
| void | CharKeyDown (const char *bytes, int numBytes) |
| void | BackspaceKeyDown () |
| void | DeleteKeyDown () |
| void | GlossaryKey (int ch, int modifiers) |
| void | GlossaryButton (const char *glossy) |
| g_unit_t | TextWidth (int offset, int len) const |
| g_unit_t | StringWidth (const char *buf, int len) const |
| void | Insert (const char *text, int textLen, int offset) |
| void | Delete (int from, int to) |
| void | RestyleDirtyLines (int from) |
| void | TextChanged (int from, int to) |
| void | TypeString (const char *string) |
| void | Cut (int append=0) |
| void | Copy (int append=0) |
| void | Paste () |
| void | Clear () |
| void | TouchLine (int lineNr) |
| void | TouchLines (int from, int to=-1) |
| int | Anchor () |
| int | Caret () |
| void | SetCaret (int newCaret) |
| void | SetMark (int offset) |
| void | Select (int anchor, int caret, bool update, bool block) |
| void | CenterSelection () |
| void | RegisterCommand (PCmd *cmd) |
| void | Undo () |
| void | Redo () |
| void | ResetUndo () |
| void | FlushUndo () |
| void | Find (unsigned long msg, void *args) |
| bool | CanReplace (const char *s, bool ignoreCase, bool regx) |
| bool | FindNext (const char *what, int &offset, bool ignoreCase, bool wrap, bool backward, bool entireWord, bool regx, bool scroll=true, int *foundLen=NULL) |
| bool | IsIncSearching () const |
| void | DoIncSearch (bool forward) |
| void | IncSearchKey (const char *bytes, int numBytes) |
| void | JumpToFunction (const char *func, int offset) |
| void | FindNextError (bool backward) |
| void | ExecuteSelection () |
| void | KillCurrentJob () |
| void | PrepareForOutput () |
| void | SetCWD (const char *cwd) |
| const char * | GetCWD () const |
| void | SendTextToJob (const char *txt) |
| void | SetSplitter (PSplitter *splitter) |
| void | TrackSplitter (BPoint where) |
| void | SplitterMoved (g_unit_t dy) |
| void | DoneMovingSplitter () |
| void | SplitWindow () |
| void | UnsplitWindow () |
| void | SwitchPart (int toPart) |
| const PTextBuffer & | TextBuffer () const |
| const char * | FindString () const |
| const char * | ReplaceString () const |
| bool | IsExecuting () const |
| const BFont & | Font () const |
| int | TabStops () const |
| bool | SyntaxColoring () const |
| bool | ShowInvisibles () const |
| bool | SoftWrap () const |
| int | WrapType () const |
| int | WrapWidth () const |
| PDoc * | Doc () const |
| PText::PText | ( | BRect | frame, | |
| PTextBuffer & | txt, | |||
| BScrollBar * | bars[], | |||
| const char * | ext | |||
| ) |
| PText::~PText | ( | ) |
| void PText::AdjustScrollBars | ( | ) |
| int PText::Anchor | ( | ) | [inline] |
| void PText::ApplySettings | ( | const BMessage & | msg | ) |
| void PText::AttachedToWindow | ( | ) | [virtual] |
| void PText::AutoIndent | ( | int | offset | ) |
| void PText::BackspaceKeyDown | ( | ) |
| void PText::BlockOffsetsForLine | ( | int | lineNr, | |
| int & | startOffset, | |||
| int & | endOffset | |||
| ) |
| bool PText::CanReplace | ( | const char * | s, | |
| bool | ignoreCase, | |||
| bool | regx | |||
| ) |
| int PText::Caret | ( | ) | [inline] |
| void PText::CenterSelection | ( | ) |
| void PText::ChangedInfo | ( | BMessage * | msg | ) |
| void PText::ChangeSelection | ( | int | newAnchor, | |
| int | newCaret, | |||
| bool | block = false | |||
| ) |
| void PText::CharKeyDown | ( | const char * | bytes, | |
| int | numBytes | |||
| ) |
| void PText::Clear | ( | ) |
| void PText::CollectSettings | ( | BMessage & | msg | ) |
| int PText::Column2Offset | ( | int | lineNr, | |
| int | column | |||
| ) |
| void PText::Copy | ( | int | append = 0 |
) |
| void PText::CopyBlock | ( | char *& | s, | |
| int | from, | |||
| int | to | |||
| ) |
| void PText::Cut | ( | int | append = 0 |
) |
| void PText::Delete | ( | int | from, | |
| int | to | |||
| ) |
| void PText::DeleteKeyDown | ( | ) |
| int PText::DeleteLineBreaks | ( | int | from, | |
| int | to | |||
| ) |
| PDoc * PText::Doc | ( | ) | const |
| void PText::DoIncSearch | ( | bool | forward | ) |
| bool PText::DoKeyCommand | ( | BMessage * | msg | ) |
| void PText::DoneMovingSplitter | ( | ) |
| void PText::Draw | ( | BRect | updateRect | ) | [virtual] |
| void PText::DrawCaret | ( | ) |
| void PText::DrawLine | ( | int | lineNr, | |
| g_unit_t | y, | |||
| bool | buffer | |||
| ) |
| void PText::ExecuteSelection | ( | ) |
| void PText::Find | ( | unsigned long | msg, | |
| void * | args | |||
| ) |
| int PText::FindLineBreak | ( | int | offset, | |
| bool | hard = false | |||
| ) |
| bool PText::FindNext | ( | const char * | what, | |
| int & | offset, | |||
| bool | ignoreCase, | |||
| bool | wrap, | |||
| bool | backward, | |||
| bool | entireWord, | |||
| bool | regx, | |||
| bool | scroll = true, |
|||
| int * | foundLen = NULL | |||
| ) |
| void PText::FindNextError | ( | bool | backward | ) |
| int PText::FindNextWord | ( | int | offset | ) |
| const char* PText::FindString | ( | ) | const |
| int PText::FindTheOther | ( | int | offset, | |
| int | ch | |||
| ) |
| int PText::FindWord | ( | int | indx, | |
| int | key, | |||
| bool | mouseSelect = false, |
|||
| bool | subWord = false | |||
| ) |
| int PText::FindWord | ( | int | key, | |
| bool | subWord = false | |||
| ) |
| void PText::FlushUndo | ( | ) |
| const BFont & PText::Font | ( | ) | const [inline] |
| void PText::FontChanged | ( | bool | reInit = true |
) |
| int PText::FontKind | ( | ) | const |
| void PText::FrameMoved | ( | BPoint | newPosition | ) | [virtual] |
| void PText::FrameResized | ( | float | w, | |
| float | h | |||
| ) | [virtual] |
| const char * PText::GetCWD | ( | ) | const [inline] |
| void PText::GetSelectedText | ( | char *& | s, | |
| bool | extend = false | |||
| ) |
| void PText::GetSettingsMW | ( | BPositionIO & | set | ) |
| void PText::GlossaryButton | ( | const char * | glossy | ) |
| void PText::GlossaryKey | ( | int | ch, | |
| int | modifiers | |||
| ) |
| void PText::HandleDrop | ( | BMessage * | msg | ) |
| void PText::HashLines | ( | vector< int > & | hv, | |
| bool | ignoreCase, | |||
| bool | ignoreWhite | |||
| ) |
| void PText::HideCaret | ( | ) | [inline] |
| void PText::HiliteSelection | ( | ) |
| void PText::IncSearchKey | ( | const char * | bytes, | |
| int | numBytes | |||
| ) |
| void PText::Insert | ( | const char * | text, | |
| int | textLen, | |||
| int | offset | |||
| ) |
| void PText::InsertLinebreaks | ( | ) |
| void PText::InvertRegion | ( | BRegion & | rgn | ) |
| bool PText::IsBlockSelect | ( | ) | const [inline] |
| bool PText::IsDirty | ( | ) |
| bool PText::IsExecuting | ( | ) | const [inline] |
| bool PText::IsFixedFont | ( | ) | const [inline] |
| bool PText::IsIncSearching | ( | ) | const [inline] |
| void PText::JumpToFunction | ( | const char * | func, | |
| int | offset | |||
| ) |
| void PText::KeyDown | ( | const char * | bytes, | |
| int32 | numBytes | |||
| ) | [virtual] |
| void PText::KillCurrentJob | ( | ) |
| void PText::Kiss | ( | int | ch | ) |
| int PText::Language | ( | ) | const |
| int PText::LineCount | ( | ) | const [inline] |
| int PText::LinePosition2Offset | ( | int | line, | |
| g_unit_t | position | |||
| ) |
| int PText::LineStart | ( | int | line | ) | const [inline] |
| int PText::LineState | ( | int | line | ) | const [inline] |
| void PText::MenusBeginning | ( | ) |
| void PText::MessageReceived | ( | BMessage * | msg | ) | [virtual] |
| void PText::MouseDown | ( | BPoint | where | ) | [virtual] |
| void PText::MouseMoved | ( | BPoint | where, | |
| uint32 | code, | |||
| const BMessage * | a_message | |||
| ) | [virtual] |
| int PText::Offset2Column | ( | int | offset | ) |
| int PText::Offset2Line | ( | int | offset | ) |
| BPoint PText::Offset2Position | ( | int | offset, | |
| int | part = -1 | |||
| ) |
| void PText::OffsetLineBreaks | ( | int | bytes, | |
| int | line | |||
| ) |
| void PText::Paste | ( | ) |
| int PText::Position2Offset | ( | BPoint | where, | |
| int | part = -1 | |||
| ) |
| void PText::PrepareForOutput | ( | ) |
| void PText::ProcessCommand | ( | unsigned long | what, | |
| void * | param | |||
| ) | [inline] |
| void PText::Pulse | ( | ) |
| int PText::RealLine2Line | ( | int | lineNr | ) |
| void PText::RecalculateLineBreaks | ( | ) |
| void PText::Redo | ( | ) |
| void PText::RedrawDirtyLines | ( | ) |
| void PText::RegisterCommand | ( | PCmd * | cmd | ) |
| void PText::ReInit | ( | ) |
| void PText::RemoveLinebreaks | ( | ) |
| const char* PText::ReplaceString | ( | ) | const |
| void PText::ResetUndo | ( | ) |
| void PText::RestyleDirtyLines | ( | int | from | ) |
| int PText::RewrapLines | ( | int | from, | |
| int | to, | |||
| bool | hard = false | |||
| ) |
| void PText::ScanForFunctions | ( | CFunctionScanHandler & | handler | ) |
| void PText::ScrollBarChanged | ( | BScrollBar * | bar, | |
| g_unit_t | newValue | |||
| ) |
| void PText::ScrollTo | ( | BPoint | p | ) | [virtual] |
| void PText::ScrollToCaret | ( | bool | keepContext | ) |
| void PText::ScrollToOffset | ( | int | offset, | |
| int | part, | |||
| bool | keepContext | |||
| ) |
| void PText::ScrollToSelection | ( | bool | keepContext, | |
| bool | centerVertically | |||
| ) |
| void PText::Select | ( | int | anchor, | |
| int | caret, | |||
| bool | update, | |||
| bool | block | |||
| ) |
| void PText::Selection2Region | ( | BRegion & | rgn, | |
| int | part = -1 | |||
| ) |
| void PText::SelectLine | ( | int | lineNr | ) |
| void PText::SelectParagraph | ( | ) |
| void PText::SendTextToJob | ( | const char * | txt | ) |
| void PText::SetBlockSelect | ( | bool | block | ) | [inline] |
| void PText::SetCaret | ( | int | newCaret | ) |
| void PText::SetCWD | ( | const char * | cwd | ) |
| void PText::SetDefaultLanguageByExtension | ( | const char * | ext | ) |
| void PText::SetDirty | ( | bool | dirty | ) |
| void PText::SetFontKind | ( | int | kind | ) |
| void PText::SetLanguage | ( | int | indx | ) |
| void PText::SetMark | ( | int | offset | ) |
| void PText::SetSettingsMW | ( | BPositionIO & | set | ) |
| void PText::SetSplitter | ( | PSplitter * | splitter | ) |
| void PText::SetStatus | ( | PStatus * | status | ) |
| void PText::SetText | ( | const char * | utf8Text, | |
| size_t | size | |||
| ) |
| void PText::ShiftLines | ( | int | first, | |
| int | dy, | |||
| int | part | |||
| ) |
| void PText::ShowCaret | ( | ) | [inline] |
| void PText::ShowContextualMenu | ( | BPoint | where | ) |
| void PText::ShowFunctionMenu | ( | BPoint | where, | |
| int | which | |||
| ) |
| bool PText::ShowInvisibles | ( | ) | const [inline] |
| void PText::ShowTabStops | ( | bool | show | ) |
| int PText::Size | ( | ) | const |
| void PText::SmartBrace | ( | ) |
| bool PText::SoftStart | ( | int | line | ) | const [inline] |
| bool PText::SoftWrap | ( | ) | const [inline] |
| void PText::SplitterMoved | ( | g_unit_t | dy | ) |
| void PText::SplitWindow | ( | ) |
| g_unit_t PText::StringWidth | ( | const char * | buf, | |
| int | len | |||
| ) | const [inline] |
| void PText::SwitchPart | ( | int | toPart | ) |
| bool PText::SyntaxColoring | ( | ) | const [inline] |
| int PText::TabStops | ( | ) | const [inline] |
| const char * PText::Text | ( | ) |
| const PTextBuffer & PText::TextBuffer | ( | ) | const [inline] |
| void PText::TextChanged | ( | int | from, | |
| int | to | |||
| ) |
| g_unit_t PText::TextWidth | ( | int | offset, | |
| int | len | |||
| ) | const |
| void PText::ToggleCaret | ( | ) |
| void PText::TouchLine | ( | int | lineNr | ) |
| void PText::TouchLines | ( | int | from, | |
| int | to = -1 | |||
| ) |
| void PText::TrackDrag | ( | BPoint | where | ) |
| void PText::TrackSplitter | ( | BPoint | where | ) |
| void PText::TypeString | ( | const char * | string | ) |
| void PText::Undo | ( | ) |
| void PText::UnsplitWindow | ( | ) |
| bool PText::WaitMouseMoved | ( | BPoint | where | ) |
| void PText::WindowActivated | ( | bool | active | ) | [virtual] |
| int PText::WrapType | ( | ) | const [inline] |
| int PText::WrapWidth | ( | ) | const [inline] |
1.5.9