class XtTextEditor

Simple text editor

Inheritance:

XtTextEditor - XtWindow - XObject - XEventBroker


Public Methods

[more] XtTextEditor(XRect __r, const char* __FileName, const char* __Title)
Constructs a new XtTextEditor using the specified bounds, file name and title
[more] ~XtTextEditor()
Destructs the object's instance
[more]virtual void Draw()
Draws the object
[more]virtual bool ProcessKeyboardEvent(XKeyboardEvent* __Event)
Process keyboard events
[more]virtual bool ProcessMessage(XMessage* __Event)
Process messages
[more]virtual int Run()
"Runs" the text editor.
[more]virtual void SetState(unsigned long __Mask, bool __BoolValue)
Sets the object's state

Protected Methods

[more]virtual void InitScrollBar()
Initialize the associated scroll bars


Inherited from XtWindow:

Public Methods

ovirtual void Close()
ovirtual void MoveTo(XPoint __p)
ovirtual bool ProcessMouseEvent(XMouseEvent* __Event)
ovirtual void Resize(XPoint __delta)
ovirtual void SetFrame(char* __Frame)
ovirtual void SetTitle(const char* __Title)

Protected Fields

ochtype* Buffer
ochar* Title
ochar Frame[10]

Protected Methods

ovoid FrameUpdate()


Inherited from XObject:

Public Methods

ovirtual void CalculateBounds()
oXRect GetBounds()
ovirtual XEvent* GetEvent()
ounsigned long GetId()
ochar* GetObjClass()
oXPoint GetOrigin()
ovirtual char* GetPalette()
ovirtual unsigned GetPalEntry(unsigned __Index)
oXPoint GetSize()
ounsigned long GetState()
ovirtual bool GetState(unsigned long __Mask)
ovirtual void HandleEvent(XEvent* __Event)
ovirtual bool ProcessEvent(XEvent* __Event)
ovirtual void RegisterClient(XObject* __Client)
ovirtual void SetPalette(char* __Pal, unsigned __PalLen)
ovirtual void UnregisterClient(XObject* __Client)

Protected Fields

ounsigned long Id
ounsigned long State
oXPoint Origin
oXPoint Size
oXPoint Cursor
oXRect Bounds
ochar ObjClass[40]
ochar Pal[80]
ounsigned PalLen
oXObject* Server
oClientList Clients

Protected Methods

obool SendMessage(unsigned long __Receiver, unsigned long __Class, long __Message)
obool SendMessage(unsigned long __Receiver, unsigned long __Class, void* __Body, unsigned long __Size)


Inherited from XEventBroker:

Public Methods

ovirtual void AddListener(unsigned long __Listener, unsigned __Class)
ovirtual void DelListener(unsigned long __Listener, unsigned __Class)
ovirtual void DelListener(unsigned long __Listener)

Protected Fields

oMap __map


Inherited from XObjectEventListener:

Public Methods

ovirtual bool ProcessCommand(XMessage* __Event)
ovirtual bool ProcessSignal(XEvent* __Event)
ovirtual bool ProcessBroadcast(XEvent* __Event)


Inherited from XEventListener:


Documentation

Simple text editor
o XtTextEditor(XRect __r, const char* __FileName, const char* __Title)
Constructs a new XtTextEditor using the specified bounds, file name and title

o ~XtTextEditor()
Destructs the object's instance

ovirtual void Draw()
Draws the object

ovirtual bool ProcessKeyboardEvent(XKeyboardEvent* __Event)
Process keyboard events

ovirtual bool ProcessMessage(XMessage* __Event)
Process messages

ovirtual int Run()
"Runs" the text editor. Listens for events, process them, until the editor window is closed (e.g. the CM_CLOSE command is received)

ovirtual void SetState(unsigned long __Mask, bool __BoolValue)
Sets the object's state

ovirtual void InitScrollBar()
Initialize the associated scroll bars


This class has no child classes.

Alphabetic index Hierarchy of classes



Go to the hierarchy of classes.


Copyright ©2001 Dragos Acostachioaie
Last update on October 18, 2001

This page was generated with the help of DOC++.