mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +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>
|
2002-06-20 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* XWorkArea.h: remove focus stuff, greyOut()
|
* XWorkArea.h: remove focus stuff, greyOut()
|
||||||
|
@ -26,11 +26,13 @@ XLyXKeySym::XLyXKeySym()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void XLyXKeySym::initFromKeySym(KeySym ks)
|
void XLyXKeySym::initFromKeySym(KeySym ks)
|
||||||
{
|
{
|
||||||
keysym = ks;
|
keysym = ks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void XLyXKeySym::init(string const & symbolname)
|
void XLyXKeySym::init(string const & symbolname)
|
||||||
{
|
{
|
||||||
keysym = XStringToKeysym(symbolname.c_str());
|
keysym = XStringToKeysym(symbolname.c_str());
|
||||||
@ -41,11 +43,13 @@ void XLyXKeySym::init(string const & symbolname)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool XLyXKeySym::isOK() const
|
bool XLyXKeySym::isOK() const
|
||||||
{
|
{
|
||||||
return keysym != NoSymbol;
|
return keysym != NoSymbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool XLyXKeySym::isModifier() const
|
bool XLyXKeySym::isModifier() const
|
||||||
{
|
{
|
||||||
// Can we be sure that this will work for all X Window
|
// 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);
|
|| keysym == XK_Mode_switch || keysym == 0x0);
|
||||||
}
|
}
|
||||||
|
|
||||||
string
|
|
||||||
XLyXKeySym::getSymbolName() const
|
string XLyXKeySym::getSymbolName() const
|
||||||
{
|
{
|
||||||
char * name = XKeysymToString(keysym);
|
char * name = XKeysymToString(keysym);
|
||||||
return name ? name : string();
|
return name ? name : string();
|
||||||
}
|
}
|
||||||
|
|
||||||
char
|
|
||||||
XLyXKeySym::getISOEncoded() const
|
char XLyXKeySym::getISOEncoded() const
|
||||||
{
|
{
|
||||||
if (keysym == NoSymbol) {
|
if (keysym == NoSymbol) {
|
||||||
return 0;
|
return 0;
|
||||||
@ -96,6 +100,7 @@ XLyXKeySym::getISOEncoded() const
|
|||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool XLyXKeySym::operator==(LyXKeySym const & k) const
|
bool XLyXKeySym::operator==(LyXKeySym const & k) const
|
||||||
{
|
{
|
||||||
// This is dangerous! Ideally, we should use dynamic_cast instead,
|
// This is dangerous! Ideally, we should use dynamic_cast instead,
|
||||||
|
@ -19,10 +19,7 @@
|
|||||||
#include "frontends/LyXKeySym.h"
|
#include "frontends/LyXKeySym.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a base class for representing a keypress.
|
* This is the XForms (X11) version of LyXKeySym.
|
||||||
* Each frontend has to implement this to provide
|
|
||||||
* the functionality that LyX needs in regards to
|
|
||||||
* key presses.
|
|
||||||
*/
|
*/
|
||||||
class XLyXKeySym : public LyXKeySym {
|
class XLyXKeySym : public LyXKeySym {
|
||||||
public:
|
public:
|
||||||
@ -56,5 +53,4 @@ private:
|
|||||||
unsigned int keysym;
|
unsigned int keysym;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // XLYXKEYSYM_H
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user