From: Brandon King Date: Sat, 18 Mar 2006 01:08:18 +0000 (+0000) Subject: Zoom Icon Patch X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=644687130f17319f423741e4eb0f16015f5b59ff Zoom Icon Patch --- diff --git a/icons/viewmag.png b/icons/viewmag.png new file mode 100644 index 0000000..f507381 Binary files /dev/null and b/icons/viewmag.png differ diff --git a/qui/MussaWindow.cpp b/qui/MussaWindow.cpp index 4822d31..f8945c4 100644 --- a/qui/MussaWindow.cpp +++ b/qui/MussaWindow.cpp @@ -24,6 +24,7 @@ MussaWindow::MussaWindow(Mussa *analysis_, QWidget *parent) : mussaViewTB("Path Views"), zoomBox(), threshold(), + zoomLabel(), closeAction(0) // initialize one of the pointers to null as a saftey flag { setupActions(); @@ -36,8 +37,14 @@ MussaWindow::MussaWindow(Mussa *analysis_, QWidget *parent) : setCentralWidget(&browser); mussaViewTB.addAction(toggleMotifsAction); + + zoomLabel.setPixmap(QIcon("icons/viewmag.png").pixmap(16, 16)); + zoomLabel.setToolTip(tr("Zoom")); + zoomLabel.setWhatsThis(tr("Zoom magnification factor")); + mussaViewTB.addWidget(&zoomLabel); - zoomBox.setWhatsThis("zoom magnification factor"); + zoomBox.setToolTip(tr("Zoom")); + zoomBox.setWhatsThis(tr("Zoom magnification factor")); zoomBox.setRange(2,1000); mussaViewTB.addWidget(&zoomBox); connect(&zoomBox, SIGNAL(valueChanged(int)), diff --git a/qui/MussaWindow.hpp b/qui/MussaWindow.hpp index 0ba819c..26e16bc 100644 --- a/qui/MussaWindow.hpp +++ b/qui/MussaWindow.hpp @@ -10,6 +10,7 @@ #include "qui/ThresholdWidget.hpp" class QAction; +class QLabel; class Mussa; class MussaWindow : public QMainWindow @@ -55,6 +56,7 @@ protected: QToolBar mussaViewTB; QSpinBox zoomBox; ThresholdWidget threshold; + QLabel zoomLabel; QAction *aboutAction; QAction *closeAction;