lyx_mirror/src/frontends/gtk/GMathsMatrix.h
John Spray de19376118 Add mathsmatrix dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9048 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-05 12:37:26 +00:00

52 lines
1.0 KiB
C++

// -*- C++ -*-
/**
* \file GMathsMatrix.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Spray
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GMATHSMATRIX_H
#define GMATHSMATRIX_H
#include "GViewBase.h"
namespace lyx {
namespace frontend {
class ControlMath;
/**
* This class provides an GTK implementation of the maths matrix dialog.
*/
class GMathsMatrix
: public GViewCB<ControlMath, GViewGladeB> {
public:
GMathsMatrix(Dialog &);
int AlignFilter(char const *, int);
private:
virtual void apply();
virtual void doBuild();
virtual void update();
void updateHorzAlignEntry();
int countbars(Glib::ustring str);
Gtk::RadioButton * topradio_;
Gtk::RadioButton * bottomradio_;
Gtk::RadioButton * centerradio_;
Gtk::SpinButton * rowsspin_;
Gtk::SpinButton * columnsspin_;
Gtk::Entry * horzalignentry_;
bool ignoreHorzAlign_;
};
} // namespace frontend
} // namespace lyx
#endif // GMATHSMATRIX_H