]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QMath.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QMath.h
index e32f67e2579ced72d39e28dff82013e80873eb47..b1497365ae34c8a387b15d577921fd944734805c 100644 (file)
@@ -1,25 +1,26 @@
 // -*- C++ -*-
 /**
  * \file QMath.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QMATH_H
 #define QMATH_H
 
-#include <config.h>
-
-#include "LString.h"
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-class QMath
-{
+#include "LString.h"
+
+class QMathDialog;
+
+class QMath {
 public:
        friend class QMathDialog;
 
@@ -27,33 +28,38 @@ public:
 
        /// temporary
        void do_show();
+
        /// build the dialog (should be private)
        virtual void build_dialog();
 
        /// insert a math symbol into the doc
-       void insert_symbol(string const & name);
+       void insert(string const & name);
+
        /// insert a cube root
        void insertCubeRoot();
+
+       /// insert a matrix
+       void insertMatrix(string const & str);
+
+       /// insert delim
+       void insertDelim(string const & str);
+
        /// add a subscript
        void subscript();
 
        /// add a superscript
        void superscript();
+
        /// switch between display and inline
        void toggleDisplay();
 private:
        /// Apply changes
-       virtual void apply() {};
+       virtual void apply() {}
        /// update
-       virtual void update_contents() {};
+       virtual void update_contents() {}
 
-       // FIXME: temp 
-       QMathDialog * dialog_; 
+       // FIXME: temp
+       QMathDialog * dialog_;
 };
 
 #endif // QMATH_H