Go up one levelGo to Previous Go to Next

PrintDialog(n)

NAME

 
 PrintDialog - Base class of Popup dialogs for specifying printer options

NAMESPACE

 
 util

PARENT CLASS

 
 util::TopLevelWidget

SYNOPSIS

 
 PrintDialog <path> ?options?

DESCRIPTION

 
 PrintDialog is the base class of Popup dialogs for specifying printer
 options.


ITK COMPONENTS

 
 btns
        Row of buttons (ButtonFrame(n)).

 config
        Frame for misc other items added by sublasses (child-site...).

 print_to_file
        Print to file entry (CheckEntry(n)).

 printcmd
        LabelEntry for print command.

 ptf
        Frame for print to file entry.

 top
        Frame for printer name entry.

WIDGET OPTIONS

 
 -filename
        File name for print to file.

 -print_to_file
        Bool: print to file ?.

 -printcmd
        Default print command.

 -suffix
        Default suffix for print to file.

 -userfile
        User defaults file (without path, $HOME will be added).

PROTECTED METHODS

 
 file_writable {file}
        This method checks if a file can be used for writing.  Returns the
        'globbed' filename if so otherwise an empty string.

 get_pathname {file}
        Return 'globbed' pathname for a file. If the extension is not set
        in $file then $itk_option(-suffix) is used.

 init {}
        This method is called after all options have been evaluated.

 load {}
        Load the user config file (created by save) if one exists,
        otherwise set the default values. The file is searched for in
        $HOME and the current dir.

 ok {args}
        This method is called when the OK button is pressed Open the file
        or pipe and pass the fd to the subclass print method.

 print {fd}
        Should be redefined in subclass.

 save {}
        This method is called when the save button is pressed to save the
        print configuration for this user in a file for later loading.

PROTECTED VARIABLES

 
 magic_
        Header string for userfile for comparison.

SEE ALSO

 
 TopLevelWidget(n)

 


- - - - - -
Last change: 07 May 99

 


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory