Go up one levelGo to Previous Go to Next

CatalogInfo(n)

NAME

 
 CatalogInfo - widget for browsing through a hierarchical list of catalogs

NAMESPACE

 
 cat

PARENT CLASS

 
 util::TopLevelWidget

SYNOPSIS

 
 CatalogInfo <path> ?options?

DESCRIPTION

 
 The CatalogInfo class defines a user interface for browsing through a
 hierarchical list of catalogs. The list of catalogs is defined in
 catalog config files at various hosts on the network or in local
 catalog config files.  This widget allows you to choose, from various
 catalog servers on the net, which catalogs to keep in a personal
 default catalog list.


WIDGET OPTIONS

 
 -anchor
        Set the anchor for labels.

 -callerw
        Optional: name of caller's top level widget.

 -classname
        Name of a subclass of AstroCat to use to create new catalog
        widgets.

 -command
        Command to eval when done.

 -debug
        Debugging flag.

 -id
        Optional unique id, used in searching for already existing catalog
        widgets.

 -labelfont
        Font to use for labels.

 -labelwidth
        Set the width for  displaying labels.

 -valuefont
        Font to use for values.

PUBLIC METHODS

 
 apply {{ask 0}}
        Apply the current changes, save to default file, call $command.

 close {{ask 0}}
        Apply changes and close the window .

 insert_node {name}
        Insert the given catalog in the tree under the root, if it is not
        already there, and keep the tree sorted.

 reinit_tree {}
        Reinitialize the tree.

 toggle_tree_layout {}
        Toggle the layout of the tree.

PROTECTED METHODS

 
 add_catalog {}
        Add the selected catalog to the catalog list.

 add_dialog_buttons {}
        Add the dialog button frame.

 add_menubar {}
        Add the menu bar.

 add_node {path name {before ""}}
        Add a node to the catalog tree. "path" is the path to the parent
        of the new node in the format "a${sep_}b${sep_}c" where a is the
        root and c is immediate parent of the new node. "name" is the name
        of the new node and the text to display. If "before" is specified,
        the node is inserted just before the node named "$before".

 add_tree_frame {}
        Add a frame for displaying a tree of catalog servers and catalogs
        inside the given frame and side.

 close_tree_node {path}
        Called when a tree node is closed .

 init {}
        Called after options have been evaluated.

 init_tree {}
        Initialize the tree of catalogs.

 layout_dialog {}
        Do the dialog window layout.

 load_config_file {}
        Pop up a dialog to open and load a catalog config file.

 make_short_help {}
        Add a short help window and set the help texts.

 open_catalog {args}
        Open a window to search the selected catalog.

 open_tree_node {path}
        Called when a tree node is opened .

 remove_catalog {}
        Remove the selected catalog from the catalog list.

 select_catalog {path}
        Called when a catalog is selected in the catalog list.

PROTECTED VARIABLES

 
 catalog_
        Name of currently selected catalog.

 catalog_path_
        Full path name of currently selected catalog.

 hlist_
        Hierarchical list widget (part of tree).

 rootdir_
        Name of the root catalog directory.

 save_needed_
        Set to true if the catalog configuration has been edited and needs
        to be saved.

 sep_
        Separator char for Tix tree/hlist widget.

 serv_types_
        Array(serv_type) of server type text to display.

 style_
        Array(name) of Tix text display styles.

 tree_
        Tix tree widget.

COMMON CLASS VARIABLES

 
 astrocat_
        C++ astrocat object used by static member procs.

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@eso.org.
Copyright © 1998 ESO - European Southern Observatory