From: Abdelrazak Younes Date: Sun, 9 Apr 2006 21:14:58 +0000 (+0000) Subject: lib/Makefile.am: move math icons from no-install X-Git-Tag: 1.6.10~13369 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9dfa853d2c6a94c95b8fb8e193dd5351e76d4409;p=lyx.git lib/Makefile.am: move math icons from no-install QMathDialog.C: set icon paths QMathUi.ui: set icon paths to lib/images/math for visual feedback in designer git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13614 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/Makefile.am b/lib/Makefile.am index 850c68a9ae..741819ea82 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -32,21 +32,11 @@ dist_noinst_DATA = \ images/math/delim0.xpm \ images/math/delim1.xpm \ images/math/delim.xbm \ - images/math/delim.xpm \ images/math/dots.xbm \ - images/math/equation.xpm \ images/math/font.xbm \ - images/math/font.xpm \ images/math/frac-square.xpm \ images/math/greek.xbm \ - images/math/matrix.xpm \ images/math/misc.xbm \ - images/math/space.xpm \ - images/math/sqrt-square.xpm \ - images/math/style.xbm \ - images/math/style.xpm \ - images/math/sub.xpm \ - images/math/super.xpm \ images/math/varsz.xbm binddir = $(pkgdatadir)/bind @@ -255,6 +245,16 @@ dist_images_DATA = \ imagesmathdir = $(imagesdir)/math dist_imagesmath_DATA = \ + images/math/style.xbm \ + images/math/font.xpm \ + images/math/delim.xpm \ + images/math/equation.xpm \ + images/math/matrix.xpm \ + images/math/space.xpm \ + images/math/sqrt-square.xpm \ + images/math/style.xpm \ + images/math/sub.xpm \ + images/math/super.xpm \ images/math/Bbbk.xpm \ images/math/Finv.xpm \ images/math/Game.xpm \ diff --git a/src/frontends/qt4/QMathDialog.C b/src/frontends/qt4/QMathDialog.C index 1ff375596e..8b6ec5ff3b 100644 --- a/src/frontends/qt4/QMathDialog.C +++ b/src/frontends/qt4/QMathDialog.C @@ -26,9 +26,12 @@ #include "qt_helpers.h" #include "controllers/ControlMath.h" #include "frontends/lyx_gui.h" +#include "support/filetools.h" using std::string; +using lyx::support::LibFileSearch; + namespace lyx { namespace frontend { @@ -68,6 +71,27 @@ QMathDialog::QMathDialog(QMath * form) connect( equationPB, SIGNAL( clicked() ), this, SLOT( equationClicked() ) ); connect( symbolsCO, SIGNAL(activated(int)), this, SLOT(showingPanel(int))); + string icon_path = LibFileSearch("images/math", "sqrt-square", "xpm"); + sqrtPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "space", "xpm"); + spacePB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "style", "xpm"); + stylePB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "font", "xpm"); + fontPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "equation", "xpm"); + equationPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "frac-square", "xpm"); + fracPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "sub", "xpm"); + subscriptPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "super", "xpm"); + superscriptPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "matrix", "xpm"); + matrixPB->setIcon(QIcon(toqstr(icon_path))); + icon_path = LibFileSearch("images/math", "delim", "xpm"); + delimitersPB->setIcon(QIcon(toqstr(icon_path))); + // function list for (int i = 0; *function_names[i]; ++i) { functionsLW->addItem(function_names[i]); diff --git a/src/frontends/qt4/ui/QMathUi.ui b/src/frontends/qt4/ui/QMathUi.ui index dfb792d54a..9e05e7366c 100644 --- a/src/frontends/qt4/ui/QMathUi.ui +++ b/src/frontends/qt4/ui/QMathUi.ui @@ -18,7 +18,7 @@ true - + 10 @@ -251,7 +251,7 @@ - ../lib/images/math/delim.xpm + ../../../../lib/images/math/delim.xpm @@ -270,7 +270,7 @@ - ../lib/images/math/sub.xpm + ../../../../lib/images/math/sub.xpm @@ -295,7 +295,7 @@ - ../lib/images/math/font.xpm + ../../../../lib/images/math/font.xpm @@ -322,7 +322,7 @@ - ../lib/images/math/equation.xpm + ../../../../lib/images/math/equation.xpm @@ -347,7 +347,7 @@ - ../lib/images/math/space.xpm + ../../../../lib/images/math/space.xpm @@ -366,7 +366,7 @@ - ../lib/images/math/super.xpm + ../../../../lib/images/math/super.xpm @@ -391,7 +391,7 @@ - ../lib/images/math/style.xpm + ../../../../lib/images/math/style.xpm @@ -418,7 +418,7 @@ - ../lib/images/math/frac-square.xpm + ../../../../lib/images/math/frac-square.xpm @@ -443,7 +443,7 @@ - ../lib/images/math/sqrt-square.xpm + ../../../../lib/images/math/sqrt-square.xpm @@ -462,7 +462,7 @@ - ../lib/images/math/matrix.xpm + ../../../../lib/images/math/matrix.xpm