2002-09-24 13:57:09 +00:00
|
|
|
// -*- C++ -*-
|
2002-08-30 16:20:27 +00:00
|
|
|
/**
|
|
|
|
* \file QMathDialog.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-08-30 16:20:27 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-08-30 16:20:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QMATHDIALOG_H
|
|
|
|
#define QMATHDIALOG_H
|
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
2002-08-30 16:20:27 +00:00
|
|
|
|
|
|
|
#include "ui/QMathDialogBase.h"
|
2002-09-24 13:57:09 +00:00
|
|
|
#include "LString.h"
|
2002-08-30 16:20:27 +00:00
|
|
|
|
|
|
|
class QMath;
|
2002-09-08 02:57:10 +00:00
|
|
|
class IconPalette;
|
2002-08-30 16:20:27 +00:00
|
|
|
|
|
|
|
class QMathDialog : public QMathDialogBase
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QMathDialog(QMath * form);
|
|
|
|
public slots:
|
|
|
|
virtual void delimiterClicked();
|
|
|
|
virtual void expandClicked();
|
|
|
|
virtual void fracClicked();
|
2002-10-20 01:48:28 +00:00
|
|
|
virtual void functionSelected(QString const &);
|
2002-08-30 16:20:27 +00:00
|
|
|
virtual void matrixClicked();
|
|
|
|
virtual void subscriptClicked();
|
|
|
|
virtual void superscriptClicked();
|
2002-09-14 03:27:07 +00:00
|
|
|
virtual void equationClicked();
|
2002-10-20 01:48:28 +00:00
|
|
|
void symbol_clicked(string const & str);
|
2002-09-14 01:44:58 +00:00
|
|
|
void insertSpace(int id);
|
2002-09-14 03:27:07 +00:00
|
|
|
void insertRoot(int id);
|
|
|
|
void insertStyle(int id);
|
|
|
|
void insertFont(int id);
|
2002-09-12 00:56:53 +00:00
|
|
|
|
|
|
|
/// about to show a symbol panel
|
|
|
|
void showingPanel(int);
|
2002-08-30 16:20:27 +00:00
|
|
|
protected:
|
|
|
|
//needed ? virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
2002-09-08 02:57:10 +00:00
|
|
|
/// make a symbol panel
|
|
|
|
IconPalette * makePanel(QWidget * parent, char const ** entries);
|
|
|
|
|
2002-08-30 16:20:27 +00:00
|
|
|
/// add a symbol panel
|
2002-09-12 00:56:53 +00:00
|
|
|
void addPanel(int num);
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-08-30 16:20:27 +00:00
|
|
|
/// owning form
|
|
|
|
QMath * form_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QMATHDIALOG_H
|