Index: trunk/BNC/qwt/qwt_plot_layout.h
===================================================================
--- trunk/BNC/qwt/qwt_plot_layout.h	(revision 9383)
+++ trunk/BNC/qwt/qwt_plot_layout.h	(revision 11158)
@@ -1,3 +1,3 @@
-/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
+/******************************************************************************
  * Qwt Widget Library
  * Copyright (C) 1997   Josef Wilgen
@@ -13,21 +13,22 @@
 #include "qwt_global.h"
 #include "qwt_plot.h"
+#include "qwt_axis_id.h"
 
 /*!
-  \brief Layout engine for QwtPlot.
+   \brief Layout engine for QwtPlot.
 
-  It is used by the QwtPlot widget to organize its internal widgets
-  or by QwtPlot::print() to render its content to a QPaintDevice like
-  a QPrinter, QPixmap/QImage or QSvgRenderer.
+   It is used by the QwtPlot widget to organize its internal widgets
+   or by QwtPlot::print() to render its content to a QPaintDevice like
+   a QPrinter, QPixmap/QImage or QSvgRenderer.
 
-  \sa QwtPlot::setPlotLayout()
-*/
+   \sa QwtPlot::setPlotLayout()
+ */
 
 class QWT_EXPORT QwtPlotLayout
 {
-public:
+  public:
     /*!
-      Options to configure the plot layout engine
-      \sa activate(), QwtPlotRenderer
+       Options to configure the plot layout engine
+       \sa activate(), QwtPlotRenderer
      */
     enum Option
@@ -37,6 +38,6 @@
 
         /*!
-          Ignore the dimension of the scrollbars. There are no
-          scrollbars, when the plot is not rendered to widgets.
+           Ignore the dimension of the scrollbars. There are no
+           scrollbars, when the plot is not rendered to widgets.
          */
         IgnoreScrollbars = 0x02,
@@ -55,6 +56,5 @@
     };
 
-    //! Layout options
-    typedef QFlags<Option> Options;
+    Q_DECLARE_FLAGS( Options, Option )
 
     explicit QwtPlotLayout();
@@ -79,8 +79,8 @@
     double legendRatio() const;
 
-    virtual QSize minimumSizeHint( const QwtPlot * ) const;
+    virtual QSize minimumSizeHint( const QwtPlot* ) const;
 
-    virtual void activate( const QwtPlot *,
-        const QRectF &plotRect, Options options = Options() );
+    virtual void activate( const QwtPlot*,
+        const QRectF& plotRect, Options options = Options() );
 
     virtual void invalidate();
@@ -89,31 +89,20 @@
     QRectF footerRect() const;
     QRectF legendRect() const;
-    QRectF scaleRect( int axis ) const;
+    QRectF scaleRect( QwtAxisId ) const;
     QRectF canvasRect() const;
 
-    class LayoutData;
+  protected:
 
-protected:
+    void setTitleRect( const QRectF& );
+    void setFooterRect( const QRectF& );
+    void setLegendRect( const QRectF& );
+    void setScaleRect( QwtAxisId, const QRectF& );
+    void setCanvasRect( const QRectF& );
 
-    void setTitleRect( const QRectF & );
-    void setFooterRect( const QRectF & );
-    void setLegendRect( const QRectF & );
-    void setScaleRect( int axis, const QRectF & );
-    void setCanvasRect( const QRectF & );
+  private:
+    Q_DISABLE_COPY(QwtPlotLayout)
 
-    QRectF layoutLegend( Options options, const QRectF & ) const;
-    QRectF alignLegend( const QRectF &canvasRect,
-        const QRectF &legendRect ) const;
-
-    void expandLineBreaks( Options options, const QRectF &rect,
-        int &dimTitle, int &dimFooter, int dimAxes[QwtPlot::axisCnt] ) const;
-
-    void alignScales( Options options, QRectF &canvasRect,
-        QRectF scaleRect[QwtPlot::axisCnt] ) const;
-
-private:
     class PrivateData;
-
-    PrivateData *d_data;
+    PrivateData* m_data;
 };
 
