mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
6528d97d0e
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5785 a592a061-630c-0410-9148-cb99ea01b6c8
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QMathDialog.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef QMATHDIALOG_H
|
|
#define QMATHDIALOG_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "ui/QMathDialogBase.h"
|
|
#include "LString.h"
|
|
|
|
class QMath;
|
|
class IconPalette;
|
|
|
|
class QMathDialog : public QMathDialogBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QMathDialog(QMath * form);
|
|
public slots:
|
|
virtual void delimiterClicked();
|
|
virtual void expandClicked();
|
|
virtual void fracClicked();
|
|
virtual void functionSelected(const QString &);
|
|
virtual void matrixClicked();
|
|
virtual void subscriptClicked();
|
|
virtual void superscriptClicked();
|
|
virtual void equationClicked();
|
|
void symbol_clicked(const string &);
|
|
void insertSpace(int id);
|
|
void insertRoot(int id);
|
|
void insertStyle(int id);
|
|
void insertFont(int id);
|
|
|
|
/// about to show a symbol panel
|
|
void showingPanel(int);
|
|
protected:
|
|
//needed ? virtual void closeEvent(QCloseEvent * e);
|
|
private:
|
|
/// make a symbol panel
|
|
IconPalette * makePanel(QWidget * parent, char const ** entries);
|
|
|
|
/// add a symbol panel
|
|
void addPanel(int num);
|
|
|
|
/// owning form
|
|
QMath * form_;
|
|
};
|
|
|
|
#endif // QMATHDIALOG_H
|