- }
-
- QMenu * pm = new QMenu(this);
-
- // FIXME: Need to verify that this does not leak memory.
- /*QMenu * pm1 =*/ new QMenu(pm);
- /*QMenu * pm2 =*/ new QMenu(pm);
- /*QMenu * pm3 =*/ new QMenu(pm);
- /*QMenu * pm4 =*/ new QMenu(pm);
- /*QMenu * pm5 =*/ new QMenu(pm);
- /*QMenu * pm6 =*/ new QMenu(pm);
-
-// FIXME: We need a Qt4 compatible browsebox type widget
-// which can act as a popup to a toolbutton
-/*
- standard_ = new QBrowseBox(6, 6, pm1);
- maths_ = new QBrowseBox(6, 6, pm2);
- ding1_ = new QBrowseBox(6, 6, pm3);
- ding2_ = new QBrowseBox(6, 6, pm4);
- ding3_ = new QBrowseBox(6, 6, pm5);
- ding4_ = new QBrowseBox(6, 6, pm6);
-
- ///\todo See how to insert those BrowseBox:
- pm1->addMenu((QMenu*) standard_);
- pm2->addMenu((QMenu*)maths_);
- pm3->addMenu((QMenu*)ding1_);
- pm4->addMenu((QMenu*)ding2_);
- pm5->addMenu((QMenu*)ding3_);
- pm6->addMenu((QMenu*)ding4_);
-
- pm->insertItem(qt_("&Standard"), pm1, 0);
- pm->insertItem(qt_("&Maths"), pm2, 1);
- pm->insertItem(qt_("Dings &1"), pm3, 2);
- pm->insertItem(qt_("Dings &2"), pm4, 3);
- pm->insertItem(qt_("Dings &3"), pm5, 4);
- pm->insertItem(qt_("Dings &4"), pm6, 5);
- pm->insertSeparator();
- // FIXME: make this checkable
- pm->insertItem(qt_("&Custom..."), this, SLOT(setCustom()), 0, 6);
-
- connect(bullet1PB, SIGNAL(pressed()), this, SLOT(clicked1()));
- bullet1PB->setPopup(pm);
-
- connect(bullet2PB, SIGNAL(pressed()), this, SLOT(clicked2()));
- bullet2PB->setPopup(pm);
-
- connect(bullet3PB, SIGNAL(pressed()), this, SLOT(clicked3()));
- bullet3PB->setPopup(pm);
-
- connect(bullet4PB, SIGNAL(pressed()), this, SLOT(clicked4()));
- bullet4PB->setPopup(pm);
-
- // insert pixmaps
- string bmfile;
- bmfile = libFileSearch("images", "standard", "xpm");
- standard_->insertItem(QPixmap(toqstr(bmfile)));
-
- bmfile = libFileSearch("images", "amssymb", "xpm");
- maths_->insertItem(QPixmap(toqstr(bmfile)));
-
- bmfile = libFileSearch("images", "psnfss1", "xpm");
- ding1_->insertItem(QPixmap(toqstr(bmfile)));
-
- bmfile = libFileSearch("images", "psnfss2", "xpm");
- ding2_->insertItem(QPixmap(toqstr(bmfile)));
-
- bmfile = libFileSearch("images", "psnfss3", "xpm");
- ding3_->insertItem(QPixmap(toqstr(bmfile)));
-
- bmfile = libFileSearch("images", "psnfss4", "xpm");
- ding4_->insertItem(QPixmap(toqstr(bmfile)));