mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
some un-intrusie changes first...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1382dfe88d
commit
1f2cee9589
@ -146,6 +146,17 @@ UnicodeBlocks unicode_blocks[] = {
|
|||||||
const int no_blocks = sizeof(unicode_blocks) / sizeof(UnicodeBlocks);
|
const int no_blocks = sizeof(unicode_blocks) / sizeof(UnicodeBlocks);
|
||||||
|
|
||||||
|
|
||||||
|
QString getBlock(char_type c)
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
while (c > unicode_blocks[i].end && i < no_blocks)
|
||||||
|
++i;
|
||||||
|
if (!unicode_blocks[i].name.isEmpty())
|
||||||
|
return unicode_blocks[i].name;
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
|
||||||
@ -348,17 +359,6 @@ void GuiSymbols::updateSymbolList(bool update_combo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString GuiSymbols::getBlock(char_type c) const
|
|
||||||
{
|
|
||||||
int i = 0;
|
|
||||||
while (c > unicode_blocks[i].end && i < no_blocks)
|
|
||||||
++i;
|
|
||||||
if (!unicode_blocks[i].name.isEmpty())
|
|
||||||
return unicode_blocks[i].name;
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GuiSymbols::dispatchParams()
|
void GuiSymbols::dispatchParams()
|
||||||
{
|
{
|
||||||
dispatch(FuncRequest(getLfun(), fromqstr(chosenLE->text())));
|
dispatch(FuncRequest(getLfun(), fromqstr(chosenLE->text())));
|
||||||
|
@ -56,8 +56,6 @@ private:
|
|||||||
* as well (which is rather expensive)
|
* as well (which is rather expensive)
|
||||||
**/
|
**/
|
||||||
void updateSymbolList(bool update_combo = true);
|
void updateSymbolList(bool update_combo = true);
|
||||||
/// get the unicode block associated with \p c
|
|
||||||
QString getBlock(char_type c) const;
|
|
||||||
/// the encoding at cursor position
|
/// the encoding at cursor position
|
||||||
std::string encoding_;
|
std::string encoding_;
|
||||||
/// which blocks do we actually include?
|
/// which blocks do we actually include?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user