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;
28 class QMAction : public QAction {
31 QMAction( const QString & text, const std::string & action, QObject * parent)
32 : QAction(text,parent), action_(action) {
33 connect(this, SIGNAL(triggered()), this, SLOT(action()));
36 void action(const std::string &);
49 class QMathDialog : public QDialog, public Ui::QMathUi
53 QMathDialog(QMath * form);
55 virtual void delimiterClicked();
56 virtual void expandClicked();
57 virtual void fracClicked();
58 virtual void functionSelected(QListWidgetItem *);
59 virtual void matrixClicked();
60 virtual void subscriptClicked();
61 virtual void superscriptClicked();
62 virtual void equationClicked();
63 void symbol_clicked(const std::string &);
64 void insertCubeRoot();
66 /// about to show a symbol panel
67 void showingPanel(int);
69 //needed ? virtual void closeEvent(QCloseEvent * e);
71 /// add item to popup menu
72 void addMenuItem(QMenu * menu, const QString & label, const std::string &);
73 /// make a symbol panel
74 IconPalette * makePanel(QWidget * parent, char const ** entries);
75 /// add a symbol panel
76 void addPanel(int num);
82 } // namespace frontend
85 #endif // QMATHDIALOG_H