mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3524 HoloLens : Add toolbar and icons for operations
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "RicHoloLensCreateSessionFeature.h"
|
||||
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "RicHoloLensCreateSessionUi.h"
|
||||
#include "RicHoloLensServerSettings.h"
|
||||
|
||||
@@ -54,6 +56,11 @@ void RicHoloLensCreateSessionFeature::onActionTriggered(bool isChecked)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicHoloLensCreateSessionFeature::setupActionLook(QAction* actionToSetup)
|
||||
{
|
||||
actionToSetup->setIcon(QIcon(":/hololens.png"));
|
||||
actionToSetup->setText("HoloLens : Create Session");
|
||||
QPixmap pixmap(":/hololens.png");
|
||||
QPixmap overlayPixmap(":/plus-sign-green.png");
|
||||
|
||||
QPixmap combinedPixmap = RiaQIconTools::appendPixmapUpperLeft(pixmap, overlayPixmap);
|
||||
actionToSetup->setIcon(QIcon(combinedPixmap));
|
||||
|
||||
actionToSetup->setText("Create Session");
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "VdeFileExporter.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "RimGridView.h"
|
||||
|
||||
#include <QAction>
|
||||
@@ -34,7 +36,7 @@ bool RicHoloLensExportToSharingServerFeature::isCommandEnabled()
|
||||
{
|
||||
// Return true if a valid session is active
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -55,6 +57,11 @@ void RicHoloLensExportToSharingServerFeature::onActionTriggered(bool isChecked)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicHoloLensExportToSharingServerFeature::setupActionLook(QAction* actionToSetup)
|
||||
{
|
||||
//actionToSetup->setIcon(QIcon(":/Save.png"));
|
||||
actionToSetup->setText("HoloLens : Export to Sharing Server");
|
||||
QPixmap pixmap(":/hololens.png");
|
||||
QPixmap overlayPixmap(":/arrow-right-green.png");
|
||||
|
||||
QPixmap combinedPixmap = RiaQIconTools::appendPixmapUpperLeft(pixmap, overlayPixmap);
|
||||
actionToSetup->setIcon(QIcon(combinedPixmap));
|
||||
|
||||
actionToSetup->setText("Export to Sharing Server");
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "RicHoloLensTerminateSessionFeature.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
@@ -47,6 +48,11 @@ void RicHoloLensTerminateSessionFeature::onActionTriggered(bool isChecked)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicHoloLensTerminateSessionFeature::setupActionLook(QAction* actionToSetup)
|
||||
{
|
||||
//actionToSetup->setIcon(QIcon(":/Save.png"));
|
||||
actionToSetup->setText("HoloLens : Terminate Session");
|
||||
QPixmap pixmap(":/hololens.png");
|
||||
QPixmap overlayPixmap(":/minus-sign-red.png");
|
||||
|
||||
QPixmap combinedPixmap = RiaQIconTools::appendPixmapUpperLeft(pixmap, overlayPixmap);
|
||||
actionToSetup->setIcon(QIcon(combinedPixmap));
|
||||
|
||||
actionToSetup->setText("Terminate Session");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user