
/*
 * Private definitions for Rolodex widget
 */

#ifndef Xtw_ChooserP_h
#define Xtw_ChooserP_h

#include <X11/Xaw/CommandP.h>
#include <X11/Xtw/Chooser.h>

typedef struct {int empty;} ChooserClassPart;

typedef struct _ChooserClassRec 
{
  CoreClassPart    	core_class;
  SimpleClassPart       simple_class;
  LabelClassPart        label_class;
  CommandClassPart      command_class;
  ChooserClassPart    	chooser_class;
} ChooserClassRec;

extern ChooserClassRec chooserClassRec;

typedef struct _ChooserPart 
{
  /* resources */
  String                selection;
  String                noselection;
  String               *choices;
  String               *indices;
  Cardinal              nchoices;
  Cardinal              sindex;
  Boolean               allowUnselect;
  /* private data */
  String               *text;
  Widget                popup;
  Widget                list;           /* main list widget             */
  Boolean               popped;
} ChooserPart;


typedef struct _ChooserRec 
{
  CorePart		core;
  SimplePart            simple;
  LabelPart             label;
  CommandPart		command;
  ChooserPart		chooser;
} ChooserRec;


#endif /* Xtw_ChooserP_h */
