pgadmin3/hotdraw/utilities/hdKeyEvent.cpp
2020-07-07 22:19:12 +05:00

36 lines
787 B
C++

//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// hdKeyEvent.h - Wrapper Class to integrate wxKeyEvent inside library.
//
//////////////////////////////////////////////////////////////////////////
#include "pgAdmin3.h"
// wxWindows headers
#include <wx/wx.h>
// App headers
#include "hotdraw/utilities/hdKeyEvent.h"
#include "hotdraw/main/hdDrawingView.h"
hdKeyEvent::hdKeyEvent(wxKeyEvent &event, hdDrawingView *owner):
keyEvent(event)
{
view = owner;
keyCode = event.GetKeyCode();
}
int hdKeyEvent::GetKeyCode()
{
return keyCode;
}
hdDrawingView *hdKeyEvent::getView()
{
return view;
}