/***************************************************************************
                          activate.h  -  description
                             -------------------
    begin                : Tue Nov 21 2000
    copyright            : (C) 2001 by cosmo
    email                : cosmo@operamail.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

// KeyboardMap contains all the info on the keyboard map (oddly enough!)
// If holds stuff read from the config files in a nice, organised way.
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/xpm.h>

#define MAXBASEDIRLEN 100
#define MAXICONDIRLEN 100

typedef struct keyboardmap {
		struct keyboardmap *Next;		// For the linked list
		char CountryCode[4];				// Code for the country, like 'uk' or 'de'
		Pixmap CountryXpm;					// The pixmap to be displayed in Wharf
		Pixmap CountryShp;
		XpmAttributes pixatt;
		char MapFile[MAXBASEDIRLEN+20];					// Path to the xmodmap file for the keyboard
} KeyboardMap;

KeyboardMap *Anchor;
KeyboardMap *CurrentMap;

int loadConfig();														// Reads the config file and sets up the linked list
int activate(	const char *);		// Changes the keymap







