On Sunday 03 February 2008 16:09:08 Jürgen Spitzmüller wrote:
> I've set up a symbols dialog for trunk. The dialog displays all characters
> that can be used in the given encoding (at cursor position), including
> those from the unicodesymbols list. It's quite similar to the symbols
> dialogs you know from the word processors (screenshot attached).
>
> One thing which is rather clumsy is the implementation of the "categories"
> (i.e. Unicode blocks). Unfortunately, Qt does not provide very much
> information on the unicode categorization of a given char. So I had to set
> up a table with the unicode blocks.
>
> Comments welcome.

  Your patch breaks compilation on gcc 4.3:

make[5]: Entering directory `/home/jamatos/lyx/lyx-devel/src/frontends/qt4'
/bin/sh ../../../libtool --tag=CXX   --mode=compile 
g++ -DHAVE_CONFIG_H -I. -I../../../src  -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR 
-DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends 
-I../../../images -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui   
-I../../../boost-Wextra -Wall     -g -O -MT 
GuiSymbols.lo -MD -MP -MF .deps/GuiSymbols.Tpo -c -o GuiSymbols.lo 
GuiSymbols.cpp
 
g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR 
-DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends 
-I../../../images -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui 
-I../../../boost -Wextra -Wall -g -O -MT 
GuiSymbols.lo -MD -MP -MF .deps/GuiSymbols.Tpo -c GuiSymbols.cpp -o 
GuiSymbols.o
In file included from /usr/include/QtCore/QString:2,
                 from Dialog.h:18,
                 from DialogView.h:16,
                 from GuiSymbols.h:16,
                 from GuiSymbols.cpp:14:
/usr/include/QtCore/qstring.h:787: warning: type qualifiers ignored on 
function return type
/usr/include/QtCore/qstring.h:788: warning: type qualifiers ignored on 
function return type
/usr/include/QtCore/qstring.h:789: warning: type qualifiers ignored on 
function return type
In file included from GuiSymbols.cpp:14:
GuiSymbols.h:57: error: ISO C++ forbids declaration of 'map' with no type
GuiSymbols.h:57: error: typedef name may not be a nested-name-specifier
GuiSymbols.h:57: error: expected ';' before '<' token
GuiSymbols.h:59: error: 'UsedBlocks' does not name a type
GuiSymbols.cpp: In member function 'void 
lyx::frontend::GuiSymbols::on_categoryCO_activated(const QString&)':
GuiSymbols.cpp:238: error: 'used_blocks' was not declared in this scope
GuiSymbols.cpp: In member function 'void 
lyx::frontend::GuiSymbols::updateSymbolList()':
GuiSymbols.cpp:246: error: 'used_blocks' was not declared in this scope
GuiSymbols.cpp:270: error: 'UsedBlocks' has not been declared
GuiSymbols.cpp:270: error: expected `;' before 'it'
GuiSymbols.cpp:270: error: name lookup of 'it' changed for new ISO 'for' 
scoping
GuiSymbols.cpp:254: error:   cannot use obsolete binding at 'it' because it 
has a destructor
GuiSymbols.cpp:271: error: request for member 'first' in '* 
it.__gnu_debug::_Safe_iterator<_Iterator, _Sequence>::operator-> [with 
_Iterator = std::_Rb_tree_const_iterator<wchar_t>, _Sequence = 
std::__debug::set<wchar_t, std::less<wchar_t>, std::allocator<wchar_t> >]()', 
which is of non-class type 'const wchar_t'

> Jürgen

-- 
José Abílio

Reply via email to