#include <editors.h>
Inheritance diagram for TEditWindow::
Public Methods | |
TEditWindow (const TRect &bounds, const char *fileName, int aNumber) | |
virtual void | close () |
virtual const char* | getTitle (short) |
virtual void | handleEvent (TEvent &event) |
virtual void | sizeLimits (TPoint &min, TPoint &max) |
Static Public Methods | |
TStreamable* | build () |
Public Attributes | |
TFileEditor* | editor |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TEditWindow (StreamableInit) | |
virtual void | write (opstream &) |
virtual void* | read (ipstream &) |
It will change its title to display the file name being edited and will initialize scroll bars and an indicator for the editor.
Definition at line 1366 of file editors.h.
|
Creates a TEditWindow object that will edit the given file name with window number `aNumber'. Initializes a framed, tileable window with scroll bars and an indicator. If `fileName' is 0, it is assumed to be an untitled file. Note: if editor data member is equal to TEditor::clipboard static data member, the editor is assumed to be the clipboard. |
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TWindow. |
|
Overrides TWindow::close() to hide rather than close the window if the editor is a clipboard. Reimplemented from TWindow. |
|
Returns the name of the file being edited, or "Clipboard" if the editor is the clipboard. Reimplemented from TWindow. |
|
Handles cmUpdateTitle to redraw the frame of the window. Used in TFileEditor::saveAs() to change the title of the window if the file being edited changes names. Reimplemented from TWindow. |
|
Reads from the input stream `is'. Reimplemented from TWindow. |
|
Undocumented. Reimplemented from TWindow. |
|
Writes to the output stream `os'. Reimplemented from TWindow. |
|
Pointer to the editor associated with this window. |
|
Undocumented. Reimplemented from TWindow. |