Upload files to "/"
This commit is contained in:
		
							parent
							
								
									742c7be190
								
							
						
					
					
						commit
						85b86a3493
					
				
					 5 changed files with 430 additions and 1 deletions
				
			
		
							
								
								
									
										265
									
								
								NumLockManager.pro.user
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										265
									
								
								NumLockManager.pro.user
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,265 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE QtCreatorProject> | ||||
| <!-- Written by QtCreator 8.0.2, 2023-08-13T13:59:44. --> | ||||
| <qtcreator> | ||||
|  <data> | ||||
|   <variable>EnvironmentId</variable> | ||||
|   <value type="QByteArray">{4a9a11db-48fc-4ea3-9373-a873e055cd8e}</value> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.ActiveTarget</variable> | ||||
|   <value type="qlonglong">0</value> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.EditorSettings</variable> | ||||
|   <valuemap type="QVariantMap"> | ||||
|    <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | ||||
|    <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | ||||
|    <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | ||||
|     <value type="QString" key="language">Cpp</value> | ||||
|     <valuemap type="QVariantMap" key="value"> | ||||
|      <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> | ||||
|     </valuemap> | ||||
|    </valuemap> | ||||
|    <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | ||||
|     <value type="QString" key="language">QmlJS</value> | ||||
|     <valuemap type="QVariantMap" key="value"> | ||||
|      <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> | ||||
|     </valuemap> | ||||
|    </valuemap> | ||||
|    <value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value> | ||||
|    <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> | ||||
|    <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | ||||
|    <value type="int" key="EditorConfiguration.IndentSize">4</value> | ||||
|    <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | ||||
|    <value type="int" key="EditorConfiguration.MarginColumn">80</value> | ||||
|    <value type="bool" key="EditorConfiguration.MouseHiding">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | ||||
|    <value type="int" key="EditorConfiguration.PaddingMode">1</value> | ||||
|    <value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value> | ||||
|    <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.ShowMargin">false</value> | ||||
|    <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | ||||
|    <value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | ||||
|    <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | ||||
|    <value type="int" key="EditorConfiguration.TabSize">8</value> | ||||
|    <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.UseIndenter">false</value> | ||||
|    <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | ||||
|    <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | ||||
|    <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | ||||
|    <value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value> | ||||
|    <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | ||||
|    <value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value> | ||||
|   </valuemap> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.PluginSettings</variable> | ||||
|   <valuemap type="QVariantMap"> | ||||
|    <valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks"> | ||||
|     <value type="bool" key="AutoTest.Framework.Boost">true</value> | ||||
|     <value type="bool" key="AutoTest.Framework.CTest">false</value> | ||||
|     <value type="bool" key="AutoTest.Framework.Catch">true</value> | ||||
|     <value type="bool" key="AutoTest.Framework.GTest">true</value> | ||||
|     <value type="bool" key="AutoTest.Framework.QtQuickTest">true</value> | ||||
|     <value type="bool" key="AutoTest.Framework.QtTest">true</value> | ||||
|    </valuemap> | ||||
|    <valuemap type="QVariantMap" key="AutoTest.CheckStates"/> | ||||
|    <value type="int" key="AutoTest.RunAfterBuild">0</value> | ||||
|    <value type="bool" key="AutoTest.UseGlobal">true</value> | ||||
|    <valuemap type="QVariantMap" key="ClangTools"> | ||||
|     <value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value> | ||||
|     <value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value> | ||||
|     <value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value> | ||||
|     <value type="int" key="ClangTools.ParallelJobs">2</value> | ||||
|     <valuelist type="QVariantList" key="ClangTools.SelectedDirs"/> | ||||
|     <valuelist type="QVariantList" key="ClangTools.SelectedFiles"/> | ||||
|     <valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/> | ||||
|     <value type="bool" key="ClangTools.UseGlobalSettings">true</value> | ||||
|    </valuemap> | ||||
|    <valuemap type="QVariantMap" key="CppEditor.QuickFix"> | ||||
|     <value type="bool" key="UseGlobalSettings">true</value> | ||||
|    </valuemap> | ||||
|   </valuemap> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.Target.0</variable> | ||||
|   <valuemap type="QVariantMap"> | ||||
|    <value type="QString" key="DeviceType">Desktop</value> | ||||
|    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.4.0 MinGW 64-bit</value> | ||||
|    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.4.0 MinGW 64-bit</value> | ||||
|    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.640.win64_mingw_kit</value> | ||||
|    <value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value> | ||||
|    <value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | ||||
|    <value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | ||||
|    <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | ||||
|     <value type="int" key="EnableQmlDebugging">0</value> | ||||
|     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_\_myprogs\cpp\QT\build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Debug</value> | ||||
|     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_/_myprogs/cpp/QT/build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Debug</value> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | ||||
|       <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | ||||
|       <valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/> | ||||
|      </valuemap> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | ||||
|      </valuemap> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | ||||
|     </valuemap> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | ||||
|       <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | ||||
|      </valuemap> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | ||||
|     </valuemap> | ||||
|     <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | ||||
|     <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | ||||
|     <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/> | ||||
|     <value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value> | ||||
|     <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | ||||
|     <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | ||||
|    </valuemap> | ||||
|    <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | ||||
|     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_\_myprogs\cpp\QT\build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Release</value> | ||||
|     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_/_myprogs/cpp/QT/build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Release</value> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | ||||
|       <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | ||||
|       <valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/> | ||||
|      </valuemap> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | ||||
|      </valuemap> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | ||||
|     </valuemap> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | ||||
|       <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | ||||
|      </valuemap> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | ||||
|     </valuemap> | ||||
|     <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | ||||
|     <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | ||||
|     <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/> | ||||
|     <value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value> | ||||
|     <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | ||||
|     <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | ||||
|     <value type="int" key="QtQuickCompiler">0</value> | ||||
|    </valuemap> | ||||
|    <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> | ||||
|     <value type="int" key="EnableQmlDebugging">0</value> | ||||
|     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\_\_myprogs\cpp\QT\build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Profile</value> | ||||
|     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/_/_myprogs/cpp/QT/build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Profile</value> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | ||||
|       <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | ||||
|       <valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/> | ||||
|      </valuemap> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | ||||
|      </valuemap> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | ||||
|     </valuemap> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | ||||
|      <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||||
|       <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||||
|       <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | ||||
|       <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | ||||
|      </valuemap> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | ||||
|     </valuemap> | ||||
|     <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | ||||
|     <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | ||||
|     <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/> | ||||
|     <value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value> | ||||
|     <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | ||||
|     <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | ||||
|     <value type="int" key="QtQuickCompiler">0</value> | ||||
|     <value type="int" key="SeparateDebugInfo">0</value> | ||||
|    </valuemap> | ||||
|    <value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> | ||||
|    <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||||
|      <value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value> | ||||
|      <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | ||||
|     </valuemap> | ||||
|     <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | ||||
|     <valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/> | ||||
|     <value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | ||||
|    </valuemap> | ||||
|    <value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | ||||
|    <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | ||||
|     <value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value> | ||||
|     <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> | ||||
|     <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | ||||
|     <valuelist type="QVariantList" key="CustomOutputParsers"/> | ||||
|     <value type="int" key="PE.EnvironmentAspect.Base">2</value> | ||||
|     <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | ||||
|     <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/_/_myprogs/cpp/QT/NumLockManager/NumLockManager.pro</value> | ||||
|     <value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">D:/_/_myprogs/cpp/QT/NumLockManager/NumLockManager.pro</value> | ||||
|     <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | ||||
|     <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | ||||
|     <value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value> | ||||
|     <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | ||||
|     <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | ||||
|     <value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/_/_myprogs/cpp/QT/build-NumLockManager-Desktop_Qt_6_4_0_MinGW_64_bit-Release</value> | ||||
|    </valuemap> | ||||
|    <value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | ||||
|   </valuemap> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.TargetCount</variable> | ||||
|   <value type="qlonglong">1</value> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | ||||
|   <value type="int">22</value> | ||||
|  </data> | ||||
|  <data> | ||||
|   <variable>Version</variable> | ||||
|   <value type="int">22</value> | ||||
|  </data> | ||||
| </qtcreator> | ||||
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							|  | @ -1,2 +1,14 @@ | |||
| # numlockmanager | ||||
|  | ||||
| 
 | ||||
| Прога для індикації і "фіксації" стану NumLock | ||||
| 
 | ||||
| Залежності для Лінукс: | ||||
| `sudo pacman -S xdotool xset qt5-base`    | ||||
| А от на Debian/Ubuntu/Mint хз яка назва пакету | ||||
| 
 | ||||
| 
 | ||||
| <s>Покищо є версія лише для вінди, для Лінукс буде пізніше. </s> (тепер Лінукс підтримується) | ||||
| 
 | ||||
| <s>Також криво працює автозавантаження.</s>(пофіксив) | ||||
| 
 | ||||
| Основано на Qt 6.3.2 | ||||
							
								
								
									
										1
									
								
								file.rc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								file.rc
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| IDI_ICON1 ICON DISCARDABLE "src/icons/num_lock_icon.ico" | ||||
							
								
								
									
										77
									
								
								numlockmanager.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								numlockmanager.ui
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,77 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <ui version="4.0"> | ||||
|  <class>NumLockManager</class> | ||||
|  <widget class="QMainWindow" name="NumLockManager"> | ||||
|   <property name="geometry"> | ||||
|    <rect> | ||||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>490</width> | ||||
|     <height>170</height> | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="sizePolicy"> | ||||
|    <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||||
|     <horstretch>0</horstretch> | ||||
|     <verstretch>0</verstretch> | ||||
|    </sizepolicy> | ||||
|   </property> | ||||
|   <property name="baseSize"> | ||||
|    <size> | ||||
|     <width>480</width> | ||||
|     <height>150</height> | ||||
|    </size> | ||||
|   </property> | ||||
|   <property name="font"> | ||||
|    <font> | ||||
|     <pointsize>15</pointsize> | ||||
|    </font> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
|    <string>NumLockManager</string> | ||||
|   </property> | ||||
|   <widget class="QWidget" name="centralwidget"> | ||||
|    <layout class="QVBoxLayout" name="verticalLayout"> | ||||
|     <item> | ||||
|      <widget class="QTextBrowser" name="about"> | ||||
|       <property name="minimumSize"> | ||||
|        <size> | ||||
|         <width>0</width> | ||||
|         <height>91</height> | ||||
|        </size> | ||||
|       </property> | ||||
|       <property name="maximumSize"> | ||||
|        <size> | ||||
|         <width>16777215</width> | ||||
|         <height>151</height> | ||||
|        </size> | ||||
|       </property> | ||||
|       <property name="lineWrapMode"> | ||||
|        <enum>QTextEdit::WidgetWidth</enum> | ||||
|       </property> | ||||
|       <property name="html"> | ||||
|        <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||||
| <html><head><meta name="qrichtext" content="1" /><meta charset="utf-8" /><style type="text/css"> | ||||
| p, li { white-space: pre-wrap; } | ||||
| hr { height: 1px; border-width: 0; } | ||||
| </style></head><body style=" font-family:'Segoe UI'; font-size:15pt; font-weight:400; font-style:normal;"> | ||||
| <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Прога для індикації і &quot;фіксації&quot; стану  NumLock</p> | ||||
| <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> | ||||
| <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Автор:  <a href="https://notabug.org/SergoZar"><span style=" text-decoration: underline; color:#5ac480;">SergoZar</span></a></p> | ||||
| <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Контакти:    <a href="https://t.me/SergoZarOfficiant"><span style=" text-decoration: underline; color:#5ac480;">Telegram</span></a>    <a href="https://social.net.ua/user/SergoZar"><span style=" text-decoration: underline; color:#5ac480;">Pleroma</span></a>    <a href="https://mastodon.social/@SergoZar"><span style=" text-decoration: underline; color:#5ac480;">Mastodon</span></a></p> | ||||
| <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Репозиторій:    <a href="https://notabug.org/SergoZar/numlockmanager"><span style=" text-decoration: underline; color:#5ac480;">numlockmanager</span></a>  </p></body></html></string> | ||||
|       </property> | ||||
|       <property name="overwriteMode"> | ||||
|        <bool>false</bool> | ||||
|       </property> | ||||
|       <property name="openExternalLinks"> | ||||
|        <bool>false</bool> | ||||
|       </property> | ||||
|      </widget> | ||||
|     </item> | ||||
|    </layout> | ||||
|   </widget> | ||||
|  </widget> | ||||
|  <resources/> | ||||
|  <connections/> | ||||
| </ui> | ||||
							
								
								
									
										74
									
								
								wl_numlock.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								wl_numlock.h
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,74 @@ | |||
| #ifndef WL_NUMLOCK_H | ||||
| #define WL_NUMLOCK_H | ||||
| 
 | ||||
| #include <qglobal.h> | ||||
| 
 | ||||
| #ifdef Q_OS_LINUX | ||||
| 
 | ||||
| #include <QProcess> | ||||
| #include <QDebug> | ||||
| #include <fstream> | ||||
| #include <iostream> | ||||
| #include <QDir> | ||||
| 
 | ||||
| // wl - WindwsLinux
 | ||||
| class WLKeyManager{ | ||||
| public: | ||||
|     WLKeyManager(){} | ||||
| 
 | ||||
|     bool getNumLockState(){ | ||||
|         if (path.length() == 0) | ||||
|             path = getNumLockFilePath(); | ||||
|         std::ifstream file(path); | ||||
|         char str; | ||||
|         file >> str; | ||||
|         file.close(); | ||||
|         return str == '1'; | ||||
|     } | ||||
| 
 | ||||
|     void pressNumLock(){ | ||||
|         QProcess::execute("/bin/xdotool", {"key", "Num_Lock"}); | ||||
|     } | ||||
| 
 | ||||
| private: | ||||
|     std::string path; | ||||
| 
 | ||||
|     std::string getNumLockFilePath(){ | ||||
|         QDir inputs("/sys/class/input/"); | ||||
|         QString numlock; | ||||
|         foreach (QString dir, inputs.entryList({"event*"})){ | ||||
|             QDir temp(inputs.absoluteFilePath(dir) + "/device/"); | ||||
|             QStringList list = temp.entryList({"*::numlock"}); | ||||
|             if (!list.empty()){ | ||||
|                 numlock = list[0]; | ||||
|                 break; | ||||
|             } | ||||
|         } | ||||
|         return QString("/sys/class/input/event3/device/" + numlock + "/brightness").toStdString(); | ||||
|     } | ||||
| }; | ||||
| #endif | ||||
| 
 | ||||
| #ifdef Q_OS_WIN | ||||
| 
 | ||||
| #include <windows.h> | ||||
| 
 | ||||
| class WLKeyManager{ | ||||
| public: | ||||
|     WLKeyManager(){} | ||||
| 
 | ||||
|     bool getNumLockState(){ | ||||
|         return (bool)GetKeyState(VK_NUMLOCK); | ||||
|     } | ||||
| 
 | ||||
|     void pressNumLock(){ | ||||
|         keybd_event(VK_NUMLOCK, 0, KEYEVENTF_KEYUP, 0); | ||||
|         keybd_event(VK_NUMLOCK, 0, KEYEVENTF_EXTENDEDKEY, 0); | ||||
|         keybd_event(VK_NUMLOCK, 0, KEYEVENTF_KEYUP, 0); | ||||
|     } | ||||
| 
 | ||||
| }; | ||||
| #endif | ||||
| 
 | ||||
| 
 | ||||
| #endif // WL_NUMLOCK_H
 | ||||
		Loading…
	
		Reference in a new issue