mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Customizable object colors.
This commit is contained in:
parent
94a5a5dc52
commit
a5207573bf
14 changed files with 610 additions and 319 deletions
|
@ -537,12 +537,16 @@ void lcCamera::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
Context->SetVertexFormatPosition(3);
|
Context->SetVertexFormatPosition(3);
|
||||||
Context->SetIndexBufferPointer(Indices);
|
Context->SetIndexBufferPointer(Indices);
|
||||||
|
|
||||||
const float LineWidth = lcGetPreferences().mLineWidth;
|
const lcPreferences& Preferences = lcGetPreferences();
|
||||||
|
const float LineWidth = Preferences.mLineWidth;
|
||||||
|
const lcVector4 SelectedColor = lcVector4FromColor(Preferences.mObjectSelectedColor);
|
||||||
|
const lcVector4 FocusedColor = lcVector4FromColor(Preferences.mObjectFocusedColor);
|
||||||
|
const lcVector4 CameraColor = lcVector4FromColor(Preferences.mCameraColor);
|
||||||
|
|
||||||
if (!IsSelected())
|
if (!IsSelected())
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Camera);
|
Context->SetColor(CameraColor);
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 40 + 24 + 24 + 4, GL_UNSIGNED_SHORT, 0);
|
Context->DrawIndexedPrimitives(GL_LINES, 40 + 24 + 24 + 4, GL_UNSIGNED_SHORT, 0);
|
||||||
}
|
}
|
||||||
|
@ -552,14 +556,14 @@ void lcCamera::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(2.0f * LineWidth);
|
Context->SetLineWidth(2.0f * LineWidth);
|
||||||
if (IsFocused(LC_CAMERA_SECTION_POSITION))
|
if (IsFocused(LC_CAMERA_SECTION_POSITION))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
Context->SetColor(FocusedColor);
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
Context->SetColor(SelectedColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Camera);
|
Context->SetColor(CameraColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 40, GL_UNSIGNED_SHORT, 0);
|
Context->DrawIndexedPrimitives(GL_LINES, 40, GL_UNSIGNED_SHORT, 0);
|
||||||
|
@ -568,14 +572,14 @@ void lcCamera::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(2.0f * LineWidth);
|
Context->SetLineWidth(2.0f * LineWidth);
|
||||||
if (IsFocused(LC_CAMERA_SECTION_TARGET))
|
if (IsFocused(LC_CAMERA_SECTION_TARGET))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
Context->SetColor(FocusedColor);
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
Context->SetColor(SelectedColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Camera);
|
Context->SetColor(CameraColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 24, GL_UNSIGNED_SHORT, 40 * 2);
|
Context->DrawIndexedPrimitives(GL_LINES, 24, GL_UNSIGNED_SHORT, 40 * 2);
|
||||||
|
@ -584,19 +588,19 @@ void lcCamera::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(2.0f * LineWidth);
|
Context->SetLineWidth(2.0f * LineWidth);
|
||||||
if (IsFocused(LC_CAMERA_SECTION_UPVECTOR))
|
if (IsFocused(LC_CAMERA_SECTION_UPVECTOR))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
Context->SetColor(FocusedColor);
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
Context->SetColor(SelectedColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Camera);
|
Context->SetColor(CameraColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 24, GL_UNSIGNED_SHORT, (40 + 24) * 2);
|
Context->DrawIndexedPrimitives(GL_LINES, 24, GL_UNSIGNED_SHORT, (40 + 24) * 2);
|
||||||
|
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Camera);
|
Context->SetColor(CameraColor);
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
|
|
||||||
float SizeY = tanf(LC_DTOR * m_fovy / 2) * Length;
|
float SizeY = tanf(LC_DTOR * m_fovy / 2) * Length;
|
||||||
|
|
|
@ -71,6 +71,12 @@ void lcPreferences::LoadDefaults()
|
||||||
mPartEdgeContrast = lcGetProfileFloat(LC_PROFILE_PART_EDGE_CONTRAST);
|
mPartEdgeContrast = lcGetProfileFloat(LC_PROFILE_PART_EDGE_CONTRAST);
|
||||||
mPartColorValueLDIndex = lcGetProfileFloat(LC_PROFILE_PART_COLOR_VALUE_LD_INDEX);
|
mPartColorValueLDIndex = lcGetProfileFloat(LC_PROFILE_PART_COLOR_VALUE_LD_INDEX);
|
||||||
mAutomateEdgeColor = lcGetProfileInt(LC_PROFILE_AUTOMATE_EDGE_COLOR);
|
mAutomateEdgeColor = lcGetProfileInt(LC_PROFILE_AUTOMATE_EDGE_COLOR);
|
||||||
|
mObjectSelectedColor = lcGetProfileUInt(LC_PROFILE_OBJECT_SELECTED_COLOR);
|
||||||
|
mObjectFocusedColor = lcGetProfileUInt(LC_PROFILE_OBJECT_FOCUSED_COLOR);
|
||||||
|
mCameraColor = lcGetProfileUInt(LC_PROFILE_CAMERA_COLOR);
|
||||||
|
mLightColor = lcGetProfileUInt(LC_PROFILE_LIGHT_COLOR);
|
||||||
|
mControlPointColor = lcGetProfileUInt(LC_PROFILE_CONTROL_POINT_COLOR);
|
||||||
|
mControlPointFocusedColor = lcGetProfileUInt(LC_PROFILE_CONTROL_POINT_FOCUSED_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcPreferences::SaveDefaults()
|
void lcPreferences::SaveDefaults()
|
||||||
|
@ -125,6 +131,12 @@ void lcPreferences::SaveDefaults()
|
||||||
lcSetProfileFloat(LC_PROFILE_PART_EDGE_CONTRAST, mPartEdgeContrast);
|
lcSetProfileFloat(LC_PROFILE_PART_EDGE_CONTRAST, mPartEdgeContrast);
|
||||||
lcSetProfileFloat(LC_PROFILE_PART_COLOR_VALUE_LD_INDEX, mPartColorValueLDIndex);
|
lcSetProfileFloat(LC_PROFILE_PART_COLOR_VALUE_LD_INDEX, mPartColorValueLDIndex);
|
||||||
lcSetProfileInt(LC_PROFILE_AUTOMATE_EDGE_COLOR, mAutomateEdgeColor);
|
lcSetProfileInt(LC_PROFILE_AUTOMATE_EDGE_COLOR, mAutomateEdgeColor);
|
||||||
|
lcSetProfileUInt(LC_PROFILE_OBJECT_SELECTED_COLOR, mObjectSelectedColor);
|
||||||
|
lcSetProfileUInt(LC_PROFILE_OBJECT_FOCUSED_COLOR, mObjectFocusedColor);
|
||||||
|
lcSetProfileUInt(LC_PROFILE_CAMERA_COLOR, mCameraColor);
|
||||||
|
lcSetProfileUInt(LC_PROFILE_LIGHT_COLOR, mLightColor);
|
||||||
|
lcSetProfileUInt(LC_PROFILE_CONTROL_POINT_COLOR, mControlPointColor);
|
||||||
|
lcSetProfileUInt(LC_PROFILE_CONTROL_POINT_FOCUSED_COLOR, mControlPointFocusedColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcPreferences::SetInterfaceColors(lcColorTheme ColorTheme)
|
void lcPreferences::SetInterfaceColors(lcColorTheme ColorTheme)
|
||||||
|
|
|
@ -77,6 +77,13 @@ public:
|
||||||
bool mAutoLoadMostRecent;
|
bool mAutoLoadMostRecent;
|
||||||
bool mRestoreTabLayout;
|
bool mRestoreTabLayout;
|
||||||
lcColorTheme mColorTheme;
|
lcColorTheme mColorTheme;
|
||||||
|
quint32 mObjectSelectedColor;
|
||||||
|
quint32 mObjectFocusedColor;
|
||||||
|
quint32 mCameraColor;
|
||||||
|
quint32 mLightColor;
|
||||||
|
quint32 mControlPointColor;
|
||||||
|
quint32 mControlPointFocusedColor;
|
||||||
|
|
||||||
|
|
||||||
int mPreviewViewSphereEnabled;
|
int mPreviewViewSphereEnabled;
|
||||||
int mPreviewViewSphereSize;
|
int mPreviewViewSphereSize;
|
||||||
|
|
|
@ -10,18 +10,6 @@ lcColorGroup gColorGroups[LC_NUM_COLORGROUPS];
|
||||||
int gEdgeColor;
|
int gEdgeColor;
|
||||||
int gDefaultColor;
|
int gDefaultColor;
|
||||||
|
|
||||||
lcVector4 gInterfaceColors[] = // todo: make the colors configurable and include the grid and other hardcoded colors here as well.
|
|
||||||
{
|
|
||||||
lcVector4(0.898f, 0.298f, 0.400f, 1.000f), // lcInterfaceColor::Selected
|
|
||||||
lcVector4(0.400f, 0.298f, 0.898f, 1.000f), // lcInterfaceColor::Focused
|
|
||||||
lcVector4(0.500f, 0.800f, 0.500f, 1.000f), // lcInterfaceColor::Camera
|
|
||||||
lcVector4(0.500f, 0.800f, 0.500f, 1.000f), // lcInterfaceColor::Light
|
|
||||||
lcVector4(0.500f, 0.800f, 0.500f, 0.500f), // lcInterfaceColor::ControlPoint
|
|
||||||
lcVector4(0.400f, 0.298f, 0.898f, 0.500f), // lcInterfaceColor::ControlPointFocused
|
|
||||||
};
|
|
||||||
|
|
||||||
LC_ARRAY_SIZE_CHECK(gInterfaceColors, lcInterfaceColor::Count);
|
|
||||||
|
|
||||||
static void GetToken(char*& Ptr, char* Token)
|
static void GetToken(char*& Ptr, char* Token)
|
||||||
{
|
{
|
||||||
while (*Ptr && *Ptr <= 32)
|
while (*Ptr && *Ptr <= 32)
|
||||||
|
|
|
@ -33,18 +33,6 @@ struct lcColorGroup
|
||||||
QString Name;
|
QString Name;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class lcInterfaceColor
|
|
||||||
{
|
|
||||||
Selected,
|
|
||||||
Focused,
|
|
||||||
Camera,
|
|
||||||
Light,
|
|
||||||
ControlPoint,
|
|
||||||
ControlPointFocused,
|
|
||||||
Count
|
|
||||||
};
|
|
||||||
|
|
||||||
extern lcVector4 gInterfaceColors[static_cast<int>(lcInterfaceColor::Count)];
|
|
||||||
extern std::vector<lcColor> gColorList;
|
extern std::vector<lcColor> gColorList;
|
||||||
extern lcColorGroup gColorGroups[LC_NUM_COLORGROUPS];
|
extern lcColorGroup gColorGroups[LC_NUM_COLORGROUPS];
|
||||||
extern int gEdgeColor;
|
extern int gEdgeColor;
|
||||||
|
|
|
@ -847,9 +847,9 @@ void lcContext::SetColorIndex(int ColorIndex)
|
||||||
SetColor(gColorList[ColorIndex].Value);
|
SetColor(gColorList[ColorIndex].Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcContext::SetColorIndexTinted(int ColorIndex, lcInterfaceColor InterfaceColor, float Weight)
|
void lcContext::SetColorIndexTinted(int ColorIndex, const lcVector4& Tint, float Weight)
|
||||||
{
|
{
|
||||||
const lcVector3 Color(gColorList[ColorIndex].Value * Weight + gInterfaceColors[static_cast<int>(InterfaceColor)] * (1.0f - Weight));
|
const lcVector3 Color(gColorList[ColorIndex].Value * Weight + Tint * (1.0f - Weight));
|
||||||
SetColor(lcVector4(Color, gColorList[ColorIndex].Value.w));
|
SetColor(lcVector4(Color, gColorList[ColorIndex].Value.w));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -868,11 +868,6 @@ void lcContext::SetEdgeColorIndexTinted(int ColorIndex, const lcVector4& Tint)
|
||||||
SetColor(gColorList[ColorIndex].Edge * Tint);
|
SetColor(gColorList[ColorIndex].Edge * Tint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcContext::SetInterfaceColor(lcInterfaceColor InterfaceColor)
|
|
||||||
{
|
|
||||||
SetColor(gInterfaceColors[static_cast<int>(InterfaceColor)]);
|
|
||||||
}
|
|
||||||
|
|
||||||
lcVertexBuffer lcContext::CreateVertexBuffer(int Size, const void* Data)
|
lcVertexBuffer lcContext::CreateVertexBuffer(int Size, const void* Data)
|
||||||
{
|
{
|
||||||
lcVertexBuffer VertexBuffer;
|
lcVertexBuffer VertexBuffer;
|
||||||
|
|
|
@ -194,11 +194,10 @@ public:
|
||||||
|
|
||||||
void SetColor(float Red, float Green, float Blue, float Alpha);
|
void SetColor(float Red, float Green, float Blue, float Alpha);
|
||||||
void SetColorIndex(int ColorIndex);
|
void SetColorIndex(int ColorIndex);
|
||||||
void SetColorIndexTinted(int ColorIndex, lcInterfaceColor InterfaceColor, float Weight);
|
void SetColorIndexTinted(int ColorIndex, const lcVector4& Tint, float Weight);
|
||||||
void SetColorIndexTinted(int ColorIndex, const lcVector4& Tint);
|
void SetColorIndexTinted(int ColorIndex, const lcVector4& Tint);
|
||||||
void SetEdgeColorIndex(int ColorIndex);
|
void SetEdgeColorIndex(int ColorIndex);
|
||||||
void SetEdgeColorIndexTinted(int ColorIndex, const lcVector4& Tint);
|
void SetEdgeColorIndexTinted(int ColorIndex, const lcVector4& Tint);
|
||||||
void SetInterfaceColor(lcInterfaceColor InterfaceColor);
|
|
||||||
|
|
||||||
lcVertexBuffer CreateVertexBuffer(int Size, const void* Data);
|
lcVertexBuffer CreateVertexBuffer(int Size, const void* Data);
|
||||||
void DestroyVertexBuffer(lcVertexBuffer& VertexBuffer);
|
void DestroyVertexBuffer(lcVertexBuffer& VertexBuffer);
|
||||||
|
|
|
@ -14,12 +14,12 @@ lcProfileEntry::lcProfileEntry(const char* Section, const char* Key, int Default
|
||||||
mDefault.IntValue = DefaultValue;
|
mDefault.IntValue = DefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcProfileEntry::lcProfileEntry(const char* Section, const char* Key, unsigned int DefaultValue)
|
lcProfileEntry::lcProfileEntry(const char* Section, const char* Key, uint DefaultValue)
|
||||||
{
|
{
|
||||||
mType = LC_PROFILE_ENTRY_INT;
|
mType = LC_PROFILE_ENTRY_INT;
|
||||||
mSection = Section;
|
mSection = Section;
|
||||||
mKey = Key;
|
mKey = Key;
|
||||||
mDefault.IntValue = DefaultValue;
|
mDefault.UIntValue = DefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcProfileEntry::lcProfileEntry(const char* Section, const char* Key, float DefaultValue)
|
lcProfileEntry::lcProfileEntry(const char* Section, const char* Key, float DefaultValue)
|
||||||
|
@ -56,43 +56,49 @@ lcProfileEntry::lcProfileEntry(const char* Section, const char* Key)
|
||||||
|
|
||||||
static lcProfileEntry gProfileEntries[LC_NUM_PROFILE_KEYS] =
|
static lcProfileEntry gProfileEntries[LC_NUM_PROFILE_KEYS] =
|
||||||
{
|
{
|
||||||
lcProfileEntry("Settings", "FixedAxes", false), // LC_PROFILE_FIXED_AXES
|
lcProfileEntry("Settings", "FixedAxes", false), // LC_PROFILE_FIXED_AXES
|
||||||
lcProfileEntry("Settings", "LineWidth", 1.0f), // LC_PROFILE_LINE_WIDTH
|
lcProfileEntry("Settings", "LineWidth", 1.0f), // LC_PROFILE_LINE_WIDTH
|
||||||
lcProfileEntry("Settings", "AllowLOD", true), // LC_PROFILE_ALLOW_LOD
|
lcProfileEntry("Settings", "AllowLOD", true), // LC_PROFILE_ALLOW_LOD
|
||||||
lcProfileEntry("Settings", "LODDistance", 750.0f), // LC_PROFILE_LOD_DISTANCE
|
lcProfileEntry("Settings", "LODDistance", 750.0f), // LC_PROFILE_LOD_DISTANCE
|
||||||
lcProfileEntry("Settings", "FadeSteps", false), // LC_PROFILE_FADE_STEPS
|
lcProfileEntry("Settings", "FadeSteps", false), // LC_PROFILE_FADE_STEPS
|
||||||
lcProfileEntry("Settings", "FadeStepsColor", LC_RGBA(128, 128, 128, 128)), // LC_PROFILE_FADE_STEPS_COLOR
|
lcProfileEntry("Settings", "FadeStepsColor", LC_RGBA(128, 128, 128, 128)), // LC_PROFILE_FADE_STEPS_COLOR
|
||||||
lcProfileEntry("Settings", "HighlightNewParts", 0), // LC_PROFILE_HIGHLIGHT_NEW_PARTS
|
lcProfileEntry("Settings", "HighlightNewParts", 0), // LC_PROFILE_HIGHLIGHT_NEW_PARTS
|
||||||
lcProfileEntry("Settings", "HighlightNewPartsColor", LC_RGBA(255, 242, 0, 192)), // LC_PROFILE_HIGHLIGHT_NEW_PARTS_COLOR
|
lcProfileEntry("Settings", "HighlightNewPartsColor", LC_RGBA(255, 242, 0, 192)), // LC_PROFILE_HIGHLIGHT_NEW_PARTS_COLOR
|
||||||
lcProfileEntry("Settings", "ShadingMode", static_cast<int>(lcShadingMode::DefaultLights)), // LC_PROFILE_SHADING_MODE
|
lcProfileEntry("Settings", "ShadingMode", static_cast<int>(lcShadingMode::DefaultLights)), // LC_PROFILE_SHADING_MODE
|
||||||
lcProfileEntry("Settings", "BackgroundGradient", false), // LC_PROFILE_BACKGROUND_GRADIENT
|
lcProfileEntry("Settings", "BackgroundGradient", false), // LC_PROFILE_BACKGROUND_GRADIENT
|
||||||
lcProfileEntry("Settings", "BackgroundColor", LC_RGB(49, 52, 55)), // LC_PROFILE_BACKGROUND_COLOR
|
lcProfileEntry("Settings", "BackgroundColor", LC_RGB(49, 52, 55)), // LC_PROFILE_BACKGROUND_COLOR
|
||||||
lcProfileEntry("Settings", "GradientColorTop", LC_RGB(54, 72, 95)), // LC_PROFILE_GRADIENT_COLOR_TOP
|
lcProfileEntry("Settings", "GradientColorTop", LC_RGB(54, 72, 95)), // LC_PROFILE_GRADIENT_COLOR_TOP
|
||||||
lcProfileEntry("Settings", "GradientColorBottom", LC_RGB(49, 52, 55)), // LC_PROFILE_GRADIENT_COLOR_BOTTOM
|
lcProfileEntry("Settings", "GradientColorBottom", LC_RGB(49, 52, 55)), // LC_PROFILE_GRADIENT_COLOR_BOTTOM
|
||||||
lcProfileEntry("Settings", "DrawAxes", 0), // LC_PROFILE_DRAW_AXES
|
lcProfileEntry("Settings", "DrawAxes", 0), // LC_PROFILE_DRAW_AXES
|
||||||
lcProfileEntry("Settings", "DrawAxesLocation", static_cast<int>(lcAxisIconLocation::BottomLeft)), // LC_PROFILE_DRAW_AXES_LOCATION
|
lcProfileEntry("Settings", "DrawAxesLocation", static_cast<int>(lcAxisIconLocation::BottomLeft)), // LC_PROFILE_DRAW_AXES_LOCATION
|
||||||
lcProfileEntry("Settings", "AxesColor", LC_RGBA(0, 0, 0, 255)), // LC_PROFILE_AXES_COLOR
|
lcProfileEntry("Settings", "AxesColor", LC_RGBA(0, 0, 0, 255)), // LC_PROFILE_AXES_COLOR
|
||||||
lcProfileEntry("Settings", "TextColor", LC_RGBA(0, 0, 0, 255)), // LC_PROFILE_TEXT_COLOR
|
lcProfileEntry("Settings", "TextColor", LC_RGBA(0, 0, 0, 255)), // LC_PROFILE_TEXT_COLOR
|
||||||
lcProfileEntry("Settings", "MarqueeBorderColor", LC_RGBA(64, 64, 255, 255)), // LC_PROFILE_MARQUEE_BORDER_COLOR
|
lcProfileEntry("Settings", "MarqueeBorderColor", LC_RGBA(64, 64, 255, 255)), // LC_PROFILE_MARQUEE_BORDER_COLOR
|
||||||
lcProfileEntry("Settings", "MarqueeFillColor", LC_RGBA(64, 64, 255, 64)), // LC_PROFILE_MARQUEE_FILL_COLOR
|
lcProfileEntry("Settings", "MarqueeFillColor", LC_RGBA(64, 64, 255, 64)), // LC_PROFILE_MARQUEE_FILL_COLOR
|
||||||
lcProfileEntry("Settings", "OverlayColor", LC_RGBA(0, 0, 0, 255)), // LC_PROFILE_OVERLAY_COLOR
|
lcProfileEntry("Settings", "OverlayColor", LC_RGBA(0, 0, 0, 255)), // LC_PROFILE_OVERLAY_COLOR
|
||||||
lcProfileEntry("Settings", "ActiveViewColor", LC_RGBA(41, 128, 185, 255)), // LC_PROFILE_ACTIVE_VIEW_COLOR
|
lcProfileEntry("Settings", "ActiveViewColor", LC_RGBA(41, 128, 185, 255)), // LC_PROFILE_ACTIVE_VIEW_COLOR
|
||||||
lcProfileEntry("Settings", "InactiveViewColor", LC_RGBA(69, 69, 69, 255)), // LC_PROFILE_INACTIVE_VIEW_COLOR
|
lcProfileEntry("Settings", "InactiveViewColor", LC_RGBA(69, 69, 69, 255)), // LC_PROFILE_INACTIVE_VIEW_COLOR
|
||||||
lcProfileEntry("Settings", "DrawEdgeLines", 1), // LC_PROFILE_DRAW_EDGE_LINES
|
lcProfileEntry("Settings", "DrawEdgeLines", 1), // LC_PROFILE_DRAW_EDGE_LINES
|
||||||
lcProfileEntry("Settings", "DrawConditionalLines", 1), // LC_PROFILE_DRAW_CONDITIONAL_LINES
|
lcProfileEntry("Settings", "DrawConditionalLines", 1), // LC_PROFILE_DRAW_CONDITIONAL_LINES
|
||||||
lcProfileEntry("Settings", "GridStuds", 1), // LC_PROFILE_GRID_STUDS
|
lcProfileEntry("Settings", "GridStuds", 1), // LC_PROFILE_GRID_STUDS
|
||||||
lcProfileEntry("Settings", "GridStudColor", LC_RGBA(24, 24, 24, 192)), // LC_PROFILE_GRID_STUD_COLOR
|
lcProfileEntry("Settings", "GridStudColor", LC_RGBA(24, 24, 24, 192)), // LC_PROFILE_GRID_STUD_COLOR
|
||||||
lcProfileEntry("Settings", "GridLines", 1), // LC_PROFILE_GRID_LINES
|
lcProfileEntry("Settings", "GridLines", 1), // LC_PROFILE_GRID_LINES
|
||||||
lcProfileEntry("Settings", "GridLineSpacing", 5), // LC_PROFILE_GRID_LINE_SPACING
|
lcProfileEntry("Settings", "GridLineSpacing", 5), // LC_PROFILE_GRID_LINE_SPACING
|
||||||
lcProfileEntry("Settings", "GridLineColor", LC_RGBA(24, 24, 24, 255)), // LC_PROFILE_GRID_LINE_COLOR
|
lcProfileEntry("Settings", "GridLineColor", LC_RGBA(24, 24, 24, 255)), // LC_PROFILE_GRID_LINE_COLOR
|
||||||
lcProfileEntry("Settings", "GridOrigin", 0), // LC_PROFILE_GRID_ORIGIN
|
lcProfileEntry("Settings", "GridOrigin", 0), // LC_PROFILE_GRID_ORIGIN
|
||||||
lcProfileEntry("Settings", "AASamples", 1), // LC_PROFILE_ANTIALIASING_SAMPLES
|
lcProfileEntry("Settings", "AASamples", 1), // LC_PROFILE_ANTIALIASING_SAMPLES
|
||||||
lcProfileEntry("Settings", "ViewSphereEnabled", 1), // LC_PROFILE_VIEW_SPHERE_ENABLED
|
lcProfileEntry("Settings", "ViewSphereEnabled", 1), // LC_PROFILE_VIEW_SPHERE_ENABLED
|
||||||
lcProfileEntry("Settings", "ViewSphereLocation", (int)lcViewSphereLocation::TopRight), // LC_PROFILE_VIEW_SPHERE_LOCATION
|
lcProfileEntry("Settings", "ViewSphereLocation", (int)lcViewSphereLocation::TopRight), // LC_PROFILE_VIEW_SPHERE_LOCATION
|
||||||
lcProfileEntry("Settings", "ViewSphereSize", 100), // LC_PROFILE_VIEW_SPHERE_SIZE
|
lcProfileEntry("Settings", "ViewSphereSize", 100), // LC_PROFILE_VIEW_SPHERE_SIZE
|
||||||
lcProfileEntry("Settings", "ViewSphereColor", LC_RGBA(35, 38, 41, 255)), // LC_PROFILE_VIEW_SPHERE_COLOR
|
lcProfileEntry("Settings", "ViewSphereColor", LC_RGBA(35, 38, 41, 255)), // LC_PROFILE_VIEW_SPHERE_COLOR
|
||||||
lcProfileEntry("Settings", "ViewSphereTextColor", LC_RGBA(224, 224, 224, 255)), // LC_PROFILE_VIEW_SPHERE_TEXT_COLOR
|
lcProfileEntry("Settings", "ViewSphereTextColor", LC_RGBA(224, 224, 224, 255)), // LC_PROFILE_VIEW_SPHERE_TEXT_COLOR
|
||||||
lcProfileEntry("Settings", "ViewSphereHighlightColor", LC_RGBA(41, 128, 185, 255)), // LC_PROFILE_VIEW_SPHERE_HIGHLIGHT_COLOR
|
lcProfileEntry("Settings", "ViewSphereHighlightColor", LC_RGBA(41, 128, 185, 255)), // LC_PROFILE_VIEW_SPHERE_HIGHLIGHT_COLOR
|
||||||
|
lcProfileEntry("Settings", "ObjectSelectedColor", static_cast<uint>(LC_RGBA(229, 76, 102, 255))), // LC_PROFILE_OBJECT_SELECTED_COLOR
|
||||||
|
lcProfileEntry("Settings", "ObjectFocusedColor", static_cast<uint>(LC_RGBA(102, 76, 229, 255))), // LC_PROFILE_OBJECT_FOCUSED_COLOR
|
||||||
|
lcProfileEntry("Settings", "CameraColor", static_cast<uint>(LC_RGBA(128, 204, 128, 255))), // LC_PROFILE_CAMERA_COLOR
|
||||||
|
lcProfileEntry("Settings", "LightColor", static_cast<uint>(LC_RGBA(128, 204, 128, 255))), // LC_PROFILE_LIGHT_COLOR
|
||||||
|
lcProfileEntry("Settings", "ControlPointColor", static_cast<uint>(LC_RGBA(128, 204, 128, 128))), // LC_PROFILE_CONTROL_POINT_COLOR
|
||||||
|
lcProfileEntry("Settings", "ControlPointFocusedColor", static_cast<uint>(LC_RGBA(102, 76, 229, 128))), // LC_PROFILE_CONTROL_POINT_FOCUSED_COLOR
|
||||||
|
|
||||||
lcProfileEntry("Settings", "Language", ""), // LC_PROFILE_LANGUAGE
|
lcProfileEntry("Settings", "Language", ""), // LC_PROFILE_LANGUAGE
|
||||||
lcProfileEntry("Settings", "ColorTheme", static_cast<int>(lcColorTheme::Dark)), // LC_PROFILE_COLOR_THEME
|
lcProfileEntry("Settings", "ColorTheme", static_cast<int>(lcColorTheme::Dark)), // LC_PROFILE_COLOR_THEME
|
||||||
|
@ -159,21 +165,6 @@ void lcRemoveProfileKey(LC_PROFILE_KEY Key)
|
||||||
Settings.remove(QString("%1/%2").arg(Entry.mSection, Entry.mKey));
|
Settings.remove(QString("%1/%2").arg(Entry.mSection, Entry.mKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
int lcGetDefaultProfileInt(LC_PROFILE_KEY Key)
|
|
||||||
{
|
|
||||||
return gProfileEntries[Key].mDefault.IntValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
float lcGetDefaultProfileFloat(LC_PROFILE_KEY Key)
|
|
||||||
{
|
|
||||||
return gProfileEntries[Key].mDefault.FloatValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
QString lcGetDefaultProfileString(LC_PROFILE_KEY Key)
|
|
||||||
{
|
|
||||||
return QString::fromLatin1(gProfileEntries[Key].mDefault.StringValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
int lcGetProfileInt(LC_PROFILE_KEY Key)
|
int lcGetProfileInt(LC_PROFILE_KEY Key)
|
||||||
{
|
{
|
||||||
lcProfileEntry& Entry = gProfileEntries[Key];
|
lcProfileEntry& Entry = gProfileEntries[Key];
|
||||||
|
@ -182,6 +173,14 @@ int lcGetProfileInt(LC_PROFILE_KEY Key)
|
||||||
return Settings.value(QString("%1/%2").arg(Entry.mSection, Entry.mKey), Entry.mDefault.IntValue).toInt();
|
return Settings.value(QString("%1/%2").arg(Entry.mSection, Entry.mKey), Entry.mDefault.IntValue).toInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint lcGetProfileUInt(LC_PROFILE_KEY Key)
|
||||||
|
{
|
||||||
|
lcProfileEntry& Entry = gProfileEntries[Key];
|
||||||
|
QSettings Settings;
|
||||||
|
|
||||||
|
return Settings.value(QString("%1/%2").arg(Entry.mSection, Entry.mKey), Entry.mDefault.UIntValue).toUInt();
|
||||||
|
}
|
||||||
|
|
||||||
float lcGetProfileFloat(LC_PROFILE_KEY Key)
|
float lcGetProfileFloat(LC_PROFILE_KEY Key)
|
||||||
{
|
{
|
||||||
lcProfileEntry& Entry = gProfileEntries[Key];
|
lcProfileEntry& Entry = gProfileEntries[Key];
|
||||||
|
@ -222,6 +221,14 @@ void lcSetProfileInt(LC_PROFILE_KEY Key, int Value)
|
||||||
Settings.setValue(QString("%1/%2").arg(Entry.mSection, Entry.mKey), Value);
|
Settings.setValue(QString("%1/%2").arg(Entry.mSection, Entry.mKey), Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lcSetProfileUInt(LC_PROFILE_KEY Key, uint Value)
|
||||||
|
{
|
||||||
|
lcProfileEntry& Entry = gProfileEntries[Key];
|
||||||
|
QSettings Settings;
|
||||||
|
|
||||||
|
Settings.setValue(QString("%1/%2").arg(Entry.mSection, Entry.mKey), Value);
|
||||||
|
}
|
||||||
|
|
||||||
void lcSetProfileFloat(LC_PROFILE_KEY Key, float Value)
|
void lcSetProfileFloat(LC_PROFILE_KEY Key, float Value)
|
||||||
{
|
{
|
||||||
lcProfileEntry& Entry = gProfileEntries[Key];
|
lcProfileEntry& Entry = gProfileEntries[Key];
|
||||||
|
|
|
@ -40,6 +40,12 @@ enum LC_PROFILE_KEY
|
||||||
LC_PROFILE_VIEW_SPHERE_COLOR,
|
LC_PROFILE_VIEW_SPHERE_COLOR,
|
||||||
LC_PROFILE_VIEW_SPHERE_TEXT_COLOR,
|
LC_PROFILE_VIEW_SPHERE_TEXT_COLOR,
|
||||||
LC_PROFILE_VIEW_SPHERE_HIGHLIGHT_COLOR,
|
LC_PROFILE_VIEW_SPHERE_HIGHLIGHT_COLOR,
|
||||||
|
LC_PROFILE_OBJECT_SELECTED_COLOR,
|
||||||
|
LC_PROFILE_OBJECT_FOCUSED_COLOR,
|
||||||
|
LC_PROFILE_CAMERA_COLOR,
|
||||||
|
LC_PROFILE_LIGHT_COLOR,
|
||||||
|
LC_PROFILE_CONTROL_POINT_COLOR,
|
||||||
|
LC_PROFILE_CONTROL_POINT_FOCUSED_COLOR,
|
||||||
|
|
||||||
LC_PROFILE_LANGUAGE,
|
LC_PROFILE_LANGUAGE,
|
||||||
LC_PROFILE_COLOR_THEME,
|
LC_PROFILE_COLOR_THEME,
|
||||||
|
@ -114,7 +120,7 @@ class lcProfileEntry
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
lcProfileEntry(const char* Section, const char* Key, int DefaultValue);
|
lcProfileEntry(const char* Section, const char* Key, int DefaultValue);
|
||||||
lcProfileEntry(const char* Section, const char* Key, unsigned int DefaultValue);
|
lcProfileEntry(const char* Section, const char* Key, uint DefaultValue);
|
||||||
lcProfileEntry(const char* Section, const char* Key, float DefaultValue);
|
lcProfileEntry(const char* Section, const char* Key, float DefaultValue);
|
||||||
lcProfileEntry(const char* Section, const char* Key, const char* DefaultValue);
|
lcProfileEntry(const char* Section, const char* Key, const char* DefaultValue);
|
||||||
lcProfileEntry(const char* Section, const char* Key, const QStringList& StringList);
|
lcProfileEntry(const char* Section, const char* Key, const QStringList& StringList);
|
||||||
|
@ -128,6 +134,7 @@ public:
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
int IntValue;
|
int IntValue;
|
||||||
|
uint UIntValue;
|
||||||
float FloatValue;
|
float FloatValue;
|
||||||
const char* StringValue;
|
const char* StringValue;
|
||||||
} mDefault;
|
} mDefault;
|
||||||
|
@ -135,17 +142,15 @@ public:
|
||||||
|
|
||||||
void lcRemoveProfileKey(LC_PROFILE_KEY Key);
|
void lcRemoveProfileKey(LC_PROFILE_KEY Key);
|
||||||
|
|
||||||
int lcGetDefaultProfileInt(LC_PROFILE_KEY Key);
|
|
||||||
float lcGetDefaultProfileFloat(LC_PROFILE_KEY Key);
|
|
||||||
QString lcGetDefaultProfileString(LC_PROFILE_KEY Key);
|
|
||||||
|
|
||||||
int lcGetProfileInt(LC_PROFILE_KEY Key);
|
int lcGetProfileInt(LC_PROFILE_KEY Key);
|
||||||
|
uint lcGetProfileUInt(LC_PROFILE_KEY Key);
|
||||||
float lcGetProfileFloat(LC_PROFILE_KEY Key);
|
float lcGetProfileFloat(LC_PROFILE_KEY Key);
|
||||||
QString lcGetProfileString(LC_PROFILE_KEY Key);
|
QString lcGetProfileString(LC_PROFILE_KEY Key);
|
||||||
QStringList lcGetProfileStringList(LC_PROFILE_KEY Key);
|
QStringList lcGetProfileStringList(LC_PROFILE_KEY Key);
|
||||||
QByteArray lcGetProfileBuffer(LC_PROFILE_KEY Key);
|
QByteArray lcGetProfileBuffer(LC_PROFILE_KEY Key);
|
||||||
|
|
||||||
void lcSetProfileInt(LC_PROFILE_KEY Key, int Value);
|
void lcSetProfileInt(LC_PROFILE_KEY Key, int Value);
|
||||||
|
void lcSetProfileUInt(LC_PROFILE_KEY Key, uint Value);
|
||||||
void lcSetProfileFloat(LC_PROFILE_KEY Key, float Value);
|
void lcSetProfileFloat(LC_PROFILE_KEY Key, float Value);
|
||||||
void lcSetProfileString(LC_PROFILE_KEY Key, const QString& Value);
|
void lcSetProfileString(LC_PROFILE_KEY Key, const QString& Value);
|
||||||
void lcSetProfileStringList(LC_PROFILE_KEY Key, const QStringList& Value);
|
void lcSetProfileStringList(LC_PROFILE_KEY Key, const QStringList& Value);
|
||||||
|
|
|
@ -155,6 +155,10 @@ void lcScene::DrawOpaqueMeshes(lcContext* Context, bool DrawLit, int PrimitiveTy
|
||||||
|
|
||||||
Context->SetPolygonOffset(lcPolygonOffset::Opaque);
|
Context->SetPolygonOffset(lcPolygonOffset::Opaque);
|
||||||
|
|
||||||
|
const lcPreferences& Preferences = lcGetPreferences();
|
||||||
|
const lcVector4 FocusedColor = lcVector4FromColor(Preferences.mObjectFocusedColor);
|
||||||
|
const lcVector4 SelectedColor = lcVector4FromColor(Preferences.mObjectSelectedColor);
|
||||||
|
|
||||||
for (const int MeshIndex : mOpaqueMeshes)
|
for (const int MeshIndex : mOpaqueMeshes)
|
||||||
{
|
{
|
||||||
const lcRenderMesh& RenderMesh = mRenderMeshes[MeshIndex];
|
const lcRenderMesh& RenderMesh = mRenderMeshes[MeshIndex];
|
||||||
|
@ -195,11 +199,11 @@ void lcScene::DrawOpaqueMeshes(lcContext* Context, bool DrawLit, int PrimitiveTy
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Selected:
|
case lcRenderMeshState::Selected:
|
||||||
Context->SetColorIndexTinted(ColorIndex, lcInterfaceColor::Selected, 0.5f);
|
Context->SetColorIndexTinted(ColorIndex, SelectedColor, 0.5f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Focused:
|
case lcRenderMeshState::Focused:
|
||||||
Context->SetColorIndexTinted(ColorIndex, lcInterfaceColor::Focused, 0.5f);
|
Context->SetColorIndexTinted(ColorIndex, FocusedColor, 0.5f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Faded:
|
case lcRenderMeshState::Faded:
|
||||||
|
@ -231,11 +235,11 @@ void lcScene::DrawOpaqueMeshes(lcContext* Context, bool DrawLit, int PrimitiveTy
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Selected:
|
case lcRenderMeshState::Selected:
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
Context->SetColor(SelectedColor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Focused:
|
case lcRenderMeshState::Focused:
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
Context->SetColor(FocusedColor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Highlighted:
|
case lcRenderMeshState::Highlighted:
|
||||||
|
@ -332,6 +336,10 @@ void lcScene::DrawTranslucentMeshes(lcContext* Context, bool DrawLit, bool DrawF
|
||||||
|
|
||||||
Context->SetPolygonOffset(lcPolygonOffset::Translucent);
|
Context->SetPolygonOffset(lcPolygonOffset::Translucent);
|
||||||
|
|
||||||
|
const lcPreferences& Preferences = lcGetPreferences();
|
||||||
|
const lcVector4 FocusedColor = lcVector4FromColor(Preferences.mObjectFocusedColor);
|
||||||
|
const lcVector4 SelectedColor = lcVector4FromColor(Preferences.mObjectSelectedColor);
|
||||||
|
|
||||||
for (const lcTranslucentMeshInstance& MeshInstance : mTranslucentMeshes)
|
for (const lcTranslucentMeshInstance& MeshInstance : mTranslucentMeshes)
|
||||||
{
|
{
|
||||||
const lcRenderMesh& RenderMesh = mRenderMeshes[MeshInstance.RenderMeshIndex];
|
const lcRenderMesh& RenderMesh = mRenderMeshes[MeshInstance.RenderMeshIndex];
|
||||||
|
@ -364,11 +372,11 @@ void lcScene::DrawTranslucentMeshes(lcContext* Context, bool DrawLit, bool DrawF
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Selected:
|
case lcRenderMeshState::Selected:
|
||||||
Context->SetColorIndexTinted(ColorIndex, lcInterfaceColor::Selected, 0.5f);
|
Context->SetColorIndexTinted(ColorIndex, SelectedColor, 0.5f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Focused:
|
case lcRenderMeshState::Focused:
|
||||||
Context->SetColorIndexTinted(ColorIndex, lcInterfaceColor::Focused, 0.5f);
|
Context->SetColorIndexTinted(ColorIndex, FocusedColor, 0.5f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case lcRenderMeshState::Faded:
|
case lcRenderMeshState::Faded:
|
||||||
|
|
|
@ -375,12 +375,16 @@ void lcLight::DrawSpotLight(lcContext* Context) const
|
||||||
Context->SetVertexFormatPosition(3);
|
Context->SetVertexFormatPosition(3);
|
||||||
Context->SetIndexBufferPointer(Indices);
|
Context->SetIndexBufferPointer(Indices);
|
||||||
|
|
||||||
const float LineWidth = lcGetPreferences().mLineWidth;
|
const lcPreferences& Preferences = lcGetPreferences();
|
||||||
|
const float LineWidth = Preferences.mLineWidth;
|
||||||
|
const lcVector4 SelectedColor = lcVector4FromColor(Preferences.mObjectSelectedColor);
|
||||||
|
const lcVector4 FocusedColor = lcVector4FromColor(Preferences.mObjectFocusedColor);
|
||||||
|
const lcVector4 LightColor = lcVector4FromColor(Preferences.mLightColor);
|
||||||
|
|
||||||
if (!IsSelected())
|
if (!IsSelected())
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Light);
|
Context->SetColor(LightColor);
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 56 + 24 + 2, GL_UNSIGNED_SHORT, 0);
|
Context->DrawIndexedPrimitives(GL_LINES, 56 + 24 + 2, GL_UNSIGNED_SHORT, 0);
|
||||||
}
|
}
|
||||||
|
@ -390,14 +394,14 @@ void lcLight::DrawSpotLight(lcContext* Context) const
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(2.0f * LineWidth);
|
Context->SetLineWidth(2.0f * LineWidth);
|
||||||
if (IsFocused(LC_LIGHT_SECTION_POSITION))
|
if (IsFocused(LC_LIGHT_SECTION_POSITION))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
Context->SetColor(FocusedColor);
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
Context->SetColor(SelectedColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Light);
|
Context->SetColor(LightColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 56, GL_UNSIGNED_SHORT, 0);
|
Context->DrawIndexedPrimitives(GL_LINES, 56, GL_UNSIGNED_SHORT, 0);
|
||||||
|
@ -406,20 +410,20 @@ void lcLight::DrawSpotLight(lcContext* Context) const
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(2.0f * LineWidth);
|
Context->SetLineWidth(2.0f * LineWidth);
|
||||||
if (IsFocused(LC_LIGHT_SECTION_TARGET))
|
if (IsFocused(LC_LIGHT_SECTION_TARGET))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
Context->SetColor(FocusedColor);
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
Context->SetColor(SelectedColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Light);
|
Context->SetColor(LightColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_LINES, 24, GL_UNSIGNED_SHORT, 56 * 2);
|
Context->DrawIndexedPrimitives(GL_LINES, 24, GL_UNSIGNED_SHORT, 56 * 2);
|
||||||
|
|
||||||
Context->SetLineWidth(LineWidth);
|
Context->SetLineWidth(LineWidth);
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Light);
|
Context->SetColor(LightColor);
|
||||||
|
|
||||||
float Radius = tanf(LC_DTOR * mSpotCutoff) * Length;
|
float Radius = tanf(LC_DTOR * mSpotCutoff) * Length;
|
||||||
|
|
||||||
|
@ -513,12 +517,23 @@ void lcLight::DrawPointLight(lcContext* Context) const
|
||||||
|
|
||||||
Context->SetWorldMatrix(lcMatrix44Translation(mPosition));
|
Context->SetWorldMatrix(lcMatrix44Translation(mPosition));
|
||||||
|
|
||||||
|
const lcPreferences& Preferences = lcGetPreferences();
|
||||||
|
|
||||||
if (IsFocused(LC_LIGHT_SECTION_POSITION))
|
if (IsFocused(LC_LIGHT_SECTION_POSITION))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
{
|
||||||
|
const lcVector4 FocusedColor = lcVector4FromColor(Preferences.mObjectFocusedColor);
|
||||||
|
Context->SetColor(FocusedColor);
|
||||||
|
}
|
||||||
else if (IsSelected(LC_LIGHT_SECTION_POSITION))
|
else if (IsSelected(LC_LIGHT_SECTION_POSITION))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
{
|
||||||
|
const lcVector4 SelectedColor = lcVector4FromColor(Preferences.mObjectSelectedColor);
|
||||||
|
Context->SetColor(SelectedColor);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Light);
|
{
|
||||||
|
const lcVector4 LightColor = lcVector4FromColor(Preferences.mLightColor);
|
||||||
|
Context->SetColor(LightColor);
|
||||||
|
}
|
||||||
|
|
||||||
Context->SetVertexBufferPointer(Vertices);
|
Context->SetVertexBufferPointer(Vertices);
|
||||||
Context->SetVertexFormatPosition(3);
|
Context->SetVertexFormatPosition(3);
|
||||||
|
|
|
@ -511,7 +511,9 @@ void lcPiece::BoxTest(lcObjectBoxTest& ObjectBoxTest) const
|
||||||
|
|
||||||
void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
{
|
{
|
||||||
const float LineWidth = lcGetPreferences().mLineWidth;
|
const lcPreferences& Preferences = lcGetPreferences();
|
||||||
|
const float LineWidth = Preferences.mLineWidth;
|
||||||
|
|
||||||
Context->SetLineWidth(2.0f * LineWidth);
|
Context->SetLineWidth(2.0f * LineWidth);
|
||||||
|
|
||||||
const lcBoundingBox& BoundingBox = GetBoundingBox();
|
const lcBoundingBox& BoundingBox = GetBoundingBox();
|
||||||
|
@ -559,9 +561,15 @@ void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
Context->SetWorldMatrix(WorldMatrix);
|
Context->SetWorldMatrix(WorldMatrix);
|
||||||
|
|
||||||
if (IsFocused(LC_PIECE_SECTION_POSITION))
|
if (IsFocused(LC_PIECE_SECTION_POSITION))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Focused);
|
{
|
||||||
|
const lcVector4 FocusedColor = lcVector4FromColor(Preferences.mObjectFocusedColor);
|
||||||
|
Context->SetColor(FocusedColor);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::Selected);
|
{
|
||||||
|
const lcVector4 SelectedColor = lcVector4FromColor(Preferences.mObjectSelectedColor);
|
||||||
|
Context->SetColor(SelectedColor);
|
||||||
|
}
|
||||||
|
|
||||||
Context->SetVertexBufferPointer(LineVerts);
|
Context->SetVertexBufferPointer(LineVerts);
|
||||||
Context->SetVertexFormatPosition(3);
|
Context->SetVertexFormatPosition(3);
|
||||||
|
@ -617,6 +625,9 @@ void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
Context->EnableColorBlend(true);
|
Context->EnableColorBlend(true);
|
||||||
Context->EnableCullFace(true);
|
Context->EnableCullFace(true);
|
||||||
|
|
||||||
|
const lcVector4 ControlPointColor = lcVector4FromColor(Preferences.mControlPointColor);
|
||||||
|
const lcVector4 ControlPointFocusedColor = lcVector4FromColor(Preferences.mControlPointFocusedColor);
|
||||||
|
|
||||||
for (int ControlPointIdx = 0; ControlPointIdx < mControlPoints.GetSize(); ControlPointIdx++)
|
for (int ControlPointIdx = 0; ControlPointIdx < mControlPoints.GetSize(); ControlPointIdx++)
|
||||||
{
|
{
|
||||||
Context->SetWorldMatrix(lcMul(mControlPoints[ControlPointIdx].Transform, WorldMatrix));
|
Context->SetWorldMatrix(lcMul(mControlPoints[ControlPointIdx].Transform, WorldMatrix));
|
||||||
|
@ -626,9 +637,9 @@ void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
|
||||||
Context->SetIndexBufferPointer(Indices);
|
Context->SetIndexBufferPointer(Indices);
|
||||||
|
|
||||||
if (IsFocused(LC_PIECE_SECTION_CONTROL_POINT_FIRST + ControlPointIdx))
|
if (IsFocused(LC_PIECE_SECTION_CONTROL_POINT_FIRST + ControlPointIdx))
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::ControlPointFocused);
|
Context->SetColor(ControlPointFocusedColor);
|
||||||
else
|
else
|
||||||
Context->SetInterfaceColor(lcInterfaceColor::ControlPoint);
|
Context->SetColor(ControlPointColor);
|
||||||
|
|
||||||
Context->DrawIndexedPrimitives(GL_TRIANGLES, 36, GL_UNSIGNED_SHORT, 0);
|
Context->DrawIndexedPrimitives(GL_TRIANGLES, 36, GL_UNSIGNED_SHORT, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,12 @@ lcQPreferencesDialog::lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogO
|
||||||
connect(ui->ViewSphereColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
connect(ui->ViewSphereColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
connect(ui->ViewSphereTextColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
connect(ui->ViewSphereTextColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
connect(ui->ViewSphereHighlightColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
connect(ui->ViewSphereHighlightColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
|
connect(ui->ObjectSelectedColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
|
connect(ui->ObjectFocusedColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
|
connect(ui->CameraColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
|
connect(ui->LightColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
|
connect(ui->ControlPointColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
|
connect(ui->ControlPointFocusedColorButton, &QToolButton::clicked, this, &lcQPreferencesDialog::ColorButtonClicked);
|
||||||
connect(ui->categoriesTree, SIGNAL(itemSelectionChanged()), this, SLOT(updateParts()));
|
connect(ui->categoriesTree, SIGNAL(itemSelectionChanged()), this, SLOT(updateParts()));
|
||||||
ui->shortcutEdit->installEventFilter(this);
|
ui->shortcutEdit->installEventFilter(this);
|
||||||
connect(ui->commandList, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), this, SLOT(commandChanged(QTreeWidgetItem*)));
|
connect(ui->commandList, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), this, SLOT(commandChanged(QTreeWidgetItem*)));
|
||||||
|
@ -210,6 +216,12 @@ lcQPreferencesDialog::lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogO
|
||||||
SetButtonPixmap(mOptions->Preferences.mViewSphereColor, ui->ViewSphereColorButton);
|
SetButtonPixmap(mOptions->Preferences.mViewSphereColor, ui->ViewSphereColorButton);
|
||||||
SetButtonPixmap(mOptions->Preferences.mViewSphereTextColor, ui->ViewSphereTextColorButton);
|
SetButtonPixmap(mOptions->Preferences.mViewSphereTextColor, ui->ViewSphereTextColorButton);
|
||||||
SetButtonPixmap(mOptions->Preferences.mViewSphereHighlightColor, ui->ViewSphereHighlightColorButton);
|
SetButtonPixmap(mOptions->Preferences.mViewSphereHighlightColor, ui->ViewSphereHighlightColorButton);
|
||||||
|
SetButtonPixmap(mOptions->Preferences.mObjectSelectedColor, ui->ObjectSelectedColorButton);
|
||||||
|
SetButtonPixmap(mOptions->Preferences.mObjectFocusedColor, ui->ObjectFocusedColorButton);
|
||||||
|
SetButtonPixmap(mOptions->Preferences.mCameraColor, ui->CameraColorButton);
|
||||||
|
SetButtonPixmap(mOptions->Preferences.mLightColor, ui->LightColorButton);
|
||||||
|
SetButtonPixmap(mOptions->Preferences.mControlPointColor, ui->ControlPointColorButton);
|
||||||
|
SetButtonPixmap(mOptions->Preferences.mControlPointFocusedColor, ui->ControlPointFocusedColorButton);
|
||||||
|
|
||||||
on_studStyleCombo_currentIndexChanged(ui->studStyleCombo->currentIndex());
|
on_studStyleCombo_currentIndexChanged(ui->studStyleCombo->currentIndex());
|
||||||
on_antiAliasing_toggled();
|
on_antiAliasing_toggled();
|
||||||
|
@ -495,6 +507,38 @@ void lcQPreferencesDialog::ColorButtonClicked()
|
||||||
Color = &mOptions->Preferences.mViewSphereHighlightColor;
|
Color = &mOptions->Preferences.mViewSphereHighlightColor;
|
||||||
Title = tr("Select View Sphere Highlight Color");
|
Title = tr("Select View Sphere Highlight Color");
|
||||||
}
|
}
|
||||||
|
else if (Button == ui->ObjectSelectedColorButton)
|
||||||
|
{
|
||||||
|
Color = &mOptions->Preferences.mObjectSelectedColor;
|
||||||
|
Title = tr("Select Objected Selected Color");
|
||||||
|
}
|
||||||
|
else if (Button == ui->ObjectFocusedColorButton)
|
||||||
|
{
|
||||||
|
Color = &mOptions->Preferences.mObjectFocusedColor;
|
||||||
|
Title = tr("Select Object Focused Color");
|
||||||
|
}
|
||||||
|
else if (Button == ui->CameraColorButton)
|
||||||
|
{
|
||||||
|
Color = &mOptions->Preferences.mCameraColor;
|
||||||
|
Title = tr("Select Camera Color");
|
||||||
|
}
|
||||||
|
else if (Button == ui->LightColorButton)
|
||||||
|
{
|
||||||
|
Color = &mOptions->Preferences.mLightColor;
|
||||||
|
Title = tr("Select Light Color");
|
||||||
|
}
|
||||||
|
else if (Button == ui->ControlPointColorButton)
|
||||||
|
{
|
||||||
|
Color = &mOptions->Preferences.mControlPointColor;
|
||||||
|
Title = tr("Select Control Point Color");
|
||||||
|
DialogOptions = QColorDialog::ShowAlphaChannel;
|
||||||
|
}
|
||||||
|
else if (Button == ui->ControlPointFocusedColorButton)
|
||||||
|
{
|
||||||
|
Color = &mOptions->Preferences.mControlPointFocusedColor;
|
||||||
|
Title = tr("Select Control Point Focused Color");
|
||||||
|
DialogOptions = QColorDialog::ShowAlphaChannel;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -909,8 +909,319 @@
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Colors</string>
|
<string>Colors</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_14">
|
<layout class="QGridLayout" name="gridLayout_9">
|
||||||
<item>
|
<item row="2" column="0" colspan="2">
|
||||||
|
<widget class="QGroupBox" name="groupBox_11">
|
||||||
|
<property name="title">
|
||||||
|
<string>Interface</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_8">
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_15">
|
||||||
|
<property name="text">
|
||||||
|
<string>Marquee Border:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QToolButton" name="MarqueeBorderColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="3">
|
||||||
|
<widget class="QLabel" name="label_32">
|
||||||
|
<property name="text">
|
||||||
|
<string>Inactive View Border:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="4">
|
||||||
|
<widget class="QToolButton" name="MarqueeFillColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_14">
|
||||||
|
<property name="text">
|
||||||
|
<string>Camera Name:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="4">
|
||||||
|
<widget class="QToolButton" name="AxesColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="3">
|
||||||
|
<widget class="QLabel" name="label_16">
|
||||||
|
<property name="text">
|
||||||
|
<string>Marquee Fill:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="4">
|
||||||
|
<widget class="QToolButton" name="InactiveViewColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Overlay Color:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="3">
|
||||||
|
<widget class="QLabel" name="label_31">
|
||||||
|
<property name="text">
|
||||||
|
<string>Axis Icon Labels:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QToolButton" name="TextColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QToolButton" name="OverlayColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QToolButton" name="ActiveViewColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="5">
|
||||||
|
<spacer name="horizontalSpacer_16">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_6">
|
||||||
|
<property name="text">
|
||||||
|
<string>Active View Border:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<spacer name="horizontalSpacer_18">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QGroupBox" name="groupBox_9">
|
||||||
|
<property name="title">
|
||||||
|
<string>View Sphere</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_16">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_22">
|
||||||
|
<property name="text">
|
||||||
|
<string>Color:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="ViewSphereColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_21">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_23">
|
||||||
|
<property name="text">
|
||||||
|
<string>Text Color:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="ViewSphereTextColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_22">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_20">
|
||||||
|
<property name="text">
|
||||||
|
<string>Highlight Color:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="ViewSphereHighlightColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_14">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<spacer name="verticalSpacer_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_10">
|
||||||
|
<property name="title">
|
||||||
|
<string>Grid</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_17">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_29">
|
||||||
|
<property name="text">
|
||||||
|
<string>Lines:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="gridLineColor">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_20">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_30">
|
||||||
|
<property name="text">
|
||||||
|
<string>Studs:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="gridStudColor">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_13">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QGroupBox" name="groupBox_7">
|
<widget class="QGroupBox" name="groupBox_7">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Background</string>
|
<string>Background</string>
|
||||||
|
@ -932,6 +1243,22 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_19">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_28">
|
<widget class="QLabel" name="label_28">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -1002,162 +1329,114 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QGroupBox" name="groupBox_11">
|
<widget class="QGroupBox" name="groupBox_12">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Interface</string>
|
<string>Objects</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_8">
|
<layout class="QGridLayout" name="gridLayout_10">
|
||||||
<item row="0" column="2">
|
<item row="1" column="3">
|
||||||
<widget class="QLabel" name="label_32">
|
<widget class="QLabel" name="label_37">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Inactive View Border:</string>
|
<string>Light:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="1" column="4">
|
||||||
<widget class="QToolButton" name="ActiveViewColorButton">
|
<widget class="QToolButton" name="LightColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="0" column="2">
|
||||||
<widget class="QLabel" name="label_2">
|
<spacer name="horizontalSpacer_15">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="3">
|
||||||
|
<widget class="QLabel" name="label_38">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Overlay Color:</string>
|
<string>Focused:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="1" column="1">
|
||||||
<widget class="QLabel" name="label_6">
|
<widget class="QToolButton" name="CameraColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Active View Border:</string>
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="3">
|
||||||
|
<widget class="QLabel" name="label_36">
|
||||||
|
<property name="text">
|
||||||
|
<string>Control Point Focused:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QToolButton" name="TextColorButton">
|
<widget class="QToolButton" name="ControlPointColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="2" column="4">
|
||||||
<widget class="QToolButton" name="InactiveViewColorButton">
|
<widget class="QToolButton" name="ControlPointFocusedColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QToolButton" name="ObjectSelectedColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="4">
|
||||||
|
<widget class="QToolButton" name="ObjectFocusedColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_14">
|
<widget class="QLabel" name="label_35">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Camera Name:</string>
|
<string>Control Point:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="4">
|
<item row="0" column="0">
|
||||||
<spacer name="horizontalSpacer_16">
|
<widget class="QLabel" name="label_33">
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1">
|
|
||||||
<widget class="QToolButton" name="OverlayColorButton">
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string>Selected:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="2">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_31">
|
<widget class="QLabel" name="label_34">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Axis Icon Labels:</string>
|
<string>Camera:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="3">
|
<item row="0" column="5">
|
||||||
<widget class="QToolButton" name="AxesColorButton">
|
<spacer name="horizontalSpacer_17">
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_15">
|
|
||||||
<property name="text">
|
|
||||||
<string>Marquee Border:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QToolButton" name="MarqueeBorderColorButton">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="2">
|
|
||||||
<widget class="QLabel" name="label_16">
|
|
||||||
<property name="text">
|
|
||||||
<string>Marquee Fill:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="3">
|
|
||||||
<widget class="QToolButton" name="MarqueeFillColorButton">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="groupBox_10">
|
|
||||||
<property name="title">
|
|
||||||
<string>Grid</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_17">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_29">
|
|
||||||
<property name="text">
|
|
||||||
<string>Lines:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="gridLineColor">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_30">
|
|
||||||
<property name="text">
|
|
||||||
<string>Studs:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="gridStudColor">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_13">
|
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1172,83 +1451,6 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="groupBox_9">
|
|
||||||
<property name="title">
|
|
||||||
<string>View Sphere</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_16">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_22">
|
|
||||||
<property name="text">
|
|
||||||
<string>Color:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="ViewSphereColorButton">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_23">
|
|
||||||
<property name="text">
|
|
||||||
<string>Text Color:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="ViewSphereTextColorButton">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_20">
|
|
||||||
<property name="text">
|
|
||||||
<string>Highlight Color:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="ViewSphereHighlightColorButton">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_14">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabCategories">
|
<widget class="QWidget" name="tabCategories">
|
||||||
|
@ -1826,6 +2028,12 @@
|
||||||
<tabstop>BackgroundGradientRadio</tabstop>
|
<tabstop>BackgroundGradientRadio</tabstop>
|
||||||
<tabstop>BackgroundGradient1ColorButton</tabstop>
|
<tabstop>BackgroundGradient1ColorButton</tabstop>
|
||||||
<tabstop>BackgroundGradient2ColorButton</tabstop>
|
<tabstop>BackgroundGradient2ColorButton</tabstop>
|
||||||
|
<tabstop>ObjectSelectedColorButton</tabstop>
|
||||||
|
<tabstop>ObjectFocusedColorButton</tabstop>
|
||||||
|
<tabstop>CameraColorButton</tabstop>
|
||||||
|
<tabstop>LightColorButton</tabstop>
|
||||||
|
<tabstop>ControlPointColorButton</tabstop>
|
||||||
|
<tabstop>ControlPointFocusedColorButton</tabstop>
|
||||||
<tabstop>ActiveViewColorButton</tabstop>
|
<tabstop>ActiveViewColorButton</tabstop>
|
||||||
<tabstop>InactiveViewColorButton</tabstop>
|
<tabstop>InactiveViewColorButton</tabstop>
|
||||||
<tabstop>TextColorButton</tabstop>
|
<tabstop>TextColorButton</tabstop>
|
||||||
|
|
Loading…
Reference in a new issue