ConnectCmd,  CopyCmd, CutCmd, DeleteCmd, DupCmd, Mobility-
       Cmd, PasteCmd, RedoCmd, ReplaceCmd, SlctAllCmd, UndoCmd  -
       editing commands


SYNOPSIS

       #include <Unidraw/Commands/edit.h>


DESCRIPTION

       The  Unidraw  library  defines several commands that offer
       common component editing functionality.  ConnectCmd  is  a
       non-interpretive  command  that  connects  two connectors.
       CopyCmd copies selected components onto its clipboard  (if
       it  defines  one)  or  onto the global clipboard.  CutCmd,
       DeleteCmd, DupCmd, and PasteCmd  are  purely  interpretive
       commands  that  are  always  interpreted by their editor's
       component.  MobilityCmd  gives  selected  components   the
       opportunity  to  set  their mobility based on the value it
       provides.  UndoCmd and RedoCmd are  non-interpretive  com-
       mands  that  simply  undo  and  redo the last command that
       affected their editor's  component.   ReplaceCmd  replaces
       selected   components   with   the  component  it  stores.
       Finally, SlctAllCmd is  a  non-interpretive  command  that
       selects all the components displayed in its editor.


CONNECTCMD PUBLIC OPERATIONS

       ConnectCmd(
           ControlInfo*,
           Connector* source = nil, Connector* target = nil
       )

       ConnectCmd(Editor* = nil, Connector* = nil, Connector* =
              nil)
              The ConnectCmd  constructor  optionally  ./usr/share/doc/doc/man3.1/catcmds.html0100644000000000000000000001216107002054562016441 0ustar  rootroot


       NewCompCmd,  PrintCmd,  QuitCmd,  RevertCmd,  SaveCompCmd,
       SaveCompAsCmd, ViewCompCmd - catalog-oriented commands


SYNOPSIS

       #include <Unidraw/Commands/catcmds.h>


DESCRIPTION

       The Unidraw library predefines a set  of  non-interpretive
       commands that let a user specify components to open, view,
       and save, plus commands for generating a PostScript exter-
       nal representation and for quitting the application.  New-
       CompCmd re-initializes its editor's component to  let  the
       user  start  editing afresh.  If the existing component is
       modified, NewCompCmd prompts the user to save it.   Print-
       Cmd  generates  a PostScriptView of the editor's component
       and lets the user send it to  a  file  or  to  a  printer.
       QuitCmd  quits the application, prompting the user to save
       modified components.  RevertCmd lets the user re-open  the
       current  component,  discarding  changes since it was last
       saved.  SaveCompAsCmd lets the user save a component under
       a  particular  name,  while  SaveCompCmd saves a component
       named previously.   Finally,  ViewCompCmd  lets  the  user
       specify another component to view in its editor.


NEWCOMPCMD PUBLIC OPERATIONS

       NewCompCmd(ControlInfo*, Component* prototype = nil)
       NewCompCmd(Editor* = nil, Component* = nil)
              Create  a  new NewCompCmd instance, optionally sup-
              plying a prototype component.  When executed,  New-
              CompCmd  will  make  its  editor edit a copy of the
              prototype.  The editor's original component will be
              deleted if no other editor refers to it.

       virtual boolean Reversible()
              NewCompCmd is not reversible.

       Component* GetPrototype()
              Return  the  prototype  component  specified in the
              constructor.


PRINTCMD PUBLIC OPERATIONS

       PrintCmd(ControlInfo*, PrintDialog* = nil)
       PrintCmd(Editor* = nil, PrintDialog* = nil)
              Create a new PrintCmd instance, optionally  supply-
              ing the PrintDialog to display when executed.

       virtual boolean Reversible()
              PrintCmd is not reversible.


PRINTCMD PROTECTED OPERATIONS

       void print(const char* print_cmd, const char* file)
              Concatenates print_cmd and file and calls system(3)

       QuitCmd(ControlInfo*)
       QuitCmd(Editor* = nil)
              Create a new QuitCmd instance.

       virtual boolean Reversible()
              QuitCmd is not reversible.


REVERTCMD PUBLIC OPERATIONS

       RevertCmd(ControlInfo*)
       RevertCmd(Editor* = nil)
              Create a new RevertCmd instance.

       virtual boolean Reversible()
              RevertCmd is not reversible.


SAVECOMPCMD PUBLIC OPERATIONS

       SaveCompCmd(ControlInfo*)
       SaveCompCmd(Editor* = nil)
              Create a new SaveCompCmd instance.

       virtual boolean Reversible()
              SaveCompCmd is not reversible.


SAVECOMPASCMD PUBLIC OPERATIONS

       SaveCompAsCmd(ControlInfo*, FileChooser* = nil)
       SaveCompAsCmd(Editor* = nil, FileChooser* = nil)
              Create a  new  SaveCompAsCmd  instance,  optionally
              supplying the FileChooser that will prompt the user
              to name the component.

       virtual boolean Reversible()
              SaveCompAsCmd is not reversible.


VIEWCOMPCMD PUBLIC OPERATIONS

       ViewCompCmd(ControlInfo*, FileChooser* = nil)
       ViewCompCmd(Editor* = nil, FileChooser* = nil)
              Create a new ViewCompCmd instance, optionally  sup-
              plying the FileChooser that will prompt the user to
              specify the component to view.  After the new  com-
              ponent  is opened successfully, the editor's origi-
              nal component will be deleted if  no  other  editor
              refers to it.

       virtual boolean Reversible()
              ViewCompCmd is not reversible.


SEE ALSO

       BasicDialog(3U),  Command(3U),  Component(3U), Editor(3U),
       PostScriptView(3U), lpr(1).




Man(1) output converted with man2html
./usr/share/doc/doc/man3.1/classes.html0100644000000000000000000000622207002054562016461 0ustar rootroot