mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
36 lines
787 B
C++
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;
|
|
}
|