diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c6bf8f2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,24 @@ +--- +BasedOnStyle: LLVM +Language: Cpp +Standard: Cpp11 +ColumnLimit: 160 +IndentWidth: 4 + +AlignEscapedNewlines: DontAlign +AllowAllConstructorInitializersOnNextLine: false +AllowShortFunctionsOnASingleLine: Inline +AlwaysBreakTemplateDeclarations: true +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: Stroustrup +BreakConstructorInitializers: BeforeComma +BreakInheritanceList: BeforeComma +ConstructorInitializerAllOnOneLineOrOnePerLine: true +IndentPPDirectives: BeforeHash +NamespaceIndentation: Inner +PointerAlignment: Left +SpaceAfterTemplateKeyword: false +SpaceBeforeParens: Never +SpaceBeforeRangeBasedForLoopColon: false +SpacesInContainerLiterals: false +... diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7af40bd --- /dev/null +++ b/.editorconfig @@ -0,0 +1,36 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +indent_style = space +indent_size = 2 + +[*.{hpp,cpp,def}] +indent_style = space +indent_size = 4 + +[*.{frag,vert,comp,rgen,rint,rahit,rchit,rmiss,rcall}] +indent_style = space +indent_size = 4 + +[*.{sln,vcxproj}] +end_of_line = crlf +insert_final_newline = false + +[*.py] +indent_style = space +indent_size = 4 + +[*.bat] +end_of_line = crlf +indent_style = spaces +indent_size = 2 + +[*.json] +indent_style = spaces +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..128808a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +*.h eol=lf +*.hpp eol=lf +*.c eol=lf +*.cpp eol=lf +*.qrc eol=lf +*.ui eol=lf +.git* eol=lf +*.vcxproj* eol=crlf +*.sln eol=crlf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6bcc991 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.vs +Release +Debug +x64 +*VC.db +*VC.opendb +*.vcxproj.user +*.o diff --git a/AdaptiveBrightness.sln b/AdaptiveBrightness.sln new file mode 100644 index 0000000..e01b15e --- /dev/null +++ b/AdaptiveBrightness.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30204.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AdaptiveBrightness", "AdaptiveBrightness\AdaptiveBrightness.vcxproj", "{43595295-FD5E-4538-831C-7A6152D97739}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {43595295-FD5E-4538-831C-7A6152D97739}.Debug|x64.ActiveCfg = Debug|x64 + {43595295-FD5E-4538-831C-7A6152D97739}.Debug|x64.Build.0 = Debug|x64 + {43595295-FD5E-4538-831C-7A6152D97739}.Debug|x86.ActiveCfg = Debug|Win32 + {43595295-FD5E-4538-831C-7A6152D97739}.Debug|x86.Build.0 = Debug|Win32 + {43595295-FD5E-4538-831C-7A6152D97739}.Release|x64.ActiveCfg = Release|x64 + {43595295-FD5E-4538-831C-7A6152D97739}.Release|x64.Build.0 = Release|x64 + {43595295-FD5E-4538-831C-7A6152D97739}.Release|x86.ActiveCfg = Release|Win32 + {43595295-FD5E-4538-831C-7A6152D97739}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {471FE1B0-DA9E-4C7B-B423-F88734B8B35F} + EndGlobalSection +EndGlobal diff --git a/AdaptiveBrightness/AdaptiveBrightness.cpp b/AdaptiveBrightness/AdaptiveBrightness.cpp new file mode 100644 index 0000000..8c98c06 --- /dev/null +++ b/AdaptiveBrightness/AdaptiveBrightness.cpp @@ -0,0 +1,6 @@ +#include "AdaptiveBrightness.hpp" + +AdaptiveBrightness::AdaptiveBrightness(QWidget* parent) : QMainWindow(parent) +{ + m_ui.setupUi(this); +} diff --git a/AdaptiveBrightness/AdaptiveBrightness.hpp b/AdaptiveBrightness/AdaptiveBrightness.hpp new file mode 100644 index 0000000..5f1c930 --- /dev/null +++ b/AdaptiveBrightness/AdaptiveBrightness.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include + +#include "ui_AdaptiveBrightness.h" + +class AdaptiveBrightness : public QMainWindow { + Q_OBJECT + + public: + AdaptiveBrightness(QWidget* parent = nullptr); + + private: + Ui::AdaptiveBrightnessClass m_ui; +}; diff --git a/AdaptiveBrightness/AdaptiveBrightness.qrc b/AdaptiveBrightness/AdaptiveBrightness.qrc new file mode 100644 index 0000000..93feb00 --- /dev/null +++ b/AdaptiveBrightness/AdaptiveBrightness.qrc @@ -0,0 +1,4 @@ + + + + diff --git a/AdaptiveBrightness/AdaptiveBrightness.ui b/AdaptiveBrightness/AdaptiveBrightness.ui new file mode 100644 index 0000000..530b874 --- /dev/null +++ b/AdaptiveBrightness/AdaptiveBrightness.ui @@ -0,0 +1,28 @@ + + AdaptiveBrightnessClass + + + AdaptiveBrightnessClass + + + + 0 + 0 + 600 + 400 + + + + AdaptiveBrightness + + + + + + + + + + + + diff --git a/AdaptiveBrightness/AdaptiveBrightness.vcxproj b/AdaptiveBrightness/AdaptiveBrightness.vcxproj new file mode 100644 index 0000000..63d6598 --- /dev/null +++ b/AdaptiveBrightness/AdaptiveBrightness.vcxproj @@ -0,0 +1,177 @@ + + + + + Debug + x64 + + + Release + x64 + + + Debug + Win32 + + + Release + Win32 + + + + {43595295-FD5E-4538-831C-7A6152D97739} + QtVS_v302 + 10.0.18362.0 + 10.0.18362.0 + 10.0.18362.0 + 10.0.18362.0 + $(MSBuildProjectDirectory)\QtMsBuild + + + + Application + v142 + + + Application + v142 + + + Application + v142 + + + Application + v142 + + + + + + + + + + + + + + + + + + + + + + + + + v5.15.0_msvc2019_64 + core;gui;widgets;serialport + debug + + + v5.15.0_msvc2019_64 + core;gui;widgets;serialport + release + + + v5.15.0_msvc2019 + core;gui;widgets;serialport + debug + + + v5.15.0_msvc2019 + core;gui;widgets;serialport + release + + + + + + + true + true + ProgramDatabase + Disabled + MultiThreadedDebugDLL + + + Windows + true + + + + + true + true + None + MaxSpeed + MultiThreadedDLL + + + Windows + false + + + + + true + true + ProgramDatabase + Disabled + MultiThreadedDebugDLL + + + Windows + true + + + + + true + true + None + MaxSpeed + MultiThreadedDLL + + + Windows + false + + + + + stdcpp17 + + + + + stdcpp17 + + + + + stdcpp17 + + + + + stdcpp17 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AdaptiveBrightness/AdaptiveBrightness.vcxproj.filters b/AdaptiveBrightness/AdaptiveBrightness.vcxproj.filters new file mode 100644 index 0000000..9ac0669 --- /dev/null +++ b/AdaptiveBrightness/AdaptiveBrightness.vcxproj.filters @@ -0,0 +1,47 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {99349809-55BA-4b9d-BF79-8FDBB0286EB3} + ui + + + {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} + qrc;* + false + + + + + Resource Files + + + Source Files + + + + + Source Files + + + + + + + + Header Files + + + \ No newline at end of file diff --git a/AdaptiveBrightness/main.cpp b/AdaptiveBrightness/main.cpp new file mode 100644 index 0000000..0477153 --- /dev/null +++ b/AdaptiveBrightness/main.cpp @@ -0,0 +1,11 @@ +#include + +#include "AdaptiveBrightness.hpp" + +int main(int argc, char* argv[]) +{ + QApplication a(argc, argv); + AdaptiveBrightness w; + w.show(); + return a.exec(); +}