Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

editors.h File Reference

Go to the source code of this file.

Compounds

class  TEditor
 Implements a text editor. More...

class  TEditWindow
 Designed to hold a TFileEditor or the clipboard. More...

class  TFileEditor
 Specialized derivative of TEditor for editing the contents of a file. More...

struct  TFindDialogRec
class  TIndicator
 The line and column counter in the lower left corner of the edit window. More...

class  TMemo
 Derived from TEditor and designed for insertion into a dialog or form. More...

struct  TMemoData
 Data structure used by TMemo. More...

struct  TReplaceDialogRec

Typedefs

typedef ushort (* TEditorDialog )(int,...)

Functions

ushort defEditorDialog (int dialog,...)
ipstreamoperator>> (ipstream &is, TIndicator &cl)
ipstreamoperator>> (ipstream &is, TIndicator *&cl)
opstreamoperator<< (opstream &os, TIndicator &cl)
opstreamoperator<< (opstream &os, TIndicator *cl)
ipstreamoperator>> (ipstream &is, TEditor &cl)
ipstreamoperator>> (ipstream &is, TEditor *&cl)
opstreamoperator<< (opstream &os, TEditor &cl)
opstreamoperator<< (opstream &os, TEditor *cl)
ipstreamoperator>> (ipstream &is, TMemo &cl)
ipstreamoperator>> (ipstream &is, TMemo *&cl)
opstreamoperator<< (opstream &os, TMemo &cl)
opstreamoperator<< (opstream &os, TMemo *cl)
ipstreamoperator>> (ipstream &is, TFileEditor &cl)
ipstreamoperator>> (ipstream &is, TFileEditor *&cl)
opstreamoperator<< (opstream &os, TFileEditor &cl)
opstreamoperator<< (opstream &os, TFileEditor *cl)
ipstreamoperator>> (ipstream &is, TEditWindow &cl)
ipstreamoperator>> (ipstream &is, TEditWindow *&cl)
opstreamoperator<< (opstream &os, TEditWindow &cl)
opstreamoperator<< (opstream &os, TEditWindow *cl)

Variables

const int ufUpdate = 0x01
const int ufLine = 0x02
const int ufView = 0x04
const int smExtend = 0x01
const int smDouble = 0x02
const unsigned sfSearchFailed = UINT_MAX
const int cmFind = 82
const int cmReplace = 83
const int cmSearchAgain = 84
const int cmCharLeft = 500
const int cmCharRight = 501
const int cmWordLeft = 502
const int cmWordRight = 503
const int cmLineStart = 504
const int cmLineEnd = 505
const int cmLineUp = 506
const int cmLineDown = 507
const int cmPageUp = 508
const int cmPageDown = 509
const int cmTextStart = 510
const int cmTextEnd = 511
const int cmNewLine = 512
const int cmBackSpace = 513
const int cmDelChar = 514
const int cmDelWord = 515
const int cmDelStart = 516
const int cmDelEnd = 517
const int cmDelLine = 518
const int cmInsMode = 519
const int cmStartSelect = 520
const int cmHideSelect = 521
const int cmIndentMode = 522
const int cmUpdateTitle = 523
const int edOutOfMemory = 0
 edReadError = 1
 edWriteError = 2
 edCreateError = 3
 edSaveModify = 4
 edSaveUntitled = 5
 edSaveAs = 6
 edFind = 7
 edSearchFailed = 8
 edReplace = 9
 edReplacePrompt = 10
const int efCaseSensitive = 0x0001
 efWholeWordsOnly = 0x0002
 efPromptOnReplace = 0x0004
 efReplaceAll = 0x0008
 efDoReplace = 0x0010
 efBackupFiles = 0x0100
const int maxLineLength = 256


Detailed Description

editors.h

Definition in file editors.h.


Typedef Documentation

typedef ushort(* TEditorDialog)(int,...)
 

The TEditorDialog data type is a pointer to function returning ushort and taking one int argument and a variable number of additional arguments.

Since dialog boxes are very application-dependent, a TEditor object does not display its own dialog boxes directly. Instead it controls them through this function pointer.

The various dialog values, passed in the first int argument, are self-explanatory: edOutOfMemory, edReadError, edWriteError, edCreateError, edSaveModify, edSaveUntitled, edSaveAs, edFind, edSearchFailed, edReplace and edReplacePrompt.

See also:
TEditor::editorDialog

Definition at line 178 of file editors.h.


Function Documentation

ushort defEditorDialog ( int dialog,
... )
 

Since dialog boxes are very application-dependent, a TEditor object does not display its own dialog boxes directly. Instead it controls them through the TEditorDialog function pointer.

See also:
TEditor::editorDialog

This is the default dialog; it simply returns cmCancel.

opstream & operator<< ( opstream & os,
TEditWindow * cl ) [inline]
 

Undocumented.

Definition at line 1455 of file editors.h.

opstream & operator<< ( opstream & os,
TEditWindow & cl ) [inline]
 

Undocumented.

Definition at line 1450 of file editors.h.

opstream & operator<< ( opstream & os,
TFileEditor * cl ) [inline]
 

Undocumented.

Definition at line 1346 of file editors.h.

opstream & operator<< ( opstream & os,
TFileEditor & cl ) [inline]
 

Undocumented.

Definition at line 1341 of file editors.h.

opstream & operator<< ( opstream & os,
TMemo * cl ) [inline]
 

Undocumented.

Definition at line 1164 of file editors.h.

opstream & operator<< ( opstream & os,
TMemo & cl ) [inline]
 

Undocumented.

Definition at line 1159 of file editors.h.

opstream & operator<< ( opstream & os,
TEditor * cl ) [inline]
 

Undocumented.

Definition at line 1055 of file editors.h.

opstream & operator<< ( opstream & os,
TEditor & cl ) [inline]
 

Undocumented.

Definition at line 1050 of file editors.h.

opstream & operator<< ( opstream & os,
TIndicator * cl ) [inline]
 

Undocumented.

Definition at line 286 of file editors.h.

opstream & operator<< ( opstream & os,
TIndicator & cl ) [inline]
 

Undocumented.

Definition at line 281 of file editors.h.

ipstream & operator>> ( ipstream & is,
TEditWindow *& cl ) [inline]
 

Undocumented.

Definition at line 1444 of file editors.h.

ipstream & operator>> ( ipstream & is,
TEditWindow & cl ) [inline]
 

Undocumented.

Definition at line 1439 of file editors.h.

ipstream & operator>> ( ipstream & is,
TFileEditor *& cl ) [inline]
 

Undocumented.

Definition at line 1335 of file editors.h.

ipstream & operator>> ( ipstream & is,
TFileEditor & cl ) [inline]
 

Undocumented.

Definition at line 1330 of file editors.h.

ipstream & operator>> ( ipstream & is,
TMemo *& cl ) [inline]
 

Undocumented.

Definition at line 1153 of file editors.h.

ipstream & operator>> ( ipstream & is,
TMemo & cl ) [inline]
 

Undocumented.

Definition at line 1148 of file editors.h.

ipstream & operator>> ( ipstream & is,
TEditor *& cl ) [inline]
 

Undocumented.

Definition at line 1044 of file editors.h.

ipstream & operator>> ( ipstream & is,
TEditor & cl ) [inline]
 

Undocumented.

Definition at line 1039 of file editors.h.

ipstream & operator>> ( ipstream & is,
TIndicator *& cl ) [inline]
 

Undocumented.

Definition at line 275 of file editors.h.

ipstream & operator>> ( ipstream & is,
TIndicator & cl ) [inline]
 

Undocumented.

Definition at line 270 of file editors.h.


Variable Documentation

edCreateError = 3
 

See also:
TEditor::doSearchReplace

Definition at line 76 of file editors.h.

edFind = 7
 

See also:
TEditor::doSearchReplace

Definition at line 96 of file editors.h.

const int edOutOfMemory = 0
 

See also:
TEditor::doSearchReplace

Definition at line 66 of file editors.h.

edReadError = 1
 

See also:
TEditor::doSearchReplace

Definition at line 66 of file editors.h.

edReplace = 9
 

See also:
TEditor::doSearchReplace

Definition at line 106 of file editors.h.

edReplacePrompt = 10
 

See also:
TEditor::doSearchReplace

Definition at line 111 of file editors.h.

edSaveAs = 6
 

See also:
TEditor::doSearchReplace

Definition at line 91 of file editors.h.

edSaveModify = 4
 

See also:
TEditor::doSearchReplace

Definition at line 81 of file editors.h.

edSaveUntitled = 5
 

See also:
TEditor::doSearchReplace

Definition at line 86 of file editors.h.

edSearchFailed = 8
 

See also:
TEditor::doSearchReplace

Definition at line 101 of file editors.h.

edWriteError = 2
 

See also:
TEditor::doSearchReplace

Definition at line 71 of file editors.h.

efBackupFiles = 0x0100
 

Create backup files with a trailing ~ on saves.

See also:
TEditor::editorFlags

Definition at line 147 of file editors.h.

const int efCaseSensitive = 0x0001
 

Default to case-sensitive search.

See also:
TEditor::editorFlags

Definition at line 123 of file editors.h.

efDoReplace = 0x0010
 

Do replace.

See also:
TEditor::editorFlags

Definition at line 141 of file editors.h.

efPromptOnReplace = 0x0004
 

Prompt on replace.

See also:
TEditor::editorFlags

Definition at line 129 of file editors.h.

efReplaceAll = 0x0008
 

Replace all occurrences.

See also:
TEditor::editorFlags

Definition at line 135 of file editors.h.

efWholeWordsOnly = 0x0002
 

Default to whole words only search.

See also:
TEditor::editorFlags

Definition at line 123 of file editors.h.

const int maxLineLength = 256
 

Maximum allowed line length for text in a TEditor view.

Definition at line 159 of file editors.h.


Generated at Sat Sep 22 20:19:15 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001