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

views.h File Reference

Go to the source code of this file.

Compounds

class  TCommandSet
 Implements a non-view class for handling command sets. More...

class  TFrame
 The frame around the windows. More...

class  TGroup
 TGroup objects and their derivatives provide the central driving power to TVision. More...

class  TListViewer
 An abstract class from which you can derive list viewers of various kinds, such as TListBox. More...

class  TPalette
 Simple class used to create and manipulate palette arrays. More...

class  TScrollBar
 Implements a scroll bar.

class  TScroller
 Provides a scrolling virtual window onto a larger view. More...

class  TView
 The base of all visible objects. More...

class  TWindow
 Implements a window. More...

class  TWindowInit
 Virtual base class for TWindow. More...


Typedefs

typedef char TScrollChars [5]

Functions

int operator!= (const TCommandSet &tc1, const TCommandSet &tc2)
ipstreamoperator>> (ipstream &is, TView &cl)
ipstreamoperator>> (ipstream &is, TView *&cl)
opstreamoperator<< (opstream &os, TView &cl)
opstreamoperator<< (opstream &os, TView *cl)
ipstreamoperator>> (ipstream &is, TFrame &cl)
ipstreamoperator>> (ipstream &is, TFrame *&cl)
opstreamoperator<< (opstream &os, TFrame &cl)
opstreamoperator<< (opstream &os, TFrame *cl)
ipstreamoperator>> (ipstream &is, TScrollBar &cl)
ipstreamoperator>> (ipstream &is, TScrollBar *&cl)
opstreamoperator<< (opstream &os, TScrollBar &cl)
opstreamoperator<< (opstream &os, TScrollBar *cl)
ipstreamoperator>> (ipstream &is, TScroller &cl)
ipstreamoperator>> (ipstream &is, TScroller *&cl)
opstreamoperator<< (opstream &os, TScroller &cl)
opstreamoperator<< (opstream &os, TScroller *cl)
ipstreamoperator>> (ipstream &is, TListViewer &cl)
ipstreamoperator>> (ipstream &is, TListViewer *&cl)
opstreamoperator<< (opstream &os, TListViewer &cl)
opstreamoperator<< (opstream &os, TListViewer *cl)
ipstreamoperator>> (ipstream &is, TGroup &cl)
ipstreamoperator>> (ipstream &is, TGroup *&cl)
opstreamoperator<< (opstream &os, TGroup &cl)
opstreamoperator<< (opstream &os, TGroup *cl)
ipstreamoperator>> (ipstream &is, TWindow &cl)
ipstreamoperator>> (ipstream &is, TWindow *&cl)
opstreamoperator<< (opstream &os, TWindow &cl)
opstreamoperator<< (opstream &os, TWindow *cl)

Variables

const ushort cmValid = 0
const ushort cmQuit = 1
const ushort cmError = 2
const ushort cmMenu = 3
const ushort cmClose = 4
const ushort cmZoom = 5
const ushort cmResize = 6
const ushort cmNext = 7
const ushort cmPrev = 8
const ushort cmHelp = 9
const ushort cmOK = 10
const ushort cmCancel = 11
const ushort cmYes = 12
const ushort cmNo = 13
const ushort cmDefault = 14
const ushort cmNew = 30
const ushort cmOpen = 31
const ushort cmSave = 32
const ushort cmSaveAs = 33
const ushort cmSaveAll = 34
const ushort cmChDir = 35
const ushort cmDosShell = 36
const ushort cmCloseAll = 37
const ushort cmSysRepaint = 38
const ushort cmSysResize = 39
const ushort cmSysWakeup = 40
 sfVisible = 0x001
 sfCursorVis = 0x002
 sfCursorIns = 0x004
 sfShadow = 0x008
 sfActive = 0x010
 sfSelected = 0x020
 sfFocused = 0x040
 sfDragging = 0x080
 sfDisabled = 0x100
 sfModal = 0x200
 sfDefault = 0x400
 sfExposed = 0x800
 ofSelectable = 0x001
 ofTopSelect = 0x002
 ofFirstClick = 0x004
 ofFramed = 0x008
 ofPreProcess = 0x010
 ofPostProcess = 0x020
 ofBuffered = 0x040
 ofTileable = 0x080
 ofCenterX = 0x100
 ofCenterY = 0x200
 ofCentered = 0x300
 ofValidate = 0x400
 gfGrowLoX = 0x01
 gfGrowLoY = 0x02
 gfGrowHiX = 0x04
 gfGrowHiY = 0x08
 gfGrowAll = 0x0f
 gfGrowRel = 0x10
 gfFixed = 0x20
 dmDragMove = 0x01
 dmDragGrow = 0x02
 dmLimitLoX = 0x10
 dmLimitLoY = 0x20
 dmLimitHiX = 0x40
 dmLimitHiY = 0x80
 dmLimitAll = dmLimitLoX | dmLimitLoY | dmLimitHiX | dmLimitHiY
 hcNoContext = 0
 hcDragging = 1
 sbLeftArrow = 0
 sbRightArrow = 1
 sbPageLeft = 2
 sbPageRight = 3
 sbUpArrow = 4
 sbDownArrow = 5
 sbPageUp = 6
 sbPageDown = 7
 sbIndicator = 8
 sbHorizontal = 0x000
 sbVertical = 0x001
 sbHandleKeyboard = 0x002
 wfMove = 0x01
 wfGrow = 0x02
 wfClose = 0x04
 wfZoom = 0x08
 noMenuBar = 0x0001
 noDeskTop = 0x0002
 noStatusLine = 0x0004
 noBackground = 0x0008
 noFrame = 0x0010
 noViewer = 0x0020
 noHistory = 0x0040
 wnNoNumber = 0
 wpBlueWindow = 0
 wpCyanWindow = 1
 wpGrayWindow = 2
 cmCut = 20
 cmCopy = 21
 cmPaste = 22
 cmUndo = 23
 cmClear = 24
 cmTile = 25
 cmCascade = 26
 cmReceivedFocus = 50
 cmReleasedFocus = 51
 cmCommandSetChanged = 52
 cmScrollBarChanged = 53
 cmScrollBarClicked = 54
 cmSelectWindowNum = 55
 cmListItemSelected = 56
 positionalEvents = evMouse
 focusedEvents = evKeyboard | evCommand


Detailed Description

views.h

Definition in file views.h.


Typedef Documentation

typedef char TScrollChars
 

An array representing the characters used to draw a TScrollBar.

See also:
TScrollBar , TScrollBar::draw

Definition at line 2106 of file views.h.


Function Documentation

int operator!= ( const TCommandSet & tc1,
const TCommandSet & tc2 ) [inline]
 

Returns 1 if the sets `tc1' and `tc2' are not equal.

Otherwise returns 0.

Definition at line 719 of file views.h.

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

Undocumented.

Definition at line 3690 of file views.h.

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

Undocumented.

Definition at line 3685 of file views.h.

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

Undocumented.

Definition at line 3364 of file views.h.

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

Undocumented.

Definition at line 3359 of file views.h.

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

Undocumented.

Definition at line 2793 of file views.h.

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

Undocumented.

Definition at line 2788 of file views.h.

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

Undocumented.

Definition at line 2548 of file views.h.

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

Undocumented.

Definition at line 2543 of file views.h.

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

Undocumented.

Definition at line 2346 of file views.h.

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

Undocumented.

Definition at line 2341 of file views.h.

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

Undocumented.

Definition at line 2081 of file views.h.

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

Undocumented.

Definition at line 2076 of file views.h.

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

Undocumented.

Definition at line 1910 of file views.h.

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

Undocumented.

Definition at line 1905 of file views.h.

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

Undocumented.

Definition at line 3679 of file views.h.

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

Undocumented.

Definition at line 3674 of file views.h.

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

Undocumented.

Definition at line 3353 of file views.h.

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

Undocumented.

Definition at line 3348 of file views.h.

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

Undocumented.

Definition at line 2782 of file views.h.

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

Undocumented.

Definition at line 2777 of file views.h.

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

Undocumented.

Definition at line 2537 of file views.h.

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

Undocumented.

Definition at line 2532 of file views.h.

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

Undocumented.

Definition at line 2335 of file views.h.

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

Undocumented.

Definition at line 2330 of file views.h.

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

Undocumented.

Definition at line 2070 of file views.h.

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

Undocumented.

Definition at line 2065 of file views.h.

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

Undocumented.

Definition at line 1899 of file views.h.

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

Undocumented.

Definition at line 1894 of file views.h.


Variable Documentation

dmDragGrow = 0x02
 

Allow the view to change size.

See also:
TView::dragMode

Definition at line 322 of file views.h.

dmDragMove = 0x01
 

Allow the view to move.

See also:
TView::dragMode

Definition at line 314 of file views.h.

dmLimitAll = dmLimitLoX | dmLimitLoY | dmLimitHiX | dmLimitHiY
 

No part of the view can move outside limits.

See also:
TView::dragMode

Definition at line 352 of file views.h.

dmLimitHiX = 0x40
 

The view's right-hand side cannot move outside limits.

See also:
TView::dragMode

Definition at line 340 of file views.h.

dmLimitHiY = 0x80
 

The view's bottom side cannot move outside limits.

See also:
TView::dragMode

Definition at line 346 of file views.h.

dmLimitLoX = 0x10
 

The view's left-hand side cannot move outside limits.

See also:
TView::dragMode

Definition at line 328 of file views.h.

dmLimitLoY = 0x20
 

The view's top side cannot move outside limits.

See also:
TView::dragMode

Definition at line 334 of file views.h.

focusedEvents = evKeyboard | evCommand
 

Defines the event classes that are focused events. The focusedEvents and positionalEvents values are used by TGroup::handleEvent() to determine how to dispatch an event to the group's subviews. If an event class isn't contained in focusedEvents or positionalEvents, it is treated as a broadcast event.

Definition at line 555 of file views.h.

gfFixed = 0x20
 

Undocumented.

See also:
TView::growMode

Definition at line 308 of file views.h.

gfGrowAll = 0x0f
 

If set, the view will move with the lower-right corner of its owner.

See also:
TView::growMode

Definition at line 294 of file views.h.

gfGrowHiX = 0x04
 

If set, the right-hand side of the view will maintain a constant distance from its owner's right side.

See also:
TView::growMode

Definition at line 280 of file views.h.

gfGrowHiY = 0x08
 

If set, the bottom of the view will maintain a constant distance from the bottom of its owner's.

See also:
TView::growMode

Definition at line 287 of file views.h.

gfGrowLoX = 0x01
 

If set, the left-hand side of the view will maintain a constant distance from its owner's right-hand side. If not set, the movement indicated won't occur.

See also:
TView::growMode

Definition at line 263 of file views.h.

gfGrowLoY = 0x02
 

If set, the top of the view will maintain a constant distance from the bottom of its owner.

See also:
TView::growMode

Definition at line 273 of file views.h.

gfGrowRel = 0x10
 

For use with TWindow objects that are in the desktop. The view will change size relative to the owner's size, maintaining that relative size with respect to the owner even when screen is resized.

See also:
TView::growMode

Definition at line 300 of file views.h.

hcDragging = 1
 

Object is being dragged.

See also:
TView::helpCtx

Definition at line 366 of file views.h.

hcNoContext = 0
 

No context specified.

See also:
TView::helpCtx

Definition at line 358 of file views.h.

ofBuffered = 0x040
 

Used for TGroup objects and classes derived from TGroup only. Set if a cache buffer should be allocated if sufficient memory is available. The group buffer holds a screen image of the whole group so that group redraws can be speeded up. In the absence of a buffer, TGroup::draw() calls on each subview's TView::drawView() method. If subsequent memory allocation calls fail, group buffers will be deallocated to make memory available.

See also:
TView::options

Definition at line 217 of file views.h.

ofCenterX = 0x100
 

Set if the view should be centered on the x-axis of its owner when inserted in a group using TGroup::insert().

See also:
TView::options

Definition at line 236 of file views.h.

ofCenterY = 0x200
 

Set if the view should be centered on the y-axis of its owner when inserted in a group using TGroup::insert().

See also:
TView::options

Definition at line 243 of file views.h.

ofCentered = 0x300
 

Set if the view should be centered on both axes of its owner when inserted in a group using TGroup::insert().

See also:
TView::options

Definition at line 250 of file views.h.

ofFirstClick = 0x004
 

If clear, a mouse click that selects a view will have no further effect. If set, such a mouse click is processed as a normal mouse click after selecting the view. Has no effect unless ofSelectable is also set. See also TView::handleEvent(), sfSelected and ofSelectable.

See also:
TView::options

Definition at line 182 of file views.h.

ofFramed = 0x008
 

Set if the view should have a frame drawn around it. A TWindow and any class derived from TWindow, has a TFrame as its last subview. When drawing itself, the TFrame will also draw a frame around any other subviews that have the ofFramed bit set.

See also:
TView::options

Definition at line 192 of file views.h.

ofPostProcess = 0x020
 

Set if the view should receive focused events whenever the focused view fails to handle them. Otherwise clear. See also sfFocused, ofPreProcess and TGroup::phase.

See also:
TView::options

Definition at line 209 of file views.h.

ofPreProcess = 0x010
 

Set if the view should receive focused events before they are sent to the focused view. Otherwise clear. See also sfFocused, ofPostProcess, and TGroup::phase.

See also:
TView::options

Definition at line 201 of file views.h.

ofSelectable = 0x001
 

Set if the view should select itself automatically (see sfSelected); for example, by a mouse click in the view, or a Tab in a dialog box.

See also:
TView::options

Definition at line 161 of file views.h.

ofTileable = 0x080
 

Set if the desktop can tile (or cascade) this view. Usually used only with TWindow objects.

See also:
TView::options

Definition at line 229 of file views.h.

ofTopSelect = 0x002
 

Set if the view should move in front of all other peer views when selected. When the ofTopSelect bit is set, a call to TView::select() corresponds to a call to TView::makeFirst(). TWindow and descendants by default have the ofTopSelect bit set, which causes them to move in front of all other windows on the desktop when selected.

See also:
TView::options

Definition at line 171 of file views.h.

ofValidate = 0x400
 

Undocumented.

See also:
TView::options

Definition at line 257 of file views.h.

positionalEvents = evMouse
 

Defines the event classes that are positional events. The focusedEvents and positionalEvents masks are used by TGroup::handleEvent() to determine how to dispatch an event to the group's subviews. If an event class isn't contained in focusedEvents or positionalEvents, it is treated as a broadcast event.

Definition at line 543 of file views.h.

sbDownArrow = 5
 

Bottom arrow of vertical scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 404 of file views.h.

sbHandleKeyboard = 0x002
 

The scroll bar responds to keyboard commands.

See also:
TWindow::standardScrollBar

Definition at line 442 of file views.h.

sbHorizontal = 0x000
 

The scroll bar is horizontal.

See also:
TWindow::standardScrollBar

Definition at line 428 of file views.h.

sbIndicator = 8
 

Position indicator on scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 422 of file views.h.

sbLeftArrow = 0
 

Left arrow of horizontal scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 372 of file views.h.

sbPageDown = 7
 

Lower paging area of vertical scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 416 of file views.h.

sbPageLeft = 2
 

Left paging area of horizontal scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 386 of file views.h.

sbPageRight = 3
 

Right paging area of horizontal scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 392 of file views.h.

sbPageUp = 6
 

Upper paging area of vertical scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 410 of file views.h.

sbRightArrow = 1
 

Right arrow of horizontal scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 380 of file views.h.

sbUpArrow = 4
 

Top arrow of vertical scroll bar.

See also:
TScrollBar::scrollStep

Definition at line 398 of file views.h.

sbVertical = 0x001
 

The scroll bar is vertical.

See also:
TWindow::standardScrollBar

Definition at line 436 of file views.h.

sfActive = 0x010
 

Set if the view is the active window or a subview in the active window.

See also:
TView::state

Definition at line 91 of file views.h.

sfCursorIns = 0x004
 

Set if the view's cursor is a solid block; clear if the view's cursor is an underline (the default). Use TView::blockCursor() and TView::normalCursor() to modify this bit.

See also:
TView::state

Definition at line 77 of file views.h.

sfCursorVis = 0x002
 

Set if a view's cursor is visible. Clear is the default. You can use TView::showCursor() and TView::hideCursor() to modify sfCursorVis.

See also:
TView::state

Definition at line 69 of file views.h.

sfDefault = 0x400
 

This is a spare flag, available to specify some user-defined default state.

See also:
TView::state

Definition at line 144 of file views.h.

sfDisabled = 0x100
 

Set if the view is disabled. A disabled view will ignore all events sent to it.

See also:
TView::state

Definition at line 121 of file views.h.

sfDragging = 0x080
 

Set if the view is being dragged.

See also:
TView::state

Definition at line 115 of file views.h.

sfExposed = 0x800
 

Set if the view is owned directly or indirectly by the application object, and therefore possibly visible on the. TView::exposed() uses this flag in combination with further clipping calculations to determine whether any part of the view is actually visible on the screen.

See also:
TView::state

Definition at line 151 of file views.h.

sfFocused = 0x040
 

Set if the view is focused. A view is focused if it is selected and all owners above it are also selected. The last view on the focused chain is the final target of all focused events.

See also:
TView::state

Definition at line 107 of file views.h.

sfModal = 0x200
 

Set if the view is modal. There is always exactly one modal view in a running TVision application, usually a TApplication or TDialog object. When a view starts executing (through an TGroup::execView() call), that view becomes modal. The modal view represents the apex (root) of the active event tree, getting and handling events until its TView::endModal() method is called. During this "local" event loop, events are passed down to lower subviews in the view tree. Events from these lower views pass back up the tree, but go no further than the modal view. See also TView::setState(), TView::handleEvent() and TGroup::execView().

See also:
TView::state

Definition at line 128 of file views.h.

sfSelected = 0x020
 

Set if the view is the currently selected subview within its owner. Each TGroup object has a TGroup::current data member that points to the currently selected subview (or is 0 if no subview is selected). There can be only one currently selected subview in a TGroup.

See also:
TView::state

Definition at line 97 of file views.h.

sfShadow = 0x008
 

Set if the view has a shadow.

See also:
TView::state

Definition at line 85 of file views.h.

sfVisible = 0x001
 

Set if the view is visible on its owner. Views are by default sfVisible. Use TView::show() and TView::hide() to modify sfVisible. An sfVisible view is not necessarily visible on the screen, since its owner might not be visible. To test for visibility on the screen, examine the sfExposed bit or call TView::exposed().

See also:
TView::state

Definition at line 57 of file views.h.

wfClose = 0x04
 

Window frame has a close icon that can be mouse-clicked to close the window.

See also:
TWindow::flags.

Definition at line 462 of file views.h.

wfGrow = 0x02
 

Window can be resized and has a grow icon in the lower-right corner.

See also:
TWindow::flags.

Definition at line 456 of file views.h.

wfMove = 0x01
 

Window can be moved.

See also:
TWindow::flags.

Definition at line 448 of file views.h.

wfZoom = 0x08
 

Window frame has a zoom icon that can be mouse-clicked.

See also:
TWindow::flags.

Definition at line 469 of file views.h.

wnNoNumber = 0
 

Use the constant wnNoNumber to indicate that the window is not to be numbered and cannot be selected via the Alt+number key.

See also:
TWindow::TWindow

Definition at line 485 of file views.h.

wpBlueWindow = 0
 

Window text is yellow on blue.

See also:
TWindow::palette

Definition at line 494 of file views.h.

wpCyanWindow = 1
 

Window text is blue on cyan.

See also:
TWindow::palette

Definition at line 502 of file views.h.

wpGrayWindow = 2
 

Window text is black on gray.

See also:
TWindow::palette

Definition at line 508 of file views.h.


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