12 #ifndef ROOT_TGTextEdit
13 #define ROOT_TGTextEdit
26 #ifndef ROOT_TGTextView
92 virtual void InsChar(
char character);
virtual Bool_t HandleKey(Event_t *event)
The key press event handler converts a key press to some line editor action.
static const TGGC & GetCursor1GC()
Return default graphics context for text cursor.
virtual void EnableMenu(Bool_t on=kTRUE)
virtual ~TGTextEdit()
Cleanup text edit widget.
virtual void CursorOff()
If cursor if on, turn it off.
static TGGC * fgCursor1GC
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process context menu messages.
EInsertMode GetInsertMode() const
void Init()
Initiliaze a text edit widget.
virtual void LineUp()
Make current position first line in window by scrolling up.
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
static Pixel_t GetWhitePixel()
Get white pixel value.
TGTextEdit & operator=(const TGTextEdit &)
virtual Long_t ReturnLongestLineWidth()
Return width of longest line in widget.
virtual void Print(Option_t *="") const
Send current buffer to printer.
virtual void AdjustPos()
Adjust current position.
virtual void Delete(Option_t *="")
Delete selection.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in text edit widget.
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save a text edit widget as a C++ statement(s) on output stream out.
virtual Bool_t Copy()
Copy text.
TGTextEditHist * fHistory
virtual void ScreenDown()
Move one screen down.
virtual void ScreenUp()
Move one screen up.
#define ClassDef(name, id)
TGTextEdit(const TGTextEdit &)
virtual void EnableCursorWithoutFocus(Bool_t on=kTRUE)
Bool_t fEnableCursorWithoutFocus
virtual void CursorOn()
Turn cursor on.
virtual void End()
Move to end of line.
virtual void SetCurrent(TGLongPosition new_coord)
Make the specified position the current position.
static const TGGC & GetCursor0GC()
Return selection graphics context for text cursor.
virtual void RequestFocus()
void Emit(const char *signal)
Acitvate signal without args.
virtual void SetMenuState()
Enable/disable menu items in function of what is possible.
virtual void DrawCursor(Int_t mode)
Draw cursor. If mode = 1 draw cursor, if mode = 2 erase cursor.
TGPopupMenu * GetMenu() const
virtual void NextChar()
Go to next character.
virtual void Home()
Move to beginning of line.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in text edit widget.
virtual Bool_t HandleFocusChange(Event_t *event)
Handle focus change event in text edit widget.
virtual Bool_t IsMenuEnabled() const
Handles synchronous and a-synchronous timer events.
virtual void DelChar()
Delete a character from the text edit widget.
virtual void Clear(Option_t *="")
Clear text edit widget.
virtual Bool_t HandleSelection(Event_t *event)
Handle selection notify event.
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 InsChar(char character)
Insert a character in the text edit widget.
virtual Bool_t Search(const char *string, Bool_t direction=kTRUE, Bool_t caseSensitive=kFALSE)
Search for string in the specified direction.
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click event.
virtual void LineDown()
Move one line down.
virtual void SetInsertMode(EInsertMode mode=kInsert)
Sets the mode how characters are entered.
virtual Bool_t HandleTimer(TTimer *t)
Handle timer cursor blink timer.
TGLongPosition GetCurrentPos() const
virtual void PrevChar()
Go to the previous character.
static TGGC * fgCursor0GC
virtual void Copy(TObject &) const
Copy this to obj.
virtual void ScrollCanvas(Int_t newTop, Int_t direction)
Scroll the canvas to new_top in the kVertical or kHorizontal direction.
Mother of all ROOT objects.
virtual Bool_t Cut()
Cut text.
virtual void DrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height)
Redraw the text edit widget.
virtual void BreakLine()
Break a line.
TList * GetHistory() const
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse crossing event.
virtual Bool_t Paste()
Paste text into widget.
virtual Bool_t Goto(Long_t line, Long_t column=0)
Goto the specified line.
virtual Bool_t IsCursorEnabledithoutFocus() const
virtual Bool_t SaveFile(const char *fname, Bool_t saveas=kFALSE)
Save file.