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>
* 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)
match the requirements from the standard better. This is required
to work with gnu libstdc++-v3

View File

@ -56,7 +56,7 @@ uninstall-local:
dist-hook:
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 || \
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>
* 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,
unsigned int mod, unsigned int nmod /*= 0*/)
{
#if 0
if (length < 0) length = 0;
if (length + 1 >= size) {
@ -74,10 +75,24 @@ int kb_sequence::addkey(unsigned int key,
if (modifiers != staticmod) delete modifiers;
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);
sequence[length++] = key;
#else
modifiers.push_back(mod + (nmod << 16));
sequence.push_back(key);
++length;
#endif
if (curmap)
return curmap->lookup(key, mod, this);

View File

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