/*  FileBrowser.H
 *
 *  Copyright (C) 2005 Richard Spindler <richard.spindler AT gmail.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.
 *
 *  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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef _FILE_BROWSER_H_
#define _FILE_BROWSER_H_

#include <FL/Fl_File_Browser.H>
#include <string>

namespace nle
{

class FileBrowser : public Fl_File_Browser
{
	public:
		FileBrowser( int x, int y, int w, int h, const char *l = 0 );
		virtual ~FileBrowser() {}
		int handle( int event );
		void load_rel();
		const char* path() { return m_path.c_str(); }
	private:
		std::string m_path;
};

} /* namespace nle */
#endif /* _FILE_BROWSER_H_ */

