4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "ui/QMathUi.h"
20 class QListWidgetItem;
27 class QMAction : public QAction {
30 QMAction( const QString & text, const std::string & action, QObject * parent)
31 : QAction(text,parent), action_(action) {
32 connect(this, SIGNAL(triggered()), this, SLOT(action()));
35 void action(const std::string &);
48 class QMathDialog : public QDialog, public Ui::QMathUi
52 QMathDialog(QMath * form);
54 virtual void delimiterClicked();
55 virtual void expandClicked();
56 virtual void functionSelected(QListWidgetItem *);
57 virtual void matrixClicked();
58 virtual void subscriptClicked();
59 virtual void superscriptClicked();
60 virtual void equationClicked();
61 void symbol_clicked(const std::string &);
62 void insertCubeRoot();
64 /// about to show a symbol panel
65 void showingPanel(int);
67 //needed ? virtual void closeEvent(QCloseEvent * e);
69 /// add item to popup menu
70 void addMenuItem(QMenu * menu, const QString & label, const std::string &);
71 /// make a symbol panel
72 IconPalette * makePanel(QWidget * parent, char const ** entries);
73 /// add a symbol panel
74 void addPanel(int num);
80 } // namespace frontend
83 #endif // QMATHDIALOG_H