mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4437 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
64488b06af
commit
574910ff05
@ -1,3 +1,8 @@
|
||||
2002-06-20 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* XLyXKeySym.h:
|
||||
* XLyXKeySym.C: whitespace
|
||||
|
||||
2002-06-20 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* XWorkArea.h: remove focus stuff, greyOut()
|
||||
|
@ -25,11 +25,13 @@ XLyXKeySym::XLyXKeySym()
|
||||
: LyXKeySym(), keysym(NoSymbol)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void XLyXKeySym::initFromKeySym(KeySym ks)
|
||||
{
|
||||
keysym = ks;
|
||||
}
|
||||
|
||||
|
||||
void XLyXKeySym::init(string const & symbolname)
|
||||
{
|
||||
@ -41,11 +43,13 @@ void XLyXKeySym::init(string const & symbolname)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool XLyXKeySym::isOK() const
|
||||
{
|
||||
return keysym != NoSymbol;
|
||||
}
|
||||
|
||||
|
||||
bool XLyXKeySym::isModifier() const
|
||||
{
|
||||
// Can we be sure that this will work for all X Window
|
||||
@ -55,15 +59,15 @@ bool XLyXKeySym::isModifier() const
|
||||
|| keysym == XK_Mode_switch || keysym == 0x0);
|
||||
}
|
||||
|
||||
string
|
||||
XLyXKeySym::getSymbolName() const
|
||||
|
||||
string XLyXKeySym::getSymbolName() const
|
||||
{
|
||||
char * name = XKeysymToString(keysym);
|
||||
return name ? name : string();
|
||||
}
|
||||
|
||||
char
|
||||
XLyXKeySym::getISOEncoded() const
|
||||
|
||||
char XLyXKeySym::getISOEncoded() const
|
||||
{
|
||||
if (keysym == NoSymbol) {
|
||||
return 0;
|
||||
@ -96,6 +100,7 @@ XLyXKeySym::getISOEncoded() const
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
bool XLyXKeySym::operator==(LyXKeySym const & k) const
|
||||
{
|
||||
// This is dangerous! Ideally, we should use dynamic_cast instead,
|
||||
|
@ -19,10 +19,7 @@
|
||||
#include "frontends/LyXKeySym.h"
|
||||
|
||||
/**
|
||||
* This is a base class for representing a keypress.
|
||||
* Each frontend has to implement this to provide
|
||||
* the functionality that LyX needs in regards to
|
||||
* key presses.
|
||||
* This is the XForms (X11) version of LyXKeySym.
|
||||
*/
|
||||
class XLyXKeySym : public LyXKeySym {
|
||||
public:
|
||||
@ -56,5 +53,4 @@ private:
|
||||
unsigned int keysym;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif // XLYXKEYSYM_H
|
||||
|
Loading…
Reference in New Issue
Block a user