/* This file is part of `fileSelect'
 * Copyright (c) 1995 David Deaven
 *
 * In the following, "you" and "You" refer to any entity other than 
 * the Microsoft corporation and its subsidiaries.  All rights are
 * reserved by the author in connection with Microsoft and its
 * subsidiaries.  The Microsoft Network is explicity denied the right
 * to copy, reproduce, or transmit this software.
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Author: deaven $
 * $Id: FileSelectP.h,v 2.0 1996/07/09 20:52:33 deaven Exp deaven $
 */

#ifndef _FILESELECTP_H_
#define _FILESELECTP_H_

#include <X11/IntrinsicP.h>
#include <X11/CoreP.h>
#include "FileSelect.h"

typedef struct {
/* public resources */
	String directory;	/* the current directory */
	String filename;	/* the selected filename */
	String filter;		/* the filename mask */
	int verticalSpacing;	/* space between components */
	int borderWidth;	/* space between widget and border */
	XtCallbackList callbacks;

/* private components */
	Widget formWidget;
	Widget dirLabelWidget;
	Widget dirWidget;
	Widget filterLabelWidget;
	Widget filterWidget;
	Widget viewportWidget;
	Widget listWidget;
	Widget selectLabelWidget;
	Widget selectWidget;
	Dimension width;
	Dimension height;
	char **files;		/* current list */
	struct {
	  String filename;
	  String directory;
	  String directory2;
	  String directory3;
	  String filter;
	} tmp;

} FileSelectPart;

typedef struct FileSelectRec_s {
	CorePart core;
	CompositePart composite;
	FileSelectPart fileSelect;
} FileSelectRec;

typedef struct FileSelectClassPart_s {
	int empty;
} FileSelectClassPart;

typedef struct FileSelectClassRec_s {
	CoreClassPart core_class;	
	CompositeClassPart composite_class;	
	FileSelectClassPart fileSelect_class;
} FileSelectClassRec;

extern FileSelectClassRec fileSelectClassRec;

#endif /* _FILESELECTP_H_ */
