2003-10-28 16:45:09 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GMathPanel.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_PANEL_H
|
|
|
|
#define GMATH_PANEL_H
|
|
|
|
|
|
|
|
#include "GViewBase.h"
|
|
|
|
#include "support/lstrings.h"
|
2004-02-23 00:21:04 +00:00
|
|
|
#include "GXpmBtnTbl.h"
|
2003-10-28 16:45:09 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2003-10-28 16:45:09 +00:00
|
|
|
class ControlMath;
|
|
|
|
|
|
|
|
class GMathPanel : public GViewCB<ControlMath, GViewGladeB>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GMathPanel(Dialog & parent);
|
|
|
|
private:
|
|
|
|
virtual void apply() {}
|
|
|
|
virtual void update() {}
|
|
|
|
virtual void doBuild();
|
|
|
|
void onShowDialog(char const * dialogName);
|
2004-02-23 00:21:04 +00:00
|
|
|
void onTableUpClicked(int row, int col);
|
|
|
|
void onTableDownClicked(int row, int col);
|
2003-10-28 16:45:09 +00:00
|
|
|
void onSuperClicked();
|
|
|
|
void onSubClicked();
|
|
|
|
void onEquationClicked();
|
|
|
|
void onInsert(char const * what);
|
|
|
|
void onFunctionSelected();
|
|
|
|
Gtk::TreeView * functions_;
|
|
|
|
Gtk::TreeModelColumn<Glib::ustring> listCol_;
|
|
|
|
Gtk::TreeModel::ColumnRecord listCols_;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> listStore_;
|
|
|
|
Glib::RefPtr<Gtk::TreeSelection> listSel_;
|
2004-02-23 00:21:04 +00:00
|
|
|
GXpmBtnTbl tableUp_;
|
|
|
|
GXpmBtnTbl tableDown_;
|
2003-10-28 16:45:09 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-10-28 16:45:09 +00:00
|
|
|
#endif
|