Blame lib/Xm/Ext18List.h

Packit b099d7
/*
Packit b099d7
 * Motif
Packit b099d7
 *
Packit b099d7
 * Copyright (c) 1987-2012, The Open Group. All rights reserved.
Packit b099d7
 *
Packit b099d7
 * These libraries and programs are free software; you can
Packit b099d7
 * redistribute them and/or modify them under the terms of the GNU
Packit b099d7
 * Lesser General Public License as published by the Free Software
Packit b099d7
 * Foundation; either version 2 of the License, or (at your option)
Packit b099d7
 * any later version.
Packit b099d7
 *
Packit b099d7
 * These libraries and programs are distributed in the hope that
Packit b099d7
 * they will be useful, but WITHOUT ANY WARRANTY; without even the
Packit b099d7
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Packit b099d7
 * PURPOSE. See the GNU Lesser General Public License for more
Packit b099d7
 * details.
Packit b099d7
 *
Packit b099d7
 * You should have received a copy of the GNU Lesser General Public
Packit b099d7
 * License along with these librararies and programs; if not, write
Packit b099d7
 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
Packit b099d7
 * Floor, Boston, MA 02110-1301 USA
Packit b099d7
 *
Packit b099d7
 */
Packit b099d7
Packit b099d7
#ifndef _XmExt18List_h_
Packit b099d7
#define _XmExt18List_h_
Packit b099d7
Packit b099d7
#if defined(__cplusplus)
Packit b099d7
extern "C" {
Packit b099d7
#endif
Packit b099d7
Packit b099d7
#include <Xm/MultiList.h>
Packit b099d7
#include <Xm/XmP.h>
Packit b099d7
    
Packit b099d7
externalref WidgetClass xmExt18ListWidgetClass XM_DEPRECATED;
Packit b099d7
Packit b099d7
enum {
Packit b099d7
    XmEXT18LIST_FOUND = XmMULTILIST_FOUND,
Packit b099d7
    XmEXT18LIST_NOT_FOUND = XmMULTILIST_NOT_FOUND
Packit b099d7
};
Packit b099d7
Packit b099d7
typedef XmMultiListWidgetClass	*XmExt18ListWidgetClass;
Packit b099d7
typedef XmMultiListWidget	*XmExt18ListWidget;
Packit b099d7
Packit b099d7
typedef XmMultiListRowInfo       Xm18RowInfo;
Packit b099d7
Packit b099d7
typedef XmMultiListCallbackStruct   XmExt18ListCallbackStruct;
Packit b099d7
Packit b099d7
/* 
Packit b099d7
 * Function Name: XmExt18ListGetSelectedRows
Packit b099d7
 * Description:   Takes an Extended List and returns a NULL terminated array
Packit b099d7
 *                of pointers to selected rows from the internal list
Packit b099d7
 * Arguments:     w - the extended list widget
Packit b099d7
 * Returns:       Xm18RowInfo **
Packit b099d7
 */
Packit b099d7
Packit b099d7
Xm18RowInfo ** XmExt18ListGetSelectedRows(Widget w) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*	Function Name: XmCreateExtended18List
Packit b099d7
 *	Description: Creation Routine for UIL and ADA.
Packit b099d7
 *	Arguments: parent - the parent widget.
Packit b099d7
 *                 name - the name of the widget.
Packit b099d7
 *                 args, num_args - the number and list of args.
Packit b099d7
 *	Returns: The Widget created.
Packit b099d7
 */
Packit b099d7
Packit b099d7
extern Widget XmCreateExtended18List(Widget,
Packit b099d7
                                     String,
Packit b099d7
                                     ArgList,
Packit b099d7
                                     Cardinal) XM_DEPRECATED;
Packit b099d7
Packit b099d7
extern Widget XmCreateExt18List(Widget,
Packit b099d7
                                String,
Packit b099d7
                                ArgList,
Packit b099d7
                                Cardinal) XM_DEPRECATED;
Packit b099d7
Packit b099d7
extern Widget XmVaCreateExt18List(
Packit b099d7
                        Widget parent,
Packit b099d7
                        char *name,
Packit b099d7
                        ...) XM_DEPRECATED;
Packit b099d7
Packit b099d7
extern Widget XmVaCreateManagedExt18List(
Packit b099d7
                        Widget parent,
Packit b099d7
                        char *name,
Packit b099d7
                        ...) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListUnselectAllItems
Packit b099d7
 *  Description:   Unselects all rows
Packit b099d7
 *  Arguments:     w - the ilist widget.
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListUnselectAllItems(Widget w) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListUnselectItem
Packit b099d7
 *  Description:   Unselects the row passed in
Packit b099d7
 *  Arguments:     w - the ilist widget.
Packit b099d7
 *                 row_info - ptr to the row passed in
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListUnselectItem(Widget, Xm18RowInfo *) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListToggleRow
Packit b099d7
 *  Description:   Toggles the selection state of a specified row
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListToggleRow(Widget, short) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListSelectItems
Packit b099d7
 *  Description:   Set selection state by matching column entries to XmString
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *		   item - XmString to use as selection key
Packit b099d7
 *		   column - column number (0 - N) to match (or XmANY_COLUMN)
Packit b099d7
 *		   notify - if True, call XmNsingleSelectionCallback
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListSelectItems(Widget, XmString, int, Boolean) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListDeselectItems
Packit b099d7
 *  Description:   Set selection state by matching column entries to XmString
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *		   item - XmString to use as selection key
Packit b099d7
 *		   column - column number (0 - N) to match (or XmANY_COLUMN)
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListDeselectItems(Widget, XmString, int) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListSelectAllItems
Packit b099d7
 *  Description:   Set selection state on all rows
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *		   notify - if True, call XmNsingleSelectionCallback for each
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListSelectAllItems(Widget, Boolean) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListSelectRow
Packit b099d7
 *  Description:   Set selection state on all rows
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *		   row - the row to select
Packit b099d7
 *		   notify - if True, call XmNsingleSelectionCallback
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListSelectRow(Widget, int, Boolean) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListDeselectRow
Packit b099d7
 *  Description:   Set selection state on all rows
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *		   row - the row to select
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
extern void XmExt18ListDeselectRow(Widget, int) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/* 
Packit b099d7
 * Function Name: XmExt18ListGetSelectedRowArray
Packit b099d7
 * Description:   Takes an Extended List and returns a NULL terminated array
Packit b099d7
 *                of pointers to selected rows from the internal list
Packit b099d7
 * Arguments:     w - the extended list widget
Packit b099d7
 *		  num_rows - pointer to the number of rows
Packit b099d7
 * Returns:       array of integer (selected) row numbers
Packit b099d7
 */
Packit b099d7
extern int *XmExt18ListGetSelectedRowArray(Widget, int *) XM_DEPRECATED;
Packit b099d7
Packit b099d7
/*  Function Name: XmExt18ListMakeRowVisible
Packit b099d7
 *  Description:   Shifts the visible extended list rows as desired
Packit b099d7
 *  Arguments:     w - the extended list widget
Packit b099d7
 *		   row - the row number wished to be made visible
Packit b099d7
 *  Returns:       none
Packit b099d7
 */
Packit b099d7
void XmExt18ListMakeRowVisible(Widget, int) XM_DEPRECATED;
Packit b099d7
Packit b099d7
#if defined(__cplusplus)
Packit b099d7
}
Packit b099d7
#endif
Packit b099d7
Packit b099d7
#endif /* _XmExt18List_h_ */