class XtTextViewer: public XtWindow

Text file viewer

Inheritance:

XtTextViewer - XtWindow - XObject - XEventBroker


Public Methods

[more]XtTextViewer(XRect __r, char *__FileName, char *__Title)
Constructs a new XtTextViewer using the specified bounds, file name and title
[more]~XtTextViewer()
Destructs the object's instance
[more]virtual void Draw()
Draws the object
[more]virtual void InitScrollBar()
Initialize the associated scroll bar
[more]virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events
[more]virtual bool ProcessMessage(XMessage *__Event)
Process messages
[more]virtual int Run()
"Runs" the text viewer

Inherited from XtWindow:

Public Methods

virtual void Close()
virtual void MoveTo(XPoint __p)
virtual bool ProcessMouseEvent(XMouseEvent *__Event)
virtual void Resize(XPoint __delta)
virtual void SetFrame(char *__Frame)
virtual void SetState(unsigned long __Mask, bool __BoolValue)

Protected Fields

chtype* Buffer
char* Title
char Frame[10]

Protected Methods

void FrameUpdate()

Inherited from XObject:

Public Methods

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

Protected Fields

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

Protected Methods

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

Inherited from XEventBroker:

Public Methods

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

Protected Fields

Map __map

Inherited from XObjectEventListener:

Public Methods

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

Inherited from XEventListener:


Documentation

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

~XtTextViewer()
Destructs the object's instance

virtual void Draw()
Draws the object

virtual void InitScrollBar()
Initialize the associated scroll bar

virtual bool ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process keyboard events

virtual bool ProcessMessage(XMessage *__Event)
Process messages

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


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998-99 Dragos Acostachioaie
Last update on March 9, 1999

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