* \author John Levon
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FORM_MATHSBITMAP_H
#define FORM_MATHSBITMAP_H
-
-#include "FormBase.h"
-#include <boost/shared_ptr.hpp>
+#include "FormDialogView.h"
#include <vector>
struct BitmapStore
* This class provides an XForms implementation of a maths bitmap form.
*/
-class ControlMathSub;
+class ControlMath;
-class FormMathsBitmap : public FormCB<ControlMathSub, FormDB<FD_maths_bitmap> >
-{
+class FormMathsBitmap
+ : public FormController<ControlMath, FormView<FD_maths_bitmap> > {
public:
///
- FormMathsBitmap(string const &, std::vector<string> const &);
+ FormMathsBitmap(Dialog &, std::string const &, std::vector<std::string> const &);
///
- void addBitmap(int, int, int, int, int, unsigned char const *,
- bool = true);
+ void addBitmap(BitmapStore const &);
private:
///
FL_OBJECT * buildBitmap(BitmapStore const & bmstore);
/// The latex names associated with each symbol
- std::vector<string> latex_;
+ std::vector<std::string> latex_;
/// The latex name chosen
- string latex_chosen_;
+ std::string latex_chosen_;
/** Temporary store for bitmap data passed to addBitmap()
* but before the FL_OBJECT is created in build().