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"
21 class QListWidgetItem;
26 class QMAction : public QAction {
29 QMAction( const QString & text, const std::string & action, QObject * parent)
30 : QAction(text,parent), action_(action) {
31 connect(this, SIGNAL(triggered()), this, SLOT(action()));
34 void action(const std::string &);
47 class QMathDialog : public QDialog, public Ui::QMathUi
51 QMathDialog(QMath * form);
53 virtual void delimiterClicked();
54 virtual void expandClicked();
55 virtual void fracClicked();
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