2003-09-02 10:29:05 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GLyXKeySym.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Huang Ying
|
|
|
|
*
|
2003-09-02 17:02:32 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-09-02 10:29:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GLYX_KEYSYM_H
|
|
|
|
#define GLYX_KEYSYM_H
|
|
|
|
|
|
|
|
#include "frontends/LyXKeySym.h"
|
|
|
|
|
2004-09-26 13:18:29 +00:00
|
|
|
class GLyXKeySym : public LyXKeySym {
|
2003-09-02 10:29:05 +00:00
|
|
|
public:
|
|
|
|
GLyXKeySym();
|
|
|
|
GLyXKeySym(unsigned int keyval);
|
|
|
|
void setKeyval(unsigned int keyval);
|
|
|
|
unsigned int getKeyval() const { return keyval_; }
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual void init(std::string const & symbolname);
|
2003-09-02 10:29:05 +00:00
|
|
|
virtual ~GLyXKeySym() {}
|
|
|
|
virtual bool isOK() const;
|
|
|
|
virtual bool isModifier() const;
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual std::string getSymbolName() const;
|
|
|
|
virtual char getISOEncoded(std::string const & encoding) const;
|
2004-03-26 15:12:35 +00:00
|
|
|
virtual std::string const print(key_modifier::state mod) const;
|
2003-09-02 10:29:05 +00:00
|
|
|
private:
|
|
|
|
unsigned int keyval_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|