/*	 File menu for Text24, etc. */
/* This program is free software. You may redistribute 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.
 *
 * Refer to the file C:\LCARS24\DATA\COPYING.TXT for details.
 */

#ifndef FILEMENU_H
#define FILEMENU_H


#include "lcars24.h"
#include "allegro.h"
#include "lccolor.h"
#include "parts.h"
#include "getkey.h"
#include "mars28.h"
#include "brack1.h"
#include "headline.h"
#include "winfont.h"
#include "scrnshot.h"



char W1Folders[1000][80];
int W1Info[1000][5]; /* 0: Num of direct files,
				1: Status	0: Contains no subfolders
					1: Expanded one level (-)
					2: Can be expanded	 (+)
				2: Folder's level within nest (displayed shifted)
				3: Files displayed and folder highlighted or not
					0: Not highlighted
					1: Highlighted
*/

char ExistingFile[80];
char Content[5];
char ListTitle[80100];
char MenuFolderArray[1000][80];
char MenuFileArray[1000][80];

int Oldw1x;
int Oldw1y;
int w1x;
int w1y;
int Oldw2y;
int w2x;
int w2y;
int W1Offset;
int W2Offset;
char W2List[1000][80];
int W2EndList,W1EndList;
int FolderNum;
int FileNum;
unsigned int down;
char Mode[10];

int FileMenu(char *FnExt);

#endif

