Xterminal Home Page Main page

class XtTextViewer : public XtWindow

Text file viewer

Inheritance:

XtTextViewer - XtWindow - XObject - XEventBroker


Public Methods

virtual void CalculateBounds()
Computes the object's size and the real bounds
virtual void Draw()
Draws the object
virtual void InitScrollBar()
Initialize the associated scroll bar
virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events
virtual int ProcessMessage(XMessage *__Event)
Process messages
virtual void SetState(int __Mask, int __BoolValue)
Sets the object's state
XtTextViewer(XRect __r, char *__FileName)
Constructs a new XtTextViewer using the specified bounds and file name
~XtTextViewer()
Destructs the object's instance

Inherited from XtWindow:

Public Methods

virtual void Close()
virtual void MoveTo(XPoint __p)
virtual void SetFrame(char *__Frame)

Protected Fields

chtype* Buffer
char Frame[10]
char Title[40]

Protected Methods

void FrameUpdate()

Inherited from XObject:

Public Methods

XRect GetBounds()
virtual XEvent* GetEvent()
unsigned long GetId()
char* GetObjClass()
XPoint GetOrigin()
virtual unsigned GetPalEntry(unsigned __Index)
virtual char* GetPalette()
XPoint GetSize()
virtual unsigned GetState(unsigned long __Mask)
unsigned long GetState()
virtual void HandleEvent(XEvent *__Ev)
virtual void RegisterClient(XObject *__NewClient)
virtual void SetPalette(char *__Pal, unsigned __PalLen)

Protected Fields

XRect Bounds
SLList < XObject * > Clients
XPoint Cursor
unsigned long Id
char ObjClass[40]
XPoint Origin
char Pal[80]
unsigned PalLen
XObject* Server
XPoint Size
unsigned long State

Protected Methods

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

Inherited from XEventBroker:

Public Methods

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

Protected Fields

Map __map

Inherited from XObjectEventListener:

Public Methods

virtual int ProcessBroadcast(XEvent *__Event)
virtual int ProcessCommand(XMessage *__Event)
virtual int ProcessEvent(XEvent *__Event)
virtual int ProcessMouseEvent(XMouseEvent *__Event)
virtual int ProcessSignal(XEvent *__Event)

Inherited from XEventListener:


Documentation

Text file viewer
XtTextViewer(XRect __r, char *__FileName)
Constructs a new XtTextViewer using the specified bounds and file name

~XtTextViewer()
Destructs the object's instance

virtual void CalculateBounds()
Computes the object's size and the real bounds

virtual void Draw()
Draws the object

virtual void InitScrollBar()
Initialize the associated scroll bar

virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events

virtual int ProcessMessage(XMessage *__Event)
Process messages

virtual void SetState(int __Mask, int __BoolValue)
Sets the object's state


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998 Dragos Acostachioaie
Last update on June 10, 1998

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