Bennett Helm a écrit :
On Mar 10, 2006, at 12:27 PM, Bennett Helm wrote:
OK -- that solves that problem. Now another:
...
Perhaps this will be more efficient: here is the result of make -k from
within the qt4 directory.
Indeed, thanks!
Answers in line.
Dialogs.C:275: error: expected type-specifier before 'ControlRef'
Dialogs.C:275: error: expected `)' before 'ControlRef'
Dialogs.C:275: error: no matching function for call to
'lyx::frontend::Dialog::setController(int*)'
../../../src/frontends/controllers/Dialog.h:105: note: candidates are:
void
lyx::frontend::Dialog::setController(lyx::frontend::Dialog::Controller*)
make[2]: *** [Dialogs.lo] Error 1
I don't know yet about this one.
QLMenubar.C: In member function 'void
lyx::frontend::QLMenubar::macxMenuBarInit()':
QLMenubar.C:169: error: no match for 'operator=' in
This one is easy. I should be a matter of replacing:
menubar_ = new QMenuBar;
with
menubar_.reset(new QMenuBar);
../../../boost/boost/scoped_ptr.hpp:46: note: candidates are:
boost::scoped_ptr<T>& boost::scoped_ptr<T>::operator=(const
boost::scoped_ptr<T>&) [with T = QMenuBar]
QLMenubar.C:175: error: 'class QMenu' has no member named 'showing'
I see, this one is easy too...
typedef std::map<std::string, QLPopupMenu *> NameMap;
instead of
typedef std::map<std::string, QMenu *> NameMap;
QLPainter.C: In member function 'virtual void QLPainter::text(int, int,
const char*, size_t, const LyXFont&)':
QLPainter.C:270: error: ambiguous overload for 'operator[]' in 'str[i]'
Hum I guess we need a cast to int here. It's weird that unix and mingw
are OK with that:
str[(int)i] = QChar(encoding->ucs(s[i]));
or just above:
for (int i = 0; i < ls; ++i)
QWorkArea.C: In constructor 'QWorkArea::QWorkArea(LyXView&, int, int)':
QWorkArea.C:126: warning: base 'WorkArea' will be initialized after
QWorkArea.C:126: warning: base 'QAbstractScrollArea'
QWorkArea.C:125: warning: when initialized here
QWorkArea.C:188: error: 'BOOST_CURRENT_FUNCTION' was not declared in
I don't know...
lyx_gui.C: In function 'void lyx_gui::parse_init(int&, char**)':
lyx_gui.C:186: error: 'class QTranslator' has no member named 'insert'
lyx_gui.C:187: error: 'QTranslatorMessage' was not declared in this scope
lyx_gui.C:188: error: 'class QTranslator' has no member named 'insert'
lyx_gui.C:190: error: 'class QTranslator' has no member named 'insert'
lyx_gui.C:192: error: 'class QTranslator' has no member named 'insert'
This is a porting issue, I should be able to correct this.
QLPopupMenu.C:67: error: 'BOOST_CURRENT_FUNCTION' was not declared in
this scope
I don't know (same as above)
QLPopupMenu.C:71: error: 'class Menu' has no member named 'clear'
You need the attached patch. Jean-Marc would you please consider
applying it?
It seems that there are still some works to do here for MacOS...
Thanks,
Abdel.
Index: D:/msys/home/yns/src/lyx-svn/trunk/src/MenuBackend.h
===================================================================
--- D:/msys/home/yns/src/lyx-svn/trunk/src/MenuBackend.h (revision 13299)
+++ D:/msys/home/yns/src/lyx-svn/trunk/src/MenuBackend.h (working copy)
@@ -155,6 +155,8 @@
bool empty() const { return items_.empty(); }
///
ItemList::size_type size() const { return items_.size(); }
+ /// Clear the Menu Content.
+ void clear() { items_.clear(); }
///
MenuItem const & operator[](size_type) const;
///