case MEDCALC::VIEW_MODE_NEW_LAYOUT: return "MEDCALC.VIEW_MODE_NEW_LAYOUT";
case MEDCALC::VIEW_MODE_SPLIT_VIEW: return "MEDCALC.VIEW_MODE_SPLIT_VIEW";
}
+ return QString();
}
QString
case MEDCALC::COLOR_MAP_BLUE_TO_RED_RAINBOW: return "MEDCALC.COLOR_MAP_BLUE_TO_RED_RAINBOW";
case MEDCALC::COLOR_MAP_COOL_TO_WARM: return "MEDCALC.COLOR_MAP_COOL_TO_WARM";
}
+ return QString();
}
/**
DlgChangeUnderlyingMesh.hxx
DlgInterpolateField.hxx
DlgImageToMed.hxx
+ WidgetPresentationParameters.hxx
)
QT_WRAP_MOC(MEDCALCGUI_dialogs_HEADERS_MOC ${MEDCALCGUI_dialogs_FILES})
//
#include "WidgetPresentationParameters.hxx"
+#include <Basics_Utils.hxx>
WidgetPresentationParameters::WidgetPresentationParameters(QWidget* parent)
: QWidget(parent)
else if (viewMode == tr("LAB_VIEW_MODE_SPLIT_VIEW")) {
return MEDCALC::VIEW_MODE_SPLIT_VIEW;
}
+ // Should not happen
+ STDLOG("Strange!! No matching view mode found - returning VIEW_MODE_REPLACE.");
+ return MEDCALC::VIEW_MODE_REPLACE;
}
std::string
else if (colorMap == tr("LAB_COOL_TO_WARM")) {
return MEDCALC::COLOR_MAP_COOL_TO_WARM;
}
+ // Should not happen
+ STDLOG("Strange!! No matching color map found - returning blue to red.");
+ return MEDCALC::COLOR_MAP_BLUE_TO_RED_RAINBOW;
}
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(MEDPresentationManager)
+#include <QObject>
+
class WidgetPresentationParameters : public QWidget
{
+ Q_OBJECT
public:
WidgetPresentationParameters(QWidget* parent = 0);
+ virtual ~WidgetPresentationParameters() {}
MEDCALC::MEDPresentationViewMode getViewMode();
std::string getField();