logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CenterCmd, CloseEditorCmd, GravityCmd, GridCmd, GridSpacingCmd, NormSizeCmd, OrientationCmd, RedToFitCmd

Centercmd Public Operations

CenterCmd(ControlInfo*)CenterCmd(Editor*=nil)
              Construct a new CenterCmd.

       virtualvoidExecute()
              Execute simply calls CenterOp on each of the editor's viewers.

       virtualbooleanReversible()
              CenterCmd is not reversible.

Closeeditorcmd Public Operations

CloseEditorCmd(ControlInfo*)CloseEditorCmd(Editor*=nil)
              Construct a new CloseEditorCmd.

       virtualvoidExecute()
              Execute calls Close on the global unidraw object with the CloseEditorCmd's editor as its argument.
              Execute prompts the use to save the component if it does not appear in any other open editors.  If
              no other editors are open at all, Execute creates and executes a QuitCmd.

       virtualbooleanReversible()
              CloseEditorCmd is not reversible.

Description

       The Unidraw library predefines several commands for altering the attributes of editors and their viewers.
       CenterCmd centers each of the editor's viewers.  CloseEditorCmd closes the editor, removing it  from  the
       screen.   GravityCmd  turns gravity on by activating the editor's GravityVar, if it defines one.  GridCmd
       toggles the visibility of each viewer's grid, while GridSpacingCmd lets the user specify the grid spacing
       for all grids.  Finally, NormSizeCmd sets each viewer's magnification to a factor of one,  OrientationCmd
       toggles  each viewer's orientation between landscape mode and portrait mode, and RedToFitCmd changes each
       viewer's magnification so that its component view is fully visible.

Gravitycmd Public Operations

GravityCmd(ControlInfo*)GravityCmd(Editor*=nil)
              Construct a new GravityCmd.

       virtualvoidExecute()
              Execute calls Activate on the editor's GravityVar (if it defines one)  with  the  inverse  of  the
              value returned by GravityVar's IsActive operation.

       virtualbooleanReversible()
              GravityCmd is not reversible.

Gridcmd Public Operations

GridCmd(ControlInfo*)GridCmd(Editor*=nil)
              Construct a new GridCmd.

       virtualvoidExecute()
              Execute  calls  the  Visibility operation on the grid from each of the editor's viewers, supplying
              the inverse of the value returned by Grid's IsVisible oepation.

       virtualbooleanReversible()
              GridCmd is not reversible.

Gridspacingcmd Public Operations

GridSpacingCmd(ControlInfo*)GridSpacingCmd(Editor*=nil)
              Construct a new GridSpacingCmd.

       virtualvoidExecute()
              Execute prompts the user to specify grid spacing information through a GridDialog.   If  the  user
              does not cancel the dialog, then Execute will pass the specified grid spacing to a SetSpacing call
              on each viewer's grid.

       virtualbooleanReversible()
              GridSpacingCmd is not reversible.

Name

       CenterCmd,  CloseEditorCmd, GravityCmd, GridCmd, GridSpacingCmd, NormSizeCmd, OrientationCmd, RedToFitCmd
       - commands for modifying editor attributes

Normsizecmd Public Operations

NormSizeCmd(ControlInfo*)NormSizeCmd(Editor*=nil)
              Construct a new NormSizeCmd.

       virtualvoidExecute()
              Execute simply calls SetMagnification with an argument of 1 on each of the editor's viewers.

       virtualbooleanReversible()
              NormSizeCmd is not reversible.

Orientationcmd Public Operations

OrientationCmd(ControlInfo*)OrientationCmd(Editor*=nil)
              Construct a new OrientationCmd.

       virtualvoidExecute()
              Execute  switches  the  orientation  of  each  of  the  editor's  viewers via their SetOrientation
              operation.

       virtualbooleanReversible()
              OrientationCmd is not reversible.

Redtofitcmd Public Operations

RedToFitCmd(ControlInfo*)RedToFitCmd(Editor*=nil)
              Construct a new RedToFitCmd.

       virtualvoidExecute()
              Execute simply calls ReduceToFit on each of the editor's viewers.

       virtualbooleanReversible()
              RedToFitCmd is not reversible.

See Also

BasicDialog(3U), Command(3U), Grid(3U), Unidraw(3U), Viewer(3U), catcmds(3U), globals(3U), statevars(3U)

Unidraw                                          24 January 1991                                    viewcmds(3U)

Synopsis

#include<Unidraw/Commands/viewcmds.h>

See Also