mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Get rid of Dialogs::showMathPanel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7181 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8f877fd574
commit
a0892f87e9
@ -1,3 +1,7 @@
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* lyxfunc.C (dispatch): s/showMathPanel/show("mathpanel")/
|
||||
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* lfuns.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Dialogs.h: (showMathPanel):
|
||||
* guiapi.[Ch] (gui_ShowMathPanel): removed.
|
||||
|
||||
2003-06-06 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* Dialogs.[Ch] (visible): added.
|
||||
|
@ -74,8 +74,6 @@ public:
|
||||
void showDocument();
|
||||
/// show all forked child processes
|
||||
void showForks();
|
||||
/// display the top-level maths panel
|
||||
void showMathPanel();
|
||||
///
|
||||
void showPreamble();
|
||||
///
|
||||
|
@ -33,12 +33,6 @@ void gui_ShowForks(Dialogs & d)
|
||||
}
|
||||
|
||||
|
||||
void gui_ShowMathPanel(Dialogs & d)
|
||||
{
|
||||
d.showMathPanel();
|
||||
}
|
||||
|
||||
|
||||
void gui_ShowPreamble(Dialogs & d)
|
||||
{
|
||||
d.showPreamble();
|
||||
|
@ -23,7 +23,6 @@ void gui_show_dialog(Dialogs *, char const * name, char const * data);
|
||||
|
||||
void gui_ShowDocument(Dialogs &);
|
||||
void gui_ShowForks(Dialogs &);
|
||||
void gui_ShowMathPanel(Dialogs &);
|
||||
void gui_ShowPreamble(Dialogs &);
|
||||
void gui_ShowPreferences(Dialogs &);
|
||||
void gui_ShowPrint(Dialogs &);
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Dialogs.C: rename math panel identifier as "mathpanel".
|
||||
* Dialogs2.C (showMathPanel): removed.
|
||||
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Dialogs.C:
|
||||
|
@ -83,7 +83,7 @@ namespace {
|
||||
char const * const dialognames[] = { "about", "bibitem", "bibtex", "changes",
|
||||
"character", "citation", "error", "errorlist", "ert", "external", "file",
|
||||
"float", "graphics", "include", "index", "label", "log",
|
||||
"math", "mathdelimiter", "mathmatrix",
|
||||
"mathpanel", "mathdelimiter", "mathmatrix",
|
||||
"minipage", "paragraph", "ref", "tabular", "tabularcreate",
|
||||
|
||||
#ifdef HAVE_LIBAIKSAURUS
|
||||
@ -195,7 +195,7 @@ Dialog * Dialogs::build(string const & name)
|
||||
dialog->setController(new ControlLog(*dialog));
|
||||
dialog->setView(new QLog(*dialog));
|
||||
dialog->bc().bp(new OkCancelPolicy);
|
||||
} else if (name == "math") {
|
||||
} else if (name == "mathpanel") {
|
||||
dialog->setController(new ControlMath(*dialog));
|
||||
dialog->setView(new QMath(*dialog));
|
||||
dialog->bc().bp(new IgnorantPolicy);
|
||||
|
@ -118,13 +118,6 @@ void Dialogs::showForks()
|
||||
{}
|
||||
|
||||
|
||||
void Dialogs::showMathPanel()
|
||||
{
|
||||
static DialogPtr mathdialog(build("math"));
|
||||
mathdialog->show(string());
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::showPreamble()
|
||||
{
|
||||
pimpl_->document.controller().show();
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Dialogs.C: rename math panel identifier as "mathpanel".
|
||||
* Dialogs2.C (showMathPanel): removed.
|
||||
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Dialogs.C:
|
||||
|
@ -110,7 +110,7 @@ FormMathsBitmap * createFormBitmap(Dialog & parent, string const & title,
|
||||
|
||||
char const * const dialognames[] = { "about", "bibitem", "bibtex", "changes",
|
||||
"character", "citation", "error", "errorlist" , "ert", "external", "file",
|
||||
"float", "graphics", "include", "index", "label", "log", "math",
|
||||
"float", "graphics", "include", "index", "label", "log", "mathpanel",
|
||||
"mathaccents", "matharrows", "mathoperators", "mathrelations", "mathgreek",
|
||||
"mathmisc", "mathdots", "mathbigoperators", "mathamsmisc",
|
||||
"mathamsarrows", "mathamsrelations", "mathamsnegatedrelations", "mathamsoperators",
|
||||
@ -224,7 +224,7 @@ Dialog * Dialogs::build(string const & name)
|
||||
dialog->setView(new FormLog(*dialog));
|
||||
dialog->bc().bp(new OkCancelPolicy);
|
||||
|
||||
} else if (name == "math") {
|
||||
} else if (name == "mathpanel") {
|
||||
dialog->setController(new ControlMath(*dialog));
|
||||
dialog->setView(new FormMathsPanel(*dialog));
|
||||
dialog->bc().bp(new IgnorantPolicy);
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "Dialogs.h"
|
||||
#include "Dialog.h"
|
||||
#include "controllers/GUI.h"
|
||||
#include "ButtonController.h"
|
||||
|
||||
@ -135,13 +134,6 @@ void Dialogs::showForks()
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::showMathPanel()
|
||||
{
|
||||
static DialogPtr mathdialog(build("math"));
|
||||
mathdialog->show(string());
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::showPreamble()
|
||||
{
|
||||
pimpl_->preamble.controller().show();
|
||||
|
@ -1405,7 +1405,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
|
||||
break;
|
||||
|
||||
case LFUN_MATH_PANEL:
|
||||
owner->getDialogs().showMathPanel();
|
||||
owner->getDialogs().show("mathpanel");
|
||||
break;
|
||||
|
||||
case LFUN_DIALOG_SHOW:
|
||||
|
@ -1,3 +1,7 @@
|
||||
2003-06-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* formulabase.C (lfunMouseRelease): s/showMathPanel/show("mathpanel")/
|
||||
|
||||
2003-06-13 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* formulabase.C (mathDispatchCreation): fix call to cutSelection
|
||||
|
@ -227,7 +227,7 @@ dispatch_result InsetFormulaBase::lfunMouseRelease(FuncRequest const & cmd)
|
||||
if (mathcursor->dispatch(cmd) == UNDISPATCHED) {
|
||||
// launch math panel for right mouse button
|
||||
lyxerr << "lfunMouseRelease: undispatched: " << cmd.button() << endl;
|
||||
bv->owner()->getDialogs().showMathPanel();
|
||||
bv->owner()->getDialogs().show("mathpanel");
|
||||
}
|
||||
return DISPATCHED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user