Commit f9846aae authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq
Browse files

Fix buttons in OSX

parent de60e6f5
......@@ -123,7 +123,9 @@ Capture::Capture()
connect(pauseB, SIGNAL(clicked()), this, SLOT(pause()));
startB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg") ));
startB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
pauseB->setIcon(QIcon::fromTheme("media-playback-pause", QIcon(":/icons/breeze/default/media-playback-pause.svg") ));
pauseB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
connect(binXIN, SIGNAL(valueChanged(int)), binYIN, SLOT(setValue(int)));
......@@ -157,16 +159,27 @@ Capture::Capture()
connect(calibrationB, SIGNAL(clicked()), this, SLOT(openCalibrationDialog()));
addToQueueB->setIcon(QIcon::fromTheme("list-add", QIcon(":/icons/breeze/default/list-add.svg") ));
addToQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
removeFromQueueB->setIcon(QIcon::fromTheme("list-remove", QIcon(":/icons/breeze/default/list-remove.svg") ));
removeFromQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueUpB->setIcon(QIcon::fromTheme("go-up", QIcon(":/icons/breeze/default/go-up.svg") ));
queueUpB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueDownB->setIcon(QIcon::fromTheme("go-down", QIcon(":/icons/breeze/default/go-down.svg") ));
queueDownB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectFITSDirB->setIcon(QIcon::fromTheme("document-open-folder", QIcon(":/icons/breeze/default/document-open-folder.svg") ));
selectFITSDirB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueLoadB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg") ));
queueLoadB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveB->setIcon(QIcon::fromTheme("document-save", QIcon(":/icons/breeze/default/document-save.svg") ));
queueSaveB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveAsB->setIcon(QIcon::fromTheme("document-save-as", QIcon(":/icons/breeze/default/document-save-as.svg") ));
queueSaveAsB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
resetB->setIcon(QIcon::fromTheme("system-reboot", QIcon(":/icons/breeze/default/system-reboot.svg") ));
resetB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
resetFrameB->setIcon(QIcon::fromTheme("view-refresh", QIcon(":/icons/breeze/default/view-refresh.svg") ));
resetFrameB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
calibrationB->setIcon(QIcon::fromTheme("run-build", QIcon(":/icons/breeze/default/run-build.svg") ));
calibrationB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
addToQueueB->setToolTip(i18n("Add job to sequence queue"));
removeFromQueueB->setToolTip(i18n("Remove job from sequence queue"));
......
......@@ -128,10 +128,17 @@ EkosManager::EkosManager(QWidget *parent) : QDialog(parent)
connect(deleteProfileB, SIGNAL(clicked()), this, SLOT(deleteProfile()));
connect(profileCombo, SIGNAL(activated(QString)), this, SLOT(saveDefaultProfile(QString)));
addProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
editProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
deleteProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
// Set Profile icons
addProfileB->setIcon(QIcon::fromTheme("list-add", QIcon(":/icons/breeze/default/list-add.svg")));
addProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
editProfileB->setIcon(QIcon::fromTheme("document-edit", QIcon(":/icons/breeze/default/document-edit.svg")));
editProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
deleteProfileB->setIcon(QIcon::fromTheme("list-remove", QIcon(":/icons/breeze/default/list-remove.svg")));
deleteProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
// Load all drivers
loadDrivers();
......
......@@ -145,27 +145,39 @@ Scheduler::Scheduler()
raBox->setDegType(false); //RA box should be HMS-style
addToQueueB->setIcon(QIcon::fromTheme("list-add", QIcon(":/icons/breeze/default/list-add.svg")));
addToQueueB->setToolTip(i18n("Add observation job to list."));
addToQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
removeFromQueueB->setIcon(QIcon::fromTheme("list-remove", QIcon(":/icons/breeze/default/list-remove.svg")));
removeFromQueueB->setToolTip(i18n("Remove observation job from list."));
removeFromQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
evaluateOnlyB->setIcon(QIcon::fromTheme("tools-wizard", QIcon(":/icons/breeze/default/tools-wizard.svg")));
evaluateOnlyB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
mosaicB->setIcon(QIcon::fromTheme("zoom-draw", QIcon(":/icons/breeze/default/zoom-draw.svg")));
mosaicB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveAsB->setIcon(QIcon::fromTheme("document-save-as", QIcon(":/icons/breeze/default/document-save-as.svg")));
queueSaveAsB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveB->setIcon(QIcon::fromTheme("document-save", QIcon(":/icons/breeze/default/document-save.svg")));
queueSaveB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueLoadB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
queueLoadB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
loadSequenceB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
loadSequenceB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectStartupScriptB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
selectStartupScriptB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectShutdownScriptB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
selectShutdownScriptB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectFITSB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
selectFITSB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
startupB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg")));
startupB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
shutdownB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg")));
shutdownB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
connect(startupB, SIGNAL(clicked()), this, SLOT(runStartupProcedure()));
connect(shutdownB, SIGNAL(clicked()), this, SLOT(runShutdownProcedure()));
......@@ -184,7 +196,9 @@ Scheduler::Scheduler()
connect(queueTable, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(resetJobState(QModelIndex)));
startB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg")));
startB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
pauseB->setIcon(QIcon::fromTheme("media-playback-pause", QIcon(":/icons/breeze/default/media-playback-pause.svg")));
pauseB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
connect(startB,SIGNAL(clicked()),this,SLOT(toggleScheduler()));
connect(pauseB,SIGNAL(clicked()),this,SLOT(pause()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment