mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
de19376118
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9048 a592a061-630c-0410-9148-cb99ea01b6c8
52 lines
1.0 KiB
C++
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
|
|
|