mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
a5d7d51b09
good position to work on dialog contents. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5187 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
912 B
C
63 lines
912 B
C
/**
|
|
* \file QMath.C
|
|
* Copyright 2001 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "debug.h"
|
|
|
|
#include "commandtags.h"
|
|
#include "funcrequest.h"
|
|
#include "LyXView.h"
|
|
#include "BufferView.h"
|
|
|
|
#include "QMathDialog.h"
|
|
#include "QMath.h"
|
|
|
|
#include "iconpalette.h"
|
|
|
|
// FIXME temporary HACK !
|
|
void createMathPanel()
|
|
{
|
|
static QMath * dialog = 0;
|
|
if (!dialog) {
|
|
dialog = new QMath();
|
|
dialog->build_dialog();
|
|
}
|
|
dialog->do_show();
|
|
}
|
|
|
|
|
|
QMath::QMath()
|
|
{
|
|
}
|
|
|
|
|
|
void QMath::do_show()
|
|
{
|
|
dialog_->show();
|
|
}
|
|
|
|
|
|
void QMath::build_dialog()
|
|
{
|
|
dialog_ = new QMathDialog(this);
|
|
}
|
|
|
|
|
|
void QMath::insert_symbol(string const & name)
|
|
{
|
|
// needless to say, this can't last for long
|
|
extern BufferView * current_view;
|
|
|
|
current_view->owner()->dispatch(FuncRequest(LFUN_INSERT_MATH, '\\' + name));
|
|
}
|