b3view/UserInterface.h

55 lines
1.0 KiB
C++

#ifndef USERINTERFACE_H
#define USERINTERFACE_H
// Forward declaration of class Engine
class Engine;
#include <string>
#include <irrlicht.h>
#include "Debug.h"
#include "Engine.h"
using namespace irr;
using namespace irr::core;
using namespace irr::gui;
using std::string;
using std::wstring;
enum UserInterfaceElements
{
UIE_MAINWINDOW = 1000,
UIE_LOADBUTTON = 1001,
UIE_LOADFILEDIALOG = 1002,
UIE_FILEMENU = 1003
};
enum UserInterfaceCommands
{
UIC_FILE_LOAD = 1000,
UIC_FILE_QUIT = 1001
};
class UserInterface : public IEventReceiver
{
private:
Engine *m_Engine;
IGUIEnvironment *m_Gui;
IGUIFont *m_GuiFont;
void setupUserInterface();
void displayLoadFileDialog();
void handleMenuItemPressed( IGUIContextMenu *menu );
public:
UserInterface( Engine *device );
~UserInterface();
IGUIEnvironment * getGUIEnvironment() const;
// IEventReceiver
virtual bool OnEvent( const SEvent &event );
};
#endif // USERINTERFACE_H