pgadmin3/hotdraw/utilities/hdKeyEvent.cpp
levinsv 4af765213c support PG11
Поддержка PostgreSQL 11 только для Windows
2018-10-10 22:59:25 +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;
}