12 #ifndef ROOT_TGTextEdit 13 #define ROOT_TGTextEdit 90 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 void Print(Option_t *="") const
Send current buffer to printer.
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.
void Init()
Initiliaze a text edit widget.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
virtual void LineUp()
Make current position first line in window by scrolling up.
static Pixel_t GetWhitePixel()
Get white pixel value.
TGTextEdit & operator=(const TGTextEdit &)
EInsertMode GetInsertMode() const
virtual Long_t ReturnLongestLineWidth()
Return width of longest line in widget.
TList * GetHistory() const
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.
TGLongPosition GetCurrentPos() const
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.
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...
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()
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.
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.
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 IsMenuEnabled() const
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.
TGPopupMenu * GetMenu() const
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.
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 Bool_t IsCursorEnabledithoutFocus() const
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.
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.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
virtual Bool_t SaveFile(const char *fname, Bool_t saveas=kFALSE)
Save file.