+2002-06-21 Angus Leeming <leeming@lyx.org>
+
+ * Menubar_pimpl.C (c-tor): rename MenuBackend const & mb argument to
+ avoid name clash with MenuBackend::const_iterator mb.
+
+ * QContentPane.C:
+ * QLPainter.C:
+ * qscreen.C: add using std::endl directive.
+
+ * QLPainter.C (lines, fillPolygon) : wrap QCOORD points inside a
+ scoped_array as np is not known at compile time and my compiler barfs.
+
+ * Toolbar_pimpl.h: forward declare class ToolbarProxy.
+
+ * qfont_loader.h: don't #include "font_loader.h".
+
+ * qfont_metrics.C: remove trailing ';' from namespace anon scope.
+
2002-06-21 John Levon <moz@compsoc.man.ac.uk>
* qfont_metrics.C: fix variable names
extern LyXAction lyxaction;
-Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mb)
- : owner_(static_cast<QtView*>(view)), menubackend_(mb)
+Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
+ : owner_(static_cast<QtView*>(view)), menubackend_(mbe)
{
MenuBackend::const_iterator mb = menubackend_.begin();
MenuBackend::const_iterator mbend = menubackend_.end();
#include <qevent.h>
#include <qpainter.h>
-
+using std::endl;
+
namespace {
/// return the LyX key state from Qt's
#include <qpainter.h>
#include <qbrush.h>
#include <qcolor.h>
-
+
+#include <boost/scoped_array.hpp>
+
+using std::endl;
+
QLPainter::QLPainter(QWorkArea & qwa)
: Painter(), owner_(qwa), paint_check_(0)
{
line_width lw)
{
// FIXME ?
-
- QCOORD points[np * 2];
+
+ // Must use new as np is not known at compile time.
+ boost::scoped_array<QCOORD> points(new QCOORD [np * 2]);
int j = 0;
points[j++] = yp[i];
}
- setPen(col, ls, lw).drawPolyline(QPointArray(np, points));
+ setPen(col, ls, lw).drawPolyline(QPointArray(np, points.get()));
+
return *this;
}
{
// FIXME ?
- QCOORD points[np * 2];
+ // Must use new as np is not known at compile time.
+ boost::scoped_array<QCOORD> points(new QCOORD [np * 2]);
int j = 0;
points[j++] = yp[i];
}
- setPen(col).drawPolygon(QPointArray(np, points));
+ setPen(col).drawPolygon(QPointArray(np, points.get()));
+
return *this;
}
class QtView;
class QToolBar;
class QComboBox;
-
+class ToolbarProxy;
struct Toolbar::Pimpl {
#include "lyxfont.h"
-#include "font_loader.h"
#include "LString.h"
#include <qfont.h>
QFontMetrics const & metrics(LyXFont const & f) {
return fontloader.metrics(f);
}
-};
+}
namespace font_metrics {
#include "insets/insettext.h"
#include "debug.h"
+using std::endl;
using std::max;
using std::min;