8#include "MRCommonPlugins/exports.h"
30 virtual const std::string&
uiName()
const override;
32 virtual void drawDialog(
float menuScaling, ImGuiContext* ctx )
override;
34 virtual bool blocking()
const override {
return false; }
45 virtual const std::string&
getName()
const = 0;
47 virtual void draw(
float menuScaling ) = 0;
61 virtual bool onEnable_()
override;
62 virtual bool onDisable_()
override;
64 void drawTab_(
float menuWidth,
float menuScaling );
66 void drawQuickTab_(
float menuWidth,
float menuScaling );
67 void drawApplicationTab_(
float menuWidth,
float menuScaling );
68 void drawControlTab_(
float menuWidth,
float menuScaling );
69 void drawViewportTab_(
float menuWidth,
float menuScaling );
70 void drawMeasurementUnitsTab_(
float menuScaling );
71 void drawFeaturesTab_(
float menuScaling );
73 void drawThemeSelector_(
float menuScaling );
74 void drawResetDialog_(
bool activated,
float menuScaling );
75 void drawShadingModeCombo_(
bool inGroup,
float menuScaling,
float toolWidth );
76 void drawProjectionModeSelector_(
float menuScaling,
float toolWidth );
77 void drawUpDirectionSelector_();
78 void drawBackgroundButton_(
bool allViewports );
79 void drawRenderOptions_(
float menuScaling );
80 void drawShadowsOptions_(
float menuWidth,
float menuScaling );
81 void drawMouseSceneControlsSettings_(
float menuWidth,
float menuScaling );
82 void drawSpaceMouseSettings_(
float menuWidth,
float menuScaling );
83 void drawTouchpadSettings_(
float menuScaling );
85 void drawGlobalSettings_(
float buttonWidth,
float menuScaling );
86 void drawCustomSettings_(
const std::string& separatorName,
bool needSeparator,
float menuScaling );
87 void drawSeparator_(
const std::string& separatorName,
float menuScaling );
91 void resetSettings_();
94 int storedSamples_{ 0 };
96 bool needReset_{
false };
97 bool gpuOverridesMSAA_{
false };
99 Vector4f backgroundColor_;
101 int selectedUserPreset_{ 0 };
102 std::vector<std::string> userThemesPresets_;
104 std::unique_ptr<ShadowsGL> shadowGl_;
106 SpaceMouseParameters spaceMouseParams_;
107#if defined(_WIN32) || defined(__APPLE__)
108 bool activeMouseScrollZoom_{
false };
111 TouchpadParameters touchpadParameters_;
113 TabType activeTab_ = TabType::Quick;
115 std::array<std::vector<std::shared_ptr<ExternalSettings>>, size_t(TabType::Count)> comboSettings_;
Definition MRViewerFwd.h:59
Definition MRViewerSettingsPlugin.h:41
virtual const std::string & getName() const =0
virtual void reset()
Definition MRViewerSettingsPlugin.h:49
virtual void draw(float menuScaling)=0
virtual ~ExternalSettings()
Definition MRViewerSettingsPlugin.h:43
virtual const char * separatorName() const
Definition MRViewerSettingsPlugin.h:51
Definition MRViewerSettingsPlugin.h:14
MRVIEWER_API void delComboSettings(const TabType tab, const ExternalSettings *settings)
delete external settings with UI combo box
virtual void drawDialog(float menuScaling, ImGuiContext *ctx) override
virtual bool blocking() const override
Definition MRViewerSettingsPlugin.h:34
MRVIEWER_API void addComboSettings(const TabType tab, std::shared_ptr< ExternalSettings > settings)
add external settings with UI combo box
MRVIEWER_API void updateThemes()
virtual const std::string & uiName() const override
TabType
Definition MRViewerSettingsPlugin.h:18
Definition MRViewport.h:49
Definition MRCameraOrientationPlugin.h:7