update po files, use vector in kbsequence

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1219 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-11-15 14:53:04 +00:00
parent 676e29b916
commit acb3eecb5d
26 changed files with 59722 additions and 40018 deletions

View File

@ -1,5 +1,10 @@
2000-11-15 Lars Gullik Bjønnes <larsbj@lyx.org> 2000-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/kbsequence.C (addkey): use a vector as per Andre Poenitz patch.
* lib/Makefile.am (dist-hook): also delete doc/.cvsignore from
distdir.
* src/support/lyxfunctional.h: make back_insert_fun_iterator(s) * src/support/lyxfunctional.h: make back_insert_fun_iterator(s)
match the requirements from the standard better. This is required match the requirements from the standard better. This is required
to work with gnu libstdc++-v3 to work with gnu libstdc++-v3

View File

@ -56,7 +56,7 @@ uninstall-local:
dist-hook: dist-hook:
cd ${distdir} ; rm -rf `find . -name \*CVS\*` ; \ cd ${distdir} ; rm -rf `find . -name \*CVS\*` ; \
rm -rf doc/BUGS.lyx ; \ rm -rf doc/BUGS.lyx doc/.cvsignore; \
{ cvs -Q export -r HEAD -d doc lyxdoc || \ { cvs -Q export -r HEAD -d doc lyxdoc || \
echo "WARNING: Unable to get LyX Documentation from CVS!" ; true ; } echo "WARNING: Unable to get LyX Documentation from CVS!" ; true ; }

View File

@ -1,3 +1,7 @@
2000-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
* merge te po files with latest pot
2000-10-26 Lars Gullik Bjønnes <larsbj@lyx.org> 2000-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
* merge the po files with latest pot * merge the po files with latest pot

4777
po/ca.po

File diff suppressed because it is too large Load Diff

4788
po/cs.po

File diff suppressed because it is too large Load Diff

4806
po/da.po

File diff suppressed because it is too large Load Diff

4806
po/de.po

File diff suppressed because it is too large Load Diff

4787
po/es.po

File diff suppressed because it is too large Load Diff

4800
po/eu.po

File diff suppressed because it is too large Load Diff

4798
po/fi.po

File diff suppressed because it is too large Load Diff

4805
po/fr.po

File diff suppressed because it is too large Load Diff

4494
po/he.po

File diff suppressed because it is too large Load Diff

4680
po/hu.po

File diff suppressed because it is too large Load Diff

4788
po/it.po

File diff suppressed because it is too large Load Diff

4795
po/nl.po

File diff suppressed because it is too large Load Diff

4639
po/no.po

File diff suppressed because it is too large Load Diff

4755
po/pl.po

File diff suppressed because it is too large Load Diff

4660
po/pt.po

File diff suppressed because it is too large Load Diff

4732
po/ro.po

File diff suppressed because it is too large Load Diff

4606
po/ru.po

File diff suppressed because it is too large Load Diff

4790
po/sl.po

File diff suppressed because it is too large Load Diff

4773
po/sv.po

File diff suppressed because it is too large Load Diff

4807
po/tr.po

File diff suppressed because it is too large Load Diff

4800
po/wa.po

File diff suppressed because it is too large Load Diff

View File

@ -61,6 +61,7 @@ void printKeysym(unsigned int key, unsigned int mod, string & buf);
int kb_sequence::addkey(unsigned int key, int kb_sequence::addkey(unsigned int key,
unsigned int mod, unsigned int nmod /*= 0*/) unsigned int mod, unsigned int nmod /*= 0*/)
{ {
#if 0
if (length < 0) length = 0; if (length < 0) length = 0;
if (length + 1 >= size) { if (length + 1 >= size) {
@ -74,10 +75,24 @@ int kb_sequence::addkey(unsigned int key,
if (modifiers != staticmod) delete modifiers; if (modifiers != staticmod) delete modifiers;
modifiers = nseq; modifiers = nseq;
} }
#else
if (length < 0) {
length = 0;
sequence.clear();
modifiers.clear();
//sequence.resize(0);
//modifiers.resize(0);
}
#endif
#if 0
modifiers[length] = mod + (nmod << 16); modifiers[length] = mod + (nmod << 16);
sequence[length++] = key; sequence[length++] = key;
#else
modifiers.push_back(mod + (nmod << 16));
sequence.push_back(key);
++length;
#endif
if (curmap) if (curmap)
return curmap->lookup(key, mod, this); return curmap->lookup(key, mod, this);

View File

@ -13,9 +13,12 @@
#pragma interface #pragma interface
#endif #endif
#include <vector>
#include "LString.h" #include "LString.h"
#if 0
#define KB_PREALLOC 16 #define KB_PREALLOC 16
#endif
class kb_keymap; class kb_keymap;
@ -25,12 +28,17 @@ public:
/// ///
kb_sequence() { kb_sequence() {
stdmap = curmap = 0; stdmap = curmap = 0;
#if 0
sequence = staticseq; sequence = staticseq;
modifiers = staticmod; modifiers = staticmod;
#endif
length = 0; length = 0;
#if 0
size = KB_PREALLOC; size = KB_PREALLOC;
#endif
} }
#if 0
/// ///
~kb_sequence() { ~kb_sequence() {
if (sequence != staticseq) { if (sequence != staticseq) {
@ -38,6 +46,7 @@ public:
delete modifiers; delete modifiers;
} }
} }
#endif
/** Add a key to the key sequence and look it up in the curmap /** Add a key to the key sequence and look it up in the curmap
if the latter is defined. */ if the latter is defined. */
@ -72,14 +81,22 @@ public:
/** Array holding the current key sequence. /** Array holding the current key sequence.
If sequence[length-1] < 0xff it can be used as ISO8859 char */ If sequence[length-1] < 0xff it can be used as ISO8859 char */
#if 0
unsigned int * sequence; unsigned int * sequence;
#else
std::vector<unsigned int> sequence;
#endif
/// ///
#if 0
unsigned int * modifiers; unsigned int * modifiers;
#else
std::vector<unsigned int> modifiers;
#endif
/// Current length of key sequence /// Current length of key sequence
int length; int length;
#if 0
private: private:
/// Static array preallocated for sequence /// Static array preallocated for sequence
unsigned int staticseq[KB_PREALLOC]; unsigned int staticseq[KB_PREALLOC];
@ -89,6 +106,7 @@ private:
/// Physically allocated storage size /// Physically allocated storage size
int size; int size;
#endif
}; };
#endif #endif