Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

importcmd(3u) [debian man page]

ImportCmd(3U)						    InterViews Reference Manual 					     ImportCmd(3U)

NAME
ImportCmd - import a graphical component SYNOPSIS
#include <Unidraw/Commands/import.h> DESCRIPTION
ImportCmd imports a graphical image from a file into the drawing being edited. ImportCmd supports the following file formats: TIFF; Post- Script generated by pgmtops and ppmtops; X bitmap format; and Unidraw format. PUBLIC OPERATIONS
ImportCmd(ControlInfo*, FileChooser* = nil) ImportCmd(Editor* = nil, FileChooser* = nil) Create a new ImportCmd instance, optionally supplying the FileChooser that will prompt the user to specify the file to import. After the user specifies the file, ImportCmd reads it, creates an appropriate graphical component, and pastes it into the component being edited in the enclosing editor. static GraphicComp* Import(const char*) static GraphicComp* TIFF_Image(const char*) static GraphicComp* PGM_Image(const char*) static GraphicComp* PPM_Image(const char*) static GraphicComp* XBitmap_Image(const char*) Operations for reading data from various file formats and creating an appropriate graphical component. TIFF_Image, PGM_Image, PPM_Image, and XBitmap_Image assume that the specified file is in the corresponding format. Import is more general: it determines the format from the file and then calls one of the other functions. PROTECTED OPERATIONS
void Init(FileChooser*) Specify the FileChooser instance (stored in the _dialog protected member) explicitly. This operation does not delete the existing instance, if any. GraphicComp* PostDialog() Post the FileChooser and return the graphical component created from the user-specified file, if any. SEE ALSO
Catalog(3U), Command(3U), FileChooser(3I), GraphicComp(3U), bitmap(1), pgmtops(1), ppmtops(1) Unidraw 10 August 1991 ImportCmd(3U)

Check Out this Related Man Page

struct(3U)						    InterViews Reference Manual 						struct(3U)

NAME
BackCmd, FrontCmd, GroupCmd, UngroupCmd - commands for modifying components structurally SYNOPSIS
#include <Unidraw/Commands/struct.h> DESCRIPTION
BackCmd, FrontCmd, GroupCmd, and UngroupCmd are purely interpretive commands for altering the structure of their editor's component. All redefine their Execute and Unexecute operations to let the editor's component interpret them as it wishes. BACKCMD PUBLIC OPERATIONS
BackCmd(ControlInfo*) BackCmd(Editor* = nil) Construct a new BackCmd. FRONTCMD PUBLIC OPERATIONS
FrontCmd(ControlInfo*) FrontCmd(Editor* = nil) Construct a new FrontCmd. GROUPCMD PUBLIC OPERATIONS
GroupCmd(ControlInfo*, GraphicComp* = nil) GroupCmd(Editor* = nil, GraphicComp* = nil) Create a new GroupCmd, optionally specifying the component into which components will be grouped. virtual void Execute() virtual void Unexecute() Execute will set the value of the _executed protected member variable to true as a side effect if anything was grouped. Similarly, Unexecute will set reset the value to false as a side effect the operation was undone. GraphicComp* GetGroup() void SetGroup(GraphicComp*) Get or set the component into which components will be grouped. SetGroup will not delete the old value. UNGROUPCMD PUBLIC OPERATIONS
UngroupCmd(ControlInfo*) UngroupCmd(Editor* = nil) Construct a new UngroupCmd. virtual void Execute() virtual void Unexecute() Execute will set the value of the _executed protected member variable to true as a side effect if anything was ungrouped. Simi- larly, Unexecute will set reset the value to false as a side effect the operation was undone. Clipboard* GetKids() void SetKids(Clipboard*) Explicitly set and get a clipboard containing the child components that were ungrouped, which is stored in the _kids protected mem- ber. UngroupCmd does not initialize this member; it merely provides the storage as a convenience to components that interpret the command and need a place to store the ungrouped children to support reverse execution. However, UngroupCmd deletes the clipboard (if it exists) in ~UngroupCmd. SetKids will not delete the old value. SEE ALSO
Command(3U), GraphicComp(3U) Unidraw 24 January 1991 struct(3U)
Man Page