2004-02-23 00:21:04 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GMathDelim.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Huang Ying
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GMATH_DELIM_H
|
|
|
|
#define GMATH_DELIM_H
|
|
|
|
|
|
|
|
#include "GViewBase.h"
|
|
|
|
#include "GXpmBtnTbl.h"
|
|
|
|
|
2004-09-26 18:36:07 +00:00
|
|
|
#include "support/lstrings.h"
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2004-02-23 00:21:04 +00:00
|
|
|
class ControlMath;
|
|
|
|
|
2004-09-26 13:18:29 +00:00
|
|
|
class GMathDelim : public GViewCB<ControlMath, GViewGladeB> {
|
2004-02-23 00:21:04 +00:00
|
|
|
public:
|
|
|
|
GMathDelim(Dialog & parent);
|
|
|
|
private:
|
|
|
|
virtual void apply();
|
|
|
|
virtual void update();
|
|
|
|
virtual void doBuild();
|
|
|
|
void setDemoPixmap();
|
|
|
|
void updateDemoPixmap();
|
|
|
|
void onDelimTblClicked(int row, int col);
|
|
|
|
void onRadioClicked();
|
|
|
|
GXpmBtnTbl delimTbl_;
|
|
|
|
Gtk::Button * demo_;
|
|
|
|
Gtk::RadioButton * left_;
|
|
|
|
Gtk::RadioButton * right_;
|
|
|
|
Gtk::RadioButton * both_;
|
|
|
|
Glib::RefPtr<Gdk::Pixmap> pixmap_;
|
|
|
|
Glib::RefPtr<Gdk::Bitmap> mask_;
|
|
|
|
Glib::RefPtr<Gdk::GC> gcMask_;
|
|
|
|
int leftSel_;
|
|
|
|
int rightSel_;
|
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2004-02-23 00:21:04 +00:00
|
|
|
#endif
|