12#ifndef ROOT_TGTextEdit 
   13#define ROOT_TGTextEdit 
Handle_t GContext_t
Graphics context handle.
 
ULong_t Pixel_t
Pixel value.
 
#define ClassDefOverride(name, id)
 
void MayNotUse(const char *method)
This function can be used in classes that should override a certain function, but in the inherited cl...
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
 
Option_t Option_t TPoint TPoint const char mode
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
 
Option_t Option_t TPoint TPoint const char text
 
static Pixel_t GetWhitePixel()
Get white pixel value.
 
Encapsulate a graphics context used in the low level graphics.
 
A TGTextEdit is a specialization of TGTextView.
 
TGLongPosition fCurrent
current cursor position
 
TGTextEditHist * fHistory
undo manager
 
GContext_t fCursor1GC
graphics context for drawing cursor
 
TGTextEdit(const TGTextEdit &)=delete
 
virtual Bool_t Goto(Long_t line, Long_t column=0)
Goto the specified line.
 
static TGGC * fgCursor0GC
 
static const TGGC & GetCursor1GC()
Return default graphics context for text cursor.
 
virtual Bool_t Replace(TGLongPosition pos, const char *oldText, const char *newText, Bool_t direction, Bool_t caseSensitive)
Replace text starting at textPos.
 
virtual void DrawCursor(Int_t mode)
Draw cursor. If mode = 1 draw cursor, if mode = 2 erase cursor.
 
TGPopupMenu * GetMenu() const
 
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in text edit widget.
 
TList * GetHistory() const
 
virtual void AdjustPos()
Adjust current position.
 
virtual Bool_t SaveFile(const char *fname, Bool_t saveas=kFALSE)
Save file.
 
Bool_t HandleDoubleClick(Event_t *event) override
Handle double click event.
 
EInsertMode GetInsertMode() const
 
void Delete(Option_t *="") override
Delete selection.
 
void ScrollCanvas(Int_t newTop, Int_t direction) override
Scroll the canvas to new_top in the kVertical or kHorizontal direction.
 
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a text edit widget as a C++ statement(s) on output stream out.
 
virtual void SetMenuState()
Enable/disable menu items in function of what is possible.
 
virtual Bool_t Cut()
Cut text.
 
Bool_t fEnableMenu
enable context menu with editor actions
 
TGLongPosition GetCurrentPos() const
 
void Clear(Option_t *="") override
Clear text edit widget.
 
virtual void DelChar()
Delete a character from the text edit widget.
 
Bool_t HandleFocusChange(Event_t *event) override
Handle focus change event in text edit widget.
 
GContext_t fCursor0GC
graphics context for erasing cursor
 
virtual void LineDown()
Move one line down.
 
virtual void ScreenDown()
Move one screen down.
 
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process context menu messages.
 
Bool_t Copy() override
Copy text.
 
void Copy(TObject &) const override
Copy this to obj.
 
virtual void LineUp()
Make current position first line in window by scrolling up.
 
EInsertMode fInsertMode
OPTION={GetMethod="GetInsertMode";SetMethod="SetInsertMode";Items=(kInsert="&Insert",...
 
virtual void CursorOn()
Turn cursor on.
 
virtual Bool_t IsCursorEnabledithoutFocus() const
 
virtual void SetCurrent(TGLongPosition new_coord)
Make the specified position the current position.
 
virtual void NextChar()
Go to next character.
 
virtual void ScreenUp()
Move one screen up.
 
virtual void BreakLine()
Break a line.
 
void Print(Option_t *="") const override
Send current buffer to printer.
 
virtual void InsChar(char character)
Insert a character in the text edit widget.
 
virtual void SetInsertMode(EInsertMode mode=kInsert)
Sets the mode how characters are entered.
 
virtual void CursorOff()
If cursor if on, turn it off.
 
Int_t fCursorState
cursor state (1=drawn, 2=erased)
 
TGSearchType * fSearch
structure used by search dialog
 
Bool_t Search(const char *string, Bool_t direction=kTRUE, Bool_t caseSensitive=kFALSE) override
Search for string in the specified direction.
 
virtual void PrevChar()
Go to the previous character.
 
virtual Bool_t Paste()
Paste text into widget.
 
virtual void EnableCursorWithoutFocus(Bool_t on=kTRUE)
 
virtual Bool_t IsMenuEnabled() const
 
Bool_t HandleKey(Event_t *event) override
The key press event handler converts a key press to some line editor action.
 
void DrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height) override
Redraw the text edit widget.
 
TGPopupMenu * fMenu
popup menu with editor actions
 
~TGTextEdit() override
Cleanup text edit widget.
 
Bool_t HandleSelection(Event_t *event) override
Handle selection notify event.
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in text edit widget.
 
Bool_t HandleTimer(TTimer *t) override
Handle timer cursor blink timer.
 
virtual void EnableMenu(Bool_t on=kTRUE)
 
Long_t ReturnLongestLineWidth() override
Return width of longest line in widget.
 
Bool_t fEnableCursorWithoutFocus
enable cursor visibility when focus went out from text editor window (default is kTRUE)
 
virtual void Home()
Move to beginning of line.
 
Bool_t HandleCrossing(Event_t *event) override
Handle mouse crossing event.
 
static TGGC * fgCursor1GC
 
TViewTimer * fCurBlink
cursor blink timer
 
virtual void End()
Move to end of line.
 
void Init()
Initialize a text edit widget.
 
static const TGGC & GetCursor0GC()
Return selection graphics context for text cursor.
 
TGTextEdit & operator=(const TGTextEdit &)=delete
 
A TGTextView is a text viewer widget.
 
A TGText is a multi line text buffer.
 
ROOT GUI Window base class.
 
virtual void RequestFocus()
request focus
 
Mother of all ROOT objects.
 
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
 
Handles synchronous and a-synchronous timer events.