]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/BulletsModule.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / BulletsModule.cpp
index 20d028e843952b27c7434f60633c3886badc0e26..876fa9d57c6612b9e5e01e0c0a9573060565b178 100644 (file)
 #include "BulletsModule.h"
 #include "qt_helpers.h"
 
-#include "support/filetools.h"
-
 #include <QPixmap>
 #include <QPainter>
 
-#include <boost/assert.hpp>
+using namespace std;
 
 namespace lyx {
 
-using support::libFileSearch;
-
-using std::string;
-
 BulletsModule::BulletsModule(QWidget * , char const * , Qt::WFlags)
 {
        setupUi(this);
@@ -43,7 +37,7 @@ BulletsModule::BulletsModule(QWidget * , char const * , Qt::WFlags)
        levelLW->addItem("4");
 
        // insert pixmaps
-       setupPanel(new QListWidget(bulletpaneSW), qt_("Standard"), "standard");
+       setupPanel(new QListWidget(bulletpaneSW), qt_("Standard[[Bullets]]"), "standard");
        setupPanel(new QListWidget(bulletpaneSW), qt_("Maths"), "amssymb");
        setupPanel(new QListWidget(bulletpaneSW), qt_("Dings 1"), "psnfss1");
        setupPanel(new QListWidget(bulletpaneSW), qt_("Dings 2"), "psnfss2");
@@ -58,7 +52,7 @@ BulletsModule::BulletsModule(QWidget * , char const * , Qt::WFlags)
 
 
 void BulletsModule::setupPanel(QListWidget * lw, QString const & panelname,
-       std::string const & fname)
+       string const & fname)
 {
        connect(lw, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
                this, SLOT(bulletSelected(QListWidgetItem *, QListWidgetItem*)));
@@ -67,7 +61,7 @@ void BulletsModule::setupPanel(QListWidget * lw, QString const & panelname,
        bulletpaneCO->addItem(panelname);
 
        // get pixmap with bullets
-       QPixmap pixmap = QPixmap(toqstr(libFileSearch("images", fname, "png").absFilename()));
+       QPixmap pixmap(":/images/" + toqstr(fname) + ".png");
 
        int const w = pixmap.width() / 6;
        int const h = pixmap.height() / 6;