]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/Toolbar_pimpl.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / Toolbar_pimpl.h
index 59111055f64281aed5b0435532b47d4ced66425b..e914fe9589c0aab333bcb3abb5866bc201438b92 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- * \file Toolbar_pimpl.h
+ * \file qt2/Toolbar_pimpl.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
 
 #include "frontends/Toolbar.h"
 
-#include <qobject.h>
-#include <qtoolbutton.h>
-
 #include <boost/scoped_ptr.hpp>
 #include <map>
 #include <vector>
 
+#include <qobject.h>
+#include <qtoolbutton.h>
+
 class QtView;
 class QToolBar;
 class QLComboBox;
 class ToolbarProxy;
 
 struct Toolbar::Pimpl {
-
+public:
        friend class ToolbarProxy;
 
-public:
        Pimpl(LyXView * o, int x, int y);
 
        ~Pimpl();
 
        /// add a new button to the toolbar.
-       void add(int action);
+       void add(int action);
 
        /// update the state of the icons
        void update();
@@ -53,7 +52,6 @@ public:
        void openLayoutList();
        /// Erase the layout list
        void clearLayoutList();
-
 private:
        void changed_layout(string const & sel);
 
@@ -70,18 +68,15 @@ private:
        typedef std::map<QToolButton *, int> ButtonMap;
 
        ButtonMap map_;
-
 };
 
 
 // moc is mind-numbingly stupid
 class ToolbarProxy : public QObject {
        Q_OBJECT
-
 public:
        ToolbarProxy(Toolbar::Pimpl & owner)
-               : owner_(owner) { };
-
+               : owner_(owner) {}
 public slots:
 
        void layout_selected(const QString & str) {
@@ -94,7 +89,6 @@ public slots:
                        static_cast<QToolButton const *>(sender()))
                );
        }
-
 private:
        Toolbar::Pimpl & owner_;
 };