diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..8f1db95565484a3d2bd403ab511f8f63c733bf85
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+# Ignore the following files
+.vscode
+/build*/
+/cmake-build*
+*.user
+*.qm
+CMakeLists.txt.user*
+
+# debian files
+obj-*-linux-gnu/
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf089b547a3d2ce9bb2bc32a3d7502bfb145f18d..be68b125186eed2b59d80d0fa6392e32f62ef5c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.16)
project(ukui-window-switch)
@@ -11,18 +11,13 @@ find_package(KF5WindowSystem REQUIRED)
get_target_property(QT_QMAKE_EXECUTABLE ${Qt5Core_QMAKE_EXECUTABLE} IMPORTED_LOCATION)
macro(query_qmake args output)
- exec_program(${QT_QMAKE_EXECUTABLE} ARGS -query ${args} OUTPUT_VARIABLE ${output} RETURN_VALUE exitCode)
-
- if(NOT ${exitCode} EQUAL 0)
+ execute_process(COMMAND ${QT_QMAKE_EXECUTABLE} -query ${args} OUTPUT_VARIABLE ${output} RESULT_VARIABLE test1 RESULT_VARIABLE result OUTPUT_STRIP_TRAILING_WHITESPACE)
+ if(NOT ${result} EQUAL 0)
message(FATAL_ERROR "exec ${QT_QMAKE_EXECUTABLE} failed, with args: ${args}, error message: ${output}")
endif()
endmacro()
query_qmake("QT_INSTALL_PLUGINS" QT_INSTALL_PLUGINS)
-message("QT_INSTALL_PLUGINS=${QT_INSTALL_PLUGINS}")
-
-set(INSTALL_PATH "${QT_INSTALL_PLUGINS}/kwin/effects/plugins")
-
add_subdirectory(windowsview)
-add_subdirectory(windowswitchers)
+#add_subdirectory(windowswitchers)
diff --git a/CMakeLists.txt.user b/CMakeLists.txt.user
deleted file mode 100644
index c0d1b08a476e054074d42d94f2d6816284074f51..0000000000000000000000000000000000000000
--- a/CMakeLists.txt.user
+++ /dev/null
@@ -1,497 +0,0 @@
-
-
-
-
-
- EnvironmentId
- {6953e0c1-7dc6-486f-8ffd-28db0c8992aa}
-
-
- ProjectExplorer.Project.ActiveTarget
- 0
-
-
- ProjectExplorer.Project.EditorSettings
-
- true
- false
- true
-
- Cpp
-
- CppGlobal
-
-
-
- QmlJS
-
- QmlJSGlobal
-
-
- 2
- UTF-8
- false
- 4
- false
- 80
- true
- true
- 1
- true
- false
- 0
- true
- true
- 0
- 8
- true
- 1
- true
- true
- true
- false
-
-
-
- ProjectExplorer.Project.PluginSettings
-
-
-
- ProjectExplorer.Project.Target.0
-
- Desktop
- Desktop
- {76092915-5083-4ddc-9112-1cc8c92827c9}
- 0
- 0
- 0
-
-
- CMAKE_BUILD_TYPE:STRING=Debug
- CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
- CMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
- CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
- QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}
-
- /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/build-ukui-kwin-effects-Desktop-Debug
-
-
-
-
- all
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- Debug
- CMakeProjectManager.CMakeBuildConfiguration
-
- 1
-
-
- 0
- Deploy
- Deploy
- ProjectExplorer.BuildSteps.Deploy
-
- 1
- ProjectExplorer.DefaultDeployConfiguration
-
- 1
-
-
- dwarf
-
- cpu-cycles
-
-
- 250
-
- -e
- cpu-cycles
- --call-graph
- dwarf,4096
- -F
- 250
-
- -F
- true
- 4096
- false
- false
- 1000
-
- true
-
- false
- false
- false
- false
- true
- 0.01
- 10
- true
- kcachegrind
- 1
- 25
-
- 1
- true
- false
- true
- valgrind
-
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
-
- 2
-
-
- ProjectExplorer.CustomExecutableRunConfiguration
-
-
- false
-
- false
- true
- false
- false
- true
-
-
-
- 1
-
-
-
- ProjectExplorer.Project.Target.1
-
- Imported Kit
- Imported Kit
- {504d3be3-6b2d-4db5-a195-1080fa7a925c}
- 0
- 0
- 0
-
-
- CMAKE_BUILD_TYPE:STRING=Debug
- CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
- CMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
- CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
- QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}
-
- /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/ukui-kwin-effects/build
-
-
-
-
- all
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- Debug
- CMakeProjectManager.CMakeBuildConfiguration
-
- 1
-
-
- 0
- Deploy
- Deploy
- ProjectExplorer.BuildSteps.Deploy
-
- 1
- ProjectExplorer.DefaultDeployConfiguration
-
- 1
-
-
- dwarf
-
- cpu-cycles
-
-
- 250
-
- -e
- cpu-cycles
- --call-graph
- dwarf,4096
- -F
- 250
-
- -F
- true
- 4096
- false
- false
- 1000
-
- true
-
- false
- false
- false
- false
- true
- 0.01
- 10
- true
- kcachegrind
- 1
- 25
-
- 1
- true
- false
- true
- valgrind
-
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
-
- 2
-
-
- ProjectExplorer.CustomExecutableRunConfiguration
-
-
- false
-
- false
- true
- false
- false
- true
-
-
-
- 1
-
-
-
- ProjectExplorer.Project.Target.2
-
- Imported Kit
- Imported Kit
- {4f89b1b7-3b43-4d7e-bd95-6122966b238a}
- 0
- 0
- 0
-
-
- CMAKE_BUILD_TYPE:STRING=Build
- CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
- CMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
- CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
- QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}
-
- /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/ukui-kwin-effects/buildm
-
-
-
-
- all
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- Build
- CMakeProjectManager.CMakeBuildConfiguration
-
- 1
-
-
- 0
- Deploy
- Deploy
- ProjectExplorer.BuildSteps.Deploy
-
- 1
- ProjectExplorer.DefaultDeployConfiguration
-
- 1
-
-
- dwarf
-
- cpu-cycles
-
-
- 250
-
- -e
- cpu-cycles
- --call-graph
- dwarf,4096
- -F
- 250
-
- -F
- true
- 4096
- false
- false
- 1000
-
- true
-
- false
- false
- false
- false
- true
- 0.01
- 10
- true
- kcachegrind
- 1
- 25
-
- 1
- true
- false
- true
- valgrind
-
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
-
- 2
-
-
- ProjectExplorer.CustomExecutableRunConfiguration
-
-
- false
-
- false
- true
- false
- false
- true
-
-
-
- 1
-
-
-
- ProjectExplorer.Project.TargetCount
- 3
-
-
- ProjectExplorer.Project.Updater.FileVersion
- 22
-
-
- Version
- 22
-
-
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000000000000000000000000000000000000..5bc8fb2c8f757e34a0d8f4644f589d57609e213f
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,481 @@
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the library GPL. It is
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Library General Public License, applies to some
+specially designated Free Software Foundation software, and to any
+other libraries whose authors decide to use it. You can use it for
+your libraries, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if
+you distribute copies of the library, or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link a program with the library, you must provide
+complete object files to the recipients so that they can relink them
+with the library, after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ Our method of protecting your rights has two steps: (1) copyright
+the library, and (2) offer you this license which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ Also, for each distributor's protection, we want to make certain
+that everyone understands that there is no warranty for this free
+library. If the library is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original
+version, so that any problems introduced by others will not reflect on
+the original authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that companies distributing free
+software will individually obtain patent licenses, thus in effect
+transforming the program into proprietary software. To prevent this,
+we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+ Most GNU software, including some libraries, is covered by the ordinary
+GNU General Public License, which was designed for utility programs. This
+license, the GNU Library General Public License, applies to certain
+designated libraries. This license is quite different from the ordinary
+one; be sure to read it in full, and don't assume that anything in it is
+the same as in the ordinary license.
+
+ The reason we have a separate public license for some libraries is that
+they blur the distinction we usually make between modifying or adding to a
+program and simply using it. Linking a program with a library, without
+changing the library, is in some sense simply using the library, and is
+analogous to running a utility program or application program. However, in
+a textual and legal sense, the linked executable is a combined work, a
+derivative of the original library, and the ordinary General Public License
+treats it as such.
+
+ Because of this blurred distinction, using the ordinary General
+Public License for libraries did not effectively promote software
+sharing, because most developers did not use the libraries. We
+concluded that weaker conditions might promote sharing better.
+
+ However, unrestricted linking of non-free programs would deprive the
+users of those programs of all benefit from the free status of the
+libraries themselves. This Library General Public License is intended to
+permit developers of non-free programs to use free libraries, while
+preserving your freedom as a user of such programs to change the free
+libraries that are incorporated in them. (We have not seen how to achieve
+this as regards changes in header files, but we have achieved it as regards
+changes in the actual functions of the Library.) The hope is that this
+will lead to faster development of free libraries.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, while the latter only
+works together with the library.
+
+ Note that it is possible for a library to be covered by the ordinary
+General Public License rather than by this special one.
+
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library which
+contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Library
+General Public License (also called "this License"). Each licensee is
+addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also compile or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ c) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ d) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the source code distributed need not include anything that is normally
+distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Library General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ , 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
diff --git a/README.md b/README.md
index bd962edbd61153e921a8d03e9cff494a5c77c0b0..8437e4dfce3ce91be000c087bf60f3c487993a90 100644
--- a/README.md
+++ b/README.md
@@ -1,83 +1,99 @@
-# ukui-kwin-effects
-
-Multitask view runs in Kylin system.
+# ukui-window-switch
-[Badges]
+ukui-window-switch is a MultitaskView runs in Kylin Operating System.
## Introduction
-For diversified adaptation, Multitask view is divided into two versions: PC version and TM version.
-[PC version]
- Multitask view provides a convenient and fast interactive interface, which can make it convenient for users to switch virtual desktop and find the desired window, so as to improve users' production efficiency and work efficiency.
-[TM version]
- Multitask view is convenient for users to manage the opened windows and improve the sense of interactive experience through different dynamic effects. In the tablet mode, you can control the wake-up and closing of the window, which is the necessary path to close the application in the tablet mode.
-
-### Features
-Common features of multitask views:
- 1. Load as a plugin of ukui-kwin;
- 2. It is necessary to turn on the compositor;
-[PC version]
- The following are the features of the multitask view in PC mode:
+
+MultitaskView supports both PC and Pad.
+
+ - PC
+
+ MultitaskView provides a convenient and fast interactive interface, which makes it convenient to switch between virtual desktops and locate the window you want, so as to improve your production efficiency and working efficiency.
+
+ - Pad
+
+ MultitaskView is convenient to manage the opened windows, it also improves interactive experience through different animations. In Pad mode, you can choose to wake up or close any windows shown in MultitaskView.
+
+## Features
+
+Common features of multitaskView:
+
+ 1. Loaded as a plugin of kwin;
+ 2. Run with compositor;
+
+ - PC
+
+ The following are the features of the MultitaskView in PC mode:
1. Add the functions of creating, deleting, exchanging virtual desktop and managing window content in virtual desktop;
2. The window is of equal height and slides up and down, and one line places the window with the greatest possibility;
3. Support small window dragging to different virtual desktops;
4. Dual screen mode adaptation;
-[TM version]
+
+ - Pad
+
1. Display the contents of the window with equal height and width, and can only slide left and right;
2. Add all clear function;
3. Support sliding up, closing, arousing, closing, arousing and other dynamic effects;
4. Adapt to different system modes and desktop states;
+
## Requirements
-Please use the version after 0430 for ukui panel and ukui kwin.
+
+Please use the version after 0430 for ukui panel and kwin.
## Installation
-Obtain the package (ukui-kwin-effects) of multitask view from the warehouse source and execute "sudo apt install ukui-kwin-effects".
+
+Obtain the package (ukui-window-switch) of MultitaskView from the warehouse source and execute "sudo apt install ukui-window-switch".
+
Please ensure that the installed version meets the installation conditions of the new version!!!!
## Usage
[Open operation mode]
- 1. Slide from the bottom of the screen to bring up the multitask view;
- 2. Click the second button on the left side of the taskbar to evoke the multitask view;
- 3. Win + Tab shortcut key evokes multitask view;
+ 1. Slide from the bottom of the screen to bring up the MultitaskView;
+ 2. Click the second button on the left side of the taskbar to evoke the MultitaskView;
+ 3. Win + Tab shortcut key evokes MultitaskView;
[Close operation mode]
- 1. When the multitask view is open, click ESC to close the multitask view;
- 2. When the multitask view is open, click the blank space of the multitask view to close the multitask view;
- 3. When the multitask view is open, use the shortcut key "menu + Tab" to close the multitask view;
- 4. In PC mode only and multitask view is on, click virtual desktop to close multitask view;
- 5. When the multitask view is open, click the thumbnail window to close the multitask view;
- 6. Passively trigger to close the multitask view. When a new window is activated, the multitask view will be closed automatically;
+ 1. When the MultitaskView is open, click ESC to close the MultitaskView;
+ 2. When the MultitaskView is open, click the blank space of the MultitaskView to close the MultitaskView;
+ 3. When the MultitaskView is open, use the shortcut key "menu + Tab" to close the MultitaskView;
+ 4. In PC mode only and MultitaskView is on, click virtual desktop to close MultitaskView;
+ 5. When the MultitaskView is open, click the thumbnail window to close the MultitaskView;
+ 6. Passively trigger to close the MultitaskView. When a new window is activated, the MultitaskView will be closed automatically;
## Development
-The multitask view is divided into two parts: the view module is developed with QML language and the back end is developed with C++ language.
-The view module is divided into PC mode and tablet mode.
+
+The MultitaskView is divided into two parts: the view module is developed with QML language and the backend is developed with C++ language.
+The view module is divided into PC mode and Pad mode.
The development and commissioning shall be carried out according to the following steps:
-1.cd ukui-kwin-effects
-2.mkdir build
-3.cd build
-4.cmake ..
-5.sudo make install
-6.ukui-kwin --replace &
+
+1. cd ukui-window-switch
+2. mkdir build
+3. cd build
+4. cmake ..
+5. sudo make install
+6. kwin --replace &
+
## Debuglog
+
The log is stored in the log of kwin. The viewing method is as follows:
-1.cd .log (or cd .config/ukui-kwin/log)
-2.tail -f ukui_kwin_0.log
+
+1. cd ~/.log (or cd .config/kwin/log)
+2. tail -f kwin_0.log
## Changelog
+
You can view the record of each change in the changelog in Debian directory.
## FAQ
-1. The multitask view always shows no application window?
+
+1. The MultitaskView always shows no application window?
Please ensure that the current version of kwin is installed correctly
-2. Shortcut keys cannot evoke multitask view?
- If ukui window switch is already installed in the system, please execute the following steps first:
- sudo dpkg -P ukui-window-switch
- After that:
- sudo rm -rf .config/kglobalshortcutsrc
- Final execution:
+2. Shortcut keys cannot evoke MultitaskView?
+ rm -rf ~/.config/kglobalshortcutsrc
reboot
-3. Does the multitask view provide a DBUS interface and how to use it?
+3. Does the MultitaskView provide a DBUS interface and how to use it?
Please use d-feet
- In the session, find "org.ukui.kwin" -> "/multitaskview" -> org.ukui.kWin.MultitaskView->show()
+ In the session, find "org.kde.kwin" -> "/MultitaskView" -> org.kde.kWin.MultitaskView->show()
Please ensure that the installed versions of kwin and ukui panel support the new version of multitask
diff --git a/build/.cmake/api/v1/query/client-vscode/query.json b/build/.cmake/api/v1/query/client-vscode/query.json
deleted file mode 100644
index b9dc05e0712c6227c704f43da144bbab7241fd4f..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/query/client-vscode/query.json
+++ /dev/null
@@ -1 +0,0 @@
-{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1}]}
\ No newline at end of file
diff --git a/build/.cmake/api/v1/reply/cache-v2-b23ccf4369602b55edc1.json b/build/.cmake/api/v1/reply/cache-v2-b23ccf4369602b55edc1.json
deleted file mode 100644
index d6c4b9487767706ab8543a9ff67ed136190bb36c..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/cache-v2-b23ccf4369602b55edc1.json
+++ /dev/null
@@ -1,3715 +0,0 @@
-{
- "entries" :
- [
- {
- "name" : "CMAKE_ADDR2LINE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/addr2line"
- },
- {
- "name" : "CMAKE_AR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/ar"
- },
- {
- "name" : "CMAKE_BUILD_TYPE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "No help, variable specified on the command line."
- }
- ],
- "type" : "STRING",
- "value" : "Debug"
- },
- {
- "name" : "CMAKE_CACHEFILE_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "This is the directory where this CMakeCache.txt was created"
- }
- ],
- "type" : "INTERNAL",
- "value" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build"
- },
- {
- "name" : "CMAKE_CACHE_MAJOR_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Major version of cmake used to create the current loaded cache"
- }
- ],
- "type" : "INTERNAL",
- "value" : "3"
- },
- {
- "name" : "CMAKE_CACHE_MINOR_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Minor version of cmake used to create the current loaded cache"
- }
- ],
- "type" : "INTERNAL",
- "value" : "16"
- },
- {
- "name" : "CMAKE_CACHE_PATCH_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Patch version of cmake used to create the current loaded cache"
- }
- ],
- "type" : "INTERNAL",
- "value" : "3"
- },
- {
- "name" : "CMAKE_COMMAND",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to CMake executable."
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/bin/cmake"
- },
- {
- "name" : "CMAKE_CPACK_COMMAND",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to cpack program executable."
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/bin/cpack"
- },
- {
- "name" : "CMAKE_CTEST_COMMAND",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to ctest program executable."
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/bin/ctest"
- },
- {
- "name" : "CMAKE_CXX_COMPILER",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "CXX compiler"
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/c++"
- },
- {
- "name" : "CMAKE_CXX_COMPILER_AR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler"
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/gcc-ar-9"
- },
- {
- "name" : "CMAKE_CXX_COMPILER_RANLIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler"
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/gcc-ranlib-9"
- },
- {
- "name" : "CMAKE_CXX_FLAGS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the CXX compiler during all build types."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_CXX_FLAGS_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the CXX compiler during DEBUG builds."
- }
- ],
- "type" : "STRING",
- "value" : "-g"
- },
- {
- "name" : "CMAKE_CXX_FLAGS_MINSIZEREL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the CXX compiler during MINSIZEREL builds."
- }
- ],
- "type" : "STRING",
- "value" : "-Os -DNDEBUG"
- },
- {
- "name" : "CMAKE_CXX_FLAGS_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the CXX compiler during RELEASE builds."
- }
- ],
- "type" : "STRING",
- "value" : "-O3 -DNDEBUG"
- },
- {
- "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds."
- }
- ],
- "type" : "STRING",
- "value" : "-O2 -g -DNDEBUG"
- },
- {
- "name" : "CMAKE_C_COMPILER",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "No help, variable specified on the command line."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/c99-gcc"
- },
- {
- "name" : "CMAKE_C_COMPILER_AR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler"
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/gcc-ar-9"
- },
- {
- "name" : "CMAKE_C_COMPILER_RANLIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler"
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/gcc-ranlib-9"
- },
- {
- "name" : "CMAKE_C_FLAGS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the C compiler during all build types."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_C_FLAGS_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the C compiler during DEBUG builds."
- }
- ],
- "type" : "STRING",
- "value" : "-g"
- },
- {
- "name" : "CMAKE_C_FLAGS_MINSIZEREL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the C compiler during MINSIZEREL builds."
- }
- ],
- "type" : "STRING",
- "value" : "-Os -DNDEBUG"
- },
- {
- "name" : "CMAKE_C_FLAGS_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the C compiler during RELEASE builds."
- }
- ],
- "type" : "STRING",
- "value" : "-O3 -DNDEBUG"
- },
- {
- "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the C compiler during RELWITHDEBINFO builds."
- }
- ],
- "type" : "STRING",
- "value" : "-O2 -g -DNDEBUG"
- },
- {
- "name" : "CMAKE_DLLTOOL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "CMAKE_DLLTOOL-NOTFOUND"
- },
- {
- "name" : "CMAKE_EXECUTABLE_FORMAT",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Executable file format"
- }
- ],
- "type" : "INTERNAL",
- "value" : "ELF"
- },
- {
- "name" : "CMAKE_EXE_LINKER_FLAGS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during all build types."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during DEBUG builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during MINSIZEREL builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during RELEASE builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during RELWITHDEBINFO builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_EXPORT_COMPILE_COMMANDS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "No help, variable specified on the command line."
- }
- ],
- "type" : "BOOL",
- "value" : "TRUE"
- },
- {
- "name" : "CMAKE_EXTRA_GENERATOR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Name of external makefile project generator."
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "CMAKE_GENERATOR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Name of generator."
- }
- ],
- "type" : "INTERNAL",
- "value" : "Ninja"
- },
- {
- "name" : "CMAKE_GENERATOR_INSTANCE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Generator instance identifier."
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "CMAKE_GENERATOR_PLATFORM",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Name of generator platform."
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "CMAKE_GENERATOR_TOOLSET",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Name of generator toolset."
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "CMAKE_HAVE_CONNECT",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Have function connect"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_HAVE_GETHOSTBYNAME",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Have function gethostbyname"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_HAVE_REMOVE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Have function remove"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_HAVE_SHMAT",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Have function shmat"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_HOME_DIRECTORY",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Source directory with the top level CMakeLists.txt file for this project"
- }
- ],
- "type" : "INTERNAL",
- "value" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch"
- },
- {
- "name" : "CMAKE_INSTALL_PREFIX",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Install path prefix, prepended onto install directories."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/local"
- },
- {
- "name" : "CMAKE_INSTALL_SO_NO_EXE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Install .so files without execute permission."
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_LIB_ICE_HAS_ICECONNECTIONNUMBER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Have library ICE"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_LINKER",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/ld"
- },
- {
- "name" : "CMAKE_MAKE_PROGRAM",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Program used to build from build.ninja files."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/bin/ninja"
- },
- {
- "name" : "CMAKE_MODULE_LINKER_FLAGS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of modules during all build types."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of modules during DEBUG builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of modules during RELEASE builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_NM",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/nm"
- },
- {
- "name" : "CMAKE_NUMBER_OF_MAKEFILES",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "number of local generators"
- }
- ],
- "type" : "INTERNAL",
- "value" : "3"
- },
- {
- "name" : "CMAKE_OBJCOPY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/objcopy"
- },
- {
- "name" : "CMAKE_OBJDUMP",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/objdump"
- },
- {
- "name" : "CMAKE_PLATFORM_INFO_INITIALIZED",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Platform information initialized"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "CMAKE_PROJECT_DESCRIPTION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Value Computed by CMake"
- }
- ],
- "type" : "STATIC",
- "value" : ""
- },
- {
- "name" : "CMAKE_PROJECT_HOMEPAGE_URL",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Value Computed by CMake"
- }
- ],
- "type" : "STATIC",
- "value" : ""
- },
- {
- "name" : "CMAKE_PROJECT_NAME",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Value Computed by CMake"
- }
- ],
- "type" : "STATIC",
- "value" : "ukui-window-switch"
- },
- {
- "name" : "CMAKE_RANLIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/ranlib"
- },
- {
- "name" : "CMAKE_READELF",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/readelf"
- },
- {
- "name" : "CMAKE_ROOT",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to CMake installation."
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/share/cmake-3.16"
- },
- {
- "name" : "CMAKE_SHARED_LINKER_FLAGS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of shared libraries during all build types."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_SKIP_INSTALL_RPATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building."
- }
- ],
- "type" : "BOOL",
- "value" : "NO"
- },
- {
- "name" : "CMAKE_SKIP_RPATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "If set, runtime paths are not added when using shared libraries."
- }
- ],
- "type" : "BOOL",
- "value" : "NO"
- },
- {
- "name" : "CMAKE_STATIC_LINKER_FLAGS",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of static libraries during all build types."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds."
- }
- ],
- "type" : "STRING",
- "value" : ""
- },
- {
- "name" : "CMAKE_STRIP",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/bin/strip"
- },
- {
- "name" : "CMAKE_UNAME",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "uname command"
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/bin/uname"
- },
- {
- "name" : "CMAKE_VERBOSE_MAKEFILE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo."
- }
- ],
- "type" : "BOOL",
- "value" : "FALSE"
- },
- {
- "name" : "ECM_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for ECM."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/share/ECM/cmake"
- },
- {
- "name" : "EGL_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for EGL."
- }
- ],
- "type" : "PATH",
- "value" : "EGL_DIR-NOTFOUND"
- },
- {
- "name" : "FIND_PACKAGE_MESSAGE_DETAILS_Gettext",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Details about finding Gettext"
- }
- ],
- "type" : "INTERNAL",
- "value" : "[/usr/bin/msgmerge][/usr/bin/msgfmt][v0.19.8.1()]"
- },
- {
- "name" : "FIND_PACKAGE_MESSAGE_DETAILS_OpenGL",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Details about finding OpenGL"
- }
- ],
- "type" : "INTERNAL",
- "value" : "[/usr/lib/aarch64-linux-gnu/libOpenGL.so][/usr/lib/aarch64-linux-gnu/libGLX.so][/usr/include][c ][v()]"
- },
- {
- "name" : "FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Details about finding PkgConfig"
- }
- ],
- "type" : "INTERNAL",
- "value" : "[/usr/bin/pkg-config][v0.29.1()]"
- },
- {
- "name" : "FIND_PACKAGE_MESSAGE_DETAILS_X11",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Details about finding X11"
- }
- ],
- "type" : "INTERNAL",
- "value" : "[/usr/include][/usr/lib/aarch64-linux-gnu/libX11.so][c ][v()]"
- },
- {
- "name" : "FREETYPE_INCLUDE_DIR_freetype2",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include/freetype2"
- },
- {
- "name" : "FREETYPE_INCLUDE_DIR_ft2build",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include/freetype2"
- },
- {
- "name" : "FREETYPE_LIBRARY_DEBUG",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "FREETYPE_LIBRARY_DEBUG-NOTFOUND"
- },
- {
- "name" : "FREETYPE_LIBRARY_RELEASE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libfreetype.so"
- },
- {
- "name" : "Fontconfig_INCLUDE_DIR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "Fontconfig_LIBRARY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libfontconfig.so"
- },
- {
- "name" : "GETTEXT_MSGFMT_EXECUTABLE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/bin/msgfmt"
- },
- {
- "name" : "GETTEXT_MSGMERGE_EXECUTABLE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/bin/msgmerge"
- },
- {
- "name" : "KF5Config_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for KF5Config."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/KF5Config"
- },
- {
- "name" : "KF5CoreAddons_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for KF5CoreAddons."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons"
- },
- {
- "name" : "KF5GlobalAccel_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for KF5GlobalAccel."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel"
- },
- {
- "name" : "KF5I18n_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for KF5I18n."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/KF5I18n"
- },
- {
- "name" : "KF5WindowSystem_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for KF5WindowSystem."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem"
- },
- {
- "name" : "KI18N_PYTHON_EXECUTABLE",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Path to a program."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/bin/python3"
- },
- {
- "name" : "OPENGL_EGL_INCLUDE_DIR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "OPENGL_GLX_INCLUDE_DIR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "OPENGL_INCLUDE_DIR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "OPENGL_egl_LIBRARY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libEGL.so"
- },
- {
- "name" : "OPENGL_gl_LIBRARY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libGL.so"
- },
- {
- "name" : "OPENGL_glu_LIBRARY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libGLU.so"
- },
- {
- "name" : "OPENGL_glx_LIBRARY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libGLX.so"
- },
- {
- "name" : "OPENGL_opengl_LIBRARY",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libOpenGL.so"
- },
- {
- "name" : "OPENGL_xmesa_INCLUDE_DIR",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "OPENGL_xmesa_INCLUDE_DIR-NOTFOUND"
- },
- {
- "name" : "PKG_CONFIG_EXECUTABLE",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "pkg-config executable"
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/bin/pkg-config"
- },
- {
- "name" : "PKG_FONTCONFIG_CFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-I/usr/include/uuid;-I/usr/include/freetype2;-I/usr/include/libpng16"
- },
- {
- "name" : "PKG_FONTCONFIG_CFLAGS_I",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_CFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_FOUND",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "PKG_FONTCONFIG_INCLUDEDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/include"
- },
- {
- "name" : "PKG_FONTCONFIG_INCLUDE_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/include/uuid;/usr/include/freetype2;/usr/include/libpng16"
- },
- {
- "name" : "PKG_FONTCONFIG_LDFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-lfontconfig;-lfreetype"
- },
- {
- "name" : "PKG_FONTCONFIG_LDFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_LIBDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/lib/aarch64-linux-gnu"
- },
- {
- "name" : "PKG_FONTCONFIG_LIBRARIES",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "fontconfig;freetype"
- },
- {
- "name" : "PKG_FONTCONFIG_LIBRARY_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_LIBS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_LIBS_L",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_LIBS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_LIBS_PATHS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_MODULE_NAME",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "fontconfig"
- },
- {
- "name" : "PKG_FONTCONFIG_PREFIX",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr"
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_CFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-I/usr/include/uuid;-I/usr/include/freetype2;-I/usr/include/libpng16"
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_CFLAGS_I",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_CFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_INCLUDE_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/include/uuid;/usr/include/freetype2;/usr/include/libpng16"
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LDFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-lfontconfig;-luuid;-lexpat;-lfreetype;-lpng16;-lm;-lz;-lm;-lz"
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LDFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBRARIES",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "fontconfig;uuid;expat;freetype;png16;m;z;m;z"
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBRARY_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBS_L",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_STATIC_LIBS_PATHS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "2.13.1"
- },
- {
- "name" : "PKG_FONTCONFIG_fontconfig_INCLUDEDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_fontconfig_LIBDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_fontconfig_PREFIX",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "PKG_FONTCONFIG_fontconfig_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_CFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-I/usr/include/aarch64-linux-gnu/qt5/QGSettings"
- },
- {
- "name" : "QGSettings_CFLAGS_I",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_CFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_FOUND",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "QGSettings_INCLUDEDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/include/aarch64-linux-gnu/qt5/QGSettings"
- },
- {
- "name" : "QGSettings_INCLUDE_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/include/aarch64-linux-gnu/qt5/QGSettings"
- },
- {
- "name" : "QGSettings_LDFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-lgsettings-qt"
- },
- {
- "name" : "QGSettings_LDFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_LIBDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/lib/aarch64-linux-gnu"
- },
- {
- "name" : "QGSettings_LIBRARIES",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "gsettings-qt"
- },
- {
- "name" : "QGSettings_LIBRARY_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_LIBS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_LIBS_L",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_LIBS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_LIBS_PATHS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_MODULE_NAME",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "gsettings-qt"
- },
- {
- "name" : "QGSettings_PREFIX",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr"
- },
- {
- "name" : "QGSettings_STATIC_CFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-I/usr/include/aarch64-linux-gnu/qt5/QGSettings"
- },
- {
- "name" : "QGSettings_STATIC_CFLAGS_I",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_CFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_INCLUDE_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/include/aarch64-linux-gnu/qt5/QGSettings"
- },
- {
- "name" : "QGSettings_STATIC_LDFLAGS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "-lgsettings-qt"
- },
- {
- "name" : "QGSettings_STATIC_LDFLAGS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_LIBDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_LIBRARIES",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "gsettings-qt"
- },
- {
- "name" : "QGSettings_STATIC_LIBRARY_DIRS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_LIBS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_LIBS_L",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_LIBS_OTHER",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_STATIC_LIBS_PATHS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "1.0.0"
- },
- {
- "name" : "QGSettings_gsettings-qt_INCLUDEDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_gsettings-qt_LIBDIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_gsettings-qt_PREFIX",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "QGSettings_gsettings-qt_VERSION",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : ""
- },
- {
- "name" : "Qt5Core_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Core."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Core"
- },
- {
- "name" : "Qt5DBus_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5DBus."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5DBus"
- },
- {
- "name" : "Qt5Gui_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Gui."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Gui"
- },
- {
- "name" : "Qt5LinguistTools_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5LinguistTools."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools"
- },
- {
- "name" : "Qt5Network_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Network."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Network"
- },
- {
- "name" : "Qt5Qml_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Qml."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Qml"
- },
- {
- "name" : "Qt5QuickWidgets_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5QuickWidgets."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets"
- },
- {
- "name" : "Qt5Quick_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Quick."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Quick"
- },
- {
- "name" : "Qt5Widgets_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Widgets."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets"
- },
- {
- "name" : "Qt5X11Extras_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5X11Extras."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras"
- },
- {
- "name" : "Qt5Xml_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5Xml."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5Xml"
- },
- {
- "name" : "Qt5_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "The directory containing a CMake configuration file for Qt5."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/lib/aarch64-linux-gnu/cmake/Qt5"
- },
- {
- "name" : "X11_ICE_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_ICE_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libICE.so"
- },
- {
- "name" : "X11_LIBRARIES",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "(This variable does not exist and should not be used)"
- }
- ],
- "type" : "UNINITIALIZED",
- "value" : ""
- },
- {
- "name" : "X11_LIB_X11_SOLO",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Have library /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so"
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "X11_SM_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_SM_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libSM.so"
- },
- {
- "name" : "X11_X11_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_X11_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libX11.so"
- },
- {
- "name" : "X11_XRes_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_XRes_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXRes.so"
- },
- {
- "name" : "X11_XShm_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_XSync_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xaccessrules_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xaccessstr_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xau_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xau_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXau.so"
- },
- {
- "name" : "X11_Xcomposite_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xcomposite_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXcomposite.so"
- },
- {
- "name" : "X11_Xcursor_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xcursor_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXcursor.so"
- },
- {
- "name" : "X11_Xdamage_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xdamage_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXdamage.so"
- },
- {
- "name" : "X11_Xdmcp_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xdmcp_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXdmcp.so"
- },
- {
- "name" : "X11_Xext_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xext_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXext.so"
- },
- {
- "name" : "X11_Xfixes_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xfixes_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXfixes.so"
- },
- {
- "name" : "X11_Xft_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xft_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXft.so"
- },
- {
- "name" : "X11_Xi_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xi_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXi.so"
- },
- {
- "name" : "X11_Xinerama_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xinerama_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXinerama.so"
- },
- {
- "name" : "X11_Xkb_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xkblib_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xlib_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xmu_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "X11_Xmu_INCLUDE_PATH-NOTFOUND"
- },
- {
- "name" : "X11_Xmu_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "X11_Xmu_LIB-NOTFOUND"
- },
- {
- "name" : "X11_Xpm_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "X11_Xpm_INCLUDE_PATH-NOTFOUND"
- },
- {
- "name" : "X11_Xpm_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "X11_Xpm_LIB-NOTFOUND"
- },
- {
- "name" : "X11_Xrandr_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xrandr_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXrandr.so"
- },
- {
- "name" : "X11_Xrender_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xrender_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXrender.so"
- },
- {
- "name" : "X11_Xshape_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xss_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xss_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXss.so"
- },
- {
- "name" : "X11_Xt_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xt_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXt.so"
- },
- {
- "name" : "X11_Xtst_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xtst_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXtst.so"
- },
- {
- "name" : "X11_Xutil_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xv_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_Xv_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libXv.so"
- },
- {
- "name" : "X11_Xxf86misc_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "X11_Xxf86misc_INCLUDE_PATH-NOTFOUND"
- },
- {
- "name" : "X11_Xxf86misc_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "X11_Xxf86misc_LIB-NOTFOUND"
- },
- {
- "name" : "X11_Xxf86vm_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "X11_Xxf86vm_INCLUDE_PATH-NOTFOUND"
- },
- {
- "name" : "X11_Xxf86vm_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "X11_Xxf86vm_LIB-NOTFOUND"
- },
- {
- "name" : "X11_dpms_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_xkbfile_INCLUDE_PATH",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a file."
- }
- ],
- "type" : "PATH",
- "value" : "/usr/include"
- },
- {
- "name" : "X11_xkbfile_LIB",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libxkbfile.so"
- },
- {
- "name" : "__pkg_config_arguments_PKG_FONTCONFIG",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "QUIET;fontconfig"
- },
- {
- "name" : "__pkg_config_arguments_QGSettings",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "REQUIRED;gsettings-qt"
- },
- {
- "name" : "__pkg_config_checked_PKG_FONTCONFIG",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "__pkg_config_checked_QGSettings",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "1"
- },
- {
- "name" : "pkgcfg_lib_PKG_FONTCONFIG_fontconfig",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libfontconfig.so"
- },
- {
- "name" : "pkgcfg_lib_PKG_FONTCONFIG_freetype",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libfreetype.so"
- },
- {
- "name" : "pkgcfg_lib_QGSettings_gsettings-qt",
- "properties" :
- [
- {
- "name" : "ADVANCED",
- "value" : "1"
- },
- {
- "name" : "HELPSTRING",
- "value" : "Path to a library."
- }
- ],
- "type" : "FILEPATH",
- "value" : "/usr/lib/aarch64-linux-gnu/libgsettings-qt.so"
- },
- {
- "name" : "prefix_result",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : ""
- }
- ],
- "type" : "INTERNAL",
- "value" : "/usr/lib/aarch64-linux-gnu"
- },
- {
- "name" : "ukui-window-switch_BINARY_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Value Computed by CMake"
- }
- ],
- "type" : "STATIC",
- "value" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build"
- },
- {
- "name" : "ukui-window-switch_SOURCE_DIR",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Value Computed by CMake"
- }
- ],
- "type" : "STATIC",
- "value" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch"
- },
- {
- "name" : "windowsview_LIB_DEPENDS",
- "properties" :
- [
- {
- "name" : "HELPSTRING",
- "value" : "Dependencies for the target"
- }
- ],
- "type" : "STATIC",
- "value" : "general;Qt5::Core;general;Qt5::Gui;general;Qt5::Widgets;general;Qt5::Quick;general;Qt5::QuickWidgets;general;KF5::ConfigCore;general;KF5::WindowSystem;general;KF5::CoreAddons;general;KF5::GlobalAccel;general;Qt5::X11Extras;general;gsettings-qt;"
- }
- ],
- "kind" : "cache",
- "version" :
- {
- "major" : 2,
- "minor" : 0
- }
-}
diff --git a/build/.cmake/api/v1/reply/codemodel-v2-62e3c06f278d6272a639.json b/build/.cmake/api/v1/reply/codemodel-v2-62e3c06f278d6272a639.json
deleted file mode 100644
index 56c1e3d3b4aa0221a29fd9859e45f5eaa4f0eb2a..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/codemodel-v2-62e3c06f278d6272a639.json
+++ /dev/null
@@ -1,146 +0,0 @@
-{
- "configurations" :
- [
- {
- "directories" :
- [
- {
- "build" : ".",
- "childIndexes" :
- [
- 1,
- 2
- ],
- "hasInstallRule" : true,
- "minimumCMakeVersion" :
- {
- "string" : "3.5"
- },
- "projectIndex" : 0,
- "source" : ".",
- "targetIndexes" :
- [
- 1,
- 4
- ]
- },
- {
- "build" : "windowsview",
- "hasInstallRule" : true,
- "minimumCMakeVersion" :
- {
- "string" : "3.5"
- },
- "parentIndex" : 0,
- "projectIndex" : 0,
- "source" : "windowsview",
- "targetIndexes" :
- [
- 0,
- 2,
- 3,
- 5,
- 6
- ]
- },
- {
- "build" : "windowswitchers",
- "hasInstallRule" : true,
- "minimumCMakeVersion" :
- {
- "string" : "3.5"
- },
- "parentIndex" : 0,
- "projectIndex" : 0,
- "source" : "windowswitchers"
- }
- ],
- "name" : "Debug",
- "projects" :
- [
- {
- "directoryIndexes" :
- [
- 0,
- 1,
- 2
- ],
- "name" : "ukui-window-switch",
- "targetIndexes" :
- [
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6
- ]
- }
- ],
- "targets" :
- [
- {
- "directoryIndex" : 1,
- "id" : "KF5Config_QCH::@5fc5302a0d3a0cad8215",
- "jsonFile" : "target-KF5Config_QCH-Debug-cd1b715b5a6149536908.json",
- "name" : "KF5Config_QCH",
- "projectIndex" : 0
- },
- {
- "directoryIndex" : 0,
- "id" : "KF5CoreAddons_QCH::@6890427a1f51a3e7e1df",
- "jsonFile" : "target-KF5CoreAddons_QCH-Debug-264984cd311e34d7a8c8.json",
- "name" : "KF5CoreAddons_QCH",
- "projectIndex" : 0
- },
- {
- "directoryIndex" : 1,
- "id" : "KF5GlobalAccel_QCH::@5fc5302a0d3a0cad8215",
- "jsonFile" : "target-KF5GlobalAccel_QCH-Debug-aef93c79f0c1414b7358.json",
- "name" : "KF5GlobalAccel_QCH",
- "projectIndex" : 0
- },
- {
- "directoryIndex" : 1,
- "id" : "KF5I18n_QCH::@5fc5302a0d3a0cad8215",
- "jsonFile" : "target-KF5I18n_QCH-Debug-7f850787b6a7c8cba396.json",
- "name" : "KF5I18n_QCH",
- "projectIndex" : 0
- },
- {
- "directoryIndex" : 0,
- "id" : "KF5WindowSystem_QCH::@6890427a1f51a3e7e1df",
- "jsonFile" : "target-KF5WindowSystem_QCH-Debug-9b5e3b81275280c9b659.json",
- "name" : "KF5WindowSystem_QCH",
- "projectIndex" : 0
- },
- {
- "directoryIndex" : 1,
- "id" : "windowsview::@5fc5302a0d3a0cad8215",
- "jsonFile" : "target-windowsview-Debug-9ff11bb8b062b413468b.json",
- "name" : "windowsview",
- "projectIndex" : 0
- },
- {
- "directoryIndex" : 1,
- "id" : "windowsview_autogen::@5fc5302a0d3a0cad8215",
- "jsonFile" : "target-windowsview_autogen-Debug-a0cfbbc130121d9a6082.json",
- "name" : "windowsview_autogen",
- "projectIndex" : 0
- }
- ]
- }
- ],
- "kind" : "codemodel",
- "paths" :
- {
- "build" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "source" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch"
- },
- "version" :
- {
- "major" : 2,
- "minor" : 0
- }
-}
diff --git a/build/.cmake/api/v1/reply/index-2022-06-19T03-03-11-0889.json b/build/.cmake/api/v1/reply/index-2022-06-19T03-03-11-0889.json
deleted file mode 100644
index 3937e1070637c2ae87f3077ad768d963c70d1bf3..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/index-2022-06-19T03-03-11-0889.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "cmake" :
- {
- "generator" :
- {
- "name" : "Ninja"
- },
- "paths" :
- {
- "cmake" : "/usr/bin/cmake",
- "cpack" : "/usr/bin/cpack",
- "ctest" : "/usr/bin/ctest",
- "root" : "/usr/share/cmake-3.16"
- },
- "version" :
- {
- "isDirty" : false,
- "major" : 3,
- "minor" : 16,
- "patch" : 3,
- "string" : "3.16.3",
- "suffix" : ""
- }
- },
- "objects" :
- [
- {
- "jsonFile" : "codemodel-v2-62e3c06f278d6272a639.json",
- "kind" : "codemodel",
- "version" :
- {
- "major" : 2,
- "minor" : 0
- }
- },
- {
- "jsonFile" : "cache-v2-b23ccf4369602b55edc1.json",
- "kind" : "cache",
- "version" :
- {
- "major" : 2,
- "minor" : 0
- }
- }
- ],
- "reply" :
- {
- "client-vscode" :
- {
- "query.json" :
- {
- "requests" :
- [
- {
- "kind" : "cache",
- "version" : 2
- },
- {
- "kind" : "codemodel",
- "version" : 2
- },
- {
- "kind" : "toolchains",
- "version" : 1
- }
- ],
- "responses" :
- [
- {
- "jsonFile" : "cache-v2-b23ccf4369602b55edc1.json",
- "kind" : "cache",
- "version" :
- {
- "major" : 2,
- "minor" : 0
- }
- },
- {
- "jsonFile" : "codemodel-v2-62e3c06f278d6272a639.json",
- "kind" : "codemodel",
- "version" :
- {
- "major" : 2,
- "minor" : 0
- }
- },
- {
- "error" : "unknown request kind 'toolchains'"
- }
- ]
- }
- }
- }
-}
diff --git a/build/.cmake/api/v1/reply/target-KF5Config_QCH-Debug-cd1b715b5a6149536908.json b/build/.cmake/api/v1/reply/target-KF5Config_QCH-Debug-cd1b715b5a6149536908.json
deleted file mode 100644
index 6ad19da01fbe433a9f8a31f068922d380cc2197c..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-KF5Config_QCH-Debug-cd1b715b5a6149536908.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "backtrace" : 5,
- "backtraceGraph" :
- {
- "commands" :
- [
- "add_custom_target",
- "include",
- "find_package"
- ],
- "files" :
- [
- "/usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigQchTargets.cmake",
- "/usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake",
- "windowsview/CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 2
- },
- {
- "command" : 2,
- "file" : 2,
- "line" : 23,
- "parent" : 0
- },
- {
- "file" : 1,
- "parent" : 1
- },
- {
- "command" : 1,
- "file" : 1,
- "line" : 40,
- "parent" : 2
- },
- {
- "file" : 0,
- "parent" : 3
- },
- {
- "command" : 0,
- "file" : 0,
- "line" : 5,
- "parent" : 4
- }
- ]
- },
- "id" : "KF5Config_QCH::@5fc5302a0d3a0cad8215",
- "name" : "KF5Config_QCH",
- "paths" :
- {
- "build" : "windowsview",
- "source" : "windowsview"
- },
- "sources" : [],
- "type" : "UTILITY"
-}
diff --git a/build/.cmake/api/v1/reply/target-KF5CoreAddons_QCH-Debug-264984cd311e34d7a8c8.json b/build/.cmake/api/v1/reply/target-KF5CoreAddons_QCH-Debug-264984cd311e34d7a8c8.json
deleted file mode 100644
index db0e3f3243611c5d2e418f69d5558d5e013cef81..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-KF5CoreAddons_QCH-Debug-264984cd311e34d7a8c8.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "backtrace" : 5,
- "backtraceGraph" :
- {
- "commands" :
- [
- "add_custom_target",
- "include",
- "find_package"
- ],
- "files" :
- [
- "/usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsQchTargets.cmake",
- "/usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake",
- "CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 2
- },
- {
- "command" : 2,
- "file" : 2,
- "line" : 9,
- "parent" : 0
- },
- {
- "file" : 1,
- "parent" : 1
- },
- {
- "command" : 1,
- "file" : 1,
- "line" : 78,
- "parent" : 2
- },
- {
- "file" : 0,
- "parent" : 3
- },
- {
- "command" : 0,
- "file" : 0,
- "line" : 5,
- "parent" : 4
- }
- ]
- },
- "id" : "KF5CoreAddons_QCH::@6890427a1f51a3e7e1df",
- "name" : "KF5CoreAddons_QCH",
- "paths" :
- {
- "build" : ".",
- "source" : "."
- },
- "sources" : [],
- "type" : "UTILITY"
-}
diff --git a/build/.cmake/api/v1/reply/target-KF5GlobalAccel_QCH-Debug-aef93c79f0c1414b7358.json b/build/.cmake/api/v1/reply/target-KF5GlobalAccel_QCH-Debug-aef93c79f0c1414b7358.json
deleted file mode 100644
index 38c1d9d1e47879cd7a9a8bc3cd2b461fc9aaf8ba..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-KF5GlobalAccel_QCH-Debug-aef93c79f0c1414b7358.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "backtrace" : 5,
- "backtraceGraph" :
- {
- "commands" :
- [
- "add_custom_target",
- "include",
- "find_package"
- ],
- "files" :
- [
- "/usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelQchTargets.cmake",
- "/usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake",
- "windowsview/CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 2
- },
- {
- "command" : 2,
- "file" : 2,
- "line" : 24,
- "parent" : 0
- },
- {
- "file" : 1,
- "parent" : 1
- },
- {
- "command" : 1,
- "file" : 1,
- "line" : 44,
- "parent" : 2
- },
- {
- "file" : 0,
- "parent" : 3
- },
- {
- "command" : 0,
- "file" : 0,
- "line" : 5,
- "parent" : 4
- }
- ]
- },
- "id" : "KF5GlobalAccel_QCH::@5fc5302a0d3a0cad8215",
- "name" : "KF5GlobalAccel_QCH",
- "paths" :
- {
- "build" : "windowsview",
- "source" : "windowsview"
- },
- "sources" : [],
- "type" : "UTILITY"
-}
diff --git a/build/.cmake/api/v1/reply/target-KF5I18n_QCH-Debug-7f850787b6a7c8cba396.json b/build/.cmake/api/v1/reply/target-KF5I18n_QCH-Debug-7f850787b6a7c8cba396.json
deleted file mode 100644
index 2da780a4ba251e40bcc28c715620d94d68392c85..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-KF5I18n_QCH-Debug-7f850787b6a7c8cba396.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "backtrace" : 5,
- "backtraceGraph" :
- {
- "commands" :
- [
- "add_custom_target",
- "include",
- "find_package"
- ],
- "files" :
- [
- "/usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nQchTargets.cmake",
- "/usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake",
- "windowsview/CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 2
- },
- {
- "command" : 2,
- "file" : 2,
- "line" : 25,
- "parent" : 0
- },
- {
- "file" : 1,
- "parent" : 1
- },
- {
- "command" : 1,
- "file" : 1,
- "line" : 42,
- "parent" : 2
- },
- {
- "file" : 0,
- "parent" : 3
- },
- {
- "command" : 0,
- "file" : 0,
- "line" : 5,
- "parent" : 4
- }
- ]
- },
- "id" : "KF5I18n_QCH::@5fc5302a0d3a0cad8215",
- "name" : "KF5I18n_QCH",
- "paths" :
- {
- "build" : "windowsview",
- "source" : "windowsview"
- },
- "sources" : [],
- "type" : "UTILITY"
-}
diff --git a/build/.cmake/api/v1/reply/target-KF5WindowSystem_QCH-Debug-9b5e3b81275280c9b659.json b/build/.cmake/api/v1/reply/target-KF5WindowSystem_QCH-Debug-9b5e3b81275280c9b659.json
deleted file mode 100644
index 68b4b3dac5d80c41a738dc6bcaa603294ca21198..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-KF5WindowSystem_QCH-Debug-9b5e3b81275280c9b659.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "backtrace" : 5,
- "backtraceGraph" :
- {
- "commands" :
- [
- "add_custom_target",
- "include",
- "find_package"
- ],
- "files" :
- [
- "/usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemQchTargets.cmake",
- "/usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake",
- "CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 2
- },
- {
- "command" : 2,
- "file" : 2,
- "line" : 10,
- "parent" : 0
- },
- {
- "file" : 1,
- "parent" : 1
- },
- {
- "command" : 1,
- "file" : 1,
- "line" : 42,
- "parent" : 2
- },
- {
- "file" : 0,
- "parent" : 3
- },
- {
- "command" : 0,
- "file" : 0,
- "line" : 5,
- "parent" : 4
- }
- ]
- },
- "id" : "KF5WindowSystem_QCH::@6890427a1f51a3e7e1df",
- "name" : "KF5WindowSystem_QCH",
- "paths" :
- {
- "build" : ".",
- "source" : "."
- },
- "sources" : [],
- "type" : "UTILITY"
-}
diff --git a/build/.cmake/api/v1/reply/target-windowsview-Debug-9ff11bb8b062b413468b.json b/build/.cmake/api/v1/reply/target-windowsview-Debug-9ff11bb8b062b413468b.json
deleted file mode 100644
index bc0b91212771f6836022ec638b5e230336f49641..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-windowsview-Debug-9ff11bb8b062b413468b.json
+++ /dev/null
@@ -1,429 +0,0 @@
-{
- "artifacts" :
- [
- {
- "path" : "windowsview/libwindowsview.so"
- }
- ],
- "backtrace" : 1,
- "backtraceGraph" :
- {
- "commands" :
- [
- "add_library",
- "install",
- "target_link_libraries",
- "include_directories"
- ],
- "files" :
- [
- "windowsview/CMakeLists.txt",
- "CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 0
- },
- {
- "command" : 0,
- "file" : 0,
- "line" : 40,
- "parent" : 0
- },
- {
- "command" : 1,
- "file" : 0,
- "line" : 64,
- "parent" : 0
- },
- {
- "command" : 2,
- "file" : 0,
- "line" : 47,
- "parent" : 0
- },
- {
- "file" : 1
- },
- {
- "command" : 3,
- "file" : 1,
- "line" : 7,
- "parent" : 4
- },
- {
- "command" : 3,
- "file" : 0,
- "line" : 45,
- "parent" : 0
- }
- ]
- },
- "compileGroups" :
- [
- {
- "compileCommandFragments" :
- [
- {
- "fragment" : "-g -fPIC "
- },
- {
- "backtrace" : 3,
- "fragment" : "-fPIC"
- },
- {
- "fragment" : "-std=gnu++14"
- }
- ],
- "defines" :
- [
- {
- "backtrace" : 3,
- "define" : "KCOREADDONS_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_CORE_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_DBUS_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_GUI_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_NETWORK_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_QML_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_QUICKWIDGETS_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_QUICK_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_WIDGETS_LIB"
- },
- {
- "backtrace" : 3,
- "define" : "QT_X11EXTRAS_LIB"
- },
- {
- "define" : "windowsview_EXPORTS"
- }
- ],
- "includes" :
- [
- {
- "path" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview"
- },
- {
- "path" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview"
- },
- {
- "backtrace" : 0,
- "path" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen/include"
- },
- {
- "backtrace" : 5,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QGSettings"
- },
- {
- "backtrace" : 6,
- "path" : "/usr/include/kwin"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtCore"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtGui"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtWidgets"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtQuick"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtQml"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtNetwork"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/KF5/KConfigCore"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/KF5"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/KF5/KWindowSystem"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/KF5/KCoreAddons"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/KF5/KGlobalAccel"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtDBus"
- },
- {
- "backtrace" : 3,
- "isSystem" : true,
- "path" : "/usr/include/aarch64-linux-gnu/qt5/QtX11Extras"
- }
- ],
- "language" : "CXX",
- "sourceIndexes" :
- [
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7
- ]
- }
- ],
- "dependencies" :
- [
- {
- "backtrace" : 0,
- "id" : "windowsview_autogen::@5fc5302a0d3a0cad8215"
- }
- ],
- "id" : "windowsview::@5fc5302a0d3a0cad8215",
- "install" :
- {
- "destinations" :
- [
- {
- "backtrace" : 2,
- "path" : "/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins"
- }
- ],
- "prefix" :
- {
- "path" : "/usr/local"
- }
- },
- "link" :
- {
- "commandFragments" :
- [
- {
- "fragment" : "",
- "role" : "flags"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5QuickWidgets.so.5.12.8",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libKF5ConfigCore.so.5.68.0",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libKF5WindowSystem.so.5.68.0",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libKF5CoreAddons.so.5.68.0",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libKF5GlobalAccel.so.5.68.0",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5X11Extras.so.5.12.8",
- "role" : "libraries"
- },
- {
- "fragment" : "-lgsettings-qt",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5Quick.so.5.12.8",
- "role" : "libraries"
- },
- {
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5Qml.so.5.12.8",
- "role" : "libraries"
- },
- {
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5Network.so.5.12.8",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5.12.8",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5Gui.so.5.12.8",
- "role" : "libraries"
- },
- {
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5DBus.so.5.12.8",
- "role" : "libraries"
- },
- {
- "backtrace" : 3,
- "fragment" : "/usr/lib/aarch64-linux-gnu/libQt5Core.so.5.12.8",
- "role" : "libraries"
- }
- ],
- "language" : "CXX"
- },
- "name" : "windowsview",
- "nameOnDisk" : "libwindowsview.so",
- "paths" :
- {
- "build" : "windowsview",
- "source" : "windowsview"
- },
- "sourceGroups" :
- [
- {
- "name" : "Source Files",
- "sourceIndexes" :
- [
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7
- ]
- },
- {
- "name" : "",
- "sourceIndexes" :
- [
- 8
- ]
- }
- ],
- "sources" :
- [
- {
- "backtrace" : 0,
- "compileGroupIndex" : 0,
- "isGenerated" : true,
- "path" : "build/windowsview/windowsview_autogen/mocs_compilation.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "path" : "windowsview/desktopbackground.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "path" : "windowsview/icontheme.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "path" : "windowsview/multitaskviewmodel.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "path" : "windowsview/multitaskviewmanager.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "path" : "windowsview/dbusservice.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "path" : "windowsview/multitaskviewmanagerpluginfactory.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 1,
- "compileGroupIndex" : 0,
- "isGenerated" : true,
- "path" : "build/windowsview/qrc_data.cpp",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 0,
- "path" : "windowsview/data.qrc",
- "sourceGroupIndex" : 1
- }
- ],
- "type" : "MODULE_LIBRARY"
-}
diff --git a/build/.cmake/api/v1/reply/target-windowsview_autogen-Debug-a0cfbbc130121d9a6082.json b/build/.cmake/api/v1/reply/target-windowsview_autogen-Debug-a0cfbbc130121d9a6082.json
deleted file mode 100644
index b163b9b56fa53d534b3a9f4932cb333e7c79399c..0000000000000000000000000000000000000000
--- a/build/.cmake/api/v1/reply/target-windowsview_autogen-Debug-a0cfbbc130121d9a6082.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "backtrace" : 0,
- "backtraceGraph" :
- {
- "commands" : [],
- "files" :
- [
- "windowsview/CMakeLists.txt"
- ],
- "nodes" :
- [
- {
- "file" : 0
- }
- ]
- },
- "id" : "windowsview_autogen::@5fc5302a0d3a0cad8215",
- "isGeneratorProvided" : true,
- "name" : "windowsview_autogen",
- "paths" :
- {
- "build" : "windowsview",
- "source" : "windowsview"
- },
- "sourceGroups" :
- [
- {
- "name" : "",
- "sourceIndexes" :
- [
- 0
- ]
- },
- {
- "name" : "CMake Rules",
- "sourceIndexes" :
- [
- 1
- ]
- }
- ],
- "sources" :
- [
- {
- "backtrace" : 0,
- "isGenerated" : true,
- "path" : "build/windowsview/CMakeFiles/windowsview_autogen",
- "sourceGroupIndex" : 0
- },
- {
- "backtrace" : 0,
- "isGenerated" : true,
- "path" : "build/windowsview/CMakeFiles/windowsview_autogen.rule",
- "sourceGroupIndex" : 1
- }
- ],
- "type" : "UTILITY"
-}
diff --git a/build/CMakeCache.txt b/build/CMakeCache.txt
deleted file mode 100644
index 90c54342eeaebe0f7d2dbcd1e715b9bbf70571b1..0000000000000000000000000000000000000000
--- a/build/CMakeCache.txt
+++ /dev/null
@@ -1,919 +0,0 @@
-# This is the CMakeCache file.
-# For build in directory: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
-# It was generated by CMake: /usr/bin/cmake
-# You can edit this file to change values found and used by cmake.
-# If you do not want to change any of the values, simply exit the editor.
-# If you do want to change a value, simply edit, save, and exit the editor.
-# The syntax for the file is as follows:
-# KEY:TYPE=VALUE
-# KEY is the name of a variable in the cache.
-# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
-# VALUE is the current value for the KEY.
-
-########################
-# EXTERNAL cache entries
-########################
-
-//Path to a program.
-CMAKE_ADDR2LINE:FILEPATH=/bin/addr2line
-
-//Path to a program.
-CMAKE_AR:FILEPATH=/bin/ar
-
-//No help, variable specified on the command line.
-CMAKE_BUILD_TYPE:STRING=Debug
-
-//CXX compiler
-CMAKE_CXX_COMPILER:FILEPATH=/bin/c++
-
-//A wrapper around 'ar' adding the appropriate '--plugin' option
-// for the GCC compiler
-CMAKE_CXX_COMPILER_AR:FILEPATH=/bin/gcc-ar-9
-
-//A wrapper around 'ranlib' adding the appropriate '--plugin' option
-// for the GCC compiler
-CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/bin/gcc-ranlib-9
-
-//Flags used by the CXX compiler during all build types.
-CMAKE_CXX_FLAGS:STRING=
-
-//Flags used by the CXX compiler during DEBUG builds.
-CMAKE_CXX_FLAGS_DEBUG:STRING=-g
-
-//Flags used by the CXX compiler during MINSIZEREL builds.
-CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
-
-//Flags used by the CXX compiler during RELEASE builds.
-CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
-
-//Flags used by the CXX compiler during RELWITHDEBINFO builds.
-CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
-
-//No help, variable specified on the command line.
-CMAKE_C_COMPILER:FILEPATH=/bin/c99-gcc
-
-//A wrapper around 'ar' adding the appropriate '--plugin' option
-// for the GCC compiler
-CMAKE_C_COMPILER_AR:FILEPATH=/bin/gcc-ar-9
-
-//A wrapper around 'ranlib' adding the appropriate '--plugin' option
-// for the GCC compiler
-CMAKE_C_COMPILER_RANLIB:FILEPATH=/bin/gcc-ranlib-9
-
-//Flags used by the C compiler during all build types.
-CMAKE_C_FLAGS:STRING=
-
-//Flags used by the C compiler during DEBUG builds.
-CMAKE_C_FLAGS_DEBUG:STRING=-g
-
-//Flags used by the C compiler during MINSIZEREL builds.
-CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
-
-//Flags used by the C compiler during RELEASE builds.
-CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
-
-//Flags used by the C compiler during RELWITHDEBINFO builds.
-CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
-
-//Path to a program.
-CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
-
-//Flags used by the linker during all build types.
-CMAKE_EXE_LINKER_FLAGS:STRING=
-
-//Flags used by the linker during DEBUG builds.
-CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
-
-//Flags used by the linker during MINSIZEREL builds.
-CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
-
-//Flags used by the linker during RELEASE builds.
-CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
-
-//Flags used by the linker during RELWITHDEBINFO builds.
-CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
-
-//No help, variable specified on the command line.
-CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
-
-//Install path prefix, prepended onto install directories.
-CMAKE_INSTALL_PREFIX:PATH=/usr/local
-
-//Path to a program.
-CMAKE_LINKER:FILEPATH=/bin/ld
-
-//Program used to build from build.ninja files.
-CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/ninja
-
-//Flags used by the linker during the creation of modules during
-// all build types.
-CMAKE_MODULE_LINKER_FLAGS:STRING=
-
-//Flags used by the linker during the creation of modules during
-// DEBUG builds.
-CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
-
-//Flags used by the linker during the creation of modules during
-// MINSIZEREL builds.
-CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
-
-//Flags used by the linker during the creation of modules during
-// RELEASE builds.
-CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
-
-//Flags used by the linker during the creation of modules during
-// RELWITHDEBINFO builds.
-CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
-
-//Path to a program.
-CMAKE_NM:FILEPATH=/bin/nm
-
-//Path to a program.
-CMAKE_OBJCOPY:FILEPATH=/bin/objcopy
-
-//Path to a program.
-CMAKE_OBJDUMP:FILEPATH=/bin/objdump
-
-//Value Computed by CMake
-CMAKE_PROJECT_DESCRIPTION:STATIC=
-
-//Value Computed by CMake
-CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
-
-//Value Computed by CMake
-CMAKE_PROJECT_NAME:STATIC=ukui-window-switch
-
-//Path to a program.
-CMAKE_RANLIB:FILEPATH=/bin/ranlib
-
-//Path to a program.
-CMAKE_READELF:FILEPATH=/bin/readelf
-
-//Flags used by the linker during the creation of shared libraries
-// during all build types.
-CMAKE_SHARED_LINKER_FLAGS:STRING=
-
-//Flags used by the linker during the creation of shared libraries
-// during DEBUG builds.
-CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
-
-//Flags used by the linker during the creation of shared libraries
-// during MINSIZEREL builds.
-CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
-
-//Flags used by the linker during the creation of shared libraries
-// during RELEASE builds.
-CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
-
-//Flags used by the linker during the creation of shared libraries
-// during RELWITHDEBINFO builds.
-CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
-
-//If set, runtime paths are not added when installing shared libraries,
-// but are added when building.
-CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
-
-//If set, runtime paths are not added when using shared libraries.
-CMAKE_SKIP_RPATH:BOOL=NO
-
-//Flags used by the linker during the creation of static libraries
-// during all build types.
-CMAKE_STATIC_LINKER_FLAGS:STRING=
-
-//Flags used by the linker during the creation of static libraries
-// during DEBUG builds.
-CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
-
-//Flags used by the linker during the creation of static libraries
-// during MINSIZEREL builds.
-CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
-
-//Flags used by the linker during the creation of static libraries
-// during RELEASE builds.
-CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
-
-//Flags used by the linker during the creation of static libraries
-// during RELWITHDEBINFO builds.
-CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
-
-//Path to a program.
-CMAKE_STRIP:FILEPATH=/bin/strip
-
-//If this value is on, makefiles will be generated without the
-// .SILENT directive, and all commands will be echoed to the console
-// during the make. This is useful for debugging only. With Visual
-// Studio IDE projects all commands are done without /nologo.
-CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
-
-//The directory containing a CMake configuration file for ECM.
-ECM_DIR:PATH=/usr/share/ECM/cmake
-
-//The directory containing a CMake configuration file for EGL.
-EGL_DIR:PATH=EGL_DIR-NOTFOUND
-
-//Path to a file.
-FREETYPE_INCLUDE_DIR_freetype2:PATH=/usr/include/freetype2
-
-//Path to a file.
-FREETYPE_INCLUDE_DIR_ft2build:PATH=/usr/include/freetype2
-
-//Path to a library.
-FREETYPE_LIBRARY_DEBUG:FILEPATH=FREETYPE_LIBRARY_DEBUG-NOTFOUND
-
-//Path to a library.
-FREETYPE_LIBRARY_RELEASE:FILEPATH=/usr/lib/aarch64-linux-gnu/libfreetype.so
-
-//Path to a file.
-Fontconfig_INCLUDE_DIR:PATH=/usr/include
-
-//Path to a library.
-Fontconfig_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libfontconfig.so
-
-//Path to a program.
-GETTEXT_MSGFMT_EXECUTABLE:FILEPATH=/usr/bin/msgfmt
-
-//Path to a program.
-GETTEXT_MSGMERGE_EXECUTABLE:FILEPATH=/usr/bin/msgmerge
-
-//The directory containing a CMake configuration file for KF5Config.
-KF5Config_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/KF5Config
-
-//The directory containing a CMake configuration file for KF5CoreAddons.
-KF5CoreAddons_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons
-
-//The directory containing a CMake configuration file for KF5GlobalAccel.
-KF5GlobalAccel_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel
-
-//The directory containing a CMake configuration file for KF5I18n.
-KF5I18n_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/KF5I18n
-
-//The directory containing a CMake configuration file for KF5WindowSystem.
-KF5WindowSystem_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem
-
-//Path to a program.
-KI18N_PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3
-
-//Path to a file.
-OPENGL_EGL_INCLUDE_DIR:PATH=/usr/include
-
-//Path to a file.
-OPENGL_GLX_INCLUDE_DIR:PATH=/usr/include
-
-//Path to a file.
-OPENGL_INCLUDE_DIR:PATH=/usr/include
-
-//Path to a library.
-OPENGL_egl_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libEGL.so
-
-//Path to a library.
-OPENGL_gl_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libGL.so
-
-//Path to a library.
-OPENGL_glu_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libGLU.so
-
-//Path to a library.
-OPENGL_glx_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libGLX.so
-
-//Path to a library.
-OPENGL_opengl_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libOpenGL.so
-
-//Path to a file.
-OPENGL_xmesa_INCLUDE_DIR:PATH=OPENGL_xmesa_INCLUDE_DIR-NOTFOUND
-
-//pkg-config executable
-PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config
-
-//The directory containing a CMake configuration file for Qt5Core.
-Qt5Core_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Core
-
-//The directory containing a CMake configuration file for Qt5DBus.
-Qt5DBus_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5DBus
-
-//The directory containing a CMake configuration file for Qt5Gui.
-Qt5Gui_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Gui
-
-//The directory containing a CMake configuration file for Qt5LinguistTools.
-Qt5LinguistTools_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools
-
-//The directory containing a CMake configuration file for Qt5Network.
-Qt5Network_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Network
-
-//The directory containing a CMake configuration file for Qt5Qml.
-Qt5Qml_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Qml
-
-//The directory containing a CMake configuration file for Qt5QuickWidgets.
-Qt5QuickWidgets_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets
-
-//The directory containing a CMake configuration file for Qt5Quick.
-Qt5Quick_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Quick
-
-//The directory containing a CMake configuration file for Qt5Widgets.
-Qt5Widgets_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets
-
-//The directory containing a CMake configuration file for Qt5X11Extras.
-Qt5X11Extras_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras
-
-//The directory containing a CMake configuration file for Qt5Xml.
-Qt5Xml_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5Xml
-
-//The directory containing a CMake configuration file for Qt5.
-Qt5_DIR:PATH=/usr/lib/aarch64-linux-gnu/cmake/Qt5
-
-//Path to a file.
-X11_ICE_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_ICE_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libICE.so
-
-//Path to a file.
-X11_SM_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_SM_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libSM.so
-
-//Path to a file.
-X11_X11_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_X11_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libX11.so
-
-//Path to a file.
-X11_XRes_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_XRes_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXRes.so
-
-//Path to a file.
-X11_XShm_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_XSync_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xaccessrules_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xaccessstr_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xau_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xau_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXau.so
-
-//Path to a file.
-X11_Xcomposite_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xcomposite_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXcomposite.so
-
-//Path to a file.
-X11_Xcursor_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xcursor_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXcursor.so
-
-//Path to a file.
-X11_Xdamage_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xdamage_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXdamage.so
-
-//Path to a file.
-X11_Xdmcp_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xdmcp_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXdmcp.so
-
-//Path to a file.
-X11_Xext_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xext_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXext.so
-
-//Path to a file.
-X11_Xfixes_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xfixes_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXfixes.so
-
-//Path to a file.
-X11_Xft_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xft_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXft.so
-
-//Path to a file.
-X11_Xi_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xi_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXi.so
-
-//Path to a file.
-X11_Xinerama_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xinerama_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXinerama.so
-
-//Path to a file.
-X11_Xkb_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xkblib_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xlib_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xmu_INCLUDE_PATH:PATH=X11_Xmu_INCLUDE_PATH-NOTFOUND
-
-//Path to a library.
-X11_Xmu_LIB:FILEPATH=X11_Xmu_LIB-NOTFOUND
-
-//Path to a file.
-X11_Xpm_INCLUDE_PATH:PATH=X11_Xpm_INCLUDE_PATH-NOTFOUND
-
-//Path to a library.
-X11_Xpm_LIB:FILEPATH=X11_Xpm_LIB-NOTFOUND
-
-//Path to a file.
-X11_Xrandr_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xrandr_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXrandr.so
-
-//Path to a file.
-X11_Xrender_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xrender_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXrender.so
-
-//Path to a file.
-X11_Xshape_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xss_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xss_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXss.so
-
-//Path to a file.
-X11_Xt_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xt_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXt.so
-
-//Path to a file.
-X11_Xtst_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xtst_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXtst.so
-
-//Path to a file.
-X11_Xutil_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_Xv_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_Xv_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libXv.so
-
-//Path to a file.
-X11_Xxf86misc_INCLUDE_PATH:PATH=X11_Xxf86misc_INCLUDE_PATH-NOTFOUND
-
-//Path to a library.
-X11_Xxf86misc_LIB:FILEPATH=X11_Xxf86misc_LIB-NOTFOUND
-
-//Path to a file.
-X11_Xxf86vm_INCLUDE_PATH:PATH=X11_Xxf86vm_INCLUDE_PATH-NOTFOUND
-
-//Path to a library.
-X11_Xxf86vm_LIB:FILEPATH=X11_Xxf86vm_LIB-NOTFOUND
-
-//Path to a file.
-X11_dpms_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a file.
-X11_xkbfile_INCLUDE_PATH:PATH=/usr/include
-
-//Path to a library.
-X11_xkbfile_LIB:FILEPATH=/usr/lib/aarch64-linux-gnu/libxkbfile.so
-
-//Path to a library.
-pkgcfg_lib_PKG_FONTCONFIG_fontconfig:FILEPATH=/usr/lib/aarch64-linux-gnu/libfontconfig.so
-
-//Path to a library.
-pkgcfg_lib_PKG_FONTCONFIG_freetype:FILEPATH=/usr/lib/aarch64-linux-gnu/libfreetype.so
-
-//Path to a library.
-pkgcfg_lib_QGSettings_gsettings-qt:FILEPATH=/usr/lib/aarch64-linux-gnu/libgsettings-qt.so
-
-//Value Computed by CMake
-ukui-window-switch_BINARY_DIR:STATIC=/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
-
-//Value Computed by CMake
-ukui-window-switch_SOURCE_DIR:STATIC=/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch
-
-//Dependencies for the target
-windowsview_LIB_DEPENDS:STATIC=general;Qt5::Core;general;Qt5::Gui;general;Qt5::Widgets;general;Qt5::Quick;general;Qt5::QuickWidgets;general;KF5::ConfigCore;general;KF5::WindowSystem;general;KF5::CoreAddons;general;KF5::GlobalAccel;general;Qt5::X11Extras;general;gsettings-qt;
-
-
-########################
-# INTERNAL cache entries
-########################
-
-//ADVANCED property for variable: CMAKE_ADDR2LINE
-CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_AR
-CMAKE_AR-ADVANCED:INTERNAL=1
-//This is the directory where this CMakeCache.txt was created
-CMAKE_CACHEFILE_DIR:INTERNAL=/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
-//Major version of cmake used to create the current loaded cache
-CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
-//Minor version of cmake used to create the current loaded cache
-CMAKE_CACHE_MINOR_VERSION:INTERNAL=16
-//Patch version of cmake used to create the current loaded cache
-CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
-//Path to CMake executable.
-CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
-//Path to cpack program executable.
-CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
-//Path to ctest program executable.
-CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
-//ADVANCED property for variable: CMAKE_CXX_COMPILER
-CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
-CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
-CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_FLAGS
-CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
-CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
-CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
-CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
-CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_COMPILER
-CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_COMPILER_AR
-CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
-CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_FLAGS
-CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
-CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
-CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
-CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
-CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_DLLTOOL
-CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
-//Executable file format
-CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
-//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
-CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
-CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
-CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
-CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
-CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
-CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
-//Name of external makefile project generator.
-CMAKE_EXTRA_GENERATOR:INTERNAL=
-//Name of generator.
-CMAKE_GENERATOR:INTERNAL=Ninja
-//Generator instance identifier.
-CMAKE_GENERATOR_INSTANCE:INTERNAL=
-//Name of generator platform.
-CMAKE_GENERATOR_PLATFORM:INTERNAL=
-//Name of generator toolset.
-CMAKE_GENERATOR_TOOLSET:INTERNAL=
-//Have function connect
-CMAKE_HAVE_CONNECT:INTERNAL=1
-//Have function gethostbyname
-CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1
-//Have function remove
-CMAKE_HAVE_REMOVE:INTERNAL=1
-//Have function shmat
-CMAKE_HAVE_SHMAT:INTERNAL=1
-//Source directory with the top level CMakeLists.txt file for this
-// project
-CMAKE_HOME_DIRECTORY:INTERNAL=/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch
-//Install .so files without execute permission.
-CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
-//Have library ICE
-CMAKE_LIB_ICE_HAS_ICECONNECTIONNUMBER:INTERNAL=1
-//ADVANCED property for variable: CMAKE_LINKER
-CMAKE_LINKER-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
-CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
-CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
-CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
-CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
-CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
-CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_NM
-CMAKE_NM-ADVANCED:INTERNAL=1
-//number of local generators
-CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=3
-//ADVANCED property for variable: CMAKE_OBJCOPY
-CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_OBJDUMP
-CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
-//Platform information initialized
-CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_RANLIB
-CMAKE_RANLIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_READELF
-CMAKE_READELF-ADVANCED:INTERNAL=1
-//Path to CMake installation.
-CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.16
-//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
-CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
-CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
-CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
-CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
-CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
-CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_SKIP_RPATH
-CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
-CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
-CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
-CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
-CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
-CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: CMAKE_STRIP
-CMAKE_STRIP-ADVANCED:INTERNAL=1
-//uname command
-CMAKE_UNAME:INTERNAL=/usr/bin/uname
-//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
-CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
-//Details about finding Gettext
-FIND_PACKAGE_MESSAGE_DETAILS_Gettext:INTERNAL=[/usr/bin/msgmerge][/usr/bin/msgfmt][v0.19.8.1()]
-//Details about finding OpenGL
-FIND_PACKAGE_MESSAGE_DETAILS_OpenGL:INTERNAL=[/usr/lib/aarch64-linux-gnu/libOpenGL.so][/usr/lib/aarch64-linux-gnu/libGLX.so][/usr/include][c ][v()]
-//Details about finding PkgConfig
-FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/usr/bin/pkg-config][v0.29.1()]
-//Details about finding X11
-FIND_PACKAGE_MESSAGE_DETAILS_X11:INTERNAL=[/usr/include][/usr/lib/aarch64-linux-gnu/libX11.so][c ][v()]
-//ADVANCED property for variable: FREETYPE_INCLUDE_DIR_freetype2
-FREETYPE_INCLUDE_DIR_freetype2-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: FREETYPE_INCLUDE_DIR_ft2build
-FREETYPE_INCLUDE_DIR_ft2build-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: FREETYPE_LIBRARY_DEBUG
-FREETYPE_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: FREETYPE_LIBRARY_RELEASE
-FREETYPE_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: Fontconfig_INCLUDE_DIR
-Fontconfig_INCLUDE_DIR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: Fontconfig_LIBRARY
-Fontconfig_LIBRARY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_EGL_INCLUDE_DIR
-OPENGL_EGL_INCLUDE_DIR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_GLX_INCLUDE_DIR
-OPENGL_GLX_INCLUDE_DIR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_INCLUDE_DIR
-OPENGL_INCLUDE_DIR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_egl_LIBRARY
-OPENGL_egl_LIBRARY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_gl_LIBRARY
-OPENGL_gl_LIBRARY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_glu_LIBRARY
-OPENGL_glu_LIBRARY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_glx_LIBRARY
-OPENGL_glx_LIBRARY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_opengl_LIBRARY
-OPENGL_opengl_LIBRARY-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: OPENGL_xmesa_INCLUDE_DIR
-OPENGL_xmesa_INCLUDE_DIR-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE
-PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1
-PKG_FONTCONFIG_CFLAGS:INTERNAL=-I/usr/include/uuid;-I/usr/include/freetype2;-I/usr/include/libpng16
-PKG_FONTCONFIG_CFLAGS_I:INTERNAL=
-PKG_FONTCONFIG_CFLAGS_OTHER:INTERNAL=
-PKG_FONTCONFIG_FOUND:INTERNAL=1
-PKG_FONTCONFIG_INCLUDEDIR:INTERNAL=/usr/include
-PKG_FONTCONFIG_INCLUDE_DIRS:INTERNAL=/usr/include/uuid;/usr/include/freetype2;/usr/include/libpng16
-PKG_FONTCONFIG_LDFLAGS:INTERNAL=-lfontconfig;-lfreetype
-PKG_FONTCONFIG_LDFLAGS_OTHER:INTERNAL=
-PKG_FONTCONFIG_LIBDIR:INTERNAL=/usr/lib/aarch64-linux-gnu
-PKG_FONTCONFIG_LIBRARIES:INTERNAL=fontconfig;freetype
-PKG_FONTCONFIG_LIBRARY_DIRS:INTERNAL=
-PKG_FONTCONFIG_LIBS:INTERNAL=
-PKG_FONTCONFIG_LIBS_L:INTERNAL=
-PKG_FONTCONFIG_LIBS_OTHER:INTERNAL=
-PKG_FONTCONFIG_LIBS_PATHS:INTERNAL=
-PKG_FONTCONFIG_MODULE_NAME:INTERNAL=fontconfig
-PKG_FONTCONFIG_PREFIX:INTERNAL=/usr
-PKG_FONTCONFIG_STATIC_CFLAGS:INTERNAL=-I/usr/include/uuid;-I/usr/include/freetype2;-I/usr/include/libpng16
-PKG_FONTCONFIG_STATIC_CFLAGS_I:INTERNAL=
-PKG_FONTCONFIG_STATIC_CFLAGS_OTHER:INTERNAL=
-PKG_FONTCONFIG_STATIC_INCLUDE_DIRS:INTERNAL=/usr/include/uuid;/usr/include/freetype2;/usr/include/libpng16
-PKG_FONTCONFIG_STATIC_LDFLAGS:INTERNAL=-lfontconfig;-luuid;-lexpat;-lfreetype;-lpng16;-lm;-lz;-lm;-lz
-PKG_FONTCONFIG_STATIC_LDFLAGS_OTHER:INTERNAL=
-PKG_FONTCONFIG_STATIC_LIBDIR:INTERNAL=
-PKG_FONTCONFIG_STATIC_LIBRARIES:INTERNAL=fontconfig;uuid;expat;freetype;png16;m;z;m;z
-PKG_FONTCONFIG_STATIC_LIBRARY_DIRS:INTERNAL=
-PKG_FONTCONFIG_STATIC_LIBS:INTERNAL=
-PKG_FONTCONFIG_STATIC_LIBS_L:INTERNAL=
-PKG_FONTCONFIG_STATIC_LIBS_OTHER:INTERNAL=
-PKG_FONTCONFIG_STATIC_LIBS_PATHS:INTERNAL=
-PKG_FONTCONFIG_VERSION:INTERNAL=2.13.1
-PKG_FONTCONFIG_fontconfig_INCLUDEDIR:INTERNAL=
-PKG_FONTCONFIG_fontconfig_LIBDIR:INTERNAL=
-PKG_FONTCONFIG_fontconfig_PREFIX:INTERNAL=
-PKG_FONTCONFIG_fontconfig_VERSION:INTERNAL=
-QGSettings_CFLAGS:INTERNAL=-I/usr/include/aarch64-linux-gnu/qt5/QGSettings
-QGSettings_CFLAGS_I:INTERNAL=
-QGSettings_CFLAGS_OTHER:INTERNAL=
-QGSettings_FOUND:INTERNAL=1
-QGSettings_INCLUDEDIR:INTERNAL=/usr/include/aarch64-linux-gnu/qt5/QGSettings
-QGSettings_INCLUDE_DIRS:INTERNAL=/usr/include/aarch64-linux-gnu/qt5/QGSettings
-QGSettings_LDFLAGS:INTERNAL=-lgsettings-qt
-QGSettings_LDFLAGS_OTHER:INTERNAL=
-QGSettings_LIBDIR:INTERNAL=/usr/lib/aarch64-linux-gnu
-QGSettings_LIBRARIES:INTERNAL=gsettings-qt
-QGSettings_LIBRARY_DIRS:INTERNAL=
-QGSettings_LIBS:INTERNAL=
-QGSettings_LIBS_L:INTERNAL=
-QGSettings_LIBS_OTHER:INTERNAL=
-QGSettings_LIBS_PATHS:INTERNAL=
-QGSettings_MODULE_NAME:INTERNAL=gsettings-qt
-QGSettings_PREFIX:INTERNAL=/usr
-QGSettings_STATIC_CFLAGS:INTERNAL=-I/usr/include/aarch64-linux-gnu/qt5/QGSettings
-QGSettings_STATIC_CFLAGS_I:INTERNAL=
-QGSettings_STATIC_CFLAGS_OTHER:INTERNAL=
-QGSettings_STATIC_INCLUDE_DIRS:INTERNAL=/usr/include/aarch64-linux-gnu/qt5/QGSettings
-QGSettings_STATIC_LDFLAGS:INTERNAL=-lgsettings-qt
-QGSettings_STATIC_LDFLAGS_OTHER:INTERNAL=
-QGSettings_STATIC_LIBDIR:INTERNAL=
-QGSettings_STATIC_LIBRARIES:INTERNAL=gsettings-qt
-QGSettings_STATIC_LIBRARY_DIRS:INTERNAL=
-QGSettings_STATIC_LIBS:INTERNAL=
-QGSettings_STATIC_LIBS_L:INTERNAL=
-QGSettings_STATIC_LIBS_OTHER:INTERNAL=
-QGSettings_STATIC_LIBS_PATHS:INTERNAL=
-QGSettings_VERSION:INTERNAL=1.0.0
-QGSettings_gsettings-qt_INCLUDEDIR:INTERNAL=
-QGSettings_gsettings-qt_LIBDIR:INTERNAL=
-QGSettings_gsettings-qt_PREFIX:INTERNAL=
-QGSettings_gsettings-qt_VERSION:INTERNAL=
-//ADVANCED property for variable: X11_ICE_INCLUDE_PATH
-X11_ICE_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_ICE_LIB
-X11_ICE_LIB-ADVANCED:INTERNAL=1
-//Have library /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so
-X11_LIB_X11_SOLO:INTERNAL=1
-//ADVANCED property for variable: X11_SM_INCLUDE_PATH
-X11_SM_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_SM_LIB
-X11_SM_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_X11_INCLUDE_PATH
-X11_X11_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_X11_LIB
-X11_X11_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_XRes_INCLUDE_PATH
-X11_XRes_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_XRes_LIB
-X11_XRes_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_XShm_INCLUDE_PATH
-X11_XShm_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_XSync_INCLUDE_PATH
-X11_XSync_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xaccessrules_INCLUDE_PATH
-X11_Xaccessrules_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xaccessstr_INCLUDE_PATH
-X11_Xaccessstr_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xau_INCLUDE_PATH
-X11_Xau_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xau_LIB
-X11_Xau_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xcomposite_INCLUDE_PATH
-X11_Xcomposite_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xcomposite_LIB
-X11_Xcomposite_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xcursor_INCLUDE_PATH
-X11_Xcursor_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xcursor_LIB
-X11_Xcursor_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xdamage_INCLUDE_PATH
-X11_Xdamage_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xdamage_LIB
-X11_Xdamage_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xdmcp_INCLUDE_PATH
-X11_Xdmcp_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xdmcp_LIB
-X11_Xdmcp_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xext_INCLUDE_PATH
-X11_Xext_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xext_LIB
-X11_Xext_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xfixes_INCLUDE_PATH
-X11_Xfixes_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xfixes_LIB
-X11_Xfixes_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xft_INCLUDE_PATH
-X11_Xft_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xft_LIB
-X11_Xft_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xi_INCLUDE_PATH
-X11_Xi_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xi_LIB
-X11_Xi_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xinerama_INCLUDE_PATH
-X11_Xinerama_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xinerama_LIB
-X11_Xinerama_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xkb_INCLUDE_PATH
-X11_Xkb_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xkblib_INCLUDE_PATH
-X11_Xkblib_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xlib_INCLUDE_PATH
-X11_Xlib_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xmu_INCLUDE_PATH
-X11_Xmu_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xmu_LIB
-X11_Xmu_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xpm_INCLUDE_PATH
-X11_Xpm_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xpm_LIB
-X11_Xpm_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xrandr_INCLUDE_PATH
-X11_Xrandr_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xrandr_LIB
-X11_Xrandr_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xrender_INCLUDE_PATH
-X11_Xrender_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xrender_LIB
-X11_Xrender_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xshape_INCLUDE_PATH
-X11_Xshape_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xss_INCLUDE_PATH
-X11_Xss_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xss_LIB
-X11_Xss_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xt_INCLUDE_PATH
-X11_Xt_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xt_LIB
-X11_Xt_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xtst_INCLUDE_PATH
-X11_Xtst_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xtst_LIB
-X11_Xtst_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xutil_INCLUDE_PATH
-X11_Xutil_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xv_INCLUDE_PATH
-X11_Xv_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xv_LIB
-X11_Xv_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xxf86misc_INCLUDE_PATH
-X11_Xxf86misc_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xxf86misc_LIB
-X11_Xxf86misc_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xxf86vm_INCLUDE_PATH
-X11_Xxf86vm_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_Xxf86vm_LIB
-X11_Xxf86vm_LIB-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_dpms_INCLUDE_PATH
-X11_dpms_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_xkbfile_INCLUDE_PATH
-X11_xkbfile_INCLUDE_PATH-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: X11_xkbfile_LIB
-X11_xkbfile_LIB-ADVANCED:INTERNAL=1
-__pkg_config_arguments_PKG_FONTCONFIG:INTERNAL=QUIET;fontconfig
-__pkg_config_arguments_QGSettings:INTERNAL=REQUIRED;gsettings-qt
-__pkg_config_checked_PKG_FONTCONFIG:INTERNAL=1
-__pkg_config_checked_QGSettings:INTERNAL=1
-//ADVANCED property for variable: pkgcfg_lib_PKG_FONTCONFIG_fontconfig
-pkgcfg_lib_PKG_FONTCONFIG_fontconfig-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: pkgcfg_lib_PKG_FONTCONFIG_freetype
-pkgcfg_lib_PKG_FONTCONFIG_freetype-ADVANCED:INTERNAL=1
-//ADVANCED property for variable: pkgcfg_lib_QGSettings_gsettings-qt
-pkgcfg_lib_QGSettings_gsettings-qt-ADVANCED:INTERNAL=1
-prefix_result:INTERNAL=/usr/lib/aarch64-linux-gnu
-
diff --git a/build/CMakeFiles/3.16.3/CMakeCCompiler.cmake b/build/CMakeFiles/3.16.3/CMakeCCompiler.cmake
deleted file mode 100644
index 1cf9eb3eb2f5b7b9451e6b3a34b6a7198c91b98e..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/3.16.3/CMakeCCompiler.cmake
+++ /dev/null
@@ -1,76 +0,0 @@
-set(CMAKE_C_COMPILER "/bin/c99-gcc")
-set(CMAKE_C_COMPILER_ARG1 "")
-set(CMAKE_C_COMPILER_ID "GNU")
-set(CMAKE_C_COMPILER_VERSION "9.3.0")
-set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
-set(CMAKE_C_COMPILER_WRAPPER "")
-set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "99")
-set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
-set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
-set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
-set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
-
-set(CMAKE_C_PLATFORM_ID "Linux")
-set(CMAKE_C_SIMULATE_ID "")
-set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
-set(CMAKE_C_SIMULATE_VERSION "")
-
-
-
-set(CMAKE_AR "/bin/ar")
-set(CMAKE_C_COMPILER_AR "/bin/gcc-ar-9")
-set(CMAKE_RANLIB "/bin/ranlib")
-set(CMAKE_C_COMPILER_RANLIB "/bin/gcc-ranlib-9")
-set(CMAKE_LINKER "/bin/ld")
-set(CMAKE_MT "")
-set(CMAKE_COMPILER_IS_GNUCC 1)
-set(CMAKE_C_COMPILER_LOADED 1)
-set(CMAKE_C_COMPILER_WORKS TRUE)
-set(CMAKE_C_ABI_COMPILED TRUE)
-set(CMAKE_COMPILER_IS_MINGW )
-set(CMAKE_COMPILER_IS_CYGWIN )
-if(CMAKE_COMPILER_IS_CYGWIN)
- set(CYGWIN 1)
- set(UNIX 1)
-endif()
-
-set(CMAKE_C_COMPILER_ENV_VAR "CC")
-
-if(CMAKE_COMPILER_IS_MINGW)
- set(MINGW 1)
-endif()
-set(CMAKE_C_COMPILER_ID_RUN 1)
-set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
-set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
-set(CMAKE_C_LINKER_PREFERENCE 10)
-
-# Save compiler ABI information.
-set(CMAKE_C_SIZEOF_DATA_PTR "8")
-set(CMAKE_C_COMPILER_ABI "ELF")
-set(CMAKE_C_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
-
-if(CMAKE_C_SIZEOF_DATA_PTR)
- set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
-endif()
-
-if(CMAKE_C_COMPILER_ABI)
- set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
-endif()
-
-if(CMAKE_C_LIBRARY_ARCHITECTURE)
- set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
-endif()
-
-set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
-if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
- set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
-endif()
-
-
-
-
-
-set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/9/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include")
-set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s")
-set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/9;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib")
-set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
diff --git a/build/CMakeFiles/3.16.3/CMakeCXXCompiler.cmake b/build/CMakeFiles/3.16.3/CMakeCXXCompiler.cmake
deleted file mode 100644
index 19508d5c338c5ba615efe53b872b3ba278a62b34..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/3.16.3/CMakeCXXCompiler.cmake
+++ /dev/null
@@ -1,88 +0,0 @@
-set(CMAKE_CXX_COMPILER "/bin/c++")
-set(CMAKE_CXX_COMPILER_ARG1 "")
-set(CMAKE_CXX_COMPILER_ID "GNU")
-set(CMAKE_CXX_COMPILER_VERSION "9.3.0")
-set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
-set(CMAKE_CXX_COMPILER_WRAPPER "")
-set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
-set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20")
-set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
-set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
-set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
-set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
-set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
-
-set(CMAKE_CXX_PLATFORM_ID "Linux")
-set(CMAKE_CXX_SIMULATE_ID "")
-set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
-set(CMAKE_CXX_SIMULATE_VERSION "")
-
-
-
-set(CMAKE_AR "/bin/ar")
-set(CMAKE_CXX_COMPILER_AR "/bin/gcc-ar-9")
-set(CMAKE_RANLIB "/bin/ranlib")
-set(CMAKE_CXX_COMPILER_RANLIB "/bin/gcc-ranlib-9")
-set(CMAKE_LINKER "/bin/ld")
-set(CMAKE_MT "")
-set(CMAKE_COMPILER_IS_GNUCXX 1)
-set(CMAKE_CXX_COMPILER_LOADED 1)
-set(CMAKE_CXX_COMPILER_WORKS TRUE)
-set(CMAKE_CXX_ABI_COMPILED TRUE)
-set(CMAKE_COMPILER_IS_MINGW )
-set(CMAKE_COMPILER_IS_CYGWIN )
-if(CMAKE_COMPILER_IS_CYGWIN)
- set(CYGWIN 1)
- set(UNIX 1)
-endif()
-
-set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
-
-if(CMAKE_COMPILER_IS_MINGW)
- set(MINGW 1)
-endif()
-set(CMAKE_CXX_COMPILER_ID_RUN 1)
-set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
-set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
-
-foreach (lang C OBJC OBJCXX)
- if (CMAKE_${lang}_COMPILER_ID_RUN)
- foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
- list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
- endforeach()
- endif()
-endforeach()
-
-set(CMAKE_CXX_LINKER_PREFERENCE 30)
-set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
-
-# Save compiler ABI information.
-set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
-set(CMAKE_CXX_COMPILER_ABI "ELF")
-set(CMAKE_CXX_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
-
-if(CMAKE_CXX_SIZEOF_DATA_PTR)
- set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
-endif()
-
-if(CMAKE_CXX_COMPILER_ABI)
- set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
-endif()
-
-if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
- set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
-endif()
-
-set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
-if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
- set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
-endif()
-
-
-
-
-
-set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/9;/usr/include/aarch64-linux-gnu/c++/9;/usr/include/c++/9/backward;/usr/lib/gcc/aarch64-linux-gnu/9/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include")
-set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
-set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/9;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib")
-set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
diff --git a/build/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_C.bin b/build/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_C.bin
deleted file mode 100755
index 0e5682cbb143e4e6bc4523c6a4f318c7d2d2af15..0000000000000000000000000000000000000000
Binary files a/build/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_C.bin and /dev/null differ
diff --git a/build/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin b/build/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin
deleted file mode 100755
index 89f34c232ac0eac2baf52fc86bdcb3899ad2dbe7..0000000000000000000000000000000000000000
Binary files a/build/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin and /dev/null differ
diff --git a/build/CMakeFiles/3.16.3/CMakeSystem.cmake b/build/CMakeFiles/3.16.3/CMakeSystem.cmake
deleted file mode 100644
index bad1d9bf628339f90b35f9ade6dbcf6d36066854..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/3.16.3/CMakeSystem.cmake
+++ /dev/null
@@ -1,15 +0,0 @@
-set(CMAKE_HOST_SYSTEM "Linux-5.4.18-35-generic")
-set(CMAKE_HOST_SYSTEM_NAME "Linux")
-set(CMAKE_HOST_SYSTEM_VERSION "5.4.18-35-generic")
-set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64")
-
-
-
-set(CMAKE_SYSTEM "Linux-5.4.18-35-generic")
-set(CMAKE_SYSTEM_NAME "Linux")
-set(CMAKE_SYSTEM_VERSION "5.4.18-35-generic")
-set(CMAKE_SYSTEM_PROCESSOR "aarch64")
-
-set(CMAKE_CROSSCOMPILING "FALSE")
-
-set(CMAKE_SYSTEM_LOADED 1)
diff --git a/build/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.c b/build/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.c
deleted file mode 100644
index d884b50908c9852aad6d3b60781f4e529edc4d50..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.c
+++ /dev/null
@@ -1,671 +0,0 @@
-#ifdef __cplusplus
-# error "A C++ compiler has been selected for C."
-#endif
-
-#if defined(__18CXX)
-# define ID_VOID_MAIN
-#endif
-#if defined(__CLASSIC_C__)
-/* cv-qualifiers did not exist in K&R C */
-# define const
-# define volatile
-#endif
-
-
-/* Version number components: V=Version, R=Revision, P=Patch
- Version date components: YYYY=Year, MM=Month, DD=Day */
-
-#if defined(__INTEL_COMPILER) || defined(__ICC)
-# define COMPILER_ID "Intel"
-# if defined(_MSC_VER)
-# define SIMULATE_ID "MSVC"
-# endif
-# if defined(__GNUC__)
-# define SIMULATE_ID "GNU"
-# endif
- /* __INTEL_COMPILER = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
-# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
-# if defined(__INTEL_COMPILER_UPDATE)
-# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
-# else
-# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
-# endif
-# if defined(__INTEL_COMPILER_BUILD_DATE)
- /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
-# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
-# endif
-# if defined(_MSC_VER)
- /* _MSC_VER = VVRR */
-# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
-# endif
-# if defined(__GNUC__)
-# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
-# elif defined(__GNUG__)
-# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
-# endif
-# if defined(__GNUC_MINOR__)
-# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
-# endif
-# if defined(__GNUC_PATCHLEVEL__)
-# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
-# endif
-
-#elif defined(__PATHCC__)
-# define COMPILER_ID "PathScale"
-# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
-# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
-# if defined(__PATHCC_PATCHLEVEL__)
-# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
-# endif
-
-#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
-# define COMPILER_ID "Embarcadero"
-# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
-# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
-# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
-
-#elif defined(__BORLANDC__)
-# define COMPILER_ID "Borland"
- /* __BORLANDC__ = 0xVRR */
-# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
-# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
-
-#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
-# define COMPILER_ID "Watcom"
- /* __WATCOMC__ = VVRR */
-# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
-# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
-# if (__WATCOMC__ % 10) > 0
-# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
-# endif
-
-#elif defined(__WATCOMC__)
-# define COMPILER_ID "OpenWatcom"
- /* __WATCOMC__ = VVRP + 1100 */
-# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
-# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
-# if (__WATCOMC__ % 10) > 0
-# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
-# endif
-
-#elif defined(__SUNPRO_C)
-# define COMPILER_ID "SunPro"
-# if __SUNPRO_C >= 0x5100
- /* __SUNPRO_C = 0xVRRP */
-# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
-# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
-# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
-# else
- /* __SUNPRO_CC = 0xVRP */
-# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
-# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
-# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
-# endif
-
-#elif defined(__HP_cc)
-# define COMPILER_ID "HP"
- /* __HP_cc = VVRRPP */
-# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
-# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
-# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
-
-#elif defined(__DECC)
-# define COMPILER_ID "Compaq"
- /* __DECC_VER = VVRRTPPPP */
-# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
-# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
-# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
-
-#elif defined(__IBMC__) && defined(__COMPILER_VER__)
-# define COMPILER_ID "zOS"
- /* __IBMC__ = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
-# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
-
-#elif defined(__ibmxl__) && defined(__clang__)
-# define COMPILER_ID "XLClang"
-# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
-# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
-# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
-# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
-
-
-#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
-# define COMPILER_ID "XL"
- /* __IBMC__ = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
-# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
-
-#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
-# define COMPILER_ID "VisualAge"
- /* __IBMC__ = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
-# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
-
-#elif defined(__PGI)
-# define COMPILER_ID "PGI"
-# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
-# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
-# if defined(__PGIC_PATCHLEVEL__)
-# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
-# endif
-
-#elif defined(_CRAYC)
-# define COMPILER_ID "Cray"
-# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
-# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
-
-#elif defined(__TI_COMPILER_VERSION__)
-# define COMPILER_ID "TI"
- /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
-# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
-# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
-# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
-
-#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
-# define COMPILER_ID "Fujitsu"
-
-#elif defined(__ghs__)
-# define COMPILER_ID "GHS"
-/* __GHS_VERSION_NUMBER = VVVVRP */
-# ifdef __GHS_VERSION_NUMBER
-# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
-# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
-# endif
-
-#elif defined(__TINYC__)
-# define COMPILER_ID "TinyCC"
-
-#elif defined(__BCC__)
-# define COMPILER_ID "Bruce"
-
-#elif defined(__SCO_VERSION__)
-# define COMPILER_ID "SCO"
-
-#elif defined(__ARMCC_VERSION) && !defined(__clang__)
-# define COMPILER_ID "ARMCC"
-#if __ARMCC_VERSION >= 1000000
- /* __ARMCC_VERSION = VRRPPPP */
- # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
- # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
- # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
-#else
- /* __ARMCC_VERSION = VRPPPP */
- # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
- # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
- # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
-#endif
-
-
-#elif defined(__clang__) && defined(__apple_build_version__)
-# define COMPILER_ID "AppleClang"
-# if defined(_MSC_VER)
-# define SIMULATE_ID "MSVC"
-# endif
-# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
-# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
-# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
-# if defined(_MSC_VER)
- /* _MSC_VER = VVRR */
-# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
-# endif
-# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
-
-#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
-# define COMPILER_ID "ARMClang"
- # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
- # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
- # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
-# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
-
-#elif defined(__clang__)
-# define COMPILER_ID "Clang"
-# if defined(_MSC_VER)
-# define SIMULATE_ID "MSVC"
-# endif
-# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
-# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
-# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
-# if defined(_MSC_VER)
- /* _MSC_VER = VVRR */
-# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
-# endif
-
-#elif defined(__GNUC__)
-# define COMPILER_ID "GNU"
-# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
-# if defined(__GNUC_MINOR__)
-# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
-# endif
-# if defined(__GNUC_PATCHLEVEL__)
-# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
-# endif
-
-#elif defined(_MSC_VER)
-# define COMPILER_ID "MSVC"
- /* _MSC_VER = VVRR */
-# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
-# if defined(_MSC_FULL_VER)
-# if _MSC_VER >= 1400
- /* _MSC_FULL_VER = VVRRPPPPP */
-# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
-# else
- /* _MSC_FULL_VER = VVRRPPPP */
-# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
-# endif
-# endif
-# if defined(_MSC_BUILD)
-# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
-# endif
-
-#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
-# define COMPILER_ID "ADSP"
-#if defined(__VISUALDSPVERSION__)
- /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
-# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
-# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
-# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
-#endif
-
-#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
-# define COMPILER_ID "IAR"
-# if defined(__VER__) && defined(__ICCARM__)
-# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
-# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
-# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
-# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
-# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
-# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
-# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
-# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
-# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
-# endif
-
-#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
-# define COMPILER_ID "SDCC"
-# if defined(__SDCC_VERSION_MAJOR)
-# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
-# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
-# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
-# else
- /* SDCC = VRP */
-# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
-# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(SDCC % 10)
-# endif
-
-
-/* These compilers are either not known or too old to define an
- identification macro. Try to identify the platform and guess that
- it is the native compiler. */
-#elif defined(__hpux) || defined(__hpua)
-# define COMPILER_ID "HP"
-
-#else /* unknown compiler */
-# define COMPILER_ID ""
-#endif
-
-/* Construct the string literal in pieces to prevent the source from
- getting matched. Store it in a pointer rather than an array
- because some compilers will just produce instructions to fill the
- array rather than assigning a pointer to a static array. */
-char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
-#ifdef SIMULATE_ID
-char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
-#endif
-
-#ifdef __QNXNTO__
-char const* qnxnto = "INFO" ":" "qnxnto[]";
-#endif
-
-#if defined(__CRAYXE) || defined(__CRAYXC)
-char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
-#endif
-
-#define STRINGIFY_HELPER(X) #X
-#define STRINGIFY(X) STRINGIFY_HELPER(X)
-
-/* Identify known platforms by name. */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-# define PLATFORM_ID "Linux"
-
-#elif defined(__CYGWIN__)
-# define PLATFORM_ID "Cygwin"
-
-#elif defined(__MINGW32__)
-# define PLATFORM_ID "MinGW"
-
-#elif defined(__APPLE__)
-# define PLATFORM_ID "Darwin"
-
-#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
-# define PLATFORM_ID "Windows"
-
-#elif defined(__FreeBSD__) || defined(__FreeBSD)
-# define PLATFORM_ID "FreeBSD"
-
-#elif defined(__NetBSD__) || defined(__NetBSD)
-# define PLATFORM_ID "NetBSD"
-
-#elif defined(__OpenBSD__) || defined(__OPENBSD)
-# define PLATFORM_ID "OpenBSD"
-
-#elif defined(__sun) || defined(sun)
-# define PLATFORM_ID "SunOS"
-
-#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
-# define PLATFORM_ID "AIX"
-
-#elif defined(__hpux) || defined(__hpux__)
-# define PLATFORM_ID "HP-UX"
-
-#elif defined(__HAIKU__)
-# define PLATFORM_ID "Haiku"
-
-#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
-# define PLATFORM_ID "BeOS"
-
-#elif defined(__QNX__) || defined(__QNXNTO__)
-# define PLATFORM_ID "QNX"
-
-#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
-# define PLATFORM_ID "Tru64"
-
-#elif defined(__riscos) || defined(__riscos__)
-# define PLATFORM_ID "RISCos"
-
-#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
-# define PLATFORM_ID "SINIX"
-
-#elif defined(__UNIX_SV__)
-# define PLATFORM_ID "UNIX_SV"
-
-#elif defined(__bsdos__)
-# define PLATFORM_ID "BSDOS"
-
-#elif defined(_MPRAS) || defined(MPRAS)
-# define PLATFORM_ID "MP-RAS"
-
-#elif defined(__osf) || defined(__osf__)
-# define PLATFORM_ID "OSF1"
-
-#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
-# define PLATFORM_ID "SCO_SV"
-
-#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
-# define PLATFORM_ID "ULTRIX"
-
-#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
-# define PLATFORM_ID "Xenix"
-
-#elif defined(__WATCOMC__)
-# if defined(__LINUX__)
-# define PLATFORM_ID "Linux"
-
-# elif defined(__DOS__)
-# define PLATFORM_ID "DOS"
-
-# elif defined(__OS2__)
-# define PLATFORM_ID "OS2"
-
-# elif defined(__WINDOWS__)
-# define PLATFORM_ID "Windows3x"
-
-# else /* unknown platform */
-# define PLATFORM_ID
-# endif
-
-#elif defined(__INTEGRITY)
-# if defined(INT_178B)
-# define PLATFORM_ID "Integrity178"
-
-# else /* regular Integrity */
-# define PLATFORM_ID "Integrity"
-# endif
-
-#else /* unknown platform */
-# define PLATFORM_ID
-
-#endif
-
-/* For windows compilers MSVC and Intel we can determine
- the architecture of the compiler being used. This is because
- the compilers do not have flags that can change the architecture,
- but rather depend on which compiler is being used
-*/
-#if defined(_WIN32) && defined(_MSC_VER)
-# if defined(_M_IA64)
-# define ARCHITECTURE_ID "IA64"
-
-# elif defined(_M_X64) || defined(_M_AMD64)
-# define ARCHITECTURE_ID "x64"
-
-# elif defined(_M_IX86)
-# define ARCHITECTURE_ID "X86"
-
-# elif defined(_M_ARM64)
-# define ARCHITECTURE_ID "ARM64"
-
-# elif defined(_M_ARM)
-# if _M_ARM == 4
-# define ARCHITECTURE_ID "ARMV4I"
-# elif _M_ARM == 5
-# define ARCHITECTURE_ID "ARMV5I"
-# else
-# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
-# endif
-
-# elif defined(_M_MIPS)
-# define ARCHITECTURE_ID "MIPS"
-
-# elif defined(_M_SH)
-# define ARCHITECTURE_ID "SHx"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-
-#elif defined(__WATCOMC__)
-# if defined(_M_I86)
-# define ARCHITECTURE_ID "I86"
-
-# elif defined(_M_IX86)
-# define ARCHITECTURE_ID "X86"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-
-#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
-# if defined(__ICCARM__)
-# define ARCHITECTURE_ID "ARM"
-
-# elif defined(__ICCRX__)
-# define ARCHITECTURE_ID "RX"
-
-# elif defined(__ICCRH850__)
-# define ARCHITECTURE_ID "RH850"
-
-# elif defined(__ICCRL78__)
-# define ARCHITECTURE_ID "RL78"
-
-# elif defined(__ICCRISCV__)
-# define ARCHITECTURE_ID "RISCV"
-
-# elif defined(__ICCAVR__)
-# define ARCHITECTURE_ID "AVR"
-
-# elif defined(__ICC430__)
-# define ARCHITECTURE_ID "MSP430"
-
-# elif defined(__ICCV850__)
-# define ARCHITECTURE_ID "V850"
-
-# elif defined(__ICC8051__)
-# define ARCHITECTURE_ID "8051"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-
-#elif defined(__ghs__)
-# if defined(__PPC64__)
-# define ARCHITECTURE_ID "PPC64"
-
-# elif defined(__ppc__)
-# define ARCHITECTURE_ID "PPC"
-
-# elif defined(__ARM__)
-# define ARCHITECTURE_ID "ARM"
-
-# elif defined(__x86_64__)
-# define ARCHITECTURE_ID "x64"
-
-# elif defined(__i386__)
-# define ARCHITECTURE_ID "X86"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-#else
-# define ARCHITECTURE_ID
-#endif
-
-/* Convert integer to decimal digit literals. */
-#define DEC(n) \
- ('0' + (((n) / 10000000)%10)), \
- ('0' + (((n) / 1000000)%10)), \
- ('0' + (((n) / 100000)%10)), \
- ('0' + (((n) / 10000)%10)), \
- ('0' + (((n) / 1000)%10)), \
- ('0' + (((n) / 100)%10)), \
- ('0' + (((n) / 10)%10)), \
- ('0' + ((n) % 10))
-
-/* Convert integer to hex digit literals. */
-#define HEX(n) \
- ('0' + ((n)>>28 & 0xF)), \
- ('0' + ((n)>>24 & 0xF)), \
- ('0' + ((n)>>20 & 0xF)), \
- ('0' + ((n)>>16 & 0xF)), \
- ('0' + ((n)>>12 & 0xF)), \
- ('0' + ((n)>>8 & 0xF)), \
- ('0' + ((n)>>4 & 0xF)), \
- ('0' + ((n) & 0xF))
-
-/* Construct a string literal encoding the version number components. */
-#ifdef COMPILER_VERSION_MAJOR
-char const info_version[] = {
- 'I', 'N', 'F', 'O', ':',
- 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
- COMPILER_VERSION_MAJOR,
-# ifdef COMPILER_VERSION_MINOR
- '.', COMPILER_VERSION_MINOR,
-# ifdef COMPILER_VERSION_PATCH
- '.', COMPILER_VERSION_PATCH,
-# ifdef COMPILER_VERSION_TWEAK
- '.', COMPILER_VERSION_TWEAK,
-# endif
-# endif
-# endif
- ']','\0'};
-#endif
-
-/* Construct a string literal encoding the internal version number. */
-#ifdef COMPILER_VERSION_INTERNAL
-char const info_version_internal[] = {
- 'I', 'N', 'F', 'O', ':',
- 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
- 'i','n','t','e','r','n','a','l','[',
- COMPILER_VERSION_INTERNAL,']','\0'};
-#endif
-
-/* Construct a string literal encoding the version number components. */
-#ifdef SIMULATE_VERSION_MAJOR
-char const info_simulate_version[] = {
- 'I', 'N', 'F', 'O', ':',
- 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
- SIMULATE_VERSION_MAJOR,
-# ifdef SIMULATE_VERSION_MINOR
- '.', SIMULATE_VERSION_MINOR,
-# ifdef SIMULATE_VERSION_PATCH
- '.', SIMULATE_VERSION_PATCH,
-# ifdef SIMULATE_VERSION_TWEAK
- '.', SIMULATE_VERSION_TWEAK,
-# endif
-# endif
-# endif
- ']','\0'};
-#endif
-
-/* Construct the string literal in pieces to prevent the source from
- getting matched. Store it in a pointer rather than an array
- because some compilers will just produce instructions to fill the
- array rather than assigning a pointer to a static array. */
-char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
-char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
-
-
-
-
-#if !defined(__STDC__)
-# if (defined(_MSC_VER) && !defined(__clang__)) \
- || (defined(__ibmxl__) || defined(__IBMC__))
-# define C_DIALECT "90"
-# else
-# define C_DIALECT
-# endif
-#elif __STDC_VERSION__ >= 201000L
-# define C_DIALECT "11"
-#elif __STDC_VERSION__ >= 199901L
-# define C_DIALECT "99"
-#else
-# define C_DIALECT "90"
-#endif
-const char* info_language_dialect_default =
- "INFO" ":" "dialect_default[" C_DIALECT "]";
-
-/*--------------------------------------------------------------------------*/
-
-#ifdef ID_VOID_MAIN
-void main() {}
-#else
-# if defined(__CLASSIC_C__)
-int main(argc, argv) int argc; char *argv[];
-# else
-int main(int argc, char* argv[])
-# endif
-{
- int require = 0;
- require += info_compiler[argc];
- require += info_platform[argc];
- require += info_arch[argc];
-#ifdef COMPILER_VERSION_MAJOR
- require += info_version[argc];
-#endif
-#ifdef COMPILER_VERSION_INTERNAL
- require += info_version_internal[argc];
-#endif
-#ifdef SIMULATE_ID
- require += info_simulate[argc];
-#endif
-#ifdef SIMULATE_VERSION_MAJOR
- require += info_simulate_version[argc];
-#endif
-#if defined(__CRAYXE) || defined(__CRAYXC)
- require += info_cray[argc];
-#endif
- require += info_language_dialect_default[argc];
- (void)argv;
- return require;
-}
-#endif
diff --git a/build/CMakeFiles/3.16.3/CompilerIdC/a.out b/build/CMakeFiles/3.16.3/CompilerIdC/a.out
deleted file mode 100755
index 8e267b33588c3366a9a64b0db5967f4364e0a0c6..0000000000000000000000000000000000000000
Binary files a/build/CMakeFiles/3.16.3/CompilerIdC/a.out and /dev/null differ
diff --git a/build/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp b/build/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp
deleted file mode 100644
index 69cfdba6bc7bccb09bf234388908de035caa0969..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp
+++ /dev/null
@@ -1,660 +0,0 @@
-/* This source file must have a .cpp extension so that all C++ compilers
- recognize the extension without flags. Borland does not know .cxx for
- example. */
-#ifndef __cplusplus
-# error "A C compiler has been selected for C++."
-#endif
-
-
-/* Version number components: V=Version, R=Revision, P=Patch
- Version date components: YYYY=Year, MM=Month, DD=Day */
-
-#if defined(__COMO__)
-# define COMPILER_ID "Comeau"
- /* __COMO_VERSION__ = VRR */
-# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
-# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
-
-#elif defined(__INTEL_COMPILER) || defined(__ICC)
-# define COMPILER_ID "Intel"
-# if defined(_MSC_VER)
-# define SIMULATE_ID "MSVC"
-# endif
-# if defined(__GNUC__)
-# define SIMULATE_ID "GNU"
-# endif
- /* __INTEL_COMPILER = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
-# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
-# if defined(__INTEL_COMPILER_UPDATE)
-# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
-# else
-# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
-# endif
-# if defined(__INTEL_COMPILER_BUILD_DATE)
- /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
-# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
-# endif
-# if defined(_MSC_VER)
- /* _MSC_VER = VVRR */
-# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
-# endif
-# if defined(__GNUC__)
-# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
-# elif defined(__GNUG__)
-# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
-# endif
-# if defined(__GNUC_MINOR__)
-# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
-# endif
-# if defined(__GNUC_PATCHLEVEL__)
-# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
-# endif
-
-#elif defined(__PATHCC__)
-# define COMPILER_ID "PathScale"
-# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
-# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
-# if defined(__PATHCC_PATCHLEVEL__)
-# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
-# endif
-
-#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
-# define COMPILER_ID "Embarcadero"
-# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
-# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
-# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
-
-#elif defined(__BORLANDC__)
-# define COMPILER_ID "Borland"
- /* __BORLANDC__ = 0xVRR */
-# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
-# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
-
-#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
-# define COMPILER_ID "Watcom"
- /* __WATCOMC__ = VVRR */
-# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
-# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
-# if (__WATCOMC__ % 10) > 0
-# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
-# endif
-
-#elif defined(__WATCOMC__)
-# define COMPILER_ID "OpenWatcom"
- /* __WATCOMC__ = VVRP + 1100 */
-# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
-# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
-# if (__WATCOMC__ % 10) > 0
-# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
-# endif
-
-#elif defined(__SUNPRO_CC)
-# define COMPILER_ID "SunPro"
-# if __SUNPRO_CC >= 0x5100
- /* __SUNPRO_CC = 0xVRRP */
-# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
-# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
-# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
-# else
- /* __SUNPRO_CC = 0xVRP */
-# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
-# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
-# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
-# endif
-
-#elif defined(__HP_aCC)
-# define COMPILER_ID "HP"
- /* __HP_aCC = VVRRPP */
-# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
-# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
-# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
-
-#elif defined(__DECCXX)
-# define COMPILER_ID "Compaq"
- /* __DECCXX_VER = VVRRTPPPP */
-# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
-# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
-# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
-
-#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
-# define COMPILER_ID "zOS"
- /* __IBMCPP__ = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
-# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
-
-#elif defined(__ibmxl__) && defined(__clang__)
-# define COMPILER_ID "XLClang"
-# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
-# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
-# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
-# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
-
-
-#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
-# define COMPILER_ID "XL"
- /* __IBMCPP__ = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
-# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
-
-#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
-# define COMPILER_ID "VisualAge"
- /* __IBMCPP__ = VRP */
-# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
-# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
-
-#elif defined(__PGI)
-# define COMPILER_ID "PGI"
-# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
-# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
-# if defined(__PGIC_PATCHLEVEL__)
-# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
-# endif
-
-#elif defined(_CRAYC)
-# define COMPILER_ID "Cray"
-# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
-# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
-
-#elif defined(__TI_COMPILER_VERSION__)
-# define COMPILER_ID "TI"
- /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
-# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
-# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
-# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
-
-#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
-# define COMPILER_ID "Fujitsu"
-
-#elif defined(__ghs__)
-# define COMPILER_ID "GHS"
-/* __GHS_VERSION_NUMBER = VVVVRP */
-# ifdef __GHS_VERSION_NUMBER
-# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
-# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
-# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
-# endif
-
-#elif defined(__SCO_VERSION__)
-# define COMPILER_ID "SCO"
-
-#elif defined(__ARMCC_VERSION) && !defined(__clang__)
-# define COMPILER_ID "ARMCC"
-#if __ARMCC_VERSION >= 1000000
- /* __ARMCC_VERSION = VRRPPPP */
- # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
- # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
- # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
-#else
- /* __ARMCC_VERSION = VRPPPP */
- # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
- # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
- # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
-#endif
-
-
-#elif defined(__clang__) && defined(__apple_build_version__)
-# define COMPILER_ID "AppleClang"
-# if defined(_MSC_VER)
-# define SIMULATE_ID "MSVC"
-# endif
-# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
-# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
-# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
-# if defined(_MSC_VER)
- /* _MSC_VER = VVRR */
-# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
-# endif
-# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
-
-#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
-# define COMPILER_ID "ARMClang"
- # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
- # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
- # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
-# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
-
-#elif defined(__clang__)
-# define COMPILER_ID "Clang"
-# if defined(_MSC_VER)
-# define SIMULATE_ID "MSVC"
-# endif
-# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
-# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
-# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
-# if defined(_MSC_VER)
- /* _MSC_VER = VVRR */
-# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
-# endif
-
-#elif defined(__GNUC__) || defined(__GNUG__)
-# define COMPILER_ID "GNU"
-# if defined(__GNUC__)
-# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
-# else
-# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
-# endif
-# if defined(__GNUC_MINOR__)
-# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
-# endif
-# if defined(__GNUC_PATCHLEVEL__)
-# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
-# endif
-
-#elif defined(_MSC_VER)
-# define COMPILER_ID "MSVC"
- /* _MSC_VER = VVRR */
-# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
-# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
-# if defined(_MSC_FULL_VER)
-# if _MSC_VER >= 1400
- /* _MSC_FULL_VER = VVRRPPPPP */
-# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
-# else
- /* _MSC_FULL_VER = VVRRPPPP */
-# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
-# endif
-# endif
-# if defined(_MSC_BUILD)
-# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
-# endif
-
-#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
-# define COMPILER_ID "ADSP"
-#if defined(__VISUALDSPVERSION__)
- /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
-# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
-# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
-# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
-#endif
-
-#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
-# define COMPILER_ID "IAR"
-# if defined(__VER__) && defined(__ICCARM__)
-# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
-# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
-# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
-# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
-# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
-# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
-# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
-# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
-# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
-# endif
-
-
-/* These compilers are either not known or too old to define an
- identification macro. Try to identify the platform and guess that
- it is the native compiler. */
-#elif defined(__hpux) || defined(__hpua)
-# define COMPILER_ID "HP"
-
-#else /* unknown compiler */
-# define COMPILER_ID ""
-#endif
-
-/* Construct the string literal in pieces to prevent the source from
- getting matched. Store it in a pointer rather than an array
- because some compilers will just produce instructions to fill the
- array rather than assigning a pointer to a static array. */
-char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
-#ifdef SIMULATE_ID
-char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
-#endif
-
-#ifdef __QNXNTO__
-char const* qnxnto = "INFO" ":" "qnxnto[]";
-#endif
-
-#if defined(__CRAYXE) || defined(__CRAYXC)
-char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
-#endif
-
-#define STRINGIFY_HELPER(X) #X
-#define STRINGIFY(X) STRINGIFY_HELPER(X)
-
-/* Identify known platforms by name. */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-# define PLATFORM_ID "Linux"
-
-#elif defined(__CYGWIN__)
-# define PLATFORM_ID "Cygwin"
-
-#elif defined(__MINGW32__)
-# define PLATFORM_ID "MinGW"
-
-#elif defined(__APPLE__)
-# define PLATFORM_ID "Darwin"
-
-#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
-# define PLATFORM_ID "Windows"
-
-#elif defined(__FreeBSD__) || defined(__FreeBSD)
-# define PLATFORM_ID "FreeBSD"
-
-#elif defined(__NetBSD__) || defined(__NetBSD)
-# define PLATFORM_ID "NetBSD"
-
-#elif defined(__OpenBSD__) || defined(__OPENBSD)
-# define PLATFORM_ID "OpenBSD"
-
-#elif defined(__sun) || defined(sun)
-# define PLATFORM_ID "SunOS"
-
-#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
-# define PLATFORM_ID "AIX"
-
-#elif defined(__hpux) || defined(__hpux__)
-# define PLATFORM_ID "HP-UX"
-
-#elif defined(__HAIKU__)
-# define PLATFORM_ID "Haiku"
-
-#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
-# define PLATFORM_ID "BeOS"
-
-#elif defined(__QNX__) || defined(__QNXNTO__)
-# define PLATFORM_ID "QNX"
-
-#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
-# define PLATFORM_ID "Tru64"
-
-#elif defined(__riscos) || defined(__riscos__)
-# define PLATFORM_ID "RISCos"
-
-#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
-# define PLATFORM_ID "SINIX"
-
-#elif defined(__UNIX_SV__)
-# define PLATFORM_ID "UNIX_SV"
-
-#elif defined(__bsdos__)
-# define PLATFORM_ID "BSDOS"
-
-#elif defined(_MPRAS) || defined(MPRAS)
-# define PLATFORM_ID "MP-RAS"
-
-#elif defined(__osf) || defined(__osf__)
-# define PLATFORM_ID "OSF1"
-
-#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
-# define PLATFORM_ID "SCO_SV"
-
-#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
-# define PLATFORM_ID "ULTRIX"
-
-#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
-# define PLATFORM_ID "Xenix"
-
-#elif defined(__WATCOMC__)
-# if defined(__LINUX__)
-# define PLATFORM_ID "Linux"
-
-# elif defined(__DOS__)
-# define PLATFORM_ID "DOS"
-
-# elif defined(__OS2__)
-# define PLATFORM_ID "OS2"
-
-# elif defined(__WINDOWS__)
-# define PLATFORM_ID "Windows3x"
-
-# else /* unknown platform */
-# define PLATFORM_ID
-# endif
-
-#elif defined(__INTEGRITY)
-# if defined(INT_178B)
-# define PLATFORM_ID "Integrity178"
-
-# else /* regular Integrity */
-# define PLATFORM_ID "Integrity"
-# endif
-
-#else /* unknown platform */
-# define PLATFORM_ID
-
-#endif
-
-/* For windows compilers MSVC and Intel we can determine
- the architecture of the compiler being used. This is because
- the compilers do not have flags that can change the architecture,
- but rather depend on which compiler is being used
-*/
-#if defined(_WIN32) && defined(_MSC_VER)
-# if defined(_M_IA64)
-# define ARCHITECTURE_ID "IA64"
-
-# elif defined(_M_X64) || defined(_M_AMD64)
-# define ARCHITECTURE_ID "x64"
-
-# elif defined(_M_IX86)
-# define ARCHITECTURE_ID "X86"
-
-# elif defined(_M_ARM64)
-# define ARCHITECTURE_ID "ARM64"
-
-# elif defined(_M_ARM)
-# if _M_ARM == 4
-# define ARCHITECTURE_ID "ARMV4I"
-# elif _M_ARM == 5
-# define ARCHITECTURE_ID "ARMV5I"
-# else
-# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
-# endif
-
-# elif defined(_M_MIPS)
-# define ARCHITECTURE_ID "MIPS"
-
-# elif defined(_M_SH)
-# define ARCHITECTURE_ID "SHx"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-
-#elif defined(__WATCOMC__)
-# if defined(_M_I86)
-# define ARCHITECTURE_ID "I86"
-
-# elif defined(_M_IX86)
-# define ARCHITECTURE_ID "X86"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-
-#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
-# if defined(__ICCARM__)
-# define ARCHITECTURE_ID "ARM"
-
-# elif defined(__ICCRX__)
-# define ARCHITECTURE_ID "RX"
-
-# elif defined(__ICCRH850__)
-# define ARCHITECTURE_ID "RH850"
-
-# elif defined(__ICCRL78__)
-# define ARCHITECTURE_ID "RL78"
-
-# elif defined(__ICCRISCV__)
-# define ARCHITECTURE_ID "RISCV"
-
-# elif defined(__ICCAVR__)
-# define ARCHITECTURE_ID "AVR"
-
-# elif defined(__ICC430__)
-# define ARCHITECTURE_ID "MSP430"
-
-# elif defined(__ICCV850__)
-# define ARCHITECTURE_ID "V850"
-
-# elif defined(__ICC8051__)
-# define ARCHITECTURE_ID "8051"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-
-#elif defined(__ghs__)
-# if defined(__PPC64__)
-# define ARCHITECTURE_ID "PPC64"
-
-# elif defined(__ppc__)
-# define ARCHITECTURE_ID "PPC"
-
-# elif defined(__ARM__)
-# define ARCHITECTURE_ID "ARM"
-
-# elif defined(__x86_64__)
-# define ARCHITECTURE_ID "x64"
-
-# elif defined(__i386__)
-# define ARCHITECTURE_ID "X86"
-
-# else /* unknown architecture */
-# define ARCHITECTURE_ID ""
-# endif
-#else
-# define ARCHITECTURE_ID
-#endif
-
-/* Convert integer to decimal digit literals. */
-#define DEC(n) \
- ('0' + (((n) / 10000000)%10)), \
- ('0' + (((n) / 1000000)%10)), \
- ('0' + (((n) / 100000)%10)), \
- ('0' + (((n) / 10000)%10)), \
- ('0' + (((n) / 1000)%10)), \
- ('0' + (((n) / 100)%10)), \
- ('0' + (((n) / 10)%10)), \
- ('0' + ((n) % 10))
-
-/* Convert integer to hex digit literals. */
-#define HEX(n) \
- ('0' + ((n)>>28 & 0xF)), \
- ('0' + ((n)>>24 & 0xF)), \
- ('0' + ((n)>>20 & 0xF)), \
- ('0' + ((n)>>16 & 0xF)), \
- ('0' + ((n)>>12 & 0xF)), \
- ('0' + ((n)>>8 & 0xF)), \
- ('0' + ((n)>>4 & 0xF)), \
- ('0' + ((n) & 0xF))
-
-/* Construct a string literal encoding the version number components. */
-#ifdef COMPILER_VERSION_MAJOR
-char const info_version[] = {
- 'I', 'N', 'F', 'O', ':',
- 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
- COMPILER_VERSION_MAJOR,
-# ifdef COMPILER_VERSION_MINOR
- '.', COMPILER_VERSION_MINOR,
-# ifdef COMPILER_VERSION_PATCH
- '.', COMPILER_VERSION_PATCH,
-# ifdef COMPILER_VERSION_TWEAK
- '.', COMPILER_VERSION_TWEAK,
-# endif
-# endif
-# endif
- ']','\0'};
-#endif
-
-/* Construct a string literal encoding the internal version number. */
-#ifdef COMPILER_VERSION_INTERNAL
-char const info_version_internal[] = {
- 'I', 'N', 'F', 'O', ':',
- 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
- 'i','n','t','e','r','n','a','l','[',
- COMPILER_VERSION_INTERNAL,']','\0'};
-#endif
-
-/* Construct a string literal encoding the version number components. */
-#ifdef SIMULATE_VERSION_MAJOR
-char const info_simulate_version[] = {
- 'I', 'N', 'F', 'O', ':',
- 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
- SIMULATE_VERSION_MAJOR,
-# ifdef SIMULATE_VERSION_MINOR
- '.', SIMULATE_VERSION_MINOR,
-# ifdef SIMULATE_VERSION_PATCH
- '.', SIMULATE_VERSION_PATCH,
-# ifdef SIMULATE_VERSION_TWEAK
- '.', SIMULATE_VERSION_TWEAK,
-# endif
-# endif
-# endif
- ']','\0'};
-#endif
-
-/* Construct the string literal in pieces to prevent the source from
- getting matched. Store it in a pointer rather than an array
- because some compilers will just produce instructions to fill the
- array rather than assigning a pointer to a static array. */
-char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
-char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
-
-
-
-
-#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
-# if defined(__INTEL_CXX11_MODE__)
-# if defined(__cpp_aggregate_nsdmi)
-# define CXX_STD 201402L
-# else
-# define CXX_STD 201103L
-# endif
-# else
-# define CXX_STD 199711L
-# endif
-#elif defined(_MSC_VER) && defined(_MSVC_LANG)
-# define CXX_STD _MSVC_LANG
-#else
-# define CXX_STD __cplusplus
-#endif
-
-const char* info_language_dialect_default = "INFO" ":" "dialect_default["
-#if CXX_STD > 201703L
- "20"
-#elif CXX_STD >= 201703L
- "17"
-#elif CXX_STD >= 201402L
- "14"
-#elif CXX_STD >= 201103L
- "11"
-#else
- "98"
-#endif
-"]";
-
-/*--------------------------------------------------------------------------*/
-
-int main(int argc, char* argv[])
-{
- int require = 0;
- require += info_compiler[argc];
- require += info_platform[argc];
-#ifdef COMPILER_VERSION_MAJOR
- require += info_version[argc];
-#endif
-#ifdef COMPILER_VERSION_INTERNAL
- require += info_version_internal[argc];
-#endif
-#ifdef SIMULATE_ID
- require += info_simulate[argc];
-#endif
-#ifdef SIMULATE_VERSION_MAJOR
- require += info_simulate_version[argc];
-#endif
-#if defined(__CRAYXE) || defined(__CRAYXC)
- require += info_cray[argc];
-#endif
- require += info_language_dialect_default[argc];
- (void)argv;
- return require;
-}
diff --git a/build/CMakeFiles/3.16.3/CompilerIdCXX/a.out b/build/CMakeFiles/3.16.3/CompilerIdCXX/a.out
deleted file mode 100755
index fc5f46e152f2150f21c5e7cdddf305c4d1702557..0000000000000000000000000000000000000000
Binary files a/build/CMakeFiles/3.16.3/CompilerIdCXX/a.out and /dev/null differ
diff --git a/build/CMakeFiles/CMakeOutput.log b/build/CMakeFiles/CMakeOutput.log
deleted file mode 100644
index 9affeb9230572e4e177930b8b3924591dacf912c..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/CMakeOutput.log
+++ /dev/null
@@ -1,463 +0,0 @@
-The system is: Linux - 5.4.18-35-generic - aarch64
-Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
-Compiler: /bin/c99-gcc
-Build flags:
-Id flags:
-
-The output was:
-0
-
-
-Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
-
-The C compiler identification is GNU, found in "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/3.16.3/CompilerIdC/a.out"
-
-Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
-Compiler: /bin/c++
-Build flags:
-Id flags:
-
-The output was:
-0
-
-
-Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
-
-The CXX compiler identification is GNU, found in "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/3.16.3/CompilerIdCXX/a.out"
-
-Determining if the C compiler works passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_6ca8b && [1/2] Building C object CMakeFiles/cmTC_6ca8b.dir/testCCompiler.c.o
-[2/2] Linking C executable cmTC_6ca8b
-
-
-
-Detecting C compiler ABI info compiled with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_4a003 && [1/2] Building C object CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o
-Using built-in specs.
-COLLECT_GCC=gcc
-Target: aarch64-linux-gnu
-Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
-Thread model: posix
-gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04)
-COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o' '-c' '-mlittle-endian' '-mabi=lp64'
- /usr/lib/gcc/aarch64-linux-gnu/9/cc1 -quiet -v -imultiarch aarch64-linux-gnu /usr/share/cmake-3.16/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mlittle-endian -mabi=lp64 -auxbase-strip CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o -std=c99 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccwtI2UM.s
-GNU C99 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)
- compiled by GNU C version 9.3.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP
-
-GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
-ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"
-ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/include-fixed"
-ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/include"
-#include "..." search starts here:
-#include <...> search starts here:
- /usr/lib/gcc/aarch64-linux-gnu/9/include
- /usr/local/include
- /usr/include/aarch64-linux-gnu
- /usr/include
-End of search list.
-GNU C99 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)
- compiled by GNU C version 9.3.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP
-
-GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
-Compiler executable checksum: 572f716ee81e7aecbb5b057a3e004245
-COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o' '-c' '-mlittle-endian' '-mabi=lp64'
- as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o /tmp/ccwtI2UM.s
-GNU assembler version 2.34 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.34
-COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/
-LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/
-COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o' '-c' '-mlittle-endian' '-mabi=lp64'
-[2/2] Linking C executable cmTC_4a003
-Using built-in specs.
-COLLECT_GCC=gcc
-COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper
-Target: aarch64-linux-gnu
-Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
-Thread model: posix
-gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04)
-COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/
-LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/
-COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'cmTC_4a003' '-mlittle-endian' '-mabi=lp64'
- /usr/lib/gcc/aarch64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccHOmD34.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_4a003 /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o
-COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'cmTC_4a003' '-mlittle-endian' '-mabi=lp64'
-
-
-
-Parsed C implicit include dir info from above output: rv=done
- found start of include info
- found start of implicit include info
- add: [/usr/lib/gcc/aarch64-linux-gnu/9/include]
- add: [/usr/local/include]
- add: [/usr/include/aarch64-linux-gnu]
- add: [/usr/include]
- end of search list found
- collapse include dir [/usr/lib/gcc/aarch64-linux-gnu/9/include] ==> [/usr/lib/gcc/aarch64-linux-gnu/9/include]
- collapse include dir [/usr/local/include] ==> [/usr/local/include]
- collapse include dir [/usr/include/aarch64-linux-gnu] ==> [/usr/include/aarch64-linux-gnu]
- collapse include dir [/usr/include] ==> [/usr/include]
- implicit include dirs: [/usr/lib/gcc/aarch64-linux-gnu/9/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include]
-
-
-Parsed C implicit link information from above output:
- link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
- ignore line: [Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp]
- ignore line: []
- ignore line: [Run Build Command(s):/usr/bin/ninja cmTC_4a003 && [1/2] Building C object CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o]
- ignore line: [Using built-in specs.]
- ignore line: [COLLECT_GCC=gcc]
- ignore line: [Target: aarch64-linux-gnu]
- ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu]
- ignore line: [Thread model: posix]
- ignore line: [gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04) ]
- ignore line: [COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o' '-c' '-mlittle-endian' '-mabi=lp64']
- ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/9/cc1 -quiet -v -imultiarch aarch64-linux-gnu /usr/share/cmake-3.16/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mlittle-endian -mabi=lp64 -auxbase-strip CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o -std=c99 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccwtI2UM.s]
- ignore line: [GNU C99 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)]
- ignore line: [ compiled by GNU C version 9.3.0 GMP version 6.2.0 MPFR version 4.0.2 MPC version 1.1.0 isl version isl-0.22.1-GMP]
- ignore line: []
- ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
- ignore line: [ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"]
- ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/include-fixed"]
- ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/include"]
- ignore line: [#include "..." search starts here:]
- ignore line: [#include <...> search starts here:]
- ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/9/include]
- ignore line: [ /usr/local/include]
- ignore line: [ /usr/include/aarch64-linux-gnu]
- ignore line: [ /usr/include]
- ignore line: [End of search list.]
- ignore line: [GNU C99 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)]
- ignore line: [ compiled by GNU C version 9.3.0 GMP version 6.2.0 MPFR version 4.0.2 MPC version 1.1.0 isl version isl-0.22.1-GMP]
- ignore line: []
- ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
- ignore line: [Compiler executable checksum: 572f716ee81e7aecbb5b057a3e004245]
- ignore line: [COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o' '-c' '-mlittle-endian' '-mabi=lp64']
- ignore line: [ as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o /tmp/ccwtI2UM.s]
- ignore line: [GNU assembler version 2.34 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.34]
- ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/]
- ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/]
- ignore line: [COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o' '-c' '-mlittle-endian' '-mabi=lp64']
- ignore line: [[2/2] Linking C executable cmTC_4a003]
- ignore line: [Using built-in specs.]
- ignore line: [COLLECT_GCC=gcc]
- ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper]
- ignore line: [Target: aarch64-linux-gnu]
- ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu]
- ignore line: [Thread model: posix]
- ignore line: [gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04) ]
- ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/]
- ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/]
- ignore line: [COLLECT_GCC_OPTIONS='-std=c99' '-v' '-o' 'cmTC_4a003' '-mlittle-endian' '-mabi=lp64']
- link line: [ /usr/lib/gcc/aarch64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccHOmD34.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_4a003 /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o]
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/collect2] ==> ignore
- arg [-plugin] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so] ==> ignore
- arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper] ==> ignore
- arg [-plugin-opt=-fresolution=/tmp/ccHOmD34.res] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
- arg [-plugin-opt=-pass-through=-lc] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
- arg [--build-id] ==> ignore
- arg [--eh-frame-hdr] ==> ignore
- arg [--hash-style=gnu] ==> ignore
- arg [--as-needed] ==> ignore
- arg [-dynamic-linker] ==> ignore
- arg [/lib/ld-linux-aarch64.so.1] ==> ignore
- arg [-X] ==> ignore
- arg [-EL] ==> ignore
- arg [-maarch64linux] ==> ignore
- arg [--fix-cortex-a53-843419] ==> ignore
- arg [-pie] ==> ignore
- arg [-znow] ==> ignore
- arg [-zrelro] ==> ignore
- arg [-o] ==> ignore
- arg [cmTC_4a003] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o] ==> ignore
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9]
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu]
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib]
- arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu]
- arg [-L/lib/../lib] ==> dir [/lib/../lib]
- arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu]
- arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../..]
- arg [CMakeFiles/cmTC_4a003.dir/CMakeCCompilerABI.c.o] ==> ignore
- arg [-lgcc] ==> lib [gcc]
- arg [--push-state] ==> ignore
- arg [--as-needed] ==> ignore
- arg [-lgcc_s] ==> lib [gcc_s]
- arg [--pop-state] ==> ignore
- arg [-lc] ==> lib [c]
- arg [-lgcc] ==> lib [gcc]
- arg [--push-state] ==> ignore
- arg [--as-needed] ==> ignore
- arg [-lgcc_s] ==> lib [gcc_s]
- arg [--pop-state] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o] ==> ignore
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9] ==> [/usr/lib/gcc/aarch64-linux-gnu/9]
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib] ==> [/usr/lib]
- collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu]
- collapse library dir [/lib/../lib] ==> [/lib]
- collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
- collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../..] ==> [/usr/lib]
- implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
- implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/9;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib]
- implicit fwks: []
-
-
-Determining if the CXX compiler works passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_af0a1 && [1/2] Building CXX object CMakeFiles/cmTC_af0a1.dir/testCXXCompiler.cxx.o
-[2/2] Linking CXX executable cmTC_af0a1
-
-
-
-Detecting CXX compiler ABI info compiled with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_fb431 && [1/2] Building CXX object CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o
-Using built-in specs.
-COLLECT_GCC=/bin/c++
-Target: aarch64-linux-gnu
-Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
-Thread model: posix
-gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04)
-COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'
- /usr/lib/gcc/aarch64-linux-gnu/9/cc1plus -quiet -v -imultiarch aarch64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mlittle-endian -mabi=lp64 -auxbase-strip CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccDSCUEh.s
-GNU C++14 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)
- compiled by GNU C version 9.3.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP
-
-GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
-ignoring duplicate directory "/usr/include/aarch64-linux-gnu/c++/9"
-ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"
-ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/include-fixed"
-ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/include"
-#include "..." search starts here:
-#include <...> search starts here:
- /usr/include/c++/9
- /usr/include/aarch64-linux-gnu/c++/9
- /usr/include/c++/9/backward
- /usr/lib/gcc/aarch64-linux-gnu/9/include
- /usr/local/include
- /usr/include/aarch64-linux-gnu
- /usr/include
-End of search list.
-GNU C++14 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)
- compiled by GNU C version 9.3.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP
-
-GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
-Compiler executable checksum: 7e550932d330b6b5f073e21d4328add5
-COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'
- as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccDSCUEh.s
-GNU assembler version 2.34 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.34
-COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/
-LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/
-COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'
-[2/2] Linking CXX executable cmTC_fb431
-Using built-in specs.
-COLLECT_GCC=/bin/c++
-COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper
-Target: aarch64-linux-gnu
-Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
-Thread model: posix
-gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04)
-COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/
-LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/
-COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_fb431' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'
- /usr/lib/gcc/aarch64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/cctNTQ5y.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_fb431 /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o
-COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_fb431' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64'
-
-
-
-Parsed CXX implicit include dir info from above output: rv=done
- found start of include info
- found start of implicit include info
- add: [/usr/include/c++/9]
- add: [/usr/include/aarch64-linux-gnu/c++/9]
- add: [/usr/include/c++/9/backward]
- add: [/usr/lib/gcc/aarch64-linux-gnu/9/include]
- add: [/usr/local/include]
- add: [/usr/include/aarch64-linux-gnu]
- add: [/usr/include]
- end of search list found
- collapse include dir [/usr/include/c++/9] ==> [/usr/include/c++/9]
- collapse include dir [/usr/include/aarch64-linux-gnu/c++/9] ==> [/usr/include/aarch64-linux-gnu/c++/9]
- collapse include dir [/usr/include/c++/9/backward] ==> [/usr/include/c++/9/backward]
- collapse include dir [/usr/lib/gcc/aarch64-linux-gnu/9/include] ==> [/usr/lib/gcc/aarch64-linux-gnu/9/include]
- collapse include dir [/usr/local/include] ==> [/usr/local/include]
- collapse include dir [/usr/include/aarch64-linux-gnu] ==> [/usr/include/aarch64-linux-gnu]
- collapse include dir [/usr/include] ==> [/usr/include]
- implicit include dirs: [/usr/include/c++/9;/usr/include/aarch64-linux-gnu/c++/9;/usr/include/c++/9/backward;/usr/lib/gcc/aarch64-linux-gnu/9/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include]
-
-
-Parsed CXX implicit link information from above output:
- link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
- ignore line: [Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp]
- ignore line: []
- ignore line: [Run Build Command(s):/usr/bin/ninja cmTC_fb431 && [1/2] Building CXX object CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o]
- ignore line: [Using built-in specs.]
- ignore line: [COLLECT_GCC=/bin/c++]
- ignore line: [Target: aarch64-linux-gnu]
- ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu]
- ignore line: [Thread model: posix]
- ignore line: [gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04) ]
- ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64']
- ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/9/cc1plus -quiet -v -imultiarch aarch64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mlittle-endian -mabi=lp64 -auxbase-strip CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccDSCUEh.s]
- ignore line: [GNU C++14 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)]
- ignore line: [ compiled by GNU C version 9.3.0 GMP version 6.2.0 MPFR version 4.0.2 MPC version 1.1.0 isl version isl-0.22.1-GMP]
- ignore line: []
- ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
- ignore line: [ignoring duplicate directory "/usr/include/aarch64-linux-gnu/c++/9"]
- ignore line: [ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"]
- ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/include-fixed"]
- ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/include"]
- ignore line: [#include "..." search starts here:]
- ignore line: [#include <...> search starts here:]
- ignore line: [ /usr/include/c++/9]
- ignore line: [ /usr/include/aarch64-linux-gnu/c++/9]
- ignore line: [ /usr/include/c++/9/backward]
- ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/9/include]
- ignore line: [ /usr/local/include]
- ignore line: [ /usr/include/aarch64-linux-gnu]
- ignore line: [ /usr/include]
- ignore line: [End of search list.]
- ignore line: [GNU C++14 (Ubuntu 9.3.0-17kylin1~20.04) version 9.3.0 (aarch64-linux-gnu)]
- ignore line: [ compiled by GNU C version 9.3.0 GMP version 6.2.0 MPFR version 4.0.2 MPC version 1.1.0 isl version isl-0.22.1-GMP]
- ignore line: []
- ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
- ignore line: [Compiler executable checksum: 7e550932d330b6b5f073e21d4328add5]
- ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64']
- ignore line: [ as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccDSCUEh.s]
- ignore line: [GNU assembler version 2.34 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.34]
- ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/]
- ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/]
- ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64']
- ignore line: [[2/2] Linking CXX executable cmTC_fb431]
- ignore line: [Using built-in specs.]
- ignore line: [COLLECT_GCC=/bin/c++]
- ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper]
- ignore line: [Target: aarch64-linux-gnu]
- ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17kylin1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu]
- ignore line: [Thread model: posix]
- ignore line: [gcc version 9.3.0 (Ubuntu 9.3.0-17kylin1~20.04) ]
- ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/]
- ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/9/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/9/../../../:/lib/:/usr/lib/]
- ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_fb431' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64']
- link line: [ /usr/lib/gcc/aarch64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/cctNTQ5y.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_fb431 /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o]
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/collect2] ==> ignore
- arg [-plugin] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so] ==> ignore
- arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper] ==> ignore
- arg [-plugin-opt=-fresolution=/tmp/cctNTQ5y.res] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
- arg [-plugin-opt=-pass-through=-lc] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
- arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
- arg [--build-id] ==> ignore
- arg [--eh-frame-hdr] ==> ignore
- arg [--hash-style=gnu] ==> ignore
- arg [--as-needed] ==> ignore
- arg [-dynamic-linker] ==> ignore
- arg [/lib/ld-linux-aarch64.so.1] ==> ignore
- arg [-X] ==> ignore
- arg [-EL] ==> ignore
- arg [-maarch64linux] ==> ignore
- arg [--fix-cortex-a53-843419] ==> ignore
- arg [-pie] ==> ignore
- arg [-znow] ==> ignore
- arg [-zrelro] ==> ignore
- arg [-o] ==> ignore
- arg [cmTC_fb431] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o] ==> ignore
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9]
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu]
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib]
- arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu]
- arg [-L/lib/../lib] ==> dir [/lib/../lib]
- arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu]
- arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
- arg [-L/usr/lib/gcc/aarch64-linux-gnu/9/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../..]
- arg [CMakeFiles/cmTC_fb431.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
- arg [-lstdc++] ==> lib [stdc++]
- arg [-lm] ==> lib [m]
- arg [-lgcc_s] ==> lib [gcc_s]
- arg [-lgcc] ==> lib [gcc]
- arg [-lc] ==> lib [c]
- arg [-lgcc_s] ==> lib [gcc_s]
- arg [-lgcc] ==> lib [gcc]
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o] ==> ignore
- arg [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o] ==> ignore
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9] ==> [/usr/lib/gcc/aarch64-linux-gnu/9]
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib] ==> [/usr/lib]
- collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu]
- collapse library dir [/lib/../lib] ==> [/lib]
- collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
- collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
- collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/9/../../..] ==> [/usr/lib]
- implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
- implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/9;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib]
- implicit fwks: []
-
-
-Determining if the function XOpenDisplay exists in the /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_0359c && [1/2] Building C object CMakeFiles/cmTC_0359c.dir/CheckFunctionExists.c.o
-[2/2] Linking C executable cmTC_0359c
-
-
-
-Determining if the function gethostbyname exists passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_90499 && [1/2] Building C object CMakeFiles/cmTC_90499.dir/CheckFunctionExists.c.o
-[2/2] Linking C executable cmTC_90499
-
-
-
-Determining if the function connect exists passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_5640e && [1/2] Building C object CMakeFiles/cmTC_5640e.dir/CheckFunctionExists.c.o
-[2/2] Linking C executable cmTC_5640e
-
-
-
-Determining if the function remove exists passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_c7688 && [1/2] Building C object CMakeFiles/cmTC_c7688.dir/CheckFunctionExists.c.o
-[2/2] Linking C executable cmTC_c7688
-
-
-
-Determining if the function shmat exists passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_b7cd4 && [1/2] Building C object CMakeFiles/cmTC_b7cd4.dir/CheckFunctionExists.c.o
-[2/2] Linking C executable cmTC_b7cd4
-
-
-
-Determining if the function IceConnectionNumber exists in the ICE passed with the following output:
-Change Dir: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/CMakeTmp
-
-Run Build Command(s):/usr/bin/ninja cmTC_c18a5 && [1/2] Building C object CMakeFiles/cmTC_c18a5.dir/CheckFunctionExists.c.o
-[2/2] Linking C executable cmTC_c18a5
-
-
-
diff --git a/build/CMakeFiles/TargetDirectories.txt b/build/CMakeFiles/TargetDirectories.txt
deleted file mode 100644
index b31c3928d34ad5e4a504e1c942dc8b539810e8bd..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/TargetDirectories.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/install/strip.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/install/local.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/edit_cache.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/KF5WindowSystem_QCH.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/install.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/list_install_components.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/rebuild_cache.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/CMakeFiles/KF5CoreAddons_QCH.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/install/local.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/install.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/list_install_components.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/rebuild_cache.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/edit_cache.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/windowsview.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/KF5GlobalAccel_QCH.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/install/strip.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/KF5I18n_QCH.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/KF5Config_QCH.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/windowsview_autogen.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/CMakeFiles/install/strip.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/CMakeFiles/install/local.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/CMakeFiles/install.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/CMakeFiles/list_install_components.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/CMakeFiles/rebuild_cache.dir
-/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/CMakeFiles/edit_cache.dir
diff --git a/build/CMakeFiles/clean_additional.cmake b/build/CMakeFiles/clean_additional.cmake
deleted file mode 100644
index 0e639a0435e21eb8895ac1d314c0ce6f38e4995c..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/clean_additional.cmake
+++ /dev/null
@@ -1,7 +0,0 @@
-# Additional clean files
-
-file(REMOVE_RECURSE
- "windowsview/CMakeFiles/windowsview_autogen.dir/AutogenUsed.txt"
- "windowsview/CMakeFiles/windowsview_autogen.dir/ParseCache.txt"
- "windowsview/windowsview_autogen"
-)
diff --git a/build/CMakeFiles/cmake.check_cache b/build/CMakeFiles/cmake.check_cache
deleted file mode 100644
index 3dccd731726d7faa8b29d8d7dba3b981a53ca497..0000000000000000000000000000000000000000
--- a/build/CMakeFiles/cmake.check_cache
+++ /dev/null
@@ -1 +0,0 @@
-# This file is generated by cmake for dependency checking of the CMakeCache.txt file
diff --git a/build/build.ninja b/build/build.ninja
deleted file mode 100644
index 76c5d45b79149c57a18d4ef8b7e7def17027af6f..0000000000000000000000000000000000000000
--- a/build/build.ninja
+++ /dev/null
@@ -1,458 +0,0 @@
-# CMAKE generated file: DO NOT EDIT!
-# Generated by "Ninja" Generator, CMake Version 3.16
-
-# This file contains all the build statements describing the
-# compilation DAG.
-
-# =============================================================================
-# Write statements declared in CMakeLists.txt:
-#
-# Which is the root file.
-# =============================================================================
-
-# =============================================================================
-# Project: ukui-window-switch
-# Configuration: Debug
-# =============================================================================
-
-#############################################
-# Minimal version of Ninja required by this file
-
-ninja_required_version = 1.5
-
-# =============================================================================
-# Include auxiliary files.
-
-
-#############################################
-# Include rules file.
-
-include rules.ninja
-
-
-#############################################
-# Utility command for install/strip
-
-build CMakeFiles/install/strip.util: CUSTOM_COMMAND all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build && /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
- DESC = Installing the project stripped...
- pool = console
- restat = 1
-
-build install/strip: phony CMakeFiles/install/strip.util
-
-
-#############################################
-# Utility command for install/local
-
-build CMakeFiles/install/local.util: CUSTOM_COMMAND all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build && /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
- DESC = Installing only the local directory...
- pool = console
- restat = 1
-
-build install/local: phony CMakeFiles/install/local.util
-
-
-#############################################
-# Utility command for edit_cache
-
-build CMakeFiles/edit_cache.util: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build && /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
- DESC = No interactive CMake dialog available...
- restat = 1
-
-build edit_cache: phony CMakeFiles/edit_cache.util
-
-
-#############################################
-# Utility command for KF5WindowSystem_QCH
-
-build KF5WindowSystem_QCH: phony
-
-
-#############################################
-# Utility command for install
-
-build CMakeFiles/install.util: CUSTOM_COMMAND all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build && /usr/bin/cmake -P cmake_install.cmake
- DESC = Install the project...
- pool = console
- restat = 1
-
-build install: phony CMakeFiles/install.util
-
-
-#############################################
-# Utility command for list_install_components
-
-build list_install_components: phony
-
-
-#############################################
-# Utility command for rebuild_cache
-
-build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build && /usr/bin/cmake -S/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch -B/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
- DESC = Running CMake to regenerate build system...
- pool = console
- restat = 1
-
-build rebuild_cache: phony CMakeFiles/rebuild_cache.util
-
-
-#############################################
-# Utility command for KF5CoreAddons_QCH
-
-build KF5CoreAddons_QCH: phony
-
-# =============================================================================
-# Write statements declared in CMakeLists.txt:
-# /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/CMakeLists.txt
-# =============================================================================
-
-
-#############################################
-# Utility command for install/local
-
-build windowsview/CMakeFiles/install/local.util: CUSTOM_COMMAND windowsview/all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
- DESC = Installing only the local directory...
- pool = console
- restat = 1
-
-build windowsview/install/local: phony windowsview/CMakeFiles/install/local.util
-
-
-#############################################
-# Utility command for install
-
-build windowsview/CMakeFiles/install.util: CUSTOM_COMMAND windowsview/all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/bin/cmake -P cmake_install.cmake
- DESC = Install the project...
- pool = console
- restat = 1
-
-build windowsview/install: phony windowsview/CMakeFiles/install.util
-
-
-#############################################
-# Utility command for list_install_components
-
-build windowsview/list_install_components: phony
-
-
-#############################################
-# Utility command for rebuild_cache
-
-build windowsview/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/bin/cmake -S/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch -B/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
- DESC = Running CMake to regenerate build system...
- pool = console
- restat = 1
-
-build windowsview/rebuild_cache: phony windowsview/CMakeFiles/rebuild_cache.util
-
-
-#############################################
-# Utility command for edit_cache
-
-build windowsview/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
- DESC = No interactive CMake dialog available...
- restat = 1
-
-build windowsview/edit_cache: phony windowsview/CMakeFiles/edit_cache.util
-
-# =============================================================================
-# Object build statements for MODULE_LIBRARY target windowsview
-
-
-#############################################
-# Order-only phony target for windowsview
-
-build cmake_object_order_depends_target_windowsview: phony || windowsview/qrc_data.cpp windowsview/windowsview_autogen
-
-build windowsview/CMakeFiles/windowsview.dir/windowsview_autogen/mocs_compilation.cpp.o: CXX_COMPILER__windowsview windowsview/windowsview_autogen/mocs_compilation.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/windowsview_autogen/mocs_compilation.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir/windowsview_autogen
-
-build windowsview/CMakeFiles/windowsview.dir/desktopbackground.cpp.o: CXX_COMPILER__windowsview ../windowsview/desktopbackground.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/desktopbackground.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-build windowsview/CMakeFiles/windowsview.dir/icontheme.cpp.o: CXX_COMPILER__windowsview ../windowsview/icontheme.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/icontheme.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-build windowsview/CMakeFiles/windowsview.dir/multitaskviewmodel.cpp.o: CXX_COMPILER__windowsview ../windowsview/multitaskviewmodel.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/multitaskviewmodel.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-build windowsview/CMakeFiles/windowsview.dir/multitaskviewmanager.cpp.o: CXX_COMPILER__windowsview ../windowsview/multitaskviewmanager.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/multitaskviewmanager.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-build windowsview/CMakeFiles/windowsview.dir/dbusservice.cpp.o: CXX_COMPILER__windowsview ../windowsview/dbusservice.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/dbusservice.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-build windowsview/CMakeFiles/windowsview.dir/multitaskviewmanagerpluginfactory.cpp.o: CXX_COMPILER__windowsview ../windowsview/multitaskviewmanagerpluginfactory.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/multitaskviewmanagerpluginfactory.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-build windowsview/CMakeFiles/windowsview.dir/qrc_data.cpp.o: CXX_COMPILER__windowsview windowsview/qrc_data.cpp || cmake_object_order_depends_target_windowsview
- DEFINES = -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS
- DEP_FILE = windowsview/CMakeFiles/windowsview.dir/qrc_data.cpp.o.d
- FLAGS = -g -fPIC -fPIC -std=gnu++14
- INCLUDES = -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- OBJECT_FILE_DIR = windowsview/CMakeFiles/windowsview.dir
-
-
-# =============================================================================
-# Link build statements for MODULE_LIBRARY target windowsview
-
-
-#############################################
-# Link the shared module windowsview/libwindowsview.so
-
-build windowsview/libwindowsview.so: CXX_MODULE_LIBRARY_LINKER__windowsview windowsview/CMakeFiles/windowsview.dir/windowsview_autogen/mocs_compilation.cpp.o windowsview/CMakeFiles/windowsview.dir/desktopbackground.cpp.o windowsview/CMakeFiles/windowsview.dir/icontheme.cpp.o windowsview/CMakeFiles/windowsview.dir/multitaskviewmodel.cpp.o windowsview/CMakeFiles/windowsview.dir/multitaskviewmanager.cpp.o windowsview/CMakeFiles/windowsview.dir/dbusservice.cpp.o windowsview/CMakeFiles/windowsview.dir/multitaskviewmanagerpluginfactory.cpp.o windowsview/CMakeFiles/windowsview.dir/qrc_data.cpp.o | /usr/lib/aarch64-linux-gnu/libQt5QuickWidgets.so.5.12.8 /usr/lib/aarch64-linux-gnu/libKF5ConfigCore.so.5.68.0 /usr/lib/aarch64-linux-gnu/libKF5WindowSystem.so.5.68.0 /usr/lib/aarch64-linux-gnu/libKF5CoreAddons.so.5.68.0 /usr/lib/aarch64-linux-gnu/libKF5GlobalAccel.so.5.68.0 /usr/lib/aarch64-linux-gnu/libQt5X11Extras.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Quick.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Qml.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Network.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Gui.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5DBus.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Core.so.5.12.8 || windowsview/windowsview_autogen
- LANGUAGE_COMPILE_FLAGS = -g
- LINK_LIBRARIES = /usr/lib/aarch64-linux-gnu/libQt5QuickWidgets.so.5.12.8 /usr/lib/aarch64-linux-gnu/libKF5ConfigCore.so.5.68.0 /usr/lib/aarch64-linux-gnu/libKF5WindowSystem.so.5.68.0 /usr/lib/aarch64-linux-gnu/libKF5CoreAddons.so.5.68.0 /usr/lib/aarch64-linux-gnu/libKF5GlobalAccel.so.5.68.0 /usr/lib/aarch64-linux-gnu/libQt5X11Extras.so.5.12.8 -lgsettings-qt /usr/lib/aarch64-linux-gnu/libQt5Quick.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Qml.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Network.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Gui.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5DBus.so.5.12.8 /usr/lib/aarch64-linux-gnu/libQt5Core.so.5.12.8
- OBJECT_DIR = windowsview/CMakeFiles/windowsview.dir
- POST_BUILD = :
- PRE_LINK = :
- TARGET_FILE = windowsview/libwindowsview.so
- TARGET_PDB = windowsview.so.dbg
-
-
-#############################################
-# Utility command for KF5GlobalAccel_QCH
-
-build windowsview/KF5GlobalAccel_QCH: phony
-
-
-#############################################
-# Utility command for install/strip
-
-build windowsview/CMakeFiles/install/strip.util: CUSTOM_COMMAND windowsview/all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
- DESC = Installing the project stripped...
- pool = console
- restat = 1
-
-build windowsview/install/strip: phony windowsview/CMakeFiles/install/strip.util
-
-
-#############################################
-# Utility command for KF5I18n_QCH
-
-build windowsview/KF5I18n_QCH: phony
-
-
-#############################################
-# Utility command for KF5Config_QCH
-
-build windowsview/KF5Config_QCH: phony
-
-
-#############################################
-# Utility command for windowsview_autogen
-
-build windowsview/windowsview_autogen: phony windowsview/CMakeFiles/windowsview_autogen windowsview/windowsview_autogen/mocs_compilation.cpp
-
-
-#############################################
-# Custom command for windowsview/qrc_data.cpp
-
-build windowsview/qrc_data.cpp: CUSTOM_COMMAND ../windowsview/qml/Controller.js ../windowsview/qml/TabletController.js ../windowsview/images/default-background.jpg ../windowsview/images/all-clean-click.svg ../windowsview/images/all-clean-default.svg ../windowsview/images/all-clean-hover.svg ../windowsview/images/ukui-taskview-close-click.svg ../windowsview/images/ukui-taskview-close-default.svg ../windowsview/images/ukui-taskview-close-hover.svg ../windowsview/qml/PreviewWindow.qml ../windowsview/qml/multitaskview.qml ../windowsview/qml/AppArea.qml ../windowsview/qml/DesktopArea.qml ../windowsview/qml/TabletMultitaskView.qml ../windowsview/qml/TabletViewRootWindow.qml ../windowsview/qml/TabletScrollViewArea.qml ../windowsview/qml/TabletPreviewWindow.qml ../windowsview/images/tablet_delete.svg ../windowsview/qml/TabletViewMain.qml ../windowsview/qml/TabletViewClearAllWindowButton.qml ../windowsview/qml/TabletViewCloseButton.qml ../windowsview/qml/CloseButton.qml windowsview/data.qrc.depends ../windowsview/data.qrc || windowsview/windowsview_autogen
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/lib/qt5/bin/rcc --name data --output /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/qrc_data.cpp /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/data.qrc
- DESC = Generating qrc_data.cpp
- restat = 1
-
-
-#############################################
-# Custom command for windowsview/CMakeFiles/windowsview_autogen
-
-build windowsview/CMakeFiles/windowsview_autogen windowsview/windowsview_autogen/mocs_compilation.cpp: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview && /usr/bin/cmake -E cmake_autogen /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/windowsview_autogen.dir/AutogenInfo.json Debug
- DESC = Automatic MOC and UIC for target windowsview
- restat = 1
-
-# =============================================================================
-# Write statements declared in CMakeLists.txt:
-# /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/CMakeLists.txt
-# =============================================================================
-
-
-#############################################
-# Utility command for install/strip
-
-build windowswitchers/CMakeFiles/install/strip.util: CUSTOM_COMMAND windowswitchers/all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers && /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
- DESC = Installing the project stripped...
- pool = console
- restat = 1
-
-build windowswitchers/install/strip: phony windowswitchers/CMakeFiles/install/strip.util
-
-
-#############################################
-# Utility command for install/local
-
-build windowswitchers/CMakeFiles/install/local.util: CUSTOM_COMMAND windowswitchers/all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers && /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
- DESC = Installing only the local directory...
- pool = console
- restat = 1
-
-build windowswitchers/install/local: phony windowswitchers/CMakeFiles/install/local.util
-
-
-#############################################
-# Utility command for install
-
-build windowswitchers/CMakeFiles/install.util: CUSTOM_COMMAND windowswitchers/all
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers && /usr/bin/cmake -P cmake_install.cmake
- DESC = Install the project...
- pool = console
- restat = 1
-
-build windowswitchers/install: phony windowswitchers/CMakeFiles/install.util
-
-
-#############################################
-# Utility command for list_install_components
-
-build windowswitchers/list_install_components: phony
-
-
-#############################################
-# Utility command for rebuild_cache
-
-build windowswitchers/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers && /usr/bin/cmake -S/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch -B/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
- DESC = Running CMake to regenerate build system...
- pool = console
- restat = 1
-
-build windowswitchers/rebuild_cache: phony windowswitchers/CMakeFiles/rebuild_cache.util
-
-
-#############################################
-# Utility command for edit_cache
-
-build windowswitchers/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
- COMMAND = cd /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers && /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
- DESC = No interactive CMake dialog available...
- restat = 1
-
-build windowswitchers/edit_cache: phony windowswitchers/CMakeFiles/edit_cache.util
-
-# =============================================================================
-# Target aliases.
-
-build KF5Config_QCH: phony windowsview/KF5Config_QCH
-
-build KF5GlobalAccel_QCH: phony windowsview/KF5GlobalAccel_QCH
-
-build KF5I18n_QCH: phony windowsview/KF5I18n_QCH
-
-build libwindowsview.so: phony windowsview/libwindowsview.so
-
-build windowsview: phony windowsview/libwindowsview.so
-
-build windowsview_autogen: phony windowsview/windowsview_autogen
-
-# =============================================================================
-# Folder targets.
-
-# =============================================================================
-
-#############################################
-# Folder: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
-
-build all: phony windowsview/all windowswitchers/all
-
-# =============================================================================
-
-#############################################
-# Folder: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview
-
-build windowsview/all: phony windowsview/libwindowsview.so
-
-# =============================================================================
-
-#############################################
-# Folder: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers
-
-build windowswitchers/all: phony
-
-# =============================================================================
-# Built-in targets
-
-
-#############################################
-# Make the all target the default.
-
-default all
-
-#############################################
-# Re-run CMake if any of its inputs changed.
-
-build build.ninja: RERUN_CMAKE | ../CMakeLists.txt ../windowsview/CMakeLists.txt ../windowsview/data.qrc ../windowswitchers/CMakeLists.txt /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigCompilerTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigCompilerTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5Config.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5ConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5ModuleLocation.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QComposePlatformInputContextPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSEmulatorIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSKmsEglDeviceIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSKmsGbmIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSX11IntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevKeyboardPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevMousePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevTabletPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevTouchScreenPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QGifPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QICOPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QIbusPlatformInputContextPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QJpegPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QLibInputPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QLinuxFbIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QMinimalEglIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QMinimalIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QOffscreenIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QTuioTouchPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QVncIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QXcbEglIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QXcbGlxIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5Network_QConnmanEnginePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5Network_QGenericEnginePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5Network_QNetworkManagerEnginePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QDebugMessageServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QLocalClientConnectionFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlDebugServerFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlDebuggerServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlInspectorServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlNativeDebugConnectorFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlNativeDebugServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlPreviewServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlProfilerServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQuickProfilerAdapterFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QTcpServerConnectionFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Quick/Qt5QuickConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Quick/Qt5QuickConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets/Qt5QuickWidgetsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets/Qt5QuickWidgetsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras/Qt5X11ExtrasConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Xml/Qt5XmlConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Xml/Qt5XmlConfigVersion.cmake /usr/share/ECM/cmake/ECMConfig.cmake /usr/share/ECM/cmake/ECMConfigVersion.cmake /usr/share/ECM/modules/ECMUseFindModules.cmake /usr/share/cmake-3.16/Modules/CMakeCInformation.cmake /usr/share/cmake-3.16/Modules/CMakeCXXInformation.cmake /usr/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake /usr/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake /usr/share/cmake-3.16/Modules/CMakeGenericSystem.cmake /usr/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake /usr/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake /usr/share/cmake-3.16/Modules/CMakeParseArguments.cmake /usr/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake-3.16/Modules/CheckFunctionExists.cmake /usr/share/cmake-3.16/Modules/CheckLibraryExists.cmake /usr/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake-3.16/Modules/Compiler/GNU-C.cmake /usr/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake /usr/share/cmake-3.16/Modules/Compiler/GNU.cmake /usr/share/cmake-3.16/Modules/FindFontconfig.cmake /usr/share/cmake-3.16/Modules/FindFreetype.cmake /usr/share/cmake-3.16/Modules/FindGettext.cmake /usr/share/cmake-3.16/Modules/FindOpenGL.cmake /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake /usr/share/cmake-3.16/Modules/FindPackageMessage.cmake /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake /usr/share/cmake-3.16/Modules/FindX11.cmake /usr/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake /usr/share/cmake-3.16/Modules/MacroAddFileDependencies.cmake /usr/share/cmake-3.16/Modules/Platform/Linux-GNU-C.cmake /usr/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake /usr/share/cmake-3.16/Modules/Platform/Linux.cmake /usr/share/cmake-3.16/Modules/Platform/UnixPaths.cmake /usr/share/cmake-3.16/Modules/SelectLibraryConfigurations.cmake CMakeCache.txt CMakeFiles/3.16.3/CMakeCCompiler.cmake CMakeFiles/3.16.3/CMakeCXXCompiler.cmake CMakeFiles/3.16.3/CMakeSystem.cmake
- pool = console
-
-
-#############################################
-# A missing CMake input file is not an error.
-
-build ../CMakeLists.txt ../windowsview/CMakeLists.txt ../windowsview/data.qrc ../windowswitchers/CMakeLists.txt /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigCompilerTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigCompilerTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5Config/KF5ConfigTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5I18n/KF5I18nTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemQchTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemTargets-debian.cmake /usr/lib/aarch64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemTargets.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5Config.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5ConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5/Qt5ModuleLocation.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Core/Qt5CoreMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5DBus/Qt5DBusMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QComposePlatformInputContextPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSEmulatorIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSKmsEglDeviceIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSKmsGbmIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEglFSX11IntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevKeyboardPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevMousePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevTabletPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QEvdevTouchScreenPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QGifPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QICOPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QIbusPlatformInputContextPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QJpegPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QLibInputPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QLinuxFbIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QMinimalEglIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QMinimalIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QOffscreenIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QTuioTouchPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QVncIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QXcbEglIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QXcbGlxIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5Network_QConnmanEnginePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5Network_QGenericEnginePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Network/Qt5Network_QNetworkManagerEnginePlugin.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5QmlConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QDebugMessageServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QLocalClientConnectionFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlDebugServerFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlDebuggerServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlInspectorServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlNativeDebugConnectorFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlNativeDebugServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlPreviewServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQmlProfilerServiceFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QQuickProfilerAdapterFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Qml/Qt5Qml_QTcpServerConnectionFactory.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Quick/Qt5QuickConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Quick/Qt5QuickConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets/Qt5QuickWidgetsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets/Qt5QuickWidgetsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsMacros.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras/Qt5X11ExtrasConfigVersion.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Xml/Qt5XmlConfig.cmake /usr/lib/aarch64-linux-gnu/cmake/Qt5Xml/Qt5XmlConfigVersion.cmake /usr/share/ECM/cmake/ECMConfig.cmake /usr/share/ECM/cmake/ECMConfigVersion.cmake /usr/share/ECM/modules/ECMUseFindModules.cmake /usr/share/cmake-3.16/Modules/CMakeCInformation.cmake /usr/share/cmake-3.16/Modules/CMakeCXXInformation.cmake /usr/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake /usr/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake /usr/share/cmake-3.16/Modules/CMakeGenericSystem.cmake /usr/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake /usr/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake /usr/share/cmake-3.16/Modules/CMakeParseArguments.cmake /usr/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake-3.16/Modules/CheckFunctionExists.cmake /usr/share/cmake-3.16/Modules/CheckLibraryExists.cmake /usr/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake-3.16/Modules/Compiler/GNU-C.cmake /usr/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake /usr/share/cmake-3.16/Modules/Compiler/GNU.cmake /usr/share/cmake-3.16/Modules/FindFontconfig.cmake /usr/share/cmake-3.16/Modules/FindFreetype.cmake /usr/share/cmake-3.16/Modules/FindGettext.cmake /usr/share/cmake-3.16/Modules/FindOpenGL.cmake /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake /usr/share/cmake-3.16/Modules/FindPackageMessage.cmake /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake /usr/share/cmake-3.16/Modules/FindX11.cmake /usr/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake /usr/share/cmake-3.16/Modules/MacroAddFileDependencies.cmake /usr/share/cmake-3.16/Modules/Platform/Linux-GNU-C.cmake /usr/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake /usr/share/cmake-3.16/Modules/Platform/Linux.cmake /usr/share/cmake-3.16/Modules/Platform/UnixPaths.cmake /usr/share/cmake-3.16/Modules/SelectLibraryConfigurations.cmake CMakeCache.txt CMakeFiles/3.16.3/CMakeCCompiler.cmake CMakeFiles/3.16.3/CMakeCXXCompiler.cmake CMakeFiles/3.16.3/CMakeSystem.cmake: phony
-
-
-#############################################
-# Clean additional files.
-
-build CMakeFiles/clean.additional: CLEAN_ADDITIONAL
-
-
-#############################################
-# Clean all the built files.
-
-build clean: CLEAN CMakeFiles/clean.additional
-
-
-#############################################
-# Print all primary targets available.
-
-build help: HELP
-
diff --git a/build/cmake_install.cmake b/build/cmake_install.cmake
deleted file mode 100644
index 8f13f77155c8a79d9cae99b51662bdf4a70dd7a0..0000000000000000000000000000000000000000
--- a/build/cmake_install.cmake
+++ /dev/null
@@ -1,56 +0,0 @@
-# Install script for directory: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch
-
-# Set the install prefix
-if(NOT DEFINED CMAKE_INSTALL_PREFIX)
- set(CMAKE_INSTALL_PREFIX "/usr/local")
-endif()
-string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
-
-# Set the install configuration name.
-if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
- if(BUILD_TYPE)
- string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
- CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
- else()
- set(CMAKE_INSTALL_CONFIG_NAME "Debug")
- endif()
- message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
-endif()
-
-# Set the component getting installed.
-if(NOT CMAKE_INSTALL_COMPONENT)
- if(COMPONENT)
- message(STATUS "Install component: \"${COMPONENT}\"")
- set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
- else()
- set(CMAKE_INSTALL_COMPONENT)
- endif()
-endif()
-
-# Install shared libraries without execute permission?
-if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
- set(CMAKE_INSTALL_SO_NO_EXE "1")
-endif()
-
-# Is this installation the result of a crosscompile?
-if(NOT DEFINED CMAKE_CROSSCOMPILING)
- set(CMAKE_CROSSCOMPILING "FALSE")
-endif()
-
-if(NOT CMAKE_INSTALL_LOCAL_ONLY)
- # Include the install script for each subdirectory.
- include("/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/cmake_install.cmake")
- include("/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowswitchers/cmake_install.cmake")
-
-endif()
-
-if(CMAKE_INSTALL_COMPONENT)
- set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
-else()
- set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
-endif()
-
-string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
- "${CMAKE_INSTALL_MANIFEST_FILES}")
-file(WRITE "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/${CMAKE_INSTALL_MANIFEST}"
- "${CMAKE_INSTALL_MANIFEST_CONTENT}")
diff --git a/build/compile_commands.json b/build/compile_commands.json
deleted file mode 100644
index 9dac709fa69b65c3dc5db182dd5b475e923d6782..0000000000000000000000000000000000000000
--- a/build/compile_commands.json
+++ /dev/null
@@ -1,49 +0,0 @@
-[
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/windowsview_autogen/mocs_compilation.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen/mocs_compilation.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen/mocs_compilation.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/desktopbackground.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/desktopbackground.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/desktopbackground.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/icontheme.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/icontheme.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/icontheme.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/multitaskviewmodel.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmodel.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmodel.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/multitaskviewmanager.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanager.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanager.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/dbusservice.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/dbusservice.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/dbusservice.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/multitaskviewmanagerpluginfactory.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanagerpluginfactory.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanagerpluginfactory.cpp"
-},
-
-{
- "directory": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "command": "/bin/c++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -Dwindowsview_EXPORTS -Iwindowsview -I../windowsview -Iwindowsview/windowsview_autogen/include -I/usr/include/aarch64-linux-gnu/qt5/QGSettings -I/usr/include/kwin -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -isystem /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuick -isystem /usr/include/aarch64-linux-gnu/qt5/QtQml -isystem /usr/include/aarch64-linux-gnu/qt5/QtNetwork -isystem /usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/aarch64-linux-gnu/qt5/QtDBus -isystem /usr/include/aarch64-linux-gnu/qt5/QtX11Extras -g -fPIC -fPIC -std=gnu++14 -o windowsview/CMakeFiles/windowsview.dir/qrc_data.cpp.o -c /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/qrc_data.cpp",
- "file": "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/qrc_data.cpp"
-}
-]
\ No newline at end of file
diff --git a/build/rules.ninja b/build/rules.ninja
deleted file mode 100644
index c311e0ba69eae7d04e47e4e3ab11bbe3a860d68d..0000000000000000000000000000000000000000
--- a/build/rules.ninja
+++ /dev/null
@@ -1,72 +0,0 @@
-# CMAKE generated file: DO NOT EDIT!
-# Generated by "Ninja" Generator, CMake Version 3.16
-
-# This file contains all the rules used to get the outputs files
-# built from the input files.
-# It is included in the main 'build.ninja'.
-
-# =============================================================================
-# Project: ukui-window-switch
-# Configuration: Debug
-# =============================================================================
-# =============================================================================
-
-#############################################
-# Rule for running custom commands.
-
-rule CUSTOM_COMMAND
- command = $COMMAND
- description = $DESC
-
-
-#############################################
-# Rule for compiling CXX files.
-
-rule CXX_COMPILER__windowsview
- depfile = $DEP_FILE
- deps = gcc
- command = /bin/c++ $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
- description = Building CXX object $out
-
-
-#############################################
-# Rule for linking CXX shared module.
-
-rule CXX_MODULE_LIBRARY_LINKER__windowsview
- command = $PRE_LINK && /bin/c++ -fPIC $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS $LINK_FLAGS -shared $SONAME_FLAG$SONAME -o $TARGET_FILE $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
- description = Linking CXX shared module $TARGET_FILE
- restat = $RESTAT
-
-
-#############################################
-# Rule for re-running cmake.
-
-rule RERUN_CMAKE
- command = /usr/bin/cmake -S/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch -B/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build
- description = Re-running CMake...
- generator = 1
-
-
-#############################################
-# Rule for cleaning additional files.
-
-rule CLEAN_ADDITIONAL
- command = /usr/bin/cmake -P CMakeFiles/clean_additional.cmake
- description = Cleaning additional files...
-
-
-#############################################
-# Rule for cleaning all built files.
-
-rule CLEAN
- command = /usr/bin/ninja -t clean
- description = Cleaning all built files...
-
-
-#############################################
-# Rule for printing all primary targets available.
-
-rule HELP
- command = /usr/bin/ninja -t targets
- description = All primary targets available:
-
diff --git a/build/windowsview/CMakeFiles/windowsview_autogen.dir/AutogenInfo.json b/build/windowsview/CMakeFiles/windowsview_autogen.dir/AutogenInfo.json
deleted file mode 100644
index 6da1e0d6f9a8d33fdbcd1dd2e62f33324e472356..0000000000000000000000000000000000000000
--- a/build/windowsview/CMakeFiles/windowsview_autogen.dir/AutogenInfo.json
+++ /dev/null
@@ -1,159 +0,0 @@
-{
- "BUILD_DIR" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen",
- "CMAKE_BINARY_DIR" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build",
- "CMAKE_CURRENT_BINARY_DIR" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview",
- "CMAKE_CURRENT_SOURCE_DIR" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview",
- "CMAKE_EXECUTABLE" : "/usr/bin/cmake",
- "CMAKE_SOURCE_DIR" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch",
- "HEADERS" :
- [
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/dbusservice.h",
- "MU",
- "EWIEGA46WW/moc_dbusservice.cpp"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/desktopbackground.h",
- "MU",
- "EWIEGA46WW/moc_desktopbackground.cpp"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/icontheme.h",
- "MU",
- "EWIEGA46WW/moc_icontheme.cpp"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanager.h",
- "MU",
- "EWIEGA46WW/moc_multitaskviewmanager.cpp"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmodel.h",
- "MU",
- "EWIEGA46WW/moc_multitaskviewmodel.cpp"
- ]
- ],
- "HEADER_EXTENSIONS" : [ "h", "hh", "h++", "hm", "hpp", "hxx", "in", "txx" ],
- "INCLUDE_DIR" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen/include",
- "MOC_COMPILATION_FILE" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen/mocs_compilation.cpp",
- "MOC_DEFINITIONS" :
- [
- "KCOREADDONS_LIB",
- "QT_CORE_LIB",
- "QT_DBUS_LIB",
- "QT_GUI_LIB",
- "QT_NETWORK_LIB",
- "QT_QML_LIB",
- "QT_QUICKWIDGETS_LIB",
- "QT_QUICK_LIB",
- "QT_WIDGETS_LIB",
- "QT_X11EXTRAS_LIB",
- "windowsview_EXPORTS"
- ],
- "MOC_DEPEND_FILTERS" :
- [
- [
- "Q_PLUGIN_METADATA",
- "[\n][ \t]*Q_PLUGIN_METADATA[ \t]*\\([^\\)]*FILE[ \t]*\"([^\"]+)\""
- ],
- [
- "K_PLUGIN_FACTORY_WITH_JSON",
- "[\n^][ \t]*K_PLUGIN_FACTORY_WITH_JSON[ \t\n]*\\([^,]*,[ \t\n]*\"([^\"]+)\""
- ],
- [
- "K_PLUGIN_CLASS_WITH_JSON",
- "[\n^][ \t]*K_PLUGIN_CLASS_WITH_JSON[ \t\n]*\\([^,]*,[ \t\n]*\"([^\"]+)\""
- ]
- ],
- "MOC_INCLUDES" :
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview",
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview",
- "/usr/include/aarch64-linux-gnu/qt5/QGSettings",
- "/usr/include/kwin",
- "/usr/include/aarch64-linux-gnu/qt5",
- "/usr/include/aarch64-linux-gnu/qt5/QtCore",
- "/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++",
- "/usr/include/aarch64-linux-gnu/qt5/QtGui",
- "/usr/include/aarch64-linux-gnu/qt5/QtWidgets",
- "/usr/include/aarch64-linux-gnu/qt5/QtQuick",
- "/usr/include/aarch64-linux-gnu/qt5/QtQml",
- "/usr/include/aarch64-linux-gnu/qt5/QtNetwork",
- "/usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets",
- "/usr/include/KF5/KConfigCore",
- "/usr/include/KF5",
- "/usr/include/KF5/KWindowSystem",
- "/usr/include/KF5/KCoreAddons",
- "/usr/include/KF5/KGlobalAccel",
- "/usr/include/aarch64-linux-gnu/qt5/QtDBus",
- "/usr/include/aarch64-linux-gnu/qt5/QtX11Extras",
- "/usr/include",
- "/usr/include/c++/9",
- "/usr/include/aarch64-linux-gnu/c++/9",
- "/usr/include/c++/9/backward",
- "/usr/lib/gcc/aarch64-linux-gnu/9/include",
- "/usr/local/include",
- "/usr/include/aarch64-linux-gnu"
- ],
- "MOC_MACRO_NAMES" :
- [
- "Q_OBJECT",
- "Q_GADGET",
- "Q_NAMESPACE",
- "K_PLUGIN_FACTORY",
- "K_PLUGIN_FACTORY_WITH_JSON",
- "K_PLUGIN_CLASS_WITH_JSON"
- ],
- "MOC_OPTIONS" : [],
- "MOC_PATH_PREFIX" : true,
- "MOC_PREDEFS_CMD" :
- [
- "/bin/c++",
- "-dM",
- "-E",
- "-c",
- "/usr/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp"
- ],
- "MOC_PREDEFS_FILE" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/windowsview_autogen/moc_predefs.h",
- "MOC_RELAXED_MODE" : false,
- "MOC_SKIP" : [],
- "MULTI_CONFIG" : false,
- "PARALLEL" : 1,
- "PARSE_CACHE_FILE" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/windowsview_autogen.dir/ParseCache.txt",
- "QT_MOC_EXECUTABLE" : "/usr/lib/qt5/bin/moc",
- "QT_UIC_EXECUTABLE" : "/usr/lib/qt5/bin/uic",
- "QT_VERSION_MAJOR" : 5,
- "SETTINGS_FILE" : "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/CMakeFiles/windowsview_autogen.dir/AutogenUsed.txt",
- "SOURCES" :
- [
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/dbusservice.cpp",
- "MU"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/desktopbackground.cpp",
- "MU"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/icontheme.cpp",
- "MU"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanager.cpp",
- "MU"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmanagerpluginfactory.cpp",
- "MU"
- ],
- [
- "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/multitaskviewmodel.cpp",
- "MU"
- ]
- ],
- "UIC_OPTIONS" : [],
- "UIC_SEARCH_PATHS" : [],
- "UIC_SKIP" : [],
- "UIC_UI_FILES" : [],
- "VERBOSITY" : 0
-}
diff --git a/build/windowsview/cmake_install.cmake b/build/windowsview/cmake_install.cmake
deleted file mode 100644
index 0eff4a6272371ad8f8c9e56240fd2c803a889e41..0000000000000000000000000000000000000000
--- a/build/windowsview/cmake_install.cmake
+++ /dev/null
@@ -1,75 +0,0 @@
-# Install script for directory: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview
-
-# Set the install prefix
-if(NOT DEFINED CMAKE_INSTALL_PREFIX)
- set(CMAKE_INSTALL_PREFIX "/usr/local")
-endif()
-string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
-
-# Set the install configuration name.
-if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
- if(BUILD_TYPE)
- string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
- CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
- else()
- set(CMAKE_INSTALL_CONFIG_NAME "Debug")
- endif()
- message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
-endif()
-
-# Set the component getting installed.
-if(NOT CMAKE_INSTALL_COMPONENT)
- if(COMPONENT)
- message(STATUS "Install component: \"${COMPONENT}\"")
- set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
- else()
- set(CMAKE_INSTALL_COMPONENT)
- endif()
-endif()
-
-# Install shared libraries without execute permission?
-if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
- set(CMAKE_INSTALL_SO_NO_EXE "1")
-endif()
-
-# Is this installation the result of a crosscompile?
-if(NOT DEFINED CMAKE_CROSSCOMPILING)
- set(CMAKE_CROSSCOMPILING "FALSE")
-endif()
-
-if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
- if(EXISTS "$ENV{DESTDIR}/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so" AND
- NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so")
- file(RPATH_CHECK
- FILE "$ENV{DESTDIR}/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so"
- RPATH "")
- endif()
- list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
- "/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so")
- if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
- if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
-file(INSTALL DESTINATION "/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins" TYPE MODULE FILES "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/build/windowsview/libwindowsview.so")
- if(EXISTS "$ENV{DESTDIR}/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so" AND
- NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so")
- if(CMAKE_INSTALL_DO_STRIP)
- execute_process(COMMAND "/bin/strip" "$ENV{DESTDIR}/usr/lib/aarch64-linux-gnu/qt5/plugins/kwin/effects/plugins/libwindowsview.so")
- endif()
- endif()
-endif()
-
-if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
- list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
- "/usr/bin/ukui-window-switch")
- if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
- if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
-file(INSTALL DESTINATION "/usr/bin" TYPE FILE FILES "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowsview/ukui-window-switch")
-endif()
-
diff --git a/build/windowsview/data.qrc.depends b/build/windowsview/data.qrc.depends
deleted file mode 100644
index c93b1f0ee75ad5a4c62e570d8cdbe3a171776274..0000000000000000000000000000000000000000
--- a/build/windowsview/data.qrc.depends
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
- qml/Controller.js
- qml/TabletController.js
- images/default-background.jpg
- images/all-clean-click.svg
- images/all-clean-default.svg
- images/all-clean-hover.svg
- images/ukui-taskview-close-click.svg
- images/ukui-taskview-close-default.svg
- images/ukui-taskview-close-hover.svg
- qml/PreviewWindow.qml
- qml/multitaskview.qml
- qml/AppArea.qml
- qml/DesktopArea.qml
- qml/TabletMultitaskView.qml
- qml/TabletViewRootWindow.qml
- qml/TabletScrollViewArea.qml
- qml/TabletPreviewWindow.qml
- images/tablet_delete.svg
- qml/TabletViewMain.qml
- qml/TabletViewClearAllWindowButton.qml
- qml/TabletViewCloseButton.qml
- qml/CloseButton.qml
-
-
diff --git a/build/windowswitchers/cmake_install.cmake b/build/windowswitchers/cmake_install.cmake
deleted file mode 100644
index 1763bb119e9f1a8e3398465abf9320458b5abed5..0000000000000000000000000000000000000000
--- a/build/windowswitchers/cmake_install.cmake
+++ /dev/null
@@ -1,63 +0,0 @@
-# Install script for directory: /home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowswitchers
-
-# Set the install prefix
-if(NOT DEFINED CMAKE_INSTALL_PREFIX)
- set(CMAKE_INSTALL_PREFIX "/usr/local")
-endif()
-string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
-
-# Set the install configuration name.
-if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
- if(BUILD_TYPE)
- string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
- CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
- else()
- set(CMAKE_INSTALL_CONFIG_NAME "Debug")
- endif()
- message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
-endif()
-
-# Set the component getting installed.
-if(NOT CMAKE_INSTALL_COMPONENT)
- if(COMPONENT)
- message(STATUS "Install component: \"${COMPONENT}\"")
- set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
- else()
- set(CMAKE_INSTALL_COMPONENT)
- endif()
-endif()
-
-# Install shared libraries without execute permission?
-if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
- set(CMAKE_INSTALL_SO_NO_EXE "1")
-endif()
-
-# Is this installation the result of a crosscompile?
-if(NOT DEFINED CMAKE_CROSSCOMPILING)
- set(CMAKE_CROSSCOMPILING "FALSE")
-endif()
-
-if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
- list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
- "/usr/share/kwin/tabbox/thumbnail_grid")
- if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
- if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
-file(INSTALL DESTINATION "/usr/share/kwin/tabbox" TYPE DIRECTORY FILES "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowswitchers/thumbnail_grid")
-endif()
-
-if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
- list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
- "/usr/share/kservices5/kwin/kwin4_window_switcher_thumbnail_grid.desktop")
- if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
- if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
- message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
- endif()
-file(INSTALL DESTINATION "/usr/share/kservices5/kwin" TYPE FILE RENAME "kwin4_window_switcher_thumbnail_grid.desktop" FILES "/home/zxy/debugdir/kwin/multitask/ukui-kwin-effects-new/uws2/ukui-window-switch/windowswitchers/thumbnail_grid/metadata.desktop")
-endif()
-
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000000000000000000000000000000000000..b527d32c07eb473e887e16a8fc466abc3c49bed1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,355 @@
+ukui-window-switch (4.10.1.10-ok2.3) nile; urgency=medium
+
+ * Issue:#IBFLY5 【X】【多任务视图】打开多任务视图界面静置进入自动锁屏,多任务视图界面不会自动退出
+ * 其他:fix(wlcom windowsview): 点击有子窗口的窗口的关闭按钮时激活该窗口
+
+ -- zhangyuanyuan1 Mon, 21 Apr 2025 15:27:35 +0800
+
+ukui-window-switch (4.10.1.10-ok2.2) nile; urgency=medium
+
+ * Issue:
+ #I7X74I 【设计走查】alt+tab圆形元素未适配主题
+ #I8X4B2 【USD】系统内存不足弹框按键alt+tab显示缩略图,win+tab未显示
+ * 其他:
+ -更新copyright
+
+ -- zhangyuanyuan1 Tue, 18 Mar 2025 14:31:28 +0800
+
+ukui-window-switch (4.10.1.10-ok2.0) nile; urgency=medium
+
+ * Issue:#IB24M1 【多任务视图】开启多个窗口,鼠标按住空白处无法上下滑动翻页
+ * 其他:
+ -refactor:重构model-view实现及前后端通信
+ -perf:优化CmakeLists.txt结构,调整翻译文件生成与安装机制
+ -feat:增加自定义flow UkuiFlow,增加编译依赖qtdeclarative5-private-dev
+ -perf:优化应用预览窗居中动画和键盘走焦
+ -perf:优化应用区域和工作区滑动交互
+
+ -- zhangyuanyuan1 Fri, 07 Mar 2025 14:07:48 +0800
+
+ukui-window-switch (4.10.1.10-ok1.6) nile; urgency=medium
+
+ * Issue:无
+ * 其他:增加阿越翻译文件
+
+ -- Kevin Duan Fri, 03 Jan 2025 17:52:20 +0800
+
+ukui-window-switch (4.10.1.10-ok1.5) nile; urgency=medium
+
+ * Issue:无
+ * 其他:fix: 修复“拉伸/居中”多任务视图背景与桌面背景显示不一致问题
+
+ -- zhangyuanyuan1 Fri, 03 Jan 2025 17:52:20 +0800
+
+ukui-window-switch (4.10.1.10-ok1.4) nile; urgency=medium
+
+ * Issue:无
+ * 其他:Revert "fix: 修复开机自启动失败问题"
+
+ -- zhangyuanyuan1 Thu, 19 Dec 2024 17:26:01 +0800
+
+ukui-window-switch (4.10.1.10-ok1.3) nile; urgency=medium
+
+ * Issue:无
+ * 其他:
+ -feat:多任务视图应用区域添加滚动条
+ -perf:优化模糊算法
+ -fix:修复wlcom环境kill后自启动失败问题
+
+ -- zhangyuanyuan1 Thu, 12 Dec 2024 15:53:43 +0800
+
+ukui-window-switch (4.10.1.10-ok1.2) nile; urgency=medium
+
+ * Issue:无
+ * 其他:
+ -fix(tabbox.qml)去掉引用的无用模块
+ -fix(output.cpp)修正KWYC枚举值拼写,解决编译报错问题
+ -feat(wlcom): 添加日志输出为log文件
+ -fix(desktopbackground.cpp): 修复背景为'适应'模式多任务视图与桌面显示不一致问题
+
+ -- zhangyuanyuan1 Tue, 03 Dec 2024 09:51:02 +0800
+
+ukui-window-switch (4.10.1.10-ok1.1) nile; urgency=medium
+
+ * Issue: 无
+ * 其他:修复shift+alt+tab快捷键切换后窗口不消失问题
+
+ -- zhangyuanyuan1 Thu, 21 Nov 2024 11:20:26 +0800
+
+ukui-window-switch (4.10.1.10-ok1) nile; urgency=medium
+
+ * rebuild
+
+ -- zhangyuanyan1 Wed, 23 Oct 2024 14:14:58 +0800
+
+ukui-window-switch (4.10.1.10-ok0) nile; urgency=medium
+
+ * Issue:无
+ * 其他:fix the dbus for kwin
+
+ -- zhangyuanyuan1 Wed, 23 Oct 2024 14:03:12 +0800
+
+ukui-window-switch (4.10.1.9-ok0) nile; urgency=medium
+
+ * Issue: https://gitee.com/openkylin/ukui-window-switch/issues/IAID8L
+
+ -- zhangyuanyuan1 Mon, 23 Sep 2024 14:35:06 +0800
+
+ukui-window-switch (4.10.1.8-ok0) nile; urgency=medium
+
+ * Issue: https://gitee.com/openkylin/kwin/issues/IAOG5O
+
+ -- zhangyuanyuan1 Thu, 12 Sep 2024 14:39:28 +0800
+
+ukui-window-switch (4.10.1.7-ok0) nile; urgency=medium
+
+ * Issue:https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QJ3G
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QJ6B
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QJB0
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QJCU
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QJXN
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QJXN
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QK9W
+ https://gitee.com/openkylin/ukui-touch-settings-plugin/issues/I9QKDF
+ * 其他:
+ -添加平板模式布局方向属性
+ -补全wlcom显示桌面接口
+
+ -- zhangyuanyuan1 Fri, 30 Aug 2024 11:02:33 +0800
+
+ukui-window-switch (4.10.1.6-ok0) nile; urgency=medium
+
+ * Issue:https://gitee.com/openkylin/ukui-window-switch/issues/IAH6D7?from=project-issue
+ * 其他:
+ -更新翻译
+
+ -- zhangyuanyuan1 Mon, 05 Aug 2024 16:28:15 +0800
+
+ukui-window-switch (4.10.1.5-ok0) nile; urgency=medium
+
+ * Issue: 无
+ * 其他:
+ -修复窗口选择界面默认焦点不在第二个窗口的问题
+ -修复窗口选择界面关闭后预览图资源未释放问题
+
+ -- zhangyuanyuan1 Tue, 16 Jul 2024 17:07:02 +0800
+
+ukui-window-switch (4.10.1.4-ok0) nile; urgency=medium
+
+ * Issue: https://gitee.com/openkylin/ukui-window-switch/issues/IA7RVO?from=project-issue
+ * 其他:
+ -修复wlcom关闭工作区概率性崩溃问题
+
+ -- zhangyuanyuan1 Wed, 10 Jul 2024 17:50:29 +0800
+
+ukui-window-switch (4.10.1.3-ok0) nile; urgency=medium
+
+ * Issue: https://gitee.com/openkylin/ukui-window-switch/issues/I8YR0X?from=project-issue
+ https://gitee.com/openkylin/ukui-window-switch/issues/I9JDTK?from=project-issue
+ https://gitee.com/openkylin/ukui-window-switch/issues/I9KLQL?from=project-issue
+ https://gitee.com/openkylin/ukui-window-switch/issues/I9T078?from=project-issue
+ * 其他:
+ - 修复thumbnail资源释放问题
+
+ -- zhangyuanyuan1 Thu, 04 Jul 2024 13:39:38 +0800
+
+ukui-window-switch (4.10.1.2-ok0) nile; urgency=medium
+
+ * 调整多任务视图布局在维哈柯环境为从右到左
+
+ -- zhangyuanyuan1 Thu, 04 Jul 2024 11:01:47 +0800
+
+ukui-window-switch (4.10.1.1-ok3) nile; urgency=medium
+
+ * 修改版本号重编
+
+ -- zhangyuanyuan1 Wed, 19 Jun 2024 17:57:09 +0800
+
+ukui-window-switch (4.10.1.1-ok2) nile; urgency=medium
+
+ * mode is null when output is disabled
+
+ -- zhangyuanyuan1 Wed, 19 Jun 2024 17:42:09 +0800
+
+ukui-window-switch (4.10.1.1-ok1) nile; urgency=medium
+
+ * 无窗口时按下alt-tab,窗口切换界面不会开启
+ * 增加窗口切换界面失焦后自动关闭的功能
+ * alt-tab界面添加毛玻璃
+
+ -- zhangyuanyuan1 Thu, 30 May 2024 19:47:00 +0800
+
+ukui-window-switch (4.10.1.0-ok0) nile; urgency=medium
+
+ * 修改版本号重编
+
+ -- zhangyuanyuan1 Tue, 28 May 2024 10:38:55 +0800
+
+ukui-window-switch (4.10.0.0-ok0.1) nile; urgency=medium
+
+ * 适配wlcom
+
+ -- jiaodian Fri, 24 May 2024 16:53:53 +0800
+
+ukui-window-switch (4.10.0.0-ok0.0) nile; urgency=medium
+
+ * upstream version 4.10.0.0
+
+ -- zhangyuanyuan1 Wed, 22 May 2024 16:09:57 +0800
+
+ukui-window-switch (4.0.0.0-ok0.12) nile; urgency=medium
+
+ * No change rebuild
+
+ -- CI Bot Tue, 21 May 2024 03:50:41 +0000
+
+ukui-window-switch (4.0.0.0-ok0.11) nile; urgency=medium
+
+ * 修改多任务视图,增加窗口垂直居中功能
+
+ -- jiaodian Wed, 06 Mar 2024 15:46:00 +0800
+
+ukui-window-switch (4.0.0.0-ok0.10) nile; urgency=medium
+
+ * 修改多任务视图圆角,适配主题大小
+ * 修改多任务视图新建工作区按钮大小
+ * 增加多任务视图背景深色蒙层
+
+ -- jiaodian Thu, 22 Feb 2024 14:02:43 +0800
+
+ukui-window-switch (4.0.0.0-ok0.9) nile; urgency=medium
+
+ * 修改多任务视图平板模式的缩略图大小算法,解决缩略图大于边框的问题
+
+ -- jiaodian Tue, 12 Dec 2023 17:20:20 +0800
+
+ukui-window-switch (4.0.0.0-ok0.8) nile; urgency=medium
+
+ * 修改多任务视图的开启和关闭事件的数据上传方式
+
+ -- jiaodian Tue, 21 Nov 2023 15:32:15 +0800
+
+ukui-window-switch (4.0.0.0-ok0.7) nile; urgency=medium
+
+ * 规范数据上传的格式
+
+ -- jiaodian Thu, 16 Nov 2023 15:36:06 +0800
+
+ukui-window-switch (4.0.0.0-ok0.6) yangtze; urgency=medium
+
+ * 增加走焦所在区域的数据埋点
+
+ -- jiaodian Thu, 16 Nov 2023 09:41:45 +0800
+
+ukui-window-switch (4.0.0.0-ok0.5) yangtze; urgency=medium
+
+ * 增加数据埋点功能
+
+ -- jiaodian Tue, 14 Nov 2023 16:28:14 +0800
+
+ukui-window-switch (4.0.0.0-ok0.4) yangtze; urgency=medium
+
+ * 增加维,哈,柯,蒙,藏,繁体语言支持
+
+ -- jiaodian Fri, 10 Nov 2023 09:33:31 +0800
+
+ukui-window-switch (4.0.0.0-ok0.3) yangtze; urgency=medium
+
+ * 优化走焦逻辑:多任务视图首次按键激活走焦框,应用区上下箭头键增加首尾循环导航
+
+ -- jiaodian Thu, 02 Nov 2023 16:58:27 +0800
+
+ukui-window-switch (4.0.0.0-ok0.2) yangtze; urgency=medium
+
+ * 修改打开多任务视图,开始菜单等窗口不关闭的问题
+
+ -- jiaodian Mon, 17 Jul 2023 17:41:40 +0800
+
+ukui-window-switch (4.0.0.0-ok0.1build2) yangtze; urgency=medium
+
+ * rebuild for build error
+
+ -- pangyi Tue, 16 May 2023 11:04:05 +0800
+
+ukui-window-switch (4.0.0.0-ok0.1build1) yangtze; urgency=medium
+
+ * rebuild for build error
+
+ -- pangyi Tue, 16 May 2023 10:11:08 +0800
+
+ukui-window-switch (4.0.0.0-ok0.1) yangtze; urgency=medium
+
+ * 简化多任务视图前端代码,去除过度封装代码
+
+ -- pangyi Tue, 16 May 2023 09:10:53 +0800
+
+ukui-window-switch (4.0.0.0-ok0.0) yangtze; urgency=medium
+
+ * upstream version 4.0.0.0
+
+ -- zouxiaoyi Wed, 12 Apr 2023 18:58:19 +0800
+
+ukui-window-switch (3.22.1.4-ok1.7build1) yangtze; urgency=medium
+
+ * 完善走焦映射判断逻辑 close: #I5XHDA, #I5XHGH
+ * rebuild with new version of kwin
+
+ -- zouxiaoyi Wed, 04 Jan 2023 17:54:43 +0800
+
+ukui-window-switch (3.22.1.4-ok1.7) yangtze; urgency=medium
+
+ * 完善走焦映射判断逻辑 close: #I5XHDA, #I5XHGH
+
+ -- zouxiaoyi Fri, 16 Dec 2022 17:01:44 +0800
+
+ukui-window-switch (3.22.1.4-ok1.6) yangtze; urgency=medium
+
+ * rebuild for kwin updates;
+
+ -- zouxiaoyi Thu, 08 Dec 2022 20:46:38 +0800
+
+ukui-window-switch (3.1.1.0-ok1.5build1) yangtze; urgency=medium
+
+ * rebuild for kwin updates;
+
+ -- zouxiaoyi Wed, 30 Nov 2022 11:30:48 +0800
+
+ukui-window-switch (3.1.1.0-ok1.5) yangtze; urgency=medium
+
+ * fix draw background picture failed
+ * fix thumbnails cover the upper and lower boundaries
+ * fix the animation effects
+
+ -- zouxiaoyi Wed, 23 Nov 2022 14:09:00 +0800
+
+ukui-window-switch (3.1.1.0-ok1.4) yangtze; urgency=medium
+
+ * fix that signals does not work on PC mode;
+ * fix 3 states of close button on PC mode;
+
+ -- zouxiaoyi Fri, 21 Oct 2022 14:09:00 +0800
+
+ukui-window-switch (3.1.1.0-ok1.3) yangtze; urgency=medium
+
+ * use blacklist to filter windows
+
+ -- zouxiaoyi Fri, 21 Oct 2022 10:43:59 +0800
+
+ukui-window-switch (3.1.1.0-ok1.2) yangtze; urgency=medium
+
+ * add build dependence;
+
+ -- zouxiaoyi Thu, 20 Oct 2022 16:59:57 +0800
+
+ukui-window-switch (3.1.1.0-ok1.1) yangtze; urgency=medium
+
+ * new upstream 3.1.1.0
+
+ -- zouxiaoyi Thu, 20 Oct 2022 16:17:43 +0800
+
+ukui-window-switch (3.1.0.0k2.16-ok2~0719) yangtze; urgency=medium
+
+ * build for openKylin
+ * Ignore some utility windows;
+
+ -- Xie Wei Sun, 19 Jun 2022 14:52:01 +0800
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000000000000000000000000000000000..dbbb8d2138bd5cdb36144b1ec0148c113dc1b4dc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,51 @@
+Source: ukui-window-switch
+Section: utils
+Priority: optional
+Maintainer: UKUI SIG
+Uploaders:zhangyuanyuan
+Build-Depends: cmake,
+ debhelper-compat (= 12),
+ extra-cmake-modules,
+ libdrm-dev,
+ libfontconfig1-dev,
+ libfreetype6-dev,
+ libglib2.0-dev,
+ libgsettings-qt-dev,
+ libkf5config-dev,
+ libkf5coreaddons-dev,
+ libkf5globalaccel-dev,
+ libkf5wayland-dev,
+ libkf5windowsystem-dev,
+ libkysdk-sysinfo-dev,
+ libkysdk-waylandhelper-dev(>= 3.0.1.0-0k0.5),
+ libmtdev-dev,
+ libqt5x11extras5-dev,
+ libxcb-composite0-dev,
+ libxcb-damage0-dev,
+ libxcb1-dev,
+ libxrender-dev,
+ libkysdk-datacollect-dev,
+ qtbase5-dev,
+ qtbase5-private-dev,
+ qtdeclarative5-dev,
+ qtdeclarative5-private-dev,
+ qttools5-dev,
+ qttools5-dev-tools,
+ kylin-wayland-compositor-client(>= 1.3.1.0-0k0.14),
+ libukui-quick-dev(>= 4.20.3.1-ok0.1k0.16),
+ libukui-search-dev,
+ libqt5xdg-dev
+Standards-Version: 4.6.0
+Homepage: https://gitee.com/openkylin/ukui-window-switch.git
+Vcs-Browser: https://gitee.com/openkylin/ukui-window-switch.git
+Vcs-Git: https://gitee.com/openkylin/ukui-window-switch.git
+
+Package: ukui-window-switch
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends},
+ qml-module-org-ukui-quick-items,
+ qml-module-org-ukui-quick-platform
+Description: UKUI Multitask View Package
+ This package provides a Multitask View function.
+ Users can use it to delete or activate other windows,
+ and it can also be used to control the workspace.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000000000000000000000000000000000000..be296a2473359a7a0f6a70838be0fae42a51aea1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,56 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ukui-window-switch
+Source: https://gitee.com/openkylin/ukui-window-switch
+
+Files: *
+Copyright: 2022, 2024, KylinSoft Co., Ltd.
+ 2022, zouxiaoyi zouxiaoyi@kylinos.cn
+ 2022, zhuyunpeng zhuyunpeng@kylinos.cn
+ 2022, liling liling@kylinos.cn
+ 2022, jiaodian jiaodian@kylinos.cn
+ 2022, pangyi pangyi@kylinos.cn
+ 2024, zy1 zhangyuanyuan1@kylinos.cn
+License: LGPL-2+
+
+Files: windowsview/appwindowfiltermodel.cpp
+ windowsview/appwindowfiltermodel.h
+ windowsview/appwindowlistmodel.cpp
+ windowsview/appwindowlistmodel.h
+ windowsview/desktoplistmodel.cpp
+ windowsview/desktoplistmodel.h
+Copyright: 2024, KylinSoft Co., Ltd.
+License: GPL-3+
+
+Files: windowsview/qml/LineEdit.qml
+Copyright: 2024, KylinSoft Co., Ltd.
+License: GPL-3+
+
+Files: windowsview/ukui-flow.cpp
+ windowsview/ukui-flow.h
+Copyright: 2025, KylinSoft Co., Ltd.
+ 2016, The Qt Company Ltd.
+License: GPL-2 or LGPL-3
+
+Files: windowsview/ukui-window-switch-wlcom/log-utils.cpp
+ windowsview/ukui-window-switch-wlcom/log-utils.h
+Copyright: 2024, KylinSoft Co., Ltd.
+License: GPL-3+
+
+Files: windowsview/ukui-window-switch-wlcom/qtsingleapplication/*
+Copyright: 2013, Digia Plc and/or its subsidiary(-ies).
+License: BSD-3-clause
+
+Files: windowswitchers/thumbnail_grid/contents/*
+Copyright: 2020, Chris Holland
+License: GPL-2+
+
+License: LGPL-2+
+ This software is Copyright (c) 2022 by KylinSoft Co., Ltd.
+ This is free software, licensed under:
+ The GNU Library General Public License, Version 2, June 1991
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published by the
+ Free Software Foundation; version 2 of the License, or (at
+ your option) any later version.
+ On Debian systems, the complete text of version 2 of the GNU Library
+ General Public License can be found in '/usr/share/common-licenses/LGPL-2'.
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000000000000000000000000000000000000..c1cd3d39c7157ecd997fb3bbdc2ca4b9122bf758
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postinst script for ukui-window-switch
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * `configure'
+# * `abort-upgrade'
+# * `abort-remove' `in-favour'
+#
+# * `abort-remove'
+# * `abort-deconfigure' `in-favour'
+# `removing'
+#
+# for details, see https://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+if [ -f /usr/bin/ukui-window-switch ]; then
+ chmod a+x /usr/bin/ukui-window-switch
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000000000000000000000000000000000000..e1c367c12388dca85fb368ef66b356702f03a77a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+
+%:
+ dh $@
+
+
+# dh_make generated override targets
+# This is example for Cmake (See https://bugs.debian.org/641051 )
+#override_dh_auto_configure:
+# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/debian/ukui-window-switch.manpages b/debian/ukui-window-switch.manpages
new file mode 100644
index 0000000000000000000000000000000000000000..dead3fcb5a0ca940e407aa41d01c1337bf2acb7e
--- /dev/null
+++ b/debian/ukui-window-switch.manpages
@@ -0,0 +1 @@
+man/ukui-window-switch.1
diff --git a/man/ukui-window-switch.1 b/man/ukui-window-switch.1
new file mode 100644
index 0000000000000000000000000000000000000000..d8d37eb58385c10be6c337520739cad6ab80660a
--- /dev/null
+++ b/man/ukui-window-switch.1
@@ -0,0 +1,19 @@
+.\" Man Page for ukui-window-switch
+.TH ukui-window-switch 1 "26 July 2023" "UKUI Desktop Environment"
+.SH "NAME"
+ukui-window-switch - use it to switch windows
+.SH "SYNOPSIS"
+Open the multitaskView.
+.SH "DESCRIPTION"
+The user can press the win+tab key to open the multitaskView.
+User can used it to delete or activate other windows,
+and it can also be used to control the workspace.
+.TP
+\fB --show-workspace\fR
+Open the multitaskView.
+.SH "BUGS"
+.SS Should you encounter any bugs, they may be reported at:
+https://gitee.com/openkylin/ukui-window-switch/issues
+.SH "AUTHORS"
+.SS This Manual Page has been written for the UKUI Desktop Environment by:
+Dian Jiao (2023)
diff --git a/windowsview/CMakeLists.txt b/windowsview/CMakeLists.txt
index ad127e398d26faaf23e5448b75100b45906746d3..61c342f54ee375d788382b3887cf2321ed303457 100644
--- a/windowsview/CMakeLists.txt
+++ b/windowsview/CMakeLists.txt
@@ -1,65 +1,19 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.16)
-set(PLUGIN_NAME "windowsview")
-set(PLASMA_RELATIVE_DATA_INSTALL_DIR "plasma")
+find_package(QT NAMES Qt6 Qt5 COMPONENTS LinguistTools REQUIRED)
+find_package(Qt${QT_VERSION_MAJOR} COMPONENTS LinguistTools REQUIRED)
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTOUIC ON)
-set(CMAKE_AUTORCC ON)
+file(GLOB TS_FILES translations/*.ts)
+set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/translations)
+qt5_create_translation(QM_FILES ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/ukui-window-switch-wlcom ${CMAKE_CURRENT_SOURCE_DIR}/ukui-window-switch-kwineffect ${CMAKE_CURRENT_SOURCE_DIR}/qml ${TS_FILES} OPTIONS -no-obsolete -no-ui-lines)
-set(CMAKE_CXX_STANDARD 14)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
+add_custom_target(generate_qm ALL DEPENDS ${QM_FILES})
-set(KF5_DEP_VERSION "5.54.0")
+set(TRANSLATION_DIR "/usr/share/ukui-window-switch/translations/")
+add_compile_definitions(TRANSLATION_DIR="${TRANSLATION_DIR}")
-find_package(ECM 5.54.0 NO_MODULE)
-find_package(X11 MODULE)
-find_package(XCB MODULE COMPONENTS XCB COMPOSITE DAMAGE SHAPE XFIXES RENDER)
-find_package(OpenGL)
-find_package(EGL)
-find_package(Qt5Quick REQUIRED)
-find_package(Qt5QuickWidgets REQUIRED)
-find_package(KF5Config REQUIRED)
-find_package(KF5GlobalAccel REQUIRED)
-find_package(KF5I18n REQUIRED)
-find_package(PkgConfig REQUIRED)
-find_package(Qt5LinguistTools REQUIRED)
-
-find_package(Qt5 REQUIRED NO_MODULE COMPONENTS X11Extras)
-
-set(SRCS desktopbackground.cpp
- icontheme.cpp
- multitaskviewmodel.cpp
- multitaskviewmanager.cpp
- dbusservice.cpp
- multitaskviewmanagerpluginfactory.cpp
- )
-
-qt5_add_resources(SRCS data.qrc)
-add_library(
- ${PLUGIN_NAME} MODULE
- ${SRCS}
-)
-
-include_directories(/usr/include/kwin/)
-
-target_link_libraries(
- ${PLUGIN_NAME}
- PUBLIC
- Qt5::Core
- Qt5::Gui
- Qt5::Widgets
- Qt5::Quick
- Qt5::QuickWidgets
- PRIVATE
- KF5::ConfigCore
- KF5::WindowSystem
- KF5::CoreAddons
- KF5::GlobalAccel
- Qt5::X11Extras
- ${QGSettings_LIBRARIES}
-)
-
-install(TARGETS ${PLUGIN_NAME} DESTINATION ${INSTALL_PATH})
-install(FILES ukui-window-switch DESTINATION /usr/bin/ )
+#add_subdirectory(ukui-window-switch-kwineffect)
+add_subdirectory(ukui-window-switch-wlcom)
+install(FILES ukui-window-switch DESTINATION /usr/bin/)
+install(FILES ukui-window-switch.desktop DESTINATION /etc/xdg/autostart/)
+install(FILES ${QM_FILES} DESTINATION ${TRANSLATION_DIR})
diff --git a/windowsview/appwindowfiltermodel.cpp b/windowsview/appwindowfiltermodel.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..af9b6c590fb8e84fd9ba20174a35b7c25eeafdc9
--- /dev/null
+++ b/windowsview/appwindowfiltermodel.cpp
@@ -0,0 +1,73 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * Authors: zy-yuan1
+ *
+ */
+#include "appwindowfiltermodel.h"
+#include
+
+AppWindowFilterModel::AppWindowFilterModel(QObject *parent) : QSortFilterProxyModel(parent)
+{
+ setFilterRole(AppWindowListModel::DesktopsId);
+}
+
+void AppWindowFilterModel::setSourceModel(QAbstractItemModel *sourceModel)
+{
+ m_sourceModel = qobject_cast(sourceModel);
+ QSortFilterProxyModel::setSourceModel(sourceModel);
+ connect(sourceModel, &QAbstractItemModel::dataChanged, this, &AppWindowFilterModel::onDataChanged);
+}
+
+int AppWindowFilterModel::desktopId() const
+{
+ return m_desktopId;
+}
+
+void AppWindowFilterModel::setDesktopId(const int id)
+{
+ if (m_desktopId == id) {
+ return;
+ }
+ m_desktopId = id;
+ invalidate();
+}
+
+int AppWindowFilterModel::screenId() const
+{
+ return m_screenId;
+}
+
+void AppWindowFilterModel::setScreenId(const int id)
+{
+ if (m_screenId == id) {
+ return;
+ }
+ m_screenId = id;
+ invalidate();
+}
+
+bool AppWindowFilterModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
+{
+ QList desktopsId = m_sourceModel->index(source_row, 0, source_parent).data(AppWindowListModel::Role::DesktopsId).value >();
+ int screenId = m_sourceModel->index(source_row, 0, source_parent).data(AppWindowListModel::Role::ScreenId).toUInt();
+ return desktopsId.contains(m_desktopId) && screenId == m_screenId;
+}
+
+void AppWindowFilterModel::onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles)
+{
+ Q_EMIT dataChanged(mapFromSource(topLeft), mapFromSource(bottomRight), roles);
+}
diff --git a/windowsview/appwindowfiltermodel.h b/windowsview/appwindowfiltermodel.h
new file mode 100644
index 0000000000000000000000000000000000000000..44db22cd71a591565e4376ce276740ad78b91881
--- /dev/null
+++ b/windowsview/appwindowfiltermodel.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * Authors: zy-yuan1
+ *
+ */
+#ifndef APPWINDOWFILTERMODEL_H
+#define APPWINDOWFILTERMODEL_H
+
+#include
+#include
+#include "appwindowlistmodel.h"
+
+class AppWindowFilterModel : public QSortFilterProxyModel
+{
+ Q_OBJECT
+ Q_PROPERTY(int desktopId READ desktopId WRITE setDesktopId)
+ Q_PROPERTY(int screenId READ screenId WRITE setScreenId)
+
+public:
+ explicit AppWindowFilterModel(QObject *parent = nullptr);
+ ~AppWindowFilterModel() = default;
+ Q_INVOKABLE void setSourceModel(QAbstractItemModel *sourceModel) override;
+
+ int desktopId() const;
+ void setDesktopId(const int id);
+ int screenId() const;
+ void setScreenId(const int id);
+
+protected:
+ bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
+
+private:
+ void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles = QVector());
+
+ AppWindowListModel *m_sourceModel = nullptr;
+ int m_desktopId = 1;
+ int m_screenId = 0;
+};
+
+#endif // APPWINDOWFILTERMODEL_H
diff --git a/windowsview/appwindowlistmodel.cpp b/windowsview/appwindowlistmodel.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..6a07c69b86f884f6a70c10fcaadeb6f4f588c8bd
--- /dev/null
+++ b/windowsview/appwindowlistmodel.cpp
@@ -0,0 +1,276 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * Authors: zy-yuan1
+ *
+ */
+#include "appwindowlistmodel.h"
+#include "windowmanagerinterface.h"
+#include
+#include
+
+
+AppWindowListModel::AppWindowListModel(QObject *parent) : QAbstractListModel(parent)
+{
+ connectSignals();
+ loadWindows();
+}
+
+void AppWindowListModel::connectSignals()
+{
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::appWindowRemoved,
+ this, &AppWindowListModel::onAppWindowRemoved);
+
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::appWindowDesktopChanged,
+ this, &AppWindowListModel::onAppWindowDesktopChanged);
+
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::desktopMoved,
+ this, &AppWindowListModel::onDesktopMoved);
+
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::desktopRemoved,
+ this, &AppWindowListModel::onDesktopRemoved);
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::appWindowAdd,
+ this, &AppWindowListModel::onAppWindowAdd);
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::appWindowActivated,
+ this, &AppWindowListModel::onAppWindowActived);
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::appWindowUpdated,
+ this, &AppWindowListModel::onAppWindowUpdated);
+}
+
+int AppWindowListModel::rowCount(const QModelIndex &parent) const
+{
+ return m_windowList.count();
+}
+
+QVariant AppWindowListModel::data(const QModelIndex &index, int role) const
+{
+ int i = index.row();
+ if (i < 0 || i >= m_windowList.count()) {
+ return QVariant();
+ }
+ Window window = m_windowList.at(i);
+ switch (static_cast(role)) {
+ case Role::Id:
+ return window.id();
+ case Role::Uuid:
+ return window.uuid();
+ case Role::Caption:
+ return window.caption();
+ case Role::X:
+ return window.x();
+ case Role::Y:
+ return window.y();
+ case Role::Width:
+ return window.width();
+ case Role::Height:
+ return window.height();
+ case Role::Minimized:
+ return window.minimized();
+ case Role::DesktopsId:
+ return QVariant::fromValue >(window.desktopsId());
+ case Role::ScreenId:
+ return window.screenId();
+ case Role::Icon:
+ return window.icon();
+ default:
+ return {};
+ }
+}
+
+bool AppWindowListModel::setData(const QModelIndex &index, const QVariant &value, int role)
+{
+ if (!index.isValid()) {
+ return false;
+ }
+
+ if (role == Role::DesktopsId) {
+ m_windowList[index.row()].setDesktopsId(value.value >());
+ Q_EMIT dataChanged(index, index, QVector{Role::DesktopsId});
+ return true;
+ } else if (role == Role::ScreenId) {
+ m_windowList[index.row()].setScreenId(Desktop::DesktopType(value.toInt()));
+ Q_EMIT dataChanged(index, index, QVector{Role::ScreenId});
+ return true;
+ }
+
+ return false;
+}
+
+QHash AppWindowListModel::roleNames() const
+{
+ QHash roles = QAbstractItemModel::roleNames();
+ QMetaEnum e = metaObject()->enumerator(metaObject()->indexOfEnumerator("Role"));
+
+ for (int i = 0; i < e.keyCount(); ++i) {
+ roles.insert(e.value(i), e.key(i));
+ }
+ return roles;
+}
+
+void AppWindowListModel::loadWindows()
+{
+ beginResetModel();
+ m_windowList.clear();
+ for (const Window &appwindow : getAllAppWindowList()) {
+ m_windowList.append(appwindow);
+ }
+ endResetModel();
+}
+
+void AppWindowListModel::addItem(Window window)
+{
+ beginInsertRows(QModelIndex(), 0, 0);
+ m_windowList.prepend(window);
+ endInsertRows();
+}
+
+void AppWindowListModel::onAppWindowRemoved(QString windowId)
+{
+ for (int index = 0; index < m_windowList.size(); ++index) {
+ auto item = m_windowList.at(index);
+ if (item.uuid() == windowId) {
+ beginRemoveRows(QModelIndex(), index, index);
+ m_windowList.removeAt(index);
+ endRemoveRows();
+ break;
+ }
+ }
+}
+
+void AppWindowListModel::onAppWindowDesktopChanged(QString windowId, int oldDesktopIndex, int newDesktopIndex)
+{
+ for (int i = 0; i < m_windowList.size(); ++i) {
+ auto &item = m_windowList.at(i);
+ if (item.uuid() == windowId) {
+ m_windowList[i].setDesktopsId(QList{ newDesktopIndex });
+ Q_EMIT dataChanged(index(i, 0), index(i, 0), QVector{Role::DesktopsId});
+ break;
+ }
+ }
+}
+
+void AppWindowListModel::onDesktopMoved(int oldDesktopIndex, int newDesktopIndex)
+{
+#ifdef KWINEFFECT
+ //x-kwin would emit signal 'appWindowDesktopChanged', model has changed in function 'onAppWindowDesktopChanged'.
+ return;
+#endif
+ for (int i = 0; i < m_windowList.size(); ++i) {
+ auto &item = m_windowList.at(i);
+ QList desktops = item.desktopsId();
+ if (desktops.contains(oldDesktopIndex) && desktops.contains(newDesktopIndex)) {
+ continue;
+ }
+ if (desktops.contains(oldDesktopIndex)) {
+ int ind = desktops.indexOf(oldDesktopIndex);
+ desktops.replace(ind, newDesktopIndex);
+ } else if (desktops.contains(newDesktopIndex)) {
+ int ind = desktops.indexOf(newDesktopIndex);
+ desktops.replace(ind, oldDesktopIndex);
+ } else {
+ continue;
+ }
+
+ m_windowList[i].setDesktopsId(desktops);
+ Q_EMIT dataChanged(index(i, 0), index(i, 0), QVector{Role::DesktopsId});
+ }
+}
+
+void AppWindowListModel::onDesktopRemoved(int desktopIndex)
+{
+ //只需要处理desktopId > desktopIndex的情况,
+ //desktopId < desktopIndex时,不影响窗口所在工作区的索引值
+ //desktopId = desktopIndex时,在onAppWindowDesktopChanged中处理
+ bool changeFlag;
+ for (int i = 0; i < m_windowList.size(); ++i) {
+ changeFlag = false;
+ auto &item = m_windowList.at(i);
+ QList desktops = item.desktopsId();
+ for (int i = 0; i < desktops.size(); ++i) {
+ if (desktops.at(i) > desktopIndex) {
+ changeFlag = true;
+ desktops[i] -=1;
+ }
+ #ifdef KWINEFFECT
+ //x-kwin not emit signal 'appWindowDesktopChanged' when removeDesktop, handle here.
+ if (desktops.at(i) == desktopIndex) {
+ changeFlag = true;
+ desktops[i] = desktopIndex - 1 > 0 ? desktopIndex - 1 : 1;
+ }
+ #endif
+ }
+ if (changeFlag) {
+ m_windowList[i].setDesktopsId(desktops);
+ Q_EMIT dataChanged(index(i, 0), index(i, 0), QVector{Role::DesktopsId});
+ }
+ }
+}
+
+void AppWindowListModel::onAppWindowAdd(const Window &window)
+{
+ qDebug() << "onAppWindowAdd window.caption" << window.caption();
+ addItem(window);
+}
+
+void AppWindowListModel::onAppWindowActived()
+{
+ loadWindows();
+}
+
+void AppWindowListModel::onAppWindowUpdated(const Window &window)
+{
+ for (int i = 0; i < m_windowList.size(); ++i) {
+ auto &item = m_windowList.at(i);
+ if (item.uuid() == window.uuid()) {
+ m_windowList.replace(i, window);
+ Q_EMIT dataChanged(index(i, 0), index(i, 0));
+ break;
+ }
+ }
+}
+
+// TODO: remove?
+QVariant AppWindowListModel::getItemData(const QModelIndex &index)
+{
+ int i = index.row();
+ if (i >= 0 && i < m_windowList.count()) {
+ return QVariant::fromValue(m_windowList.at(i));
+ } else {
+ return QVariant();
+ }
+}
+
+QList AppWindowListModel::getAllAppWindowList() const
+{
+ QList allAppWindowList;
+ for(int desktopIndex = 1; desktopIndex <= WindowManagerInterface::getInstance()->getNumberOfDesktops(); desktopIndex++) {
+ for (int screenIndex = 0; screenIndex < WindowManagerInterface::getInstance()->logicalScreenCount(); screenIndex++) {
+ QList windowList;
+ windowList = WindowManagerInterface::getInstance()->createWindowList(desktopIndex, screenIndex);
+ for (int i = windowList.size() - 1; i >= 0; --i) {
+ for (const auto &wind : allAppWindowList) {
+ if (wind.uuid() == windowList[i].uuid()) {
+ windowList.removeAt(i);
+ break;
+ }
+ }
+ }
+ std::reverse(windowList.begin(), windowList.end());
+ allAppWindowList += windowList;
+ }
+ }
+ return allAppWindowList;
+}
diff --git a/windowsview/appwindowlistmodel.h b/windowsview/appwindowlistmodel.h
new file mode 100644
index 0000000000000000000000000000000000000000..43ee70795c6e22961de295bca5af56d0e93d383e
--- /dev/null
+++ b/windowsview/appwindowlistmodel.h
@@ -0,0 +1,82 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * Authors: zy-yuan1
+ *
+ */
+#ifndef APPWINDOWLISTMODEL_H
+#define APPWINDOWLISTMODEL_H
+
+#include
+#include
+#include
+#include "multitaskviewabstractmodelhandler.h"
+
+class Window;
+class AppWindowListModel : public QAbstractListModel
+{
+ Q_OBJECT
+
+public:
+ enum Role {
+ Id = Qt::UserRole + 1,
+ Uuid,
+ Caption,
+ X,
+ Y,
+ Width,
+ Height,
+ Minimized,
+ DesktopsId,
+ ScreenId,
+ Icon
+ };
+ Q_ENUM(Role)
+
+ explicit AppWindowListModel(QObject *parent = nullptr);
+ ~AppWindowListModel() = default;
+
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
+ QHash roleNames() const override;
+
+
+ /* for TabletView
+ * qml里无法直接读取QMap,需要使用iterator,因此使用QVariant::fromValve(window)
+ * TODO: TabletView 加载动画优化
+ */
+ Q_INVOKABLE QVariant getItemData(const QModelIndex &index);
+
+private:
+ void connectSignals();
+ void loadWindows();
+ void addItem(Window window);
+ QList getAllAppWindowList() const;
+
+ QList m_windowList;
+
+private Q_SLOTS:
+ void onAppWindowRemoved(QString windowId);
+ void onAppWindowDesktopChanged(QString windowId, int oldDesktopIndex, int newDesktopIndex);
+ void onDesktopMoved(int oldDesktopIndex, int newDesktopIndex);
+ void onDesktopRemoved(int desktopIndex);
+ void onAppWindowAdd(const Window &window);
+ void onAppWindowActived();
+ void onAppWindowUpdated(const Window &window);
+};
+
+#endif // APPWINDOWLISTMODEL_H
diff --git a/windowsview/data.qrc b/windowsview/data.qrc
index c93b1f0ee75ad5a4c62e570d8cdbe3a171776274..2a2f482ab056c4f965497021b35f7f86081068be 100644
--- a/windowsview/data.qrc
+++ b/windowsview/data.qrc
@@ -1,26 +1,32 @@
qml/Controller.js
- qml/TabletController.js
- images/default-background.jpg
images/all-clean-click.svg
images/all-clean-default.svg
images/all-clean-hover.svg
images/ukui-taskview-close-click.svg
images/ukui-taskview-close-default.svg
images/ukui-taskview-close-hover.svg
- qml/PreviewWindow.qml
- qml/multitaskview.qml
+ qml/AppPreviewWindow.qml
+ qml/MasterDesktopArea.qml
+ qml/MultitaskView.qml
qml/AppArea.qml
qml/DesktopArea.qml
- qml/TabletMultitaskView.qml
- qml/TabletViewRootWindow.qml
- qml/TabletScrollViewArea.qml
qml/TabletPreviewWindow.qml
images/tablet_delete.svg
qml/TabletViewMain.qml
- qml/TabletViewClearAllWindowButton.qml
qml/TabletViewCloseButton.qml
qml/CloseButton.qml
+ qml/ArrowButton.qml
+ images/icon-arrow-white.svg
+ images/icon-arrow-black.svg
+ qml/VirtualDesktopWindow.qml
+ qml/NewDesktopButton.qml
+ qml/ThumbnailWithKwin.qml
+ qml/Tabbox.qml
+ qml/ThumbnailWithWlcom.qml
+ qml/WorkSpaceThumbnailWithWlcom.qml
+ qml/WorkSpaceThumbnailWithKwin.qml
+ qml/LineEdit.qml
diff --git a/windowsview/dbusservice.cpp b/windowsview/dbusservice.cpp
deleted file mode 100644
index c7b6d19c14620e9db5adc8d6bf8ad0d5eeb8b519..0000000000000000000000000000000000000000
--- a/windowsview/dbusservice.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "dbusservice.h"
-
-#include "multitaskviewmanager.h"
-
-namespace MultitaskView {
-
-DBusService::DBusService(MultitaskViewManager *viewManager, QObject *parent)
- : QObject(parent),
- viewManager_(viewManager),
- connection_(QDBusConnection::sessionBus())
-{
- startService();
-}
-
-DBusService::~DBusService()
-{
- stopService();
-}
-
-bool DBusService::startService()
-{
- return connection_.registerService(serviceName_)
- && connection_.registerObject(servicePath_, this, QDBusConnection::ExportAllSlots);
-}
-
-bool DBusService::stopService()
-{
- connection_.unregisterObject(servicePath_);
- return connection_.unregisterService(serviceName_);
-}
-
-void DBusService::show()
-{
- viewManager_->open();
-}
-
-void DBusService::hide()
-{
- viewManager_->close();
-}
-
-} // namespace MultitaskView
diff --git a/windowsview/desktopbackground.cpp b/windowsview/desktopbackground.cpp
index 61117a18f5b3a438b8a5e06d274715c9d43bf179..a8243a2fa74782bc81782f1221c849a844878ae5 100644
--- a/windowsview/desktopbackground.cpp
+++ b/windowsview/desktopbackground.cpp
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
#include "desktopbackground.h"
#include
@@ -5,23 +24,35 @@
#include
#include
#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+
+#include
+#include
//! 默认的最大虚化程度
#define MAX_BLUR_ALPHA 20
-//! 背景文件获取失败时,默认加载的背景
-#define DEFAULT_BACKGROUND ":/images/default-background.jpg"
-const QString backgroundSchemaUrl = "org.mate.background";
-const QString fillStyleKeyName = "pictureOptions";
+static const QString backgroundSchemaUrl = "org.mate.background";
+static const QString fillStyleKeyName = "pictureOptions";
+static const QString fileNameKeyName = "pictureFilename";
QImage DesktopBackground::m_blurBackground;
QImage DesktopBackground::m_nonBlurBackground;
quint32 DesktopBackground::m_blurRadius = 0;
+static int backgroundNum = 0;
DesktopBackground::DesktopBackground(QQuickPaintedItem *parent)
: QQuickPaintedItem(parent)
, m_blurAlpha(0)
{
+ backgroundNum++;
QElapsedTimer timer;
timer.start();
setFlag(ItemHasContents);
@@ -31,10 +62,7 @@ DesktopBackground::DesktopBackground(QQuickPaintedItem *parent)
DesktopBackground::~DesktopBackground()
{
- if (!m_blurBackground.isNull())
- m_blurBackground = QImage();
- if (!m_nonBlurBackground.isNull())
- m_nonBlurBackground = QImage();
+ backgroundNum --;
m_blurRadius = 0;
}
@@ -42,12 +70,32 @@ void DesktopBackground::init()
{
connect(this, &DesktopBackground::blurAlphaChanged, this, &DesktopBackground::onBlurAlphaChanged);
- m_backgroundFile = getBackgroundFile();
- if(m_backgroundFile == ""){
- qWarning() << "未获取到背景图片!";
- m_backgroundFile = DEFAULT_BACKGROUND;
+ const QByteArray id("org.mate.background");
+ if(QGSettings::isSchemaInstalled(id)){
+ QGSettings * backgSetting = new QGSettings(id, QByteArray(), this);
+ connect(backgSetting, &QGSettings::changed,[=](QString key) {
+ if ("pictureFilename" == key || "primaryColor" == key) {
+ m_usePureColor = getBackgroundFile().isEmpty();
+ if (!m_usePureColor) {
+ return;
+ }
+ m_pureColor = getBackgroundPrimaryColor();
+ update();
+ }
+ });
}
+
+ m_backgroundFile = getBackgroundFile();
m_backgroundFillStyle = getBackgroundFillStyle();
+
+ if (m_backgroundFile == "") {
+ // no background file, use pure color
+ qWarning() << "[Multitask]: 未获取到背景图片!";
+ m_usePureColor = true;
+ m_pureColor = getBackgroundPrimaryColor();
+ return;
+ }
+
m_scalingFactor = getSystemScalingFactor();
if (m_nonBlurBackground.isNull()) {
@@ -63,12 +111,12 @@ void DesktopBackground::init()
void DesktopBackground::setBlurAlpha(qreal alpha)
{
- if(alpha < 0 || alpha > 1)
+ if(alpha < 0 || alpha > 1) {
return;
+ }
m_blurAlpha = alpha;
quint32 blur_radius = qRound(m_blurAlpha * MAX_BLUR_ALPHA);
- if (blur_radius != 0 && m_blurRadius != blur_radius)
- {
+ if (blur_radius != 0 && m_blurRadius != blur_radius) {
m_blurRadius = qRound(m_blurAlpha * MAX_BLUR_ALPHA);
emit blurAlphaChanged();
}
@@ -90,17 +138,14 @@ QRect DesktopBackground::scaledRect(const QImage &image)
if (widthShorter) {
scaledAspectRatio = qreal(boundingRect().height()) / qreal(boundingRect().width());
}
-
qreal shorterEdge = widthShorter ? width : height;
qreal longerEdge = widthShorter ? height : width;
-
while (shorterEdge > 1) {
qint32 temp = qFloor(shorterEdge * scaledAspectRatio);
if (temp <= longerEdge) {
longerEdge = temp;
break;
}
-
qint32 spacing = qRound(shorterEdge / 20);
if (spacing <= 0) {
spacing = 1;
@@ -113,94 +158,265 @@ QRect DesktopBackground::scaledRect(const QImage &image)
scaledSize.setWidth(widthShorter ? shorterEdge : longerEdge);
scaledSize.setHeight(widthShorter ? longerEdge : shorterEdge);
}
-
qint32 offsetX = 0;
qint32 offsetY = 0;
if (image.width() > scaledSize.width()) {
offsetX = (image.width() - scaledSize.width()) / 2;
}
-
if (image.height() > scaledSize.height()) {
offsetY = (image.height() - scaledSize.height()) / 2;
}
-
QPoint offsetPoint = image.rect().topLeft();
offsetPoint += QPoint(offsetX, offsetY);
-
return QRect(offsetPoint, scaledSize);
}
+QRect DesktopBackground::getDestRect(const QImage &image, const QRectF &desktopRect)
+{
+ qreal screenScale = qreal(desktopRect.width()) / desktopRect.height();
+ qreal pixmapScale = qreal(image.width() / image.height());
+ qreal width = image.width();
+ qreal height = image.height();
+ if (qFuzzyCompare(pixmapScale, screenScale)) {
+ return QRect(0, 0, desktopRect.width(), desktopRect.height());
+ }
+ qreal scaleWidth = desktopRect.width() / width;
+ qreal scaleHeight = desktopRect.height() / height;
+ qreal realPixmapWidth = 0;
+ qreal realPixmapHeight = 0;
+ if (pixmapScale < screenScale) {
+ //图片比例小于屏幕比例时,按照图片和屏幕高度比进行缩放
+ realPixmapWidth = width * scaleHeight;
+ realPixmapHeight = desktopRect.height();
+ } else {
+ //图片比例大于屏幕比例时,按照图片与屏幕宽度比进行缩放
+ realPixmapWidth = desktopRect.width();
+ realPixmapHeight = height * scaleWidth;
+ }
+
+ QSize sourceSize(desktopRect.width(), desktopRect.height());
+ qint32 offsetX = 0;
+ qint32 offsetY = 0;
+ if (desktopRect.width() == realPixmapWidth) {
+ offsetY = (desktopRect.height() - realPixmapHeight) / 2;
+ sourceSize.setHeight(realPixmapHeight);
+ } else if (desktopRect.height() == realPixmapHeight) {
+ offsetX = (desktopRect.width() - realPixmapWidth) / 2;
+ sourceSize.setWidth(realPixmapWidth);
+ }
+ // 规避xcb下闪线的问题
+ sourceSize = sourceSize - QSize(1, 1);
+ QPoint offsetPoint(0, 0);
+ offsetPoint += QPoint(offsetX, offsetY);
+ return QRect(offsetPoint, sourceSize);
+}
+
+void DesktopBackground::setNonBlurBackground(const QImage &image)
+{
+ m_nonBlurBackground = image;
+}
+
+void DesktopBackground::setBlurBackground(const QImage &originImage, qreal blurAlpha)
+{
+ m_blurBackground = BackgroundImageHandler::blurImage(blurAlpha * MAX_BLUR_ALPHA, originImage);
+}
+
QString DesktopBackground::getBackgroundFile()
{
- QUrl url;
+ if (!QGSettings::isSchemaInstalled(backgroundSchemaUrl.toUtf8())) {
+ return QString();
+ }
+
QString filePath;
- QString schemaUrl = "org.mate.background";
- QString keyName = "pictureFilename";
+ QGSettings gsettings(backgroundSchemaUrl.toUtf8());
+ const QStringList keyList = gsettings.keys();
+ if (keyList.contains(fileNameKeyName)) {
+ filePath = gsettings.get(fileNameKeyName).toString();
+ } else {
+ qWarning() << "[Multitask]: inValid key name" << fileNameKeyName;
+ filePath = "";
+ }
+ if (!QFile::exists(filePath)) {
+ // maybe desktop background picture was deleted, try AccountsService
+ filePath = getBackgroundFileFromAccount();
+ }
+ return filePath;
+}
- if (QGSettings::isSchemaInstalled(schemaUrl.toUtf8())) {
- QGSettings gsettings(schemaUrl.toUtf8());
+QString DesktopBackground::getBackgroundFileFromAccount()
+{
+ uid_t uid = getuid();
+ QDBusInterface iface("org.freedesktop.Accounts", "/org/freedesktop/Accounts",
+ "org.freedesktop.Accounts", QDBusConnection::systemBus());
- const QStringList keyList = gsettings.keys();
- if (keyList.contains(keyName)) {
- QString name = gsettings.get(keyName).toString();
- url = QUrl::fromLocalFile(name);
- filePath = url.toString().replace(QRegExp("^file:/"), "");
- } else {
- qWarning() << QString("未获取到Gesetting的键值(%1) value").arg(keyName);
- return "";
+ QDBusReply userPath = iface.call("FindUserById", (qint64)uid);
+ if(!userPath.isValid()) {
+ qWarning() << "[Multitask]: UserPath error" << userPath.error();
+ } else {
+ QDBusInterface userIface("org.freedesktop.Accounts", userPath.value().path(),
+ "org.freedesktop.DBus.Properties", QDBusConnection::systemBus());
+ QDBusReply backgroundReply = userIface.call("Get", "org.freedesktop.Accounts.User", "BackgroundFile");
+ if(backgroundReply.isValid()) {
+ return backgroundReply.value().variant().toString();
}
}
-
- return filePath;
+ return "";
}
QString DesktopBackground::getBackgroundFillStyle()
{
+ if (!QGSettings::isSchemaInstalled(backgroundSchemaUrl.toUtf8())) {
+ return QString();
+ }
+
QString fillStyle;
- if (QGSettings::isSchemaInstalled(backgroundSchemaUrl.toUtf8())) {
- QGSettings backgroundGsetting(backgroundSchemaUrl.toUtf8());
- const QStringList keyList = backgroundGsetting.keys();
- if (keyList.contains(fillStyleKeyName)) {
- fillStyle = backgroundGsetting.get(fillStyleKeyName).toString();
-// qDebug() << "MMMMMM fillStyle = " << fillStyle;
- } else {
- qWarning() << QString("未获取到Gesetting的键值(%1) value").arg(fillStyleKeyName);
- // default to scaled
- return "scaled";
- }
+ QGSettings gsettings(backgroundSchemaUrl.toUtf8());
+ const QStringList keyList = gsettings.keys();
+ if (keyList.contains(fillStyleKeyName)) {
+ fillStyle = gsettings.get(fillStyleKeyName).toString();
+ } else {
+ qWarning() << "[Multitask]: inValid key name" << fillStyleKeyName;
+ fillStyle = "scaled";
}
return fillStyle;
}
+QColor DesktopBackground::getBackgroundPrimaryColor()
+{
+ if (!QGSettings::isSchemaInstalled(backgroundSchemaUrl.toUtf8())) {
+ return QColor();
+ }
+
+ QGSettings gsettings(backgroundSchemaUrl.toUtf8());
+ const QStringList keyList = gsettings.keys();
+ if (keyList.contains("primaryColor")) {
+ auto color = gsettings.get("primaryColor").toString();
+ return QColor(color);
+ } else {
+ qWarning() << "[Multitask]: inValid key name primaryColor";
+ return QColor(Qt::color1) ;
+ }
+}
+
void DesktopBackground::updateBlurBackground()
{
QElapsedTimer timer;
timer.start();
- if (m_nonBlurBackground.isNull())
+ if (m_nonBlurBackground.isNull()) {
return;
-
- if (m_blurRadius > 0) {
+ }
+ if (m_blurRadius > 0 && m_blurBackground.isNull()) {
// 重新模糊背景图片
- m_blurBackground = m_nonBlurBackground;
- bluredImage(m_blurAlpha * MAX_BLUR_ALPHA, m_blurBackground);
+ m_blurBackground = BackgroundImageHandler::blurImage(m_blurAlpha * MAX_BLUR_ALPHA, m_nonBlurBackground);
}
qDebug() << "The DesktopBackground blur took" << timer.elapsed() << "milliseconds";
-// m_background.save("/home/pangyi/backgroundImage.png", "PNG");
-// m_blurBackground.save("/home/pangyi/backgroundImage1.png", "PNG");
+ // m_blurBackground.save("/home/pangyi/backgroundImage.png", "PNG");
+}
+
+double DesktopBackground::getSystemScalingFactor()
+{
+ double scalingFactor = 1.5;
+ QString schemaUrl = "org.ukui.SettingsDaemon.plugins.xsettings";
+ QString keyName = "scalingFactor";
+
+ if (QGSettings::isSchemaInstalled(schemaUrl.toUtf8())) {
+ QGSettings gsettings(schemaUrl.toUtf8());
+
+ const QStringList keyList = gsettings.keys();
+ if (keyList.contains(keyName)) {
+ scalingFactor = gsettings.get(keyName).toDouble();
+ // qDebug() << "MMMMMM scalingFactor = " << scalingFactor;
+ } else {
+ qWarning() << QString("未获取到Gesetting的键值(%1) value").arg(keyName);
+ // default
+ return scalingFactor;
+ }
+ }
+ return scalingFactor;
+}
+
+void DesktopBackground::onBlurAlphaChanged()
+{
+ if(m_nonBlurBackground.isNull()) {
+ return;
+ }
+ updateBlurBackground();
+ update();
}
-int DesktopBackground::edge(int x, int i, int w)
+void DesktopBackground::paint(QPainter *painter)
+{
+ if (m_usePureColor) {
+ painter->fillRect(boundingRect(), m_pureColor);
+ return;
+ }
+ QImage tmpImage;
+ if (qRound(m_blurAlpha * MAX_BLUR_ALPHA) > 0) {
+ tmpImage = m_blurBackground;
+ } else {
+ tmpImage = m_nonBlurBackground;
+ }
+ if (m_backgroundFillStyle == "centered") {
+ //居中
+ // scale tmpImage to fitin Desktop Preview Window
+ tmpImage = tmpImage.scaled(tmpImage.width() * boundingRect().width() / qApp->screenAt(QPoint(boundingRect().center().x(), boundingRect().center().y()))->geometry().width(),
+ tmpImage.height() * boundingRect().height() / qApp->screenAt(QPoint(boundingRect().center().x(), boundingRect().center().y()))->geometry().height(),
+ Qt::KeepAspectRatioByExpanding);
+ painter->drawImage((boundingRect().width() - tmpImage.width()) / 2,
+ (boundingRect().height() - tmpImage.height()) / 2,
+ tmpImage);
+ } else if (m_backgroundFillStyle == "wallpaper") {
+ //平铺
+ // scale tmpImage to fitin Desktop Preview Window
+ tmpImage = tmpImage.scaled(tmpImage.width() * boundingRect().width() / qApp->screenAt(QPoint(boundingRect().center().x(), boundingRect().center().y()))->geometry().width(),
+ tmpImage.height() * boundingRect().height() / qApp->screenAt(QPoint(boundingRect().center().x(), boundingRect().center().y()))->geometry().height(),
+ Qt::KeepAspectRatioByExpanding);
+ int drewWidth = 0;
+ int drewHeight = 0;
+ while (drewHeight < boundingRect().height()) {
+ // draw background on x-direction
+ while (drewWidth < boundingRect().width()) {
+ painter->drawImage(drewWidth, drewHeight, tmpImage);
+ drewWidth += tmpImage.width();
+ }
+ // set drewWidth to 0 to start next line of drawing
+ drewWidth = 0;
+ // draw background on y-direction
+ drewHeight += tmpImage.height();
+ }
+ } else if (m_backgroundFillStyle == "scaled") {
+ //填充
+ painter->drawImage(boundingRect(), tmpImage, scaledRect(tmpImage));
+ } else if (m_backgroundFillStyle == "stretched") {
+ //拉伸
+ painter->drawImage(boundingRect(), tmpImage);
+ } else if (m_backgroundFillStyle == "zoom") {
+ //适应
+ painter->drawImage(getDestRect(tmpImage, boundingRect()), tmpImage, tmpImage.rect());
+ } else if (m_backgroundFillStyle == "spanned") {
+ //跨区
+ painter->drawImage(boundingRect(), tmpImage, tmpImage.rect());
+ } else {
+ // default to scaled
+ painter->drawImage(boundingRect(), tmpImage, scaledRect(tmpImage));
+ }
+}
+
+
+
+int BackgroundImageHandler::edge(int x, int i, int w)
{
// x 为中心位置, i 为偏移量, w 为图片的宽度/高度
int inx = x + i;
- if(inx < 0 || inx >= w)
+ if(inx < 0 || inx >= w) {
return x - i;
- else
+ } else {
return inx;
+ }
}
// 一维高斯函数
-float DesktopBackground::gaussFunc1D(int x, float sigma)
+float BackgroundImageHandler::gaussFunc1D(int x, float sigma)
{
float A = 1.0f / (sigma * sqrt(2 * 3.1415f));
float index = -1.0 * (x * x) / (2 * sigma * sigma);
@@ -208,31 +424,61 @@ float DesktopBackground::gaussFunc1D(int x, float sigma)
}
// 获取线性的权值空间
-void DesktopBackground::getKernal(int radius, float* weight)
+void BackgroundImageHandler::getKernal(int radius, float* weight)
{
float sigma = radius / 3.0f;
float sum = 0.0f;
// 获取权值空间weight[]
- for(int i = 0; i < 2 * radius + 1; i++)
- {
+ for(int i = 0; i < 2 * radius + 1; i++) {
weight[i] = gaussFunc1D(i - radius, sigma);
sum += weight[i];
}
// 归一化
- for(int i = 0; i < 2 * radius + 1; i++)
- {
+ for(int i = 0; i < 2 * radius + 1; i++) {
weight[i] /= sum;
}
}
// 获取最终的模糊图像
-void DesktopBackground::bluredImage(int blur_radius, QImage &blurImage)
+QImage BackgroundImageHandler::blurImage(int blur_radius, const QImage &image)
{
+ QImage blurImage = image;
+ int imgOriginWidth = blurImage.width();
+ int imgOriginHeight = blurImage.height();
+ // 模糊算法优化点:对原图进行缩放
+ int maxImgWidth = 1920;
+ if (blurImage.width() > maxImgWidth) {
+ int scaleRatio = qRound((qreal)blurImage.width()/maxImgWidth * 2);
+ blurImage = blurImage.scaled(blurImage.width()/scaleRatio, blurImage.height()/scaleRatio, Qt::KeepAspectRatio, Qt::FastTransformation);
+ }
+
+ // 保证图片格式可用
+ if (blurImage.format() == QImage::Format::Format_Mono || blurImage.format() == QImage::Format::Format_MonoLSB) {
+ blurImage.setColorCount(256); // set the color count to 256, which is 8-bit
+ blurImage = blurImage.convertToFormat(QImage::Format_RGB32);
+ }
+
// 原图为 originImg
// 第一个方向处理的图像为tmpImg
int originWidth = blurImage.width();
int originHeight = blurImage.height();
- blurImage = blurImage.scaled(400, 300, Qt::KeepAspectRatio);
+ int divisor = std::__gcd(originWidth, originHeight);
+ int blurWidth = originWidth / divisor;
+ int blurHeight = originHeight / divisor;
+ int value = 1;
+ if (blurWidth < 300) {
+ while (true) {
+ if ( ( value + 1 ) * blurWidth > 300 ) {
+ break;
+ } else {
+ ++value;
+ }
+ }
+ blurImage = blurImage.scaled(blurWidth * value, blurHeight * value, Qt::KeepAspectRatio);
+ } else { // 说明背景图没有找到足够大的最大公约数
+ blurImage = blurImage.scaledToWidth(300);
+ }
+ // qDebug() << __func__ << originWidth << originHeight << blurImage.width() << blurImage.height() << value << divisor;
QImage tmpImg = blurImage;
// 经过第二次处理的最终结果bluredImage
float weight[2 * blur_radius + 1];
@@ -242,14 +488,11 @@ void DesktopBackground::bluredImage(int blur_radius, QImage &blurImage)
float rgb[3];
unsigned char *p, *p1, *ptmp;
// 在横向进行一次相加
- for(int y = 0; y < height; y++)
- {
+ for(int y = 0; y < height; y++) {
p = blurImage.scanLine(y);
- for(int x = 0; x < width; x++)
- {
+ for(int x = 0; x < width; x++) {
rgb[0] = rgb[1] = rgb[2] = 0.0f;
- for(int i = -blur_radius; i <= blur_radius; i++)
- {
+ for(int i = -blur_radius; i <= blur_radius; i++) {
// 边界处理后的对应的权值矩阵实际值
int inx = edge(x, i, width);
p1 = p + inx * 4;
@@ -263,17 +506,21 @@ void DesktopBackground::bluredImage(int blur_radius, QImage &blurImage)
ptmp[2] = rgb[2];
}
}
- // 在纵方向对第一次的结果重新进行一次
- for(int y = 0; y < height; y++)
- {
- for(int x = 0; x < width; x++)
- {
+ // 在纵方向对第一次的结果重新进行一次,先进行逆时针旋转90度进行高斯模糊,减少 scanLine() 函数的计算量
+ QTransform matrix;
+ matrix.rotate(-90.0);
+ tmpImg = tmpImg.transformed(matrix, Qt::FastTransformation);
+ blurImage = blurImage.transformed(matrix, Qt::FastTransformation);
+ int height_rotate = blurImage.height();
+ int width_rotate = blurImage.width();
+ for(int y = 0; y < height_rotate; y++) {
+ p = tmpImg.scanLine(y);
+ for(int x = 0; x < width_rotate; x++) {
rgb[0] = rgb[1] = rgb[2] = 0.0f;
- for(int i = -blur_radius; i <= blur_radius; i++)
- {
- int iny = edge(y, i, height);
- p = tmpImg.scanLine(iny);
- p1 = p + x * 4;
+ for(int i = -blur_radius; i <= blur_radius; i++) {
+ // 边界处理后的对应的权值矩阵实际值
+ int inx = edge(x, i, width_rotate);
+ p1 = p + inx * 4;
rgb[0] += p1[0] * weight[blur_radius + i];
rgb[1] += p1[1] * weight[blur_radius + i];
rgb[2] += p1[2] * weight[blur_radius + i];
@@ -284,79 +531,63 @@ void DesktopBackground::bluredImage(int blur_radius, QImage &blurImage)
ptmp[2] = rgb[2];
}
}
- blurImage = blurImage.scaled(originWidth, originHeight, Qt::KeepAspectRatio);
+ matrix.rotate(180.0);
+ blurImage = blurImage.transformed(matrix, Qt::FastTransformation);
+
+ // smooth scale是耗时大户啊(将近90ms),暂时没想到优化方法!
+ blurImage = blurImage.scaled(originWidth, originHeight, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
+ // 将模糊图片缩放回原图尺寸
+ blurImage = blurImage.scaled(imgOriginWidth, imgOriginHeight, Qt::IgnoreAspectRatio, Qt::FastTransformation);
+ return blurImage;
}
-
-double DesktopBackground::getSystemScalingFactor()
+void BackgroundImageHandler::loadBackgroundImageAsync(const QString filePath, double scalingFactor, const QString fillStyle, QObject *context, ImageTaskCallBack loadFinishedCallback)
{
- double scalingFactor = 1.5;
- QString schemaUrl = "org.ukui.SettingsDaemon.plugins.xsettings";
- QString keyName = "scalingFactor";
-
- if (QGSettings::isSchemaInstalled(schemaUrl.toUtf8())) {
- QGSettings gsettings(schemaUrl.toUtf8());
+ auto taskFunc = [filePath, scalingFactor, fillStyle]() {
+ return loadBackgroundImage(filePath, scalingFactor, fillStyle);
+ };
- const QStringList keyList = gsettings.keys();
- if (keyList.contains(keyName)) {
- scalingFactor = gsettings.get(keyName).toDouble();
-// qDebug() << "MMMMMM scalingFactor = " << scalingFactor;
- } else {
- qWarning() << QString("未获取到Gesetting的键值(%1) value").arg(keyName);
- // default
- return scalingFactor;
- }
- }
+ new BackgroundImageHandler(taskFunc, context, loadFinishedCallback);
+}
- return scalingFactor;
+void BackgroundImageHandler::blurImageAsync(const QImage &image, qreal radius, QObject *context, ImageTaskCallBack blurFinishedCallback)
+{
+ auto taskFunc = [radius, image]() {
+ return blurImage(radius, image);
+ };
+ new BackgroundImageHandler(taskFunc, context, blurFinishedCallback);
}
-void DesktopBackground::onBlurAlphaChanged()
+BackgroundImageHandler::BackgroundImageHandler(ImageTask taskFunc, QObject *context, ImageTaskCallBack callback)
{
- if(m_nonBlurBackground.isNull())
- return;
+ auto* thread = QThread::create([this, taskFunc](){
+ auto image = taskFunc();
+ Q_EMIT taskFinished(image);
+ });
+
+ moveToThread(thread);
+
+ connect(thread, &QThread::finished, thread, &QObject::deleteLater);
+ connect(thread, &QThread::finished, this, &QObject::deleteLater);
+ connect(this, &BackgroundImageHandler::taskFinished, context, [callback, thread](const QImage image) {
+ callback(image);
+ if (thread->isRunning()) {
+ thread->quit();
+ thread->wait();
+ }
+ });
- updateBlurBackground();
- update();
+ thread->start();
}
-void DesktopBackground::paint(QPainter *painter)
+QImage BackgroundImageHandler::loadBackgroundImage(const QString& filePath, double scalingFactor, const QString& fillStyle)
{
- QImage tmpImage;
- if (qRound(m_blurAlpha * MAX_BLUR_ALPHA) > 0) {
- tmpImage = m_blurBackground;
- } else {
- tmpImage = m_nonBlurBackground;
- }
- if (m_backgroundFillStyle == "centered") {
- //居中
- painter->drawImage((boundingRect().width() - tmpImage.width()) / 2,
- (boundingRect().height() - tmpImage.height()) / 2,
- tmpImage);
- } else if (m_backgroundFillStyle == "wallpaper") {
- //平铺
- int drewWidth = 0;
- int drewHeight = 0;
- while (drewHeight < boundingRect().height()) {
- // draw background on x-direction
- while (drewWidth < boundingRect().width()) {
- painter->drawImage(drewWidth, drewHeight, tmpImage);
- drewWidth += tmpImage.width();
- }
- // set drewWidth to 0 to start next line of drawing
- drewWidth = 0;
- // draw background on y-direction
- drewHeight += tmpImage.height();
+ QImage image(filePath);
+ if (scalingFactor != 1.0) {
+ if (fillStyle == "centered" || fillStyle == "wallpaper") {
+ // 居中 或 平铺
+ image = image.scaled(image.width() * scalingFactor, image.height() * scalingFactor);
}
- } else if (m_backgroundFillStyle == "scaled") {
- //填充
- painter->drawImage(boundingRect(), tmpImage, scaledRect(tmpImage));
- } else if (m_backgroundFillStyle == "stretched") {
- //拉伸
- painter->drawImage(boundingRect(), tmpImage);
- }
- else {
- // default to scaled
- painter->drawImage(boundingRect(), tmpImage, scaledRect(tmpImage));
}
+ return image;
}
diff --git a/windowsview/desktopbackground.h b/windowsview/desktopbackground.h
index eb14118240bf31a7978e6f9012fc2a86dae94809..2acf5d316efd348c97ff44e83607f30868340d4d 100644
--- a/windowsview/desktopbackground.h
+++ b/windowsview/desktopbackground.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
#ifndef DESKTOPBACKGROUND_H
#define DESKTOPBACKGROUND_H
@@ -5,49 +24,78 @@
#include
#include
+#include
+
+
+
+class QGSettings;
+class QColor;
+
/*!
* \brief 背景绘制的Item,导出由QML使用进行背景的绘制
* \details 方便前端进行背景绘制,并提供虚化、背景图片拉伸的能力
*/
-class DesktopBackground : public QQuickPaintedItem
+
+using ImageTask = std::function;
+using ImageTaskCallBack = std::function;
+
+class BackgroundImageHandler : public QObject
{
Q_OBJECT
+public:
+ ~BackgroundImageHandler() = default;
- Q_PROPERTY(qreal blurAlpha READ blurAlpha WRITE setBlurAlpha NOTIFY blurAlphaChanged)
+ static void loadBackgroundImageAsync(const QString filePath, double scalingFactor, const QString fillStyle,
+ QObject* context, ImageTaskCallBack loadFinishedCallback);
+ static void blurImageAsync(const QImage &image, qreal radius,
+ QObject* context, ImageTaskCallBack blurFinishedCallback);
+ static QImage blurImage(int blur_radius, const QImage &blurImage);
+
+private:
+ BackgroundImageHandler(ImageTask taskFunc, QObject* context, ImageTaskCallBack callback);
+ static QImage loadBackgroundImage(const QString &filePath, double scalingFactor, const QString &fillStyle);
+ static int edge(int x, int i, int w);
+ static float gaussFunc1D(int x, float sigma);
+ static void getKernal(int radius, float* weight);
+Q_SIGNALS:
+ void taskFinished(const QImage &image);
+};
+
+class DesktopBackground : public QQuickPaintedItem
+{
+ Q_OBJECT
+ Q_PROPERTY(qreal blurAlpha READ blurAlpha WRITE setBlurAlpha NOTIFY blurAlphaChanged)
public:
explicit DesktopBackground(QQuickPaintedItem *parent = nullptr);
~DesktopBackground();
-
void paint(QPainter *painter);
-
- qreal blurAlpha(){
- return m_blurAlpha;
- }
-
+ qreal blurAlpha() { return m_blurAlpha; }
void setBlurAlpha(qreal alpha);
-
QRect scaledRect(const QImage &image);
+ QRect getDestRect(const QImage &image, const QRectF &desktopRect);
+
+ static void setNonBlurBackground(const QImage &image);
+ static void setBlurBackground(const QImage &originImage, qreal blurAlpha);
+ static double getSystemScalingFactor();
+ static QString getBackgroundFile();
+ static QString getBackgroundFillStyle();
signals:
void loadPicture(const QString &fileName);
void blurAlphaChanged();
+ void blurImage(int radius, const QImage &blurImage);
private slots:
void onBlurAlphaChanged();
private:
void init();
- QString getBackgroundFile();
- QString getBackgroundFillStyle();
- double getSystemScalingFactor();
+ static QString getBackgroundFileFromAccount();
+ QColor getBackgroundPrimaryColor();
void updateBlurBackground();
- int edge(int x, int i, int w);
- float gaussFunc1D(int x, float sigma);
- void getKernal(int radius, float* weight);
- void bluredImage(int blur_radius, QImage &blurImage);
-
+private:
QString m_backgroundFile;
QString m_backgroundFillStyle = "scaled";
double m_scalingFactor = 1.5;
@@ -55,6 +103,8 @@ private:
static QImage m_nonBlurBackground;
qreal m_blurAlpha;
static quint32 m_blurRadius;
+ bool m_usePureColor = false;
+ QColor m_pureColor = Qt::black;
};
#endif // DESKTOPBACKGROUND_H
diff --git a/windowsview/desktoplistmodel.cpp b/windowsview/desktoplistmodel.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..963ade4c943850364b652656562d0a0a0d5a0bf9
--- /dev/null
+++ b/windowsview/desktoplistmodel.cpp
@@ -0,0 +1,225 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * Authors: zy-yuan1
+ *
+ */
+#include "desktoplistmodel.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include "windowmanagerinterface.h"
+
+DesktopListModel::DesktopListModel(QObject *parent) : QAbstractListModel(parent)
+{
+ connectSignals();
+ init();
+}
+
+int DesktopListModel::rowCount(const QModelIndex &parent) const
+{
+ return m_desktopList.count();
+}
+
+QVariant DesktopListModel::data(const QModelIndex &index, int role) const
+{
+ int i = index.row();
+ if (i < 0 || i >= m_desktopList.count()) {
+ return QVariant();
+ }
+
+ Desktop desktop = m_desktopList.at(i);
+ switch (static_cast(role)) {
+ case Role::Id:
+ return i + 1;
+ case Role::Uuid:
+ return desktop.uuid();
+ case Role::CustomName:
+ return desktop.customName();
+ case Role::ItemType:
+ return desktop.type() == Desktop::DesktopType::NewDesktop ? QString("newDesktop")
+ : QString("workSpace");
+ default:
+ return {};
+ }
+}
+
+bool DesktopListModel::setData(const QModelIndex &index, const QVariant &value, int role)
+{
+ if (!index.isValid()) {
+ return false;
+ }
+
+ if (role == Role::CustomName) {
+ m_desktopList[index.row()].setCustomName(value.toString());
+ Q_EMIT dataChanged(index, index, QVector{Role::CustomName});
+ WindowManagerInterface::getInstance()->setDesktopName(index.row() + 1, value.toString());
+ WindowManagerInterface::getInstance()->saveDesktopNames(getDesktopNames());
+ return true;
+ } else if (role == Role::ItemType) {
+ m_desktopList[index.row()].setDesktopType(Desktop::DesktopType(value.toInt()));
+ Q_EMIT dataChanged(index, index, QVector{Role::ItemType});
+ }
+
+ return false;
+}
+
+QHash DesktopListModel::roleNames() const
+{
+ QHash roles = QAbstractItemModel::roleNames();
+ QMetaEnum e = metaObject()->enumerator(metaObject()->indexOfEnumerator("Role"));
+
+ for (int i = 0; i < e.keyCount(); ++i) {
+ roles.insert(e.value(i), e.key(i));
+ }
+ return roles;
+}
+
+bool DesktopListModel::insertRows(int row, int count, const QModelIndex &parent)
+{
+ if (row < 0 || row > m_desktopList.count() || m_desktopList.count() > MAX_DESKTOP_COUNT) {
+ return false;
+ }
+
+ beginInsertRows(parent, row, row);
+
+ Desktop desktop;
+ desktop.setDesktopType(Desktop::DesktopType::WorkSpace);
+ m_desktopList.insert(m_desktopList.count() - 1, desktop);
+
+ endInsertRows();
+
+ return true;
+}
+
+bool DesktopListModel::removeRows(int row, int count, const QModelIndex &parent)
+{
+ if (!rowIsValid(row)) {
+ return false;
+ }
+
+ beginRemoveRows(parent, row, row);
+ m_desktopList.removeAt(row);
+ endRemoveRows();
+ return true;
+}
+
+bool DesktopListModel::moveRows(const QModelIndex &sourceParent, int sourceRow, int count,
+ const QModelIndex &destinationParent, int destinationChild)
+{
+ if (!rowIsValid(sourceRow) || !rowIsValid(destinationChild)) {
+ return false;
+ }
+ // only support count == 1
+ // 需要注意 beginMoveRows 单个节点移动时,上移差是1,下移差是2
+ if (sourceRow < destinationChild) {
+ // 右移/下移
+ beginMoveRows(sourceParent,sourceRow, sourceRow, destinationParent, destinationChild + 1);
+ } else {
+ // 左移/上移
+ beginMoveRows(sourceParent,sourceRow, sourceRow, destinationParent, destinationChild);
+ }
+ m_desktopList.move(sourceRow, destinationChild);
+ endMoveRows();
+ return true;
+}
+
+bool DesktopListModel::rowIsValid(int row) const
+{
+ return row >= 0 && row < m_desktopList.count();
+}
+
+void DesktopListModel::connectSignals()
+{
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::desktopAppended,
+ this, &DesktopListModel::onDesktopAppend);
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::desktopRemoved,
+ this, &DesktopListModel::onDesktopRemoved);
+ QObject::connect(WindowManagerInterface::getInstance(), &WindowManagerInterface::desktopMoved,
+ this, &DesktopListModel::onDesktopMoved);
+}
+
+void DesktopListModel::init()
+{
+ beginResetModel();
+ m_desktopList.clear();
+
+ const auto desktopCount = WindowManagerInterface::getInstance()->getNumberOfDesktops();
+ QStringList desktopNameList = WindowManagerInterface::getInstance()->getDesktopNames();
+ for (int desktopIndex = 1; desktopIndex <= desktopCount; desktopIndex++) {
+ Desktop desktop;
+ desktop.setDesktopType(Desktop::DesktopType::WorkSpace);
+ if (desktopIndex < desktopNameList.size()) {
+ desktop.setCustomName(desktopNameList.at(desktopIndex - 1));
+ }
+ m_desktopList.append(desktop);
+ }
+
+ // 在末尾添加空的Desktop,指代“newDesktop”
+ if (desktopCount < MAX_DESKTOP_COUNT) {
+ Desktop desktop;
+ desktop.setDesktopType(Desktop::DesktopType::NewDesktop);
+ m_desktopList.append(desktop);
+ }
+
+ endResetModel();
+}
+
+QStringList DesktopListModel::getDesktopNames()
+{
+ QStringList nameList;
+ for (const auto &desktop : m_desktopList) {
+ nameList.append(desktop.customName());
+ }
+ return nameList;
+}
+
+void DesktopListModel::onDesktopAppend(int desktopIndex)
+{
+ //当工作区数量达到最大时,再点击“新建工作区”不需要model新增item,只需将model最后一项的属性ItemType由“newDesktop”改为“workSpace”,并修改其他必须修改的属性
+ //其他情况下则新增item
+ if (desktopIndex == MAX_DESKTOP_COUNT) {
+ setData(index(desktopIndex - 1, 0), Desktop::DesktopType::WorkSpace, Role::ItemType);
+ setData(index(desktopIndex - 1, 0), "", Role::CustomName);
+ } else {
+ insertRows(desktopIndex - 1, 1, QModelIndex());
+ emit desktopAppended(rowCount() + 1);
+ }
+ WindowManagerInterface::getInstance()->saveDesktopNames(getDesktopNames());
+}
+
+void DesktopListModel::onDesktopRemoved(int desktopIndex)
+{
+ //当工作区数量是最大时,且最后一项为“workSpace”,由于要播放删除动画,需要先添加“newDesktop”,再删除desktopIndex对应工作区
+ if (rowCount() == MAX_DESKTOP_COUNT && index(MAX_DESKTOP_COUNT - 1, 0).data(Role::ItemType).toString() == QString("workSpace")) {
+ insertRows(MAX_DESKTOP_COUNT, 1, QModelIndex());
+ setData(index(MAX_DESKTOP_COUNT, 0), Desktop::DesktopType::NewDesktop, Role::ItemType);
+ setData(index(MAX_DESKTOP_COUNT, 0), "", Role::CustomName);
+ }
+ removeRows(desktopIndex - 1, 1, QModelIndex());
+ WindowManagerInterface::getInstance()->saveDesktopNames(getDesktopNames());
+}
+
+void DesktopListModel::onDesktopMoved(int srcDesktopIndex, int destDesktopIndex)
+{
+ moveRows(QModelIndex(), srcDesktopIndex - 1, 1, QModelIndex(), destDesktopIndex - 1);
+ WindowManagerInterface::getInstance()->saveDesktopNames(getDesktopNames());
+}
diff --git a/windowsview/desktoplistmodel.h b/windowsview/desktoplistmodel.h
new file mode 100644
index 0000000000000000000000000000000000000000..530406ade0307e7ae3fe79d1546ec028d32ecfd8
--- /dev/null
+++ b/windowsview/desktoplistmodel.h
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * Authors: zy-yuan1
+ *
+ */
+#ifndef DESKTOPLISTMODEL_H
+#define DESKTOPLISTMODEL_H
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include "multitaskviewabstractmodelhandler.h"
+
+class Window;
+class Desktop;
+
+
+class DesktopListModel : public QAbstractListModel
+{
+ Q_OBJECT
+
+public:
+ enum Role {
+ Id = Qt::UserRole + 1, /* desktop index, 从 1 开始计数,易于和界面显示对应 */
+ Uuid, /* desktop uuid */
+ CustomName, /* 用户自定义名称 */
+ ItemType /*DesktopType*/
+ };
+ Q_ENUM(Role)
+
+ explicit DesktopListModel(QObject *parent = nullptr);
+ ~DesktopListModel() = default;
+
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
+ QHash roleNames() const override;
+ bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
+ bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
+ bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count,
+ const QModelIndex &destinationParent, int destinationChild) override;
+
+ bool rowIsValid(int row) const;
+ void connectSignals();
+ void init();
+
+private:
+ QStringList getDesktopNames();
+
+ QList m_desktopList;
+ /* 最大虚拟桌面数量为15: 15个工作区 或 14个工作区+新建工作区*/
+ static constexpr int MAX_DESKTOP_COUNT = 15;
+
+signals:
+ /* 用户手动添加工作区时,需要额外执行动画使最后一个工作区(或新建工作区)显示完整;删除工作区则不需要 */
+ void desktopAppended(int desktopIndex);
+
+
+private slots:
+ void onDesktopAppend(int desktopIndex);
+ void onDesktopRemoved(int desktopIndex);
+ void onDesktopMoved(int srcDesktopIndex, int destDesktopIndex);
+};
+
+#endif // DESKTOPLISTMODEL_H
diff --git a/windowsview/globalconfig.h b/windowsview/globalconfig.h
deleted file mode 100644
index fcb0adb0f0f0f29d1adec4b55cde58c028adc0b0..0000000000000000000000000000000000000000
--- a/windowsview/globalconfig.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#define HAVE_X11 1
-#define HAVE_XCB_COMPOSITE 1
diff --git a/windowsview/globalconfig.h.in b/windowsview/globalconfig.h.in
new file mode 100644
index 0000000000000000000000000000000000000000..d4e81a43a1da8e4b09963cbe488d701d28d5df6c
--- /dev/null
+++ b/windowsview/globalconfig.h.in
@@ -0,0 +1,4 @@
+#cmakedefine01 HAVE_X11
+#cmakedefine01 HAVE_XCB_COMPOSITE
+#cmakedefine01 HAVE_GLX
+#cmakedefine01 HAVE_EGL
\ No newline at end of file
diff --git a/windowsview/icontheme.cpp b/windowsview/icontheme.cpp
index af9efb8595061993fe7eba9bd74fb89b3f6c5c03..8ea166f45da7a2fad6293dc9821c4d515c9e02e1 100644
--- a/windowsview/icontheme.cpp
+++ b/windowsview/icontheme.cpp
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
#include "icontheme.h"
IconTheme::IconTheme(QQuickPaintedItem *parent)
diff --git a/windowsview/icontheme.h b/windowsview/icontheme.h
index 7777a81541d18f20838259995e6557546a75c470..5eceb7b989103344d155e5361cc818274b5ac881 100644
--- a/windowsview/icontheme.h
+++ b/windowsview/icontheme.h
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
#ifndef ICONTHEME_H
#define ICONTHEME_H
diff --git a/windowsview/images/default-background.jpg b/windowsview/images/default-background.jpg
deleted file mode 100644
index fa2b0f9ca629452eff039a4ccc1bb72ec84b2d54..0000000000000000000000000000000000000000
Binary files a/windowsview/images/default-background.jpg and /dev/null differ
diff --git a/windowsview/images/icon-arrow-black.svg b/windowsview/images/icon-arrow-black.svg
new file mode 100644
index 0000000000000000000000000000000000000000..28d0f5bdf19d9ce7cc583533c5899590dcd47301
--- /dev/null
+++ b/windowsview/images/icon-arrow-black.svg
@@ -0,0 +1,7 @@
+
+
\ No newline at end of file
diff --git a/windowsview/images/icon-arrow-white.svg b/windowsview/images/icon-arrow-white.svg
new file mode 100644
index 0000000000000000000000000000000000000000..cc9612e19cf8ba0457e4440fc1e57e95ae8f0d10
--- /dev/null
+++ b/windowsview/images/icon-arrow-white.svg
@@ -0,0 +1,7 @@
+
+
\ No newline at end of file
diff --git a/windowsview/multitaskviewabstractmodelhandler.h b/windowsview/multitaskviewabstractmodelhandler.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e65b3545448cecd7ce97ba34659525dac27b6b6
--- /dev/null
+++ b/windowsview/multitaskviewabstractmodelhandler.h
@@ -0,0 +1,174 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef MultitaskViewAbstractModelHandler_H
+#define MultitaskViewAbstractModelHandler_H
+
+#include
+#include
+
+class Window
+{
+ Q_GADGET
+ Q_PROPERTY(int id READ id)
+ Q_PROPERTY(QString caption READ caption)
+ Q_PROPERTY(int x READ x)
+ Q_PROPERTY(int y READ y)
+ Q_PROPERTY(int width READ width)
+ Q_PROPERTY(int height READ height)
+ Q_PROPERTY(bool minimized READ minimized)
+ Q_PROPERTY(QString uuid READ uuid)
+ Q_PROPERTY(QList desktopsId READ desktopsId)
+ Q_PROPERTY(int screenId READ screenId)
+ Q_PROPERTY(QVariant icon READ icon WRITE setIcon)
+
+public:
+ Window() = default;
+ Window(int id, QString uuid, const QString& caption, int x, int y, int width, int height, bool minimized)
+ : m_id(id),
+ m_uuid(uuid),
+ m_caption(caption),
+ m_x(x),
+ m_y(y),
+ m_width(width),
+ m_height(height),
+ m_isMinimized(minimized) {}
+ int id() const { return m_id; }
+ QString uuid() const { return m_uuid; }
+ const QString& caption() const { return m_caption; }
+ int x() const { return m_x; }
+ int y() const { return m_y; }
+ int width() const { return m_width; }
+ int height() const { return m_height; }
+ bool minimized() const { return m_isMinimized; }
+ QList desktopsId() const { return m_desktopsId; }
+ int screenId() const { return m_screenId; }
+ void setDesktopsId(const QList desktopsId) {
+ m_desktopsId = desktopsId;
+ }
+ void setScreenId(const int screenId) {
+ m_screenId = screenId;
+ }
+
+ const QVariant& icon() { return m_icon; }
+ void setIcon(const QVariant& icon) {
+ m_icon = icon;
+ }
+
+private:
+ int m_id = 0;
+ QString m_uuid;
+ QString m_caption;
+ int m_x = 0;
+ int m_y = 0;
+ int m_width = 0;
+ int m_height = 0;
+ bool m_isMinimized = false;
+ QList m_desktopsId;
+ int m_screenId = 0;
+ QVariant m_icon;
+};
+Q_DECLARE_METATYPE(Window)
+
+
+class Desktop
+{
+ Q_GADGET
+ Q_PROPERTY(QString uuid READ uuid)
+
+public:
+ enum DesktopType {
+ WorkSpace = 0,
+ NewDesktop
+ };
+
+ Desktop() = default;
+
+ QString uuid() const { return m_uuid; }
+ DesktopType type() const { return m_type; };
+
+ void setUuid(const QString uuid) {
+ m_uuid = uuid;
+ }
+
+ void setDesktopType(DesktopType type) {
+ m_type = type;
+ }
+
+ QString customName() const { return m_customName; }
+
+ void setCustomName(const QString name) {
+ m_customName = name;
+ }
+
+private:
+ QString m_uuid;
+ QString m_customName;
+ DesktopType m_type = DesktopType::WorkSpace;
+};
+Q_DECLARE_METATYPE(Desktop)
+
+class MultitaskViewAbstractModelHandler : public QObject
+{
+ Q_OBJECT
+ Q_DISABLE_COPY(MultitaskViewAbstractModelHandler)
+
+public:
+ explicit MultitaskViewAbstractModelHandler() = default;
+ ~MultitaskViewAbstractModelHandler() = default;
+
+ virtual void removeAppWindow(QString windowId) = 0;
+ virtual void moveAppWindowToDesktop(QString windowId, int srcDesktopInex, int destDesktopInex) = 0;
+ virtual void activateAppWindow(QString windowId) = 0;
+ virtual QVariant getWindowIcon(QString windowId) = 0;
+ virtual void removeDesktop(int desktopIndex) = 0;
+ virtual void appendDesktop() = 0;
+ virtual void moveDesktop(int srcDesktopIndex, int destDesktopIndex) = 0;
+ virtual int getCurrentDesktop() = 0;
+ virtual bool isCurrentDesktopShowingDesktop() = 0;
+ virtual void setCurrentDesktop(int desktopIndex) = 0;
+ virtual QRect getFullScreenGeometry(int desktopIndex, int screenIndex) =0;
+ virtual bool hasModalChildWindow(QString windowId) = 0;
+ virtual bool isExtensionMode() = 0;
+ virtual int logicalScreenCount() = 0;
+ virtual QList createWindowList(int desktopIndex, int screenIndex) = 0;
+ virtual int getNumberOfDesktops() = 0;
+ virtual QString getDesktopUuid(int desktopIndex) = 0;
+ virtual QString getOutputUuid(int outputIndex) = 0;
+ virtual void setDesktopName(const int desktopIndex, const QString name) = 0;
+
+signals:
+ void appWindowCreated();
+ void appWindowAdd(const Window &window);
+ void appWindowRemoved(QString windowId);
+ void appWindowActivated();
+ void appWindowUpdated(const Window &window);
+ void appWindowDesktopChanged(QString windowId, int oldDesktopIndex,int newDesktopIndex);
+ void desktopRemoved(int desktopIndex);
+ void desktopAppended(int desktopIndex);
+ void desktopMoved(int oldDesktopIndex, int newDesktopIndex);
+ void currentDesktopChanged(int oldCurrentDesktopIndex, int newCurrentDesktopIndex);
+ void screenCountChanged();
+ void screenSizeChanged();
+ void desktopNumberChanged();
+
+};
+
+
+#endif // MultitaskViewAbstractModelHandler_H
diff --git a/windowsview/multitaskviewmanager.cpp b/windowsview/multitaskviewmanager.cpp
deleted file mode 100644
index 982b4cb229b31b465d6419f5f0e302ae2e7dee22..0000000000000000000000000000000000000000
--- a/windowsview/multitaskviewmanager.cpp
+++ /dev/null
@@ -1,301 +0,0 @@
-#include "multitaskviewmanager.h"
-
-#include
-#include
-
-#include
-#include
-#include
-#include
-
-#include "desktopbackground.h"
-#include "icontheme.h"
-
-namespace MultitaskView {
-
-MultitaskViewManager::MultitaskViewManager()
-{
- setProjectType();
-
- setQmlUrl();
-
- registerQmlTypes();
-
- registerShortcut();
-
- initDBusService();
-}
-
-MultitaskViewManager::~MultitaskViewManager()
-{
- dbusService_.reset();
-
- close();
-}
-
-void MultitaskViewManager::grabbedKeyboardEvent(QKeyEvent *e)
-{
- QApplication::sendEvent(view_->rootObject(), e);
-}
-
-void MultitaskViewManager::open()
-{
- if (isOpen)
- {
- return;
- }
-
- //可旋转的机器,多任务视图打开的时候,禁用旋转
- if(projectType_ == MultitaskViewManager::TABLET && model_->isTabletMode())
- {
- if(getRotationModeStatus())
- {
- setRotationModeStatus(!isOpenRotationMode);
- }
- }
-
- initView();
-
- KWin::effects->grabKeyboard(this);
-
- isOpen = true;
-}
-
-bool MultitaskViewManager::getRotationModeStatus()
-{
- QDBusMessage message = QDBusMessage::createMethodCall("com.kylin.statusmanager.interface",
- "/",
- "com.kylin.statusmanager.interface",
- "get_auto_rotation");
-
- QDBusMessage response = QDBusConnection::sessionBus().call(message);
-
- if (response.type() == QDBusMessage::ReplyMessage)
- {
- isOpenRotationMode = response.arguments().takeFirst().toBool();
- }
- else
- {
- // invalid response, keep default.
- }
- return isOpenRotationMode;
-}
-
-void MultitaskViewManager::setRotationModeStatus(bool rotationModeStatus)
-{
- QDBusInterface iface("com.kylin.statusmanager.interface",
- "/",
- "com.kylin.statusmanager.interface");
-
- if (!iface.isValid()) {
- qDebug() << QDBusConnection::sessionBus().lastError().message();
- }
-
- QDBusReply reply = iface.call("set_auto_rotation",rotationModeStatus,"","");
-
- if (reply.isValid()) {
- qDebug() << "set Rotation mode success";
- return;
- }
-
- qDebug() << "set Rotation mode failed" << reply.error();
-}
-
-void MultitaskViewManager::close()
-{
- if (!isOpen)
- {
- return;
- }
-
- //可旋转的机器,多任务视图打开前 是打开了旋转的 那么关闭多任务视图的同时 打开旋转
- if(projectType_ == MultitaskViewManager::TABLET && model_->isTabletMode())
- {
- if(isOpenRotationMode)
- {
- setRotationModeStatus(isOpenRotationMode);
- }
- }
-
- KWin::effects->ungrabKeyboard();
-
- destroyView();
-
- isOpen = false;
-}
-
-void MultitaskViewManager::showDesktop(bool show)
-{
- KWin::effects->setShowingDesktop(show);
-}
-
-void MultitaskViewManager::initModel()
-{
- model_.reset(new MultitaskViewModel());
-}
-
-void MultitaskViewManager::setProjectType()
-{
- // not sure if kdk is available!
- return;
- // if ( "V10SP1-edu" == getProjectCodeName() ||
- // "V10SPX-mavis-edu" == getProjectCodeName() ||
- // "3" == getOSReleaseValue("PRODUCT_FEATURES") ||
- // "2" == getOSReleaseValue("PRODUCT_FEATURES") )
- // {
- // projectType_ = MultitaskViewManager::TABLET;
- // }
-}
-
-void MultitaskViewManager::setQmlUrl()
-{
- if (projectType_ == MultitaskViewManager::TABLET)
- {
- qmlUrl_ = QUrl("qrc:/qml/TabletViewMain.qml");
- }
- else if (projectType_ == MultitaskViewManager::PC)
- {
- qmlUrl_ = QUrl("qrc:/qml/multitaskview.qml");
- }
-}
-
-void MultitaskViewManager::registerQmlTypes()
-{
- qmlRegisterType("org.kde.kwin", 3, 0, "DesktopBackground");
- qmlRegisterType("IconTheme", 1, 0, "IconTheme");
-}
-
-void MultitaskViewManager::registerShortcut()
-{
- auto* action = new QAction(this);
- action->setObjectName("ShowMultitaskView");
- action->setText("Show Multitask View");
-
- QKeySequence keySeq(Qt::META + Qt::Key_Tab);
- KGlobalAccel::self()->setDefaultShortcut(action, QList() << keySeq);
- KGlobalAccel::self()->setShortcut(action, QList() << keySeq);
-
- QObject::connect(action, &QAction::triggered, this, &MultitaskViewManager::open);
-}
-
-void MultitaskViewManager::initDBusService()
-{
- dbusService_.reset(new DBusService(this));
-}
-
-void MultitaskViewManager::initView()
-{
- view_.reset(new QQuickView());
-
- view_->setFlag(Qt::WindowType::BypassWindowManagerHint);
-
- KWindowSystem::setType(view_->winId(), NET::Dock);
-
- qDebug() << "[DEBUG]: multitask view uses " << view_->sceneGraphBackend();
- if (view_->rendererInterface()->graphicsApi() < 2)
- {
- useOpenGL_ = false;
- }
-
- initModel();
-
- view_->rootContext()->setContextProperty("multitaskViewManager", this);
- view_->rootContext()->setContextProperty("multitaskViewModel", model_.get());
-
- view_->setSource(qmlUrl_);
-
- // 必须在加载了QML之后才能设置view_对象的大小
- view_->setGeometry(KWin::effects->virtualScreenGeometry());
-
- connectSignals();
-
- view_->show();
-
- view_->requestActivate();
-}
-
-void MultitaskViewManager::destroyView()
-{
- if (view_ == nullptr)
- {
- return;
- }
-
- if (view_->isVisible())
- {
- view_->hide();
- }
-
- // 1. 由于可以在QML中通过JS调用到close函数,
- // 因此,不能直接销毁view_对象;必须延迟
- // 销毁该对象。
- // 2. model_对象可以立刻销毁。但是,为了对称
- // 和简化逻辑,需要保证view_对象和model_对象的
- // 互相依赖的关系。因此,同时延迟销毁model_对象。
- // 3. MultitaskViewManager的析构函数需要确保
- // view_对象和model_对象完成销毁。为了简化逻辑,
- // MultitaskViewManager的析构函数选择直接调用
- // destroyView函数,即采用了延迟销毁的做法。
- view_.release()->deleteLater();
-
- model_.release()->deleteLater();
-}
-
-void MultitaskViewManager::connectSignals()
-{
- const auto* model = model_.get();
- const auto* rootObject = view_->rootObject();
- connect(model, SIGNAL(appWindowCreated(int)),
- rootObject, SIGNAL(qmlAppWindowCreated(int)));
- connect(model, SIGNAL(appWindowActivated()),
- rootObject, SIGNAL(qmlAppWindowActivated()));
- connect(model, SIGNAL(appWindowRemoved(int)),
- rootObject, SIGNAL(qmlAppWindowRemoved(int)));
- if (projectType_ == MultitaskViewManager::PC)
- {
- connect(model, SIGNAL(appWindowDesktopChanged(int, int, int)),
- rootObject, SIGNAL(qmlAppWindowDesktopChanged(int, int, int)));
- connect(model, SIGNAL(desktopRemoved(int)),
- rootObject, SIGNAL(qmlDesktopRemoved(int)));
- connect(model, SIGNAL(desktopAppended(int)),
- rootObject, SIGNAL(qmlDesktopAppended(int)));
- connect(model, SIGNAL(desktopMoved(int, int)),
- rootObject, SIGNAL(qmlDesktopMoved(int, int)));
- connect(model, SIGNAL(currentDesktopChanged(int, int)),
- rootObject, SIGNAL(qmlCurrentDesktopChanged(int, int)));
- connect(model, SIGNAL(screenCountChanged(int, int)),
- rootObject, SIGNAL(qmlScreenCountChanged(int, int)));
- connect(model, SIGNAL(screenSizeChanged()),
- rootObject, SIGNAL(qmlScreenSizeChanged()));
- }
- else if (projectType_ == MultitaskViewManager::TABLET)
- {
- connect(model, SIGNAL(tabletModeChanged(bool)),
- rootObject, SIGNAL(qmlDeviceModeChanged(bool)));
- connect(model, SIGNAL(rotationModeChanged(QString)),
- rootObject, SIGNAL(qmlOrientationChanged(QString)));
- }
-}
-
-// QString MultitaskViewManager::getProjectCodeName()
-// {
-// QString projectCodeName = KDKGetPrjCodeName().c_str();
-
-// return projectCodeName;
-// }
-
-// QString MultitaskViewManager::getOSReleaseValue(const QString key)
-// {
-// int value_length = 256;
-
-// char os_release_value[value_length];
-
-// if (kdk_get_osrelease(key.toStdString().c_str(), os_release_value, value_length) > 0)
-// {
-// return os_release_value;
-// }
-
-// return "";
-// }
-
-} // namespace MultitaskView
diff --git a/windowsview/multitaskviewmanager.h b/windowsview/multitaskviewmanager.h
deleted file mode 100644
index 8fa8ee2514c1334dbe3d3aa0a0e07700e561e795..0000000000000000000000000000000000000000
--- a/windowsview/multitaskviewmanager.h
+++ /dev/null
@@ -1,95 +0,0 @@
-#ifndef MULTITASKVIEWMANAGER_H
-#define MULTITASKVIEWMANAGER_H
-
-#include
-
-#include
-
-#include
-
-#include "dbusservice.h"
-#include "multitaskviewmodel.h"
-
-namespace MultitaskView {
-
-class MultitaskViewManager : public KWin::Effect
-{
- Q_OBJECT
-
-public:
-
- MultitaskViewManager();
-
- ~MultitaskViewManager() override;
-
- enum ProjectType {
- PC,
- TABLET,
- };
-
- void grabbedKeyboardEvent(QKeyEvent* e) override;
-
- Q_INVOKABLE void open();
-
- Q_INVOKABLE void close();
- Q_INVOKABLE void showDesktop(bool show);
-
- Q_INVOKABLE bool useOpenGL() { return useOpenGL_; }
-
-private:
-
- void initModel();
-
- void setProjectType();
-
- void setQmlUrl();
-
- void registerQmlTypes();
-
- void registerShortcut();
-
- void initDBusService();
-
- void initView();
-
- void destroyView();
-
- void connectSignals();
-
- // QString getProjectCodeName();
-
- // QString getOSReleaseValue(const QString key);
-
- //!
- //! \brief getRotationModeStatus 获取当前旋转模式是否打开
- //!
- bool getRotationModeStatus();
-
- ///!
- //! \brief setRotationModeStatus
- //!
- void setRotationModeStatus(bool openRotationMode);
-
-private:
-
- std::unique_ptr model_ = nullptr;
-
- std::unique_ptr view_ = nullptr;
-
- std::unique_ptr dbusService_ = nullptr;
-
- bool isOpen = false;
-
- bool useOpenGL_ = true;
-
- ProjectType projectType_ = MultitaskViewManager::PC;
-
- QUrl qmlUrl_ = QUrl("qrc:/qml/multitaskView.qml");
-
- //记录旋转模式是否打开
- bool isOpenRotationMode = false;
-};
-
-} // namespace MultitaskView
-
-#endif // MULTITASKVIEWMANAGER_H
diff --git a/windowsview/multitaskviewmodel.cpp b/windowsview/multitaskviewmodel.cpp
deleted file mode 100644
index 7a391c7250f49e4db1c400eb460bc7524750927b..0000000000000000000000000000000000000000
--- a/windowsview/multitaskviewmodel.cpp
+++ /dev/null
@@ -1,665 +0,0 @@
-#include "multitaskviewmodel.h"
-
-#include
-
-#include
-#include
-#include
-
-const QString UKUI_STYLE_SCHEMA = "org.ukui.style";
-const QString UKUI_STYLE_SCHEMA_STYLENAME = "styleName";
-const QString UKUI_STYLE_SCHEMA_FONTSIZE = "systemFontSize";
-
-namespace MultitaskView {
-
-MultitaskViewModel::MultitaskViewModel(QObject *parent) : QObject(parent)
-{
- lastDesktopIndex = getCurrentDesktop();
-
- updateScreenCount();
-
- updateModelData();
-
- connectSignals();
-
- if (QGSettings::isSchemaInstalled(UKUI_STYLE_SCHEMA.toUtf8()))
- {
- settings_ = new QGSettings(UKUI_STYLE_SCHEMA.toUtf8());
- }
-}
-
-MultitaskViewModel::~MultitaskViewModel() = default;
-
-QList MultitaskViewModel::getAppWindowList(int desktopIndex, int screenIndex) const
-{
- if (!validateDesktopIndex(desktopIndex)
- ||!validateScreenIndex(screenIndex))
- {
- return QList();
- }
-
- auto desktopIter = std::find_if(desktopList_.cbegin(),
- desktopList_.cend(),
- [desktopIndex](const QVariant& desktop)
- {
- return desktop.value().index() == desktopIndex;
- });
- if (desktopIter == desktopList_.cend())
- {
- return QList();
- }
-
- const auto& desktop = desktopIter->value();
- const auto& screenList = desktop.screenList();
- auto screenIter = std::find_if(screenList.cbegin(),
- screenList.cend(),
- [screenIndex](const QVariant& screen)
- {
- return screen.value().index() == screenIndex;
- });
- if (screenIter == screenList.cend())
- {
- return QList();
- }
-
- const auto& screen = screenIter->value();
- auto appWindowList = screen.windowList();
- std::reverse(appWindowList.begin(), appWindowList.end());
-
- return appWindowList;
-}
-
-void MultitaskViewModel::removeAppWindow(QUuid windowId)
-{
- auto* window = KWin::effects->findWindow(windowId);
- if (window == nullptr)
- {
- return;
- }
-
- window->closeWindow();
-}
-
-void MultitaskViewModel::removeAllAppWindowOnDesktop(int desktopIndex)
-{
- if (!validateDesktopIndex(desktopIndex))
- {
- return;
- }
-
- for (int screenIndex = 0; screenIndex < logicalScreenCount(); ++screenIndex)
- {
- QList windowList = getAppWindowList(desktopIndex, screenIndex);
-
- for (QVariant &windowVariant : windowList)
- {
- Window window = windowVariant.value();
-
- removeAppWindow(window.uuid());
- }
- }
-}
-
-void MultitaskViewModel::moveAppWindowToDesktop(QUuid windowId,
- int srcDesktopInex,
- int destDesktopInex) const
-{
- auto* window = KWin::effects->findWindow(windowId);
- if (window == nullptr
- || window->isOnAllDesktops()
- || !validateDesktopIndex(srcDesktopInex)
- || !validateDesktopIndex(destDesktopInex))
- {
- return;
- }
-
- auto desktopIndexList = window->desktops();
- if (!desktopIndexList.contains(srcDesktopInex))
- {
- return;
- }
-
- desktopIndexList.remove(desktopIndexList.indexOf(srcDesktopInex));
-
- if (desktopIndexList.contains(destDesktopInex))
- {
- return;
- }
-
- desktopIndexList.append(destDesktopInex);
-
- KWin::effects->windowToDesktops(window, desktopIndexList);
-}
-
-void MultitaskViewModel::activateAppWindow(QUuid windowId)
-{
- auto* window = KWin::effects->findWindow(windowId);
- if (window == nullptr)
- {
- return;
- }
-
- KWin::effects->activateWindow(window);
-}
-
-QIcon MultitaskViewModel::getWindowIcon(QUuid windowId)
-{
- // auto id = static_cast(windowId);
- auto* window = KWin::effects->findWindow(windowId);
- if(window == nullptr)
- {
- return QIcon("");
- }
-
- return window->icon();
-}
-
-QList MultitaskViewModel::getDesktopList() const
-{
- return desktopList_;
-}
-
-void MultitaskViewModel::removeDesktop(int desktopIndex)
-{
- auto desktopCount = KWin::effects->numberOfDesktops();
- if (desktopCount <= 1)
- {
- return;
- }
-
- if (!validateDesktopIndex(desktopIndex))
- {
- return;
- }
-
- const auto oldDesktopIndex = desktopIndex;
- if (desktopIndex == 1)
- {
- moveDesktopWindows(1, 2);
-
- desktopIndex = 2;
- }
-
- for (; desktopIndex <= desktopCount; desktopIndex++)
- {
- moveDesktopWindows(desktopIndex, desktopIndex - 1);
- }
-
- KWin::effects->setNumberOfDesktops(desktopCount - 1);
-
- updateModelData();
-
- emit desktopRemoved(oldDesktopIndex);
-}
-
-void MultitaskViewModel::appendDesktop()
-{
- auto desktopCount = KWin::effects->numberOfDesktops();
- if (desktopCount >= MAX_DESKTOP_COUNT)
- {
- return;
- }
-
- KWin::effects->setNumberOfDesktops(desktopCount + 1);
-
- updateModelData();
-
- emit desktopAppended(desktopCount + 1);
-}
-
-void MultitaskViewModel::moveDesktop(int srcDesktopIndex, int destDesktopIndex)
-{
- if (!validateDesktopIndex(srcDesktopIndex)
- || !validateDesktopIndex(destDesktopIndex))
- {
- return;
- }
-
- if (srcDesktopIndex == destDesktopIndex)
- {
- return;
- }
-
- const auto desktopCount = KWin::effects->numberOfDesktops();
- KWin::effects->setNumberOfDesktops(desktopCount + 1);
-
- auto tempDesktopIndex = desktopCount + 1;
- moveDesktopWindows(destDesktopIndex, tempDesktopIndex);
- // 将临时虚拟桌面的数据暂时更新到模型数据中,
- // 方便后面调用moveDesktopWindows函数将
- // 临时虚拟桌面中的窗口移动到来源虚拟桌面
- updateModelData();
-
- moveDesktopsOneStep(createDesktopIndexList(srcDesktopIndex, destDesktopIndex));
-
- moveDesktopWindows(tempDesktopIndex, srcDesktopIndex);
-
- KWin::effects->setNumberOfDesktops(desktopCount);
-
- updateModelData();
-
- emit desktopMoved(srcDesktopIndex, destDesktopIndex);
-}
-
-int MultitaskViewModel::getCurrentDesktop()
-{
- return KWin::effects->currentDesktop();
-}
-
-void MultitaskViewModel::setCurrentDesktop(int desktopIndex)
-{
- if (!validateDesktopIndex(desktopIndex))
- {
- return;
- }
-
- KWin::effects->setCurrentDesktop(desktopIndex);
-}
-
-QRect MultitaskViewModel::getFullScreenGeometry(int desktopIndex, int screenIndex) const
-{
- KWin::EffectScreen* screen = KWin::effects->findScreen(screenIndex);
- return KWin::effects->clientArea(KWin::clientAreaOption::FullScreenArea,
- screen, desktopIndex);
-}
-
-bool MultitaskViewModel::hasModalChildWindow(QUuid windowId)
-{
- auto* window = KWin::effects->findWindow(windowId);
- if (window == nullptr)
- {
- return false;
- }
-
- return window->findModal() != nullptr;
-}
-
-QString MultitaskViewModel::getUKUIStyleName() const
-{
- // default to ukui-default
- QString styleName = "ukui-default";
-
- if (settings_ && settings_->keys().contains(UKUI_STYLE_SCHEMA_STYLENAME))
- {
- styleName = settings_->get(UKUI_STYLE_SCHEMA_STYLENAME).toString();
- }
- else
- {
- qWarning() << QString("未查询到Gesetting的键值(%1)").arg(UKUI_STYLE_SCHEMA_STYLENAME);
- }
-
- return styleName;
-}
-
-int MultitaskViewModel::getUKUIFontSize() const
-{
- // default to 11
- int fontSize = 11;
-
- if (settings_ && settings_->keys().contains(UKUI_STYLE_SCHEMA_FONTSIZE))
- {
- fontSize = settings_->get(UKUI_STYLE_SCHEMA_FONTSIZE).toInt();
- }
- else
- {
- qWarning() << QString("未查询到Gesetting的键值(%1)").arg(UKUI_STYLE_SCHEMA_FONTSIZE);
- }
-
- return fontSize;
-}
-
-void MultitaskViewModel::onWindowAdded(KWin::EffectWindow *window)
-{
- if(!shouldAcceptWindow(window))
- {
- if(!window->isModal()) {
- return;
- }
- }
-
- updateModelData();
-
- emit appWindowCreated(getWindowId(window));
-}
-
-void MultitaskViewModel::onWindowDeleted(KWin::EffectWindow *window)
-{
- updateModelData();
-
- emit appWindowRemoved(getWindowId(window));
-}
-
-void MultitaskViewModel::onWindowActivated(KWin::EffectWindow* window)
-{
- // KWin在发送windowActivated信号时
- // window对象是有可能为空的。对于多任务
- // 视图来说,只关心真正有窗口被激活的清空。
- // 因此,如果window对象为空,则不转发
- // 该信号
- if (window == nullptr)
- {
- return;
- }
- // 切换虚拟桌面时发出的窗口激活信号不需要发送到qml。
- if (window->isDesktop() || getCurrentDesktop() != lastDesktopIndex)
- {
- lastDesktopIndex = getCurrentDesktop();
- return;
- }
-
- emit appWindowActivated();
-}
-
-void MultitaskViewModel::onDesktopPresenceChanged(KWin::EffectWindow *window,
- int oldDesktopIndex, int newDesktopIndex)
-{
- if (!shouldAcceptWindow(window))
- {
- return;
- }
-
- updateModelData();
-
- emit appWindowDesktopChanged(getWindowId(window), oldDesktopIndex, newDesktopIndex);
-}
-
-void MultitaskViewModel::onNumberScreensChanged()
-{
- updateModelData();
-
- const auto oldScreenCount = screenCount_;
-
- updateScreenCount();
-
- emit screenCountChanged(oldScreenCount, screenCount_);
-}
-
-void MultitaskViewModel::updateScreenCount()
-{
- screenCount_ = KWin::effects->screens().size();
-}
-
-// static
-bool MultitaskViewModel::isExtensionMode()
-{
- QDesktopWidget desktop;
- for (int index = 0; index < desktop.numScreens(); index++)
- {
- if(KWin::effects->virtualScreenGeometry()
- == desktop.screenGeometry(index))
- {
- return false;
- }
- }
-
- return true;
-}
-
-int MultitaskViewModel::logicalScreenCount() const
-{
- const auto screenCount = KWin::effects->screens().size();
- if (screenCount == 1
- || !isExtensionMode())
- {
- return 1;
- }
-
- return screenCount;
-}
-
-bool MultitaskViewModel::isTabletMode() const
-{
- // default to PC mode.
- bool tabletMode = false;
-
- QDBusMessage message = QDBusMessage::createMethodCall("com.kylin.statusmanager.interface",
- "/",
- "com.kylin.statusmanager.interface",
- "get_current_tabletmode");
-
- QDBusMessage response = QDBusConnection::sessionBus().call(message);
-
- if (response.type() == QDBusMessage::ReplyMessage)
- {
- tabletMode = response.arguments().takeFirst().toBool();
- }
- else
- {
- // invalid response, keep default.
- }
-
- return tabletMode;
-}
-
-QString MultitaskViewModel::rotationMode() const
-{
- // default to "normal".
- QString rotation = "normal";
-
- QDBusMessage message = QDBusMessage::createMethodCall("com.kylin.statusmanager.interface",
- "/",
- "com.kylin.statusmanager.interface",
- "get_current_rotation");
-
- QDBusMessage response = QDBusConnection::sessionBus().call(message);
-
- if (response.type() == QDBusMessage::ReplyMessage)
- {
- rotation = response.arguments().takeFirst().toString();
- }
- else
- {
- // invalid response, keep default.
- }
-
- return rotation;
-}
-
-QList MultitaskViewModel::createWindowList(int desktopIndex, int screenIndex)
-{
- if (!validateDesktopIndex(desktopIndex)
- || !validateScreenIndex(screenIndex))
- {
- return QList();
- }
- KWin::EffectScreen* screen = KWin::effects->findScreen(screenIndex);
-
- QList windowList;
-
- const auto& effectWindowList = KWin::effects->stackingOrder();
- for (auto iter = effectWindowList.cbegin();
- iter != effectWindowList.cend(); iter++)
- {
- auto* effectWindow = *iter;
- if (!shouldAcceptWindow(effectWindow))
- {
- continue;
- }
-
- if (!effectWindow->desktops().contains(desktopIndex)
- || effectWindow->screen() != screen)
- {
- continue;
- }
-
- Window window(getWindowId(effectWindow),
- effectWindow->caption(),
- effectWindow->pos().x(),
- effectWindow->pos().y(),
- effectWindow->decorationInnerRect().width(),
- effectWindow->decorationInnerRect().height(),
- effectWindow->isMinimized(),
- getUuid(effectWindow));
-
- windowList.append(QVariant::fromValue(window));
- }
-
- return windowList;
-}
-
-void MultitaskViewModel::updateModelData()
-{
- QList desktopList;
-
- const auto desktopCount = KWin::effects->numberOfDesktops();
- for (int desktopIndex = 1; desktopIndex <= desktopCount; desktopIndex++)
- {
- QList screenList;
- for (int screenIndex = 0; screenIndex < logicalScreenCount(); screenIndex++)
- {
- auto screen = QVariant::fromValue(Screen(screenIndex, createWindowList(desktopIndex, screenIndex)));
- screenList.append(std::move(screen));
- }
-
- auto desktop = QVariant::fromValue(Desktop(desktopIndex, screenList));
- desktopList.append(std::move(desktop));
- }
-
- desktopList_ = std::move(desktopList);
-}
-
-void MultitaskViewModel::moveDesktopWindows(int srcDesktopIndex, int destDesktopIndex)
-{
- if (!validateDesktopIndex(srcDesktopIndex)
- || !validateDesktopIndex(destDesktopIndex))
- {
- return;
- }
-
- auto srcDesktopIter = std::find_if(desktopList_.cbegin(),
- desktopList_.cend(),
- [srcDesktopIndex](const QVariant& desktop)
- {
- return desktop.value().index() == srcDesktopIndex;
- });
- if (srcDesktopIter == desktopList_.cend())
- {
- return;
- }
-
- const auto& desktop = srcDesktopIter->value();
- const auto& screenList = desktop.screenList();
- for (auto screenIter = screenList.cbegin();
- screenIter != screenList.cend(); screenIter++)
- {
- const auto& screen = screenIter->value();
- const auto& windowList = screen.windowList();
- for (auto windowIter = windowList.begin();
- windowIter != windowList.end(); windowIter++)
- {
- const auto& window = windowIter->value();
- moveAppWindowToDesktop(window.uuid(), srcDesktopIndex, destDesktopIndex);
- }
- }
-}
-
-void MultitaskViewModel::moveDesktopsOneStep(const QVector& desktopIndexList)
-{
- if (desktopIndexList.size() < 2)
- {
- return;
- }
-
- for (auto iter = desktopIndexList.cbegin();
- iter != desktopIndexList.cend() -1; iter++)
- {
- const auto destDesktopIndex = *iter;
- const auto srcDesktopIndex = *(iter + 1);
- moveDesktopWindows(srcDesktopIndex, destDesktopIndex);
- }
-}
-
-// static
-WId MultitaskViewModel::getWindowId(KWin::EffectWindow *window)
-{
- return window->parent()->property("windowId").toULongLong();
-}
-
-QUuid MultitaskViewModel::getUuid(KWin::EffectWindow *window)
-{
-// qDebug() << "Uuid: " << window->parent()->property("internalId").toUuid();
- return window->parent()->property("internalId").toUuid();
-}
-
-
-// static
-QVector MultitaskViewModel::createDesktopIndexList(int srcDesktopIndex, int destDesktopIndex)
-{
- QVector desktopIndexList;
-
- if (!validateDesktopIndex(srcDesktopIndex)
- || !validateDesktopIndex(destDesktopIndex))
- {
- return desktopIndexList;
- }
-
- if (srcDesktopIndex > destDesktopIndex)
- {
- for (auto index = destDesktopIndex; index <= srcDesktopIndex; index++)
- {
- desktopIndexList.append(index);
- }
- }
- else
- {
- for (auto index = destDesktopIndex; index >= srcDesktopIndex; index--)
- {
- desktopIndexList.append(index);
- }
- }
-
- return desktopIndexList;
-}
-
-// static
-bool MultitaskViewModel::validateDesktopIndex(int desktopIndex)
-{
- return desktopIndex >= 1 && desktopIndex <= MAX_DESKTOP_COUNT;
-}
-
-bool MultitaskViewModel::validateScreenIndex(int screenIndex) const
-{
- return screenIndex >= 0 && screenIndex < logicalScreenCount();
-}
-
-// static
-bool MultitaskViewModel::shouldAcceptWindow(KWin::EffectWindow* window)
-{
- return !window->isDeleted()
- && window->isNormalWindow()
- && !window->isSkipSwitcher()
- && window->isOnCurrentActivity()
- && window->acceptsFocus();
-}
-
-void MultitaskViewModel::connectSignals()
-{
- QObject::connect(KWin::effects, &KWin::EffectsHandler::windowAdded,
- this, &MultitaskViewModel::onWindowAdded);
- QObject::connect(KWin::effects, &KWin::EffectsHandler::windowDeleted,
- this, &MultitaskViewModel::onWindowDeleted);
- QObject::connect(KWin::effects, &KWin::EffectsHandler::windowActivated,
- this, &MultitaskViewModel::onWindowActivated);
- QObject::connect(KWin::effects, &KWin::EffectsHandler::desktopPresenceChanged,
- this, &MultitaskViewModel::onDesktopPresenceChanged);
- QObject::connect(KWin::effects, SIGNAL(desktopChanged(int, int)),
- this, SIGNAL(currentDesktopChanged(int, int)));
- // QObject::connect(KWin::effects, &KWin::EffectsHandler::numberScreensChanged,
- // this, &MultitaskViewModel::onNumberScreensChanged);
- QObject::connect(KWin::effects, &KWin::EffectsHandler::virtualScreenSizeChanged,
- this, &MultitaskViewModel::screenSizeChanged);
- QDBusConnection::sessionBus().connect("com.kylin.statusmanager.interface",
- "/",
- "com.kylin.statusmanager.interface",
- "mode_change_signal",
- this,
- SLOT(tabletModeChanged(bool)));
- QDBusConnection::sessionBus().connect("com.kylin.statusmanager.interface",
- "/",
- "com.kylin.statusmanager.interface",
- "rotations_change_signal",
- this,
- SLOT(rotationModeChanged(QString)));
-}
-
-} // namespace MultitaskView
diff --git a/windowsview/multitaskviewmodel.h b/windowsview/multitaskviewmodel.h
deleted file mode 100644
index 3add61c89d2b025c3d04efd943475b7e8eda685a..0000000000000000000000000000000000000000
--- a/windowsview/multitaskviewmodel.h
+++ /dev/null
@@ -1,321 +0,0 @@
-#ifndef MULTITASKVIEWMODEL_H
-#define MULTITASKVIEWMODEL_H
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include
-
-class QGSettings;
-
-namespace MultitaskView {
-
-class Window
-{
- Q_GADGET
-
- Q_PROPERTY(int id READ id)
-
- Q_PROPERTY(QString caption READ caption)
-
- Q_PROPERTY(int x READ x)
-
- Q_PROPERTY(int y READ y)
-
- Q_PROPERTY(int width READ width)
-
- Q_PROPERTY(int height READ height)
-
- Q_PROPERTY(bool minimized READ minimized)
-
- Q_PROPERTY(QUuid uuid READ uuid)
-
-public:
-
- Window() = default;
-
- Window(int id, const QString& caption, int x, int y, int width, int height, bool minimized, QUuid uuid)
- : id_(id),
- caption_(caption),
- x_(x),
- y_(y),
- width_(width),
- height_(height),
- minimized_(minimized),
- uuid_(uuid)
- {
- }
-
- int id() const
- {
- return id_;
- }
-
- QUuid uuid() const
- {
- return uuid_;
- }
-
- const QString& caption() const
- {
- return caption_;
- }
-
- int x() const
- {
- return x_;
- }
-
- int y() const
- {
- return y_;
- }
-
- int width() const
- {
- return width_;
- }
-
- int height() const
- {
- return height_;
- }
-
- bool minimized() const
- {
- return minimized_;
- }
-
-private:
-
- int id_ = 0;
-
- QUuid uuid_;
-
- QString caption_;
-
- int x_ = 0;
-
- int y_ = 0;
-
- int width_ = 0;
-
- int height_ = 0;
-
- bool minimized_ = false;
-};
-
-
-class Screen
-{
- Q_GADGET
-
- Q_PROPERTY(int index READ index)
-
- Q_PROPERTY(QList windowList READ windowList)
-
-public:
-
- Screen() = default;
-
- Screen(int index, const QList& windowList)
- : index_(index),
- windowList_(windowList)
- {}
-
- int index() const
- {
- return index_;
- }
-
- const QList& windowList() const
- {
- return windowList_;
- }
-
-private:
-
- int index_ = 0;
-
- QList windowList_;
-};
-
-class Desktop
-{
- Q_GADGET
-
- Q_PROPERTY(int index READ index)
-
- Q_PROPERTY(QList screenList READ screenList)
-
-public:
-
- Desktop() = default;
-
- Desktop(int index, const QList& screenList)
- : index_(index),
- screenList_(screenList)
- {}
-
- int index() const
- {
- return index_;
- }
-
- const QList& screenList() const
- {
- return screenList_;
- }
-
-private:
-
- int index_ = 1;
-
- QList screenList_;
-};
-
-class MultitaskViewModel : public QObject
-{
- Q_OBJECT
-
- Q_PROPERTY(int logicalScreenCount READ logicalScreenCount NOTIFY screenCountChanged)
-
- Q_PROPERTY(bool isTabletMode READ isTabletMode)
-
- Q_PROPERTY(QString rotationMode READ rotationMode NOTIFY rotationModeChanged)
-
-public:
-
- explicit MultitaskViewModel(QObject *parent = nullptr);
-
- ~MultitaskViewModel();
-
- Q_INVOKABLE QList getAppWindowList(int desktopIndex, int screenIndex) const;
-
- Q_INVOKABLE void removeAppWindow(QUuid windowId);
-
- Q_INVOKABLE void removeAllAppWindowOnDesktop(int desktopIndex);
-
- Q_INVOKABLE void moveAppWindowToDesktop(QUuid windowId, int srcDesktopInex, int destDesktopInex) const;
-
- Q_INVOKABLE void activateAppWindow(QUuid windowId);
-
- Q_INVOKABLE QIcon getWindowIcon(QUuid windowId);
-
- Q_INVOKABLE QList getDesktopList() const;
-
- Q_INVOKABLE void removeDesktop(int desktopIndex);
-
- Q_INVOKABLE void appendDesktop();
-
- Q_INVOKABLE void moveDesktop(int srcDesktopIndex, int destDesktopIndex);
-
- Q_INVOKABLE int getCurrentDesktop();
-
- Q_INVOKABLE void setCurrentDesktop(int desktopIndex);
-
- Q_INVOKABLE QRect getFullScreenGeometry(int desktopIndex, int screenIndex) const;
-
- Q_INVOKABLE bool hasModalChildWindow(QUuid windowId);
-
- bool isTabletMode() const;
-
- Q_INVOKABLE QString getUKUIStyleName() const;
-
- Q_INVOKABLE int getUKUIFontSize() const;
-
-signals:
-
- void appWindowCreated(int windowId);
-
- void appWindowRemoved(int windowId);
-
- void appWindowActivated();
-
- void appWindowDesktopChanged(int windowId, int oldDesktopIndex, int newDesktopIndex);
-
- void desktopRemoved(int desktopIndex);
-
- void desktopAppended(int desktopIndex);
-
- void desktopMoved(int oldDesktopIndex, int newDesktopIndex);
-
- void currentDesktopChanged(int oldCurrentDesktopIndex, int newCurrentDesktopIndex);
-
- void screenCountChanged(int oldScreentCount, int newScreenCount);
-
- void screenSizeChanged();
-
- void tabletModeChanged(bool);
-
- void rotationModeChanged(QString);
-
-private slots:
-
- void onWindowAdded(KWin::EffectWindow* window);
-
- void onWindowDeleted(KWin::EffectWindow* window);
-
- void onWindowActivated(KWin::EffectWindow* window);
-
- void onDesktopPresenceChanged(KWin::EffectWindow* window, int oldDesktopIndex, int newDesktopIndex);
-
- void onNumberScreensChanged();
-
-private:
-
- void updateScreenCount();
-
- static bool isExtensionMode();
-
- int logicalScreenCount() const;
-
- QString rotationMode() const;
-
- QList createWindowList(int desktopIndex, int screenIndex);
-
- void updateModelData();
-
- void moveDesktopWindows(int srcDesktopIndex, int destDesktopIndex);
-
- void moveDesktopsOneStep(const QVector& desktopIndexList);
-
- static QVector createDesktopIndexList(int srcDesktopIndex, int destDesktopIndex);
-
- static bool validateDesktopIndex(int desktopIndex);
-
- bool validateScreenIndex(int screenIndex) const;
-
- static WId getWindowId(KWin::EffectWindow* window);
-
- static QUuid getUuid(KWin::EffectWindow *window);
-
- static bool shouldAcceptWindow(KWin::EffectWindow* window);
-
- void connectSignals();
-
-private:
-
- // 虚拟桌面列表
- QList desktopList_;
-
- // 屏幕数量
- int screenCount_ = 0;
-
- // 最大虚拟桌面数量为16
- static constexpr int MAX_DESKTOP_COUNT = 16;
-
- // 初始化为0,这样首次打开时就没有桌面index与lastDesktopIndex相同
- int lastDesktopIndex = 0;
-
- QGSettings* settings_ = nullptr;
-};
-
-} // namespace MultiTaskView
-
-#endif // MULTITASKVIEWMODEL_H
diff --git a/windowsview/qml/AppArea.qml b/windowsview/qml/AppArea.qml
index 1c7bd5a62bdc2465c09b4d898672dfaa698b868b..b0d378bea15d59bf4d5912c42b97d939687cf776 100644
--- a/windowsview/qml/AppArea.qml
+++ b/windowsview/qml/AppArea.qml
@@ -1,30 +1,65 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
import QtQuick 2.12
-import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
-import QtQuick.Window 2.12
-import org.kde.kwin 3.0 as KWinComponents
-import QtGraphicalEffects 1.0
import "Controller.js" as Controller
-import IconTheme 1.0
-Rectangle {
- id : appArea
- width : 100
- height : 100
- color : "transparent"
- property ListModel appModel : null
- property var rootRect : null
- property var appAreaController : null
-
- ScrollView{
+import org.ukui.positioner 1.0
+import org.ukui.quick.items 1.0 as UkuiItem
+
+FocusScope {
+ id : root
+ property var appAreaController : new Controller.AppController(multitaskViewModel, root, multitaskViewManager, ["none"])
+ property int currentTabIndex: 0
+
+ Flickable {
id : scrollArea
- width : parent.width
- height : parent.height
- property var flowRows : 0
- contentWidth : parent.width
- contentHeight : flowRows * ((rootRect.height / 22 * 5) + 12 + 40) > parent.height ? flowRows * ((rootRect.height / 22 * 5) + 12 + 40) : parent.height
- ScrollBar.horizontal.policy : ScrollBar.AlwaysOff
- ScrollBar.vertical.policy : ScrollBar.AlwaysOff
+ anchors.fill : parent
+ // 预览图布局区域 y 轴起始高度
+ property int scrollViewYStartPoint : 32 * scaleFactor
+ // 预览图布局区域距离左侧和右侧的间距
+ property int scrollViewLeftSpace : isVerticalLayout ? 32 : 0
+ anchors.leftMargin: scrollViewLeftSpace //注意:间距为0则无法显示滚动条
+ anchors.rightMargin: scrollViewLeftSpace
+ anchors.topMargin: 0
+ anchors.bottomMargin: 0
+ property ListModel windowPosInfoModel: ListModel{}
+ property var rowSpacing : isVerticalLayout ? Math.floor(16 * scaleFactor) : Math.floor(10 * scaleFactor)
+ property var columnSpacing : isVerticalLayout ? Math.floor(16 * scaleFactor) : Math.floor(10 * scaleFactor)
+ height: parent.height
+ width: parent.width
+ contentWidth : parent.width - scrollViewLeftSpace * 2
+ contentHeight : Math.max(flow.height, height)
clip : true
+
+ UkuiItem.DtThemeScrollBar.vertical: UkuiItem.DtThemeScrollBar {
+ id: vScrollBar
+ Accessible.role: Accessible.ScrollBar
+ Accessible.name: "apparea-vertical-scrollbar"
+ Accessible.description: "a scroll bar, which allows the user to scroll the visible area"
+ parent: scrollArea.parent
+ anchors.top: scrollArea.top
+ anchors.left: scrollArea.right
+ anchors.bottom: scrollArea.bottom
+ visual : flow.height > scrollArea.height
+ }
+
MouseArea{
anchors.fill : parent
onClicked : {
@@ -32,185 +67,285 @@ Rectangle {
}
}
- Flow{
- id : flowLayout
- spacing : 0
- width : screenRect.width
+
+ NumberAnimation {
+ id : scrollMoveAnimation
+ target : vScrollBar
+ property : "position"
+ from : vScrollBar.position
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+
+ UkuiFlow {
+ id : flow
+ property bool needFlowYAnimation : false
+
+ spacing : scrollArea.rowSpacing
+ topPadding: scrollArea.scrollViewYStartPoint
+ width : parent.width
flow : Flow.LeftToRight
+ layoutDirection: isLayoutLeftToRight ? Qt.LeftToRight : Qt.RightToLeft
+ lineHorizontalCenterAlignment: true
move :Transition { //子项增加时或者减少时的过度,也就是子项的visible变化的过度
NumberAnimation {
properties : "x,y";
easing.type : Easing.InOutQuad;
- duration : 500
+ duration : isVerticalLayout ? 500 : 300
}
}
- Repeater{
- property int cnt : 0
- id : rep
- model : appModel
- function adjustSize(){
- // 计算当前布局的方式
- var sqrtCnt = Math.ceil(Math.sqrt(rep.cnt));
- var cols = sqrtCnt;
- if (cols > 3) {
- cols = 3;
+ onHeightChanged: {
+ y = Math.max((scrollArea.height - flow.height) / 2, 0)
+ }
+
+ // flow 垂直居中动画
+ Behavior on y {
+ enabled: flow.needFlowYAnimation
+ NumberAnimation {
+ duration : isVerticalLayout ? 500 : 300
+ easing.type : Easing.InOutQuart
+ }
+ }
+
+ onPositioningComplete: {
+ updateWindowPosInfo()
+ }
+
+ function updateWindowPosInfo() {
+ var rowWindowNum = 0 //窗口区域每行的窗口数
+ var leftX = 0
+ var rightX = 0
+ var rowY = flow.topPadding
+ var itemCount = 0
+ var winModel = []
+ scrollArea.windowPosInfoModel.clear()
+
+ for (let i = 0; i < flow.children.length; ++i) {
+ if (flow.children[i].width === 0) {
+ continue
}
- var lineWidth = rootRect.width;
- // 调整矩形框的大小
- for(var i = 0; i < rep.cnt; i += cols)
+ // 根据预览窗 Y 坐标判断是否到下一行
+ if (flow.children[i].y !== rowY) {
+ if (winModel.length > 0) {
+ scrollArea.windowPosInfoModel.append({model : winModel, rowWindowCount : rowWindowNum})
+ winModel = []
+ rowWindowNum = 0
+ }
+ rowY += flow.children[i].height + flow.spacing
+ }
+
+ // 更新预览窗在 Flow 布局中的 X 坐标并存入局部 model
+ itemCount++
+ leftX = flow.children[i].x
+ rightX = leftX + flow.children[i].width
+ winModel.push({index: itemCount - 1, leftX: leftX, rightX: rightX})
+ rowWindowNum++
+ }
+ if (winModel.length > 0) {
+ scrollArea.windowPosInfoModel.append({model : winModel, rowWindowCount : rowWindowNum})
+ }
+ }
+
+ Repeater {
+ id : previewWindowRepeater
+ model : appAreaModel
+ activeFocusOnTab: count !== 0 ? true : false
+ focus : false
+
+ delegate: Rectangle {
+ id : thumbnailitem
+ width: appWindow.width
+ height: appWindow.height
+ focus: true
+ color : "transparent"
+ property var thumbWidth : getThumbnailSize()[0]
+ property var thumbHeight : getThumbnailSize()[1]
+ property string uuid: model.Uuid
+
+ states: [
+ State {
+ name : "tabActive"
+ when: previewWindowRepeater.activeFocus && index === currentTabIndex && (multitaskViewManager.shouldShowTabBorder)
+ PropertyChanges {
+ target: appWindow.borderRectangle
+ borderColor : tabFocusBorderColor
+ }
+ }
+ ]
+
+ function getThumbnailSize()
{
- var blockWidth = Math.floor(lineWidth / Math.min(cols, rep.cnt - i));
- for(var j = 0;j < Math.min(cols, rep.cnt - i); ++j)
- {
- if(itemAt(i + j)){
- itemAt(i + j).width = blockWidth
+ var thumbHeight = thumbRectangleHeight
+ var max_width = parent.width / 3
+ var clientWidth = model.Width
+ var clientHeight = model.Height
+ var thumbWidth = Math.floor(thumbHeight * clientWidth / clientHeight)
+ if (thumbWidth > max_width) {
+ thumbWidth = max_width
+ thumbHeight = Math.floor(thumbWidth * clientHeight / clientWidth)
+ }
+ return [thumbWidth, thumbHeight]
+ }
+
+ AppPreviewWindow {
+ id : appWindow
+ // Warning: 因为 appWindow 的 parent 会改变,所以不要使用 parent 获取宽高
+ minWidth: Math.floor(root.width / 10)
+
+ thumbHeight : thumbnailitem.thumbHeight
+ thumbWidth : thumbnailitem.thumbWidth
+ windowType : "app"
+ x_wid : model.Id
+ wid : model.Uuid
+ icon : model.Icon
+ caption : model.Caption
+ parent: thumbnailitem
+
+ Drag.onActiveChanged : {
+ if (!Drag.active) {
+ var fromPos = mapToItem(thumbnailitem, 0, 0)
+ posX = fromPos.x
+ posY = fromPos.y
+ appAreaController.onSourceDropped(appWindow, rootWindow.highlightDesktop, rootWindow.highlightDesktop)
+ } else {
+ //拖拽动画开始前,修改 appWindow 父对象
+ appWindow.parent = allroot
+ zoomOutAnimation()
}
}
}
- scrollArea.flowRows = Math.ceil(rep.cnt/cols)
+ }//Rectangle
+
+ onActiveFocusChanged: {
+ if (previewWindowRepeater.activeFocus) {
+ currentTabIndex = 0
+ if (vScrollBar.position > 0) {
+ scrollMoveAnimation.to = 0
+ scrollMoveAnimation.start()
+ }
+ multitaskViewManager.activeAreaChangeDataCollect("Windows Preview Area")
+ }
}
onItemAdded : {
- cnt++;
- adjustSize();
+ if (flow.needFlowYAnimation !== false) {
+ flow.needFlowYAnimation = false
+ }
}
onItemRemoved : {
- cnt--;
- adjustSize();
+ if (flow.needFlowYAnimation !== true) {
+ flow.needFlowYAnimation = true
+ }
}
- Rectangle{
- id : thumbnailitem
- height : (rootRect.height / 22 * 5) + 12 + 40
- color : "transparent"
- radius : 14
- function thumbwidth(){
- var max_height = rootRect.height / 22 * 5 - 12
- var max_width = rootRect.width / 3 - 12
- var oriW = model.width;
- var oriH = model.height;
- var dh, dw;
- var isfind = 0;
- // 情况2
- dh = max_height
- dw = oriW * dh / oriH;
- if(dw <= max_width){
- isfind = 1;
- }
- // 情况1
- if(!isfind){
- dw = max_width
- dh = oriH * max_width / oriW
- }
- return dw
+ Keys.onPressed: {
+ if (rootWindow.isWlcom) {
+ multitaskViewManager.keyNavigationDataCollect(event.key)
}
+ if (event.key === Qt.Key_Left) {
+ if (currentTabIndex > 0) {
+ currentTabIndex = currentTabIndex - 1
+ } else if (currentTabIndex === 0) {
+ currentTabIndex = previewWindowRepeater.count - 1
+ }
+ event.accepted = true
- function thumbheight(){
- var max_height = rootRect.height / 22 * 5 - 12
- var max_width = rootRect.width / 3 - 12
- var oriW = model.width;
- var oriH = model.height;
- var dh, dw;
-
- var isfind = 0;
- // 情况2
- dh = max_height
- dw = oriW * dh / oriH
- if(dw <= max_width){
- isfind = 1;
+ } else if (event.key === Qt.Key_Right ) {
+ if (currentTabIndex < previewWindowRepeater.count - 1) {
+ currentTabIndex = currentTabIndex + 1
+ } else if (currentTabIndex === previewWindowRepeater.count - 1) {
+ currentTabIndex = 0
}
- // 情况1
- if(!isfind){
- dw = max_width
- dh = oriH * max_width / oriW
+ event.accepted = true
+
+ } else if (event.key === Qt.Key_Up || event.key === Qt.Key_Down) {
+ var isKeyUp = event.key === Qt.Key_Up
+ currentTabIndex = appAreaController.keyUpDownSelectWindow(isKeyUp, scrollArea.windowPosInfoModel, currentTabIndex)
+ event.accepted = true
+
+ } else if (event.key === Qt.Key_Tab) {
+ if (event.modifiers & Qt.MetaModifier) {
+ appAreaController.closeMultitaskView()
+ return
}
- return dh
+ currentTabIndex = 0
+ focus = false // resolve warning: QQuickItem: Cannot set activeFocusOnTab to false once item is the active focus item.
+ event.accepted = false
+
+ } else if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter || event.key === Qt.Key_Space) {
+ appAreaController.onWindowClicked(previewWindowRepeater.itemAt(currentTabIndex).uuid);
+ event.accepted = true
+
+ } else if (event.key === Qt.Key_End) {
+ currentTabIndex = previewWindowRepeater.count - 1
+ event.accepted = true
+
+ } else if (event.key === Qt.Key_Home) {
+ currentTabIndex = 0
+ event.accepted = true
+
+ } else if (event.key === Qt.Key_PageUp || event.key === Qt.Key_PageDown) {
+ var isKeyPageUp = event.key === Qt.Key_PageUp
+ currentTabIndex = appAreaController.keyPageUpDownSelectWindow(isKeyPageUp, scrollArea.windowPosInfoModel, currentTabIndex)
+ event.accepted = true
+
+ } else if (event.key === Qt.Key_Escape) {
+ appAreaController.closeMultitaskView()
}
- Rectangle {
- id : appWindowAnchor
- anchors.centerIn : parent
- width : thumbnailitem.thumbwidth() + 12 > rootRect.width / 10 ? thumbnailitem.thumbwidth() + 12 : rootRect.width / 10
- height : parent.height
- color : "transparent"
-
- PreviewWindow {
- id : appWindow
- width : thumbnailitem.thumbwidth() + 12 > rootRect.width / 10 ? thumbnailitem.thumbwidth() + 12 : rootRect.width / 10
- height : (rootRect.height/22*5) + 12 + 40
- previewAreaWidth : thumbnailitem.thumbwidth() + 12 > rootRect.width / 10 ? thumbnailitem.thumbwidth() + 12 : rootRect.width / 10
- previewAreaHeight : rootRect.height / 22 * 5
- windowType : "app"
- controller : new Controller.AppController(multitaskViewModel, appWindow, multitaskViewManager, ["none"]);
-
- onNowDragActiveChanged : {
- if(!appWindow.winowDragActive) {
- appWindow.zoomOut()
- var fromPos = appWindowBack.mapToItem(appWindowAnchor,0,0)
-
- appWindow.posX = fromPos.x
- appWindow.posY = fromPos.y
- appAreaController.onSourceDropped(appWindow,allroot.highlightDesktop,allroot.highlightDesktop)
- } else {
- appWindow.zoomIn()
- }
- }
+ if (event.key === Qt.Key_Tab || event.key === Qt.Key_Left ||
+ event.key === Qt.Key_Right || event.key === Qt.Key_Up ||
+ event.key === Qt.Key_Down || event.key === Qt.Key_Home ||
+ event.key === Qt.Key_End || event.key === Qt.Key_PageUp ||
+ event.key === Qt.Key_PageDown) {
+ multitaskViewManager.setShouldShowTabBorder(true)
+ }
- states : [
- State {
- name : "default"
- PropertyChanges { target : appWindow; borderWidth : 0 }
- PropertyChanges { target : appWindow; closeButtonVisble : false }
- },
-
- State {
- name : "hover"
- PropertyChanges { target : appWindow; borderWidth : 4 }
- PropertyChanges { target : appWindow; closeButtonVisble : true }
- }
- ]
-
- Rectangle {
- id : appWindowBack
- anchors.horizontalCenter : appWindow.horizontalCenter
- y : 40+5
- height : appWindow.previewAreaHeight-12
- width : appWindow.previewAreaWidth-12
- color : Qt.rgba(255,255,255, 0.5)
- clip : true
- visible: true
- layer.enabled : multitaskViewManager.useOpenGL() ? true : false
- layer.effect : OpacityMask{
- maskSource : Rectangle{
- height : appWindow.previewAreaHeight-12
- width : appWindow.previewAreaWidth-12
- radius : 8
- }
- }
-
- KWinComponents.WindowThumbnailItem{
- id : tmp
- anchors.centerIn : parent
- z: appWindow.onTop ? 100 : 20
- height : thumbnailitem.thumbheight()
- width : thumbnailitem.thumbwidth()
- wId: model.uuid
- clip : true
- }
- }
+ if (event.accepted) {
+ scrollToTabItem()
+ }
+ }
- Component.onCompleted : {
- appWindow.setCaption(model.caption)
- appWindow.setId(model.uuid)
- }
- }
+ function scrollToTabItem() {
+ var currentNextY = itemAt(currentTabIndex).mapToItem(scrollArea, 0, 0).y
+ var previewWindowHeight = itemAt(currentTabIndex).height
+ if (currentNextY < 0) {
+ scrollMoveAnimation.to = vScrollBar.position - (-currentNextY) / scrollArea.contentHeight
+ scrollMoveAnimation.start()
+ } else if (currentNextY + previewWindowHeight > scrollArea.height) {
+ scrollMoveAnimation.to = vScrollBar.position + (currentNextY + previewWindowHeight - scrollArea.height) / scrollArea.contentHeight
+ scrollMoveAnimation.start()
}
- }//Rectangle
+ }
}//Repeater
+
+ Component.onCompleted: {
+ if (appAreaModel.rowCount() !== 0) {
+ previewWindowRepeater.forceActiveFocus()
+ }
+ // 无应用窗口时不获取tab焦点
+ }
+
+ Connections {
+ target: rootWindow.isWlcom ? multitaskViewManager : null
+ function onTaskViewShowed() {
+ if (appAreaModel.rowCount() !== 0) {
+ previewWindowRepeater.forceActiveFocus()
+ }
+ }
+ }
+
+ Connections {
+ target: previewWindowRepeater
+ enabled: !multitaskViewManager.winTabVisible
+ function onCountChanged() {
+ flow.forceLayout();
+ }
+ }
}//Flow
}//ScrollView
}
diff --git a/windowsview/qml/AppPreviewWindow.qml b/windowsview/qml/AppPreviewWindow.qml
new file mode 100644
index 0000000000000000000000000000000000000000..05b34a8c13ef5d2668b17283576decf5edd33626
--- /dev/null
+++ b/windowsview/qml/AppPreviewWindow.qml
@@ -0,0 +1,320 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/*
+ 每个预览窗口的UI设计
+*/
+import QtQuick 2.12
+import QtQuick.Layouts 1.3
+import QtGraphicalEffects 1.0
+import "Controller.js" as Controller
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+Rectangle {
+ id : root
+ color : "transparent"
+
+ /** windowType is the type of PreviewWindow,
+ * the options are : none, app, desktop, creation.
+ * Default to none.
+ */
+ property string windowType : "none"
+
+ /** stateList is the list of state,
+ * the options are : default, hover, drag, receive.
+ * Default to default.
+ */
+ property var stateList : ["default", "hover", "drag", "receive"];
+ state : "default"
+ property string wid : ""
+ property int x_wid : -1
+ property var thumbHeight
+ property var thumbWidth
+ property real posX : 0
+ property real posY : 0
+ property double titleOpacity : 1
+ property var controller : new Controller.AppController(multitaskViewModel, root, multitaskViewManager, ["none"]);
+ property var icon
+ Drag.active : previewMouseArea.drag.active
+ Drag.source : root
+ Drag.hotSpot.x : root.width / 2
+ Drag.hotSpot.y : root.height / 2
+ property alias borderRectangle : previewArea
+ property alias caption : caption.text
+
+ // 定义缩放比例系数变量
+ property double scaleValue : 0.0
+ property double windowDragX : 0.0
+ property double windowDragY : 0.0
+ property double windowOriginalX : 0.0
+ property double windowOriginalY : 0.0
+
+ // 定义应用预览窗各间距、宽高
+ property int spacingWidth: 2 * scaleFactor // focus边框与预览图间距
+ property int appThumbnailMargin: appBorderWidth + spacingWidth
+ property int minWidth: thumbWidth + 2 * appThumbnailMargin
+ width: Math.max(thumbWidth + 2 * appThumbnailMargin, minWidth)
+ height: captionRow.height + previewArea.height + mainColumnLayout.spacing + 2 * appThumbnailMargin
+
+
+ states : [
+ State {
+ name : "default"
+ PropertyChanges {
+ target : previewArea
+ borderColor : root.parent.state == "tabActive" ? tabFocusBorderColor : defaultBorderColor
+ }
+ PropertyChanges { target : previewWindowCloseButton; visible : rootWindow.isTouchState ? true : false }
+ },
+ State {
+ name : "hover"
+ PropertyChanges {
+ target : previewArea
+ borderColor : root.parent.state == "tabActive" ? tabFocusBorderColor : hoverBorderColor
+ }
+ PropertyChanges { target : previewWindowCloseButton; visible : true }
+ }
+ ]
+
+ MouseArea {
+ id : previewMouseArea
+ anchors.fill : parent
+ hoverEnabled : true
+ preventStealing : true
+ drag.axis : Drag.XAndYAxis
+ drag.target : root
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "active-window-" + root.caption
+ Accessible.description: "preview-window, click to active the app window"
+
+ onEntered : {
+ root.state = "hover"
+ }
+ onExited : {
+ root.state = "default"
+ }
+ onPressed : {
+ windowDragX = mouseX
+ windowDragY = mouseY
+
+ //拖拽开始时相对于 mainView 的初始位置
+ var originalPos = mapToItem(allroot, 0, 0)
+ windowOriginalX = originalPos.x
+ windowOriginalY = originalPos.y
+ }
+ onClicked : {
+ controller.onWindowClicked(wid);
+ }
+ onReleased : {
+ root.Drag.drop();
+ }
+
+ ColumnLayout {
+ id: mainColumnLayout
+ anchors.fill: parent
+ anchors.centerIn : parent
+ spacing : 10 * scaleFactor // 标题栏与预览图外边框间距
+
+ RowLayout {
+ id : captionRow
+ spacing : Math.floor(8 * scaleFactor)
+ Layout.fillHeight : true
+ Layout.preferredHeight : iconAndCloseButtonHeight
+ Layout.leftMargin : appBorderWidth + spacingWidth
+ Layout.rightMargin: appBorderWidth
+ opacity : titleOpacity
+ layoutDirection: isLayoutLeftToRight ? Qt.LeftToRight : Qt.RightToLeft
+
+ UkuiItem.Icon {
+ id: iconItem
+ width: iconAndCloseButtonHeight
+ height: width
+ source: icon
+ }
+
+ UkuiItem.DtThemeText {
+ id : caption
+ verticalAlignment: Qt.AlignVCenter
+ horizontalAlignment: isLayoutLeftToRight ? Qt.AlignLeft : Qt.AlignRight
+ elide : isLayoutLeftToRight ? Text.ElideRight : Text.ElideLeft
+ Layout.fillWidth : true
+ text : ""
+ textColor : UkuiPlatform.GlobalTheme.kFontWhite
+ }
+
+ CloseButton {
+ id : previewWindowCloseButton
+ width : iconAndCloseButtonHeight
+ height : width
+ radius : width / 2
+ windowType : "app"
+
+ Accessible.name: "close-window-" + caption.text
+ Accessible.description: "close-button, click to close the app window"
+
+ onExited: {
+ if (!previewMouseArea.containsMouse) {
+ root.state = "default"
+ }
+ }
+ onClicked: {
+ controller.removePreviewWindow(root.wid)
+ }
+ }
+ }//RowLayout
+
+ UkuiItem.DtThemeBackground {
+ id : previewArea
+ Layout.fillWidth: true
+ Layout.fillHeight: false
+ Layout.preferredHeight : thumbRectangleHeight + 2 * appThumbnailMargin
+ color : "transparent"
+ borderColor : tabFocusBorderColor
+ border.width : appBorderWidth
+ radius : UkuiPlatform.GlobalTheme.kRadiusWindow * scaleFactor
+
+ Rectangle {
+ id : appWindowBack
+ anchors.centerIn: parent
+ height : thumbHeight
+ width : thumbWidth
+ radius : UkuiPlatform.GlobalTheme.kRadiusMenu * scaleFactor
+ color : Qt.rgba(1, 1, 1, 0.5)
+ clip : true
+ layer.enabled : appWindowBack.radius !== 0
+ layer.effect : OpacityMask {
+ maskSource : Rectangle {
+ height : thumbHeight
+ width : thumbWidth
+ radius : appWindowBack.radius
+ }
+ }
+ Loader {
+ id : appWindowLoader
+ property string thumbnailId : wid
+ height : thumbHeight
+ width : thumbWidth
+ anchors.centerIn: parent
+ source: isWlcom ? "ThumbnailWithWlcom.qml" : "ThumbnailWithKwin.qml"
+ }
+ }
+ }
+ }//culumnLayout
+ }
+
+ function returnOriginal(x, y) {
+ zoomInAnimation()
+ }
+
+ function zoomOutAnimation() {
+ transformId.origin.x = windowDragX
+ transformId.origin.y = windowDragY
+ scaleValue = 0.38
+ titleOpacity = 0
+ scaleDownAnimation.restart()
+ }
+
+ function zoomInAnimation() {
+ transformId.origin.x = windowDragX
+ transformId.origin.y = windowDragY
+ scaleValue = 1
+ titleOpacity = 1
+ scaleUpAnimation.restart()
+ }
+
+
+ transform : Scale{
+ id : transformId
+ }
+
+ ParallelAnimation{
+ id : scaleDownAnimation
+ NumberAnimation {
+ target : transformId
+ property : "xScale"
+ to : scaleValue
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+ NumberAnimation{
+ target : transformId
+ property : "yScale"
+ to : scaleValue
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+ NumberAnimation{
+ target : captionRow
+ property : "opacity"
+ to : titleOpacity
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+ }
+
+ ParallelAnimation{
+ id : scaleUpAnimation
+ NumberAnimation {
+ target : transformId
+ property : "xScale"
+ to : scaleValue
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+ NumberAnimation{
+ target : transformId
+ property : "yScale"
+ to : scaleValue
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+ NumberAnimation{
+ target : captionRow
+ property : "opacity"
+ to : titleOpacity
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+
+ NumberAnimation {
+ target: root
+ property: "x"
+ duration: 300
+ to: windowOriginalX
+ easing.type: Easing.InOutQuad
+ }
+ NumberAnimation {
+ target: root
+ property: "y"
+ duration: 300
+ to: windowOriginalY
+ easing.type: Easing.InOutQuad
+ }
+
+ onFinished: {
+ //拖拽还原动画结束后,将 appWindow 的父对象改回 thumbnailitem,并重新设置坐标
+ appWindow.parent = thumbnailitem
+ appWindow.x = 0
+ appWindow.y = 0
+ }
+ }
+}
diff --git a/windowsview/qml/ArrowButton.qml b/windowsview/qml/ArrowButton.qml
new file mode 100644
index 0000000000000000000000000000000000000000..d4abadadafedee31fadb45ad4043528ef7f45b94
--- /dev/null
+++ b/windowsview/qml/ArrowButton.qml
@@ -0,0 +1,75 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import QtQuick 2.12
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+UkuiItem.DtThemeBackground {
+ id : arrowButton
+ width : Math.floor(48 * scaleFactor)
+ height : width
+ radius : UkuiPlatform.GlobalTheme.kRadiusNormal
+ backgroundColor: buttonMouseArea.containsPress ? UkuiPlatform.GlobalTheme.kContainClick
+ : buttonMouseArea.containsMouse ? UkuiPlatform.GlobalTheme.kContainHover : UkuiPlatform.GlobalTheme.kContainGeneralNormal
+ property var direction : "right"
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "arrow button" + direction
+ Accessible.description: "a push button, click to move the parent view "+ direction
+
+ UkuiItem.Icon {
+ id: arrowIcon
+ anchors.centerIn: parent
+ width: parent.width / 2
+ height: width
+ source: direction == "right" ? "ukui-end-symbolic" : "ukui-start-symbolic"
+ mode: UkuiItem.Icon.AutoHighlight
+ }
+
+ MouseArea {
+ id: buttonMouseArea
+ anchors.fill: parent
+ hoverEnabled: true
+
+ onClicked : {
+ if (direction == "left") {
+ if (desktopListView.contentX + desktopListView.contentXoffset - desktopMoveDistance > 0) {
+ contentMoveAnimation.to = desktopListView.contentX - desktopMoveDistance
+ contentMoveAnimation.start()
+ } else {
+ contentMoveAnimation.to = 0 - desktopListView.contentXoffset
+ contentMoveAnimation.start()
+ }
+ }
+
+ if (direction == "right") {
+ if (desktopListView.contentX + desktopListView.contentXoffset + desktopMoveDistance < desktopListView.contentWidth-desktopListView.width) {
+ contentMoveAnimation.to = desktopListView.contentX + desktopMoveDistance
+ contentMoveAnimation.start()
+ } else {
+ contentMoveAnimation.to = desktopListView.contentWidth - desktopListView.width - desktopListView.contentXoffset
+ contentMoveAnimation.start()
+ }
+ }
+
+ }
+ }
+}
diff --git a/windowsview/qml/CloseButton.qml b/windowsview/qml/CloseButton.qml
index 18d902e4e573c4fd439a490cc6632ab64675f6d6..9c8e2594cc77b4d7006074c8a8c91b0fa1ebbe23 100644
--- a/windowsview/qml/CloseButton.qml
+++ b/windowsview/qml/CloseButton.qml
@@ -1,85 +1,104 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import "Controller.js" as Controller
-import IconTheme 1.0
-import QtGraphicalEffects 1.0
-// import org.kylin.qqc2style.private 1.0 as StylePrivate
+import org.ukui.quick.items 1.0
+import org.ukui.quick.platform 1.0
-Rectangle {
- id : closeButton
+DtThemeBackground {
+ id : root
+ visible : false
+ state : "default"
+ border.width: 1
+ border.color: "transparent"
- property var closeButtonController : new Controller.CloseButtonController(multitaskViewModel, closeButton, multitaskViewManager, ["app"])
+ property string windowType : "none"
property var buttonStateList : ["default", "hover", "click"];
- state : "default"
- property var closeButtonColor : closeButtonDefaultColor
- property int wid : -1
property alias closeButtonContainMouse: closeButtonMouseArea.containsMouse
- visible : closeButtonVisble
- width : 24
- height : 24
- radius : 14
- color : closeButtonColor
-
- IconTheme {
- anchors.centerIn : parent
- width : 12
- height : 12
- iconName : "window-close-symbolic"
- }
-
- function setStatus(status) {
- if(buttonStateList.indexOf(status) < 0)
- {
- return;
- }
- if (status === state) {
- return
- } else {
- state = status;
+ signal entered()
+ signal exited()
+ signal pressed()
+ signal clicked()
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "close button"
+ Accessible.description: "a push button, click to close the preview window or desktop"
+ Accessible.onPressAction: { root.clicked() }
+
+ states : [
+ State {
+ name : "default"
+ PropertyChanges {
+ target : root
+ backgroundColor: GlobalTheme.kContainGeneralAlphaNormal
+ }
+ },
+ State {
+ name : "hover"
+ PropertyChanges {
+ target : root
+ backgroundColor: windowType == "desktop" ? GlobalTheme.kComponentAlphaHover : GlobalTheme.kComponentHover
+ }
+ },
+ State {
+ name : "click"
+ PropertyChanges {
+ target : root
+ backgroundColor: windowType == "desktop" ? GlobalTheme.kComponentAlphaClick : GlobalTheme.kComponentClick
+ }
}
+ ]
+
+ Icon {
+ id: closeIcon
+ anchors.centerIn: parent
+ width: parent.width / 2
+ height: parent.height / 2
+ source: "window-close-symbolic"
+ mode: parent.closeButtonContainMouse ? Icon.AutoHighlight
+ : windowType == "desktop" ? Icon.AutoHighlight : Icon.Highlight
}
- function setDefaultStatus() {
-
- setStatus("default")
- }
-
- function setHoverStatus() {
-
- setStatus("hover")
- }
-
- function setClickStatus() {
-
- setStatus("click")
- }
-
- function setId(wId) {
- wid = wId;
- }
-
- MouseArea{
+ MouseArea {
id : closeButtonMouseArea
anchors.fill : parent
hoverEnabled : true
+ preventStealing: true
onEntered: {
- closeButtonController.setHoverStatus()
+ root.state = "hover"
+ root.entered()
}
-
onExited: {
- closeButtonController.setDefaultStatus()
- if(!previewMouseArea.containsMouse)
- {
- previewWindow.setDefaultStatus()
- }
+ root.exited()
+ root.state = "default"
+ }
+ onPressed: {
+ root.state = "press"
+ root.pressed()
+ }
+ onReleased: {
+ root.state = containsMouse ? "hover" : "default"
}
-
onClicked: {
- closeButtonController.setClickStatus()
- controller.removePreviewWindow(wid);
+ root.clicked()
}
}
}
diff --git a/windowsview/qml/Controller.js b/windowsview/qml/Controller.js
index 723ddca2c709b9a4282f90ff90a01b4494d49acc..eb6db99c9cf35ad51cb52809b5182932ac62f86b 100644
--- a/windowsview/qml/Controller.js
+++ b/windowsview/qml/Controller.js
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
// 控制器基类
class Controller {
constructor(model, view, manager, acceptedTypeSet) {
@@ -72,9 +91,7 @@ class Controller {
onSourceDropped(source, srcDesktopIndex, destDesktopIndex) {
if (this.validateSource(source)) {
this.acceptSource(source, srcDesktopIndex, destDesktopIndex);
- }
- else
- {
+ } else {
this.rejectSource(source);
}
}
@@ -93,34 +110,133 @@ class AppController extends Controller {
// 删除预览窗口
removePreviewWindow(windowId) {
- if (this.model.hasModalChildWindow(windowId))
- {
+ if (this.model.hasModalChildWindow(windowId)) {
this.onWindowClicked(windowId);
- }
- else
- {
+ } else {
this.model.removeAppWindow(windowId);
}
}
- // 设置拖拽态
- setDragStatus() {
- this.view.setDragStatus();
+ // 自己被释放
+ onDropSource(source, srcDesktopIndex, destDesktopIndex) {
+ this.model.moveAppWindowToDesktop(source.wid, srcDesktopIndex, destDesktopIndex);
}
- // 自己进入目标
- onEnterTarget(srcDesktopIndex, destDesktopIndex) {
- this.view.onEnterDropArea();
- }
+ // Up与Down键的走焦目标
+ keyUpDownSelectWindow(keyStatus,windowPosInfoModel,currentTabIndex)
+ {
+ var currentRow = 0
+ var currentRowWindowNum = 0
+ var windowNum = 0
+
+ //计算当前获取键盘焦点的窗口位于第几行
+ for(var i = 0; i < windowPosInfoModel.count; i++) {
+ windowNum += windowPosInfoModel.get(i).rowWindowCount
+ if (currentTabIndex < windowNum) {
+ currentRow = i
+ currentRowWindowNum = windowPosInfoModel.get(i).rowWindowCount
+ break
+ }
+ }
- // 自己离开目标
- onExitTarget() {
- this.view.onExitDropArea();
+ //计算当前获取键盘焦点窗口的leftX rightX
+ var currentRowModel = windowPosInfoModel.get(currentRow).model
+ var currentIndexLeftX = 0
+ var currentIndexRightX = 0
+ for (var i = 0; i < currentRowWindowNum; i++) {
+ if (currentTabIndex === currentRowModel.get(i).index) {
+ currentIndexLeftX = currentRowModel.get(i).leftX
+ currentIndexRightX = currentRowModel.get(i).rightX
+ break
+ }
+ }
+
+ //判断应该跳转到上/下一行的哪个窗口
+ var lastRowModel
+ if (currentRow === 0 && keyStatus) {
+ lastRowModel = windowPosInfoModel.get(windowPosInfoModel.count - 1).model
+ } else if (currentRow === windowPosInfoModel.count - 1 && !keyStatus) {
+ lastRowModel = windowPosInfoModel.get(0).model
+ } else {
+ lastRowModel = keyStatus ? windowPosInfoModel.get(currentRow - 1).model
+ : windowPosInfoModel.get(currentRow + 1).model
+ }
+
+ var lastIndex = 0
+ var resultIndex = 0
+ var result = 0
+ for (var i = 0; i < lastRowModel.count; i++) {
+ var temp = 0
+ if (lastRowModel.get(i).rightX < currentIndexLeftX) {
+ lastIndex = i
+ continue;
+ }
+ if (lastRowModel.get(i).leftX > currentIndexRightX) {
+ break;
+ }
+ if (lastRowModel.get(i).leftX <= currentIndexLeftX) {
+ if (lastRowModel.get(i).rightX <= currentIndexRightX) {
+ temp = lastRowModel.get(i).rightX - currentIndexLeftX
+ } else {
+ temp = currentIndexRightX - currentIndexLeftX
+ }
+ } else {
+ if (lastRowModel.get(i).rightX <= currentIndexRightX) {
+ temp = lastRowModel.get(i).rightX - lastRowModel.get(i).leftX
+ } else {
+ temp = currentIndexRightX - lastRowModel.get(i).leftX
+ }
+ }
+
+ if (temp > result) {
+ result = temp;
+ lastIndex = i
+ }
+ }
+ resultIndex = lastRowModel.get(lastIndex).index
+ return resultIndex
}
- // 自己被释放
- onDropSource(source, srcDesktopIndex, destDesktopIndex) {
- this.model.moveAppWindowToDesktop(source.wid, srcDesktopIndex, destDesktopIndex);
+ // PageUp与PageDown键的走焦目标
+ keyPageUpDownSelectWindow(keyStatus,windowPosInfoModel,currentTabIndex)
+ {
+ var currentRow = 0
+ var lastRowWindowNum = 0
+ var currentRowWindowNum = 0
+ var windowNum = 0
+
+ for(var i = 0; i < windowPosInfoModel.count; i++)
+ {
+ windowNum += windowPosInfoModel.get(i).rowWindowCount
+ if (currentTabIndex < windowNum)
+ {
+ if (i === 0 && keyStatus)
+ {
+ return currentTabIndex
+ }
+ else if (i === windowPosInfoModel.count - 1 && !keyStatus)
+ {
+ return currentTabIndex
+ }
+ currentRow = i
+ currentRowWindowNum = windowPosInfoModel.get(i).rowWindowCount
+ lastRowWindowNum = keyStatus ? windowPosInfoModel.get(i - 1).rowWindowCount
+ : windowPosInfoModel.get(i + 1).rowWindowCount
+ break
+ }
+ }
+
+ //判断应该跳转到上一行的哪个窗口
+ if (keyStatus) {
+ var lastRowModel = windowPosInfoModel.get(currentRow - 1).model
+ var resultIndex = lastRowModel.get(0).index
+ return resultIndex
+ } else{
+ var lastRowModel = windowPosInfoModel.get(currentRow + 1).model
+ var resultIndex = lastRowModel.get(lastRowWindowNum - 1).index
+ return resultIndex
+ }
+
}
}
@@ -145,14 +261,8 @@ class DesktopController extends Controller {
this.model.setCurrentDesktop(this.view.wid);
}
- // 设置拖拽态
- setDragStatus() {
- this.view.setDragStatus();
- }
-
- // 设置拖拽接收态
- setReceiveStatus() {
- this.view.setReceiveStatus();
+ setCurrentDesktop(wid) {
+ this.model.setCurrentDesktop(wid);
}
// 自己进入目标
@@ -163,7 +273,6 @@ class DesktopController extends Controller {
// 来源进入自己
onSourceEntered(source, srcDesktopIndex, destDesktopIndex) {
- this.setReceiveStatus();
source.controller.onEnterTarget(srcDesktopIndex, destDesktopIndex);
}
@@ -195,17 +304,11 @@ class CreationController extends Controller {
this.model.appendDesktop();
}
- // 设置拖拽接收态
- setReceiveStatus() {
- this.view.setReceiveStatus();
- }
-
// 来源进入自己
onSourceEntered(source) {
if (!validateSource(source)) {
return;
}
- this.setReceiveStatus();
source.controller.onEnterTarget(srcDesktopIndex, destDesktopIndex);
}
@@ -214,7 +317,6 @@ class CreationController extends Controller {
if (!validateSource(source)) {
return;
}
- this.setDefaultStatus();
source.controller.onExitTarget();
}
diff --git a/windowsview/qml/DesktopArea.qml b/windowsview/qml/DesktopArea.qml
index b0f207ed48a2d9bb8de1d27e79ace73b6a2c9d68..eb894bb1733ae79400ad61396f873acd34e16527 100644
--- a/windowsview/qml/DesktopArea.qml
+++ b/windowsview/qml/DesktopArea.qml
@@ -1,300 +1,318 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
import QtQuick 2.12
-import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
import QtQuick.Window 2.12
-import org.kde.kwin 3.0 as KWinComponents
import QtGraphicalEffects 1.0
-import "Controller.js" as Controller
-import IconTheme 1.0
-
-Rectangle {
- id : desktopRect
- x : 0
- y : 0
- width : 100
- height : 100
- color : desktopAreaColor
-
- property ListModel desktopModel : null
- property var rootRect : null
- property var desktopAreaController : null
+import DesktopListModel 1.0
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+FocusScope {
+ id : root
//虚拟桌面的各个参数
- property double desktopScale : 16/135 //虚拟桌面缩放比
- property int desktopThumbnailWidth : rootRect.width * desktopScale //虚拟桌面缩略图高度
- property int desktopThumbnailHeight : rootRect.height * desktopScale //虚拟桌面缩略图宽度
- property int desktopCaptionHeight : 24 //虚拟桌面标题栏高度
- property int desktopBorderWidth : 4 //虚拟桌面边框宽度
- property int desktopRectWidth : desktopThumbnailWidth + 2 * desktopBorderWidth
-
-
- ListView {
- id : desktopListView
- y : desktopRect.height / 2 - desktopThumbnailHeight / 2 - 10
- width : parent.width
- height : desktopRect.height
- property bool initMultitask : true
- orientation : ListView.Horizontal
- model : listModel
- spacing : 24
- footerPositioning : ListView.InlineFooter
-
- NumberAnimation {
- id : desktopListViewLeftMarginAni
- target : desktopListView
- property : "leftMargin"
- duration : 400
- easing.type : Easing.InOutQuad
- }
-
- add : Transition {
- NumberAnimation {
- properties : "scale,opacity"
- from : 0
- to : 1
- duration : 400
- easing.type : Easing.InOutQuad
+ property bool desktopHoverStatus : false
+ //虚拟桌面标题栏高度
+ property int desktopCaptionHeight : Math.floor(32 * scaleFactor)
+ property int spacing : Math.floor(24 * scaleFactor)
+ property int desktopRectWidth : desktopThumbnailWidth + 2 * workspaceBorderWidth
+ property int desktopRectHeight : desktopRect.height
+ property int desktopMoveDistance : desktopRectWidth / 2
+
+ UkuiItem.DtThemeBackground {
+ id : desktopRect
+ anchors.fill : parent
+ useStyleTransparency : true
+ backgroundColor : UkuiPlatform.GlobalTheme.kContainGeneralNormal
+
+ MouseArea {
+ id : desktopMouseArea
+ anchors.fill : parent
+ hoverEnabled : true
+ onEntered: {
+ desktopHoverStatus = true
}
- }
-
- remove : Transition{
- ParallelAnimation{
- NumberAnimation {
- properties : "scale,opacity"
- from : 1
- to : 0
- duration : 400
- easing.type : Easing.InOutQuad
- }
+ onExited: {
+ desktopHoverStatus = false
}
- }
-
- removeDisplaced : Transition {
- NumberAnimation { properties : "x,y"; duration : 1000 }
- }
-
- move : Transition {
- NumberAnimation {
- property : "x"
- duration : 200
- easing.type : Easing.InOutQuad
+ onClicked: {
+ focus = true
}
- }
- moveDisplaced : Transition {
- NumberAnimation {
- property : "x"
- duration : 200
- easing.type : Easing.InOutQuad
- }
- }
- delegate : Rectangle {
- id : desktopListViewDelegate
- width : desktopThumbnailWidth + 2 * desktopBorderWidth
- height : desktopThumbnailHeight + desktopCaptionHeight + 2 * desktopBorderWidth
- color : "transparent"
- PreviewWindow{
- id : desktopDragRect
- width : desktopListViewDelegate.width
- height : desktopListViewDelegate.height
- dragAxis : Drag.XAxis
- previewAreaWidth : desktopThumbnailWidth + 2 * desktopBorderWidth
- previewAreaHeight : desktopThumbnailHeight + 2 * desktopBorderWidth
- iconVisble : false
- opacity : 1
- wid: value //工作区id会根据工作区的删除交换等操作改变,因此不使用函数赋值
- windowType : "desktop"
- controller : new Controller.DesktopController(multitaskViewModel, desktopDragRect, multitaskViewManager, ["app","desktop"]);
- captionText : "工作区 " + value //工作区名称会根据工作区的删除交换等操作改变,因此不使用函数赋值
- captionColor: desktopCaptionColor
- property var nowDragActive : false
-
- onWinowDragActiveChanged : {
- if(winowDragActive)
- {
- desktopMaskColor.visible = false
- opacity = 0.75
- }
- else
- {
- opacity = 1
- }
- if (winowDragActive !== nowDragActive) {
- nowDragActive = winowDragActive
- }
+ onWheel: {
+ if (!hScrollBar.visible) {
+ return;
+ }
+ // 鼠标滚轮操作滚动条
+ if (wheel.angleDelta.y > 0) {
+ hScrollBar.decrease();
+ } else if (wheel.angleDelta.y < 0) {
+ hScrollBar.increase();
}
+ }
- onNowDragActiveChanged : {
- if(!desktopDragRect.winowDragActive) {
- desktopDragRect.posX = 0
- desktopDragRect.posY = 0
- desktopAreaController.onSourceDropped(desktopDragRect,allroot.highlightDesktop,allroot.highlightDesktop)
+ Keys.onPressed: {
+ if (event.key === Qt.Key_Tab) {
+ if (appAreaModel.rowCount() !== 0) {
+ return
}
+ // 强制转移焦点
+ desktopListView.forceActiveFocus()
+ desktopListView.currentIndex = desktopListView.count - 1
+ multitaskViewManager.setShouldShowTabBorder(true)
+ event.accepted = true
}
+ }
- states : [
- State {
- name : "default"
- PropertyChanges { target : desktopDragRect; borderWidth : allroot.highlightDesktop == value? 4 : 0 }
- PropertyChanges { target : desktopDragRect; closeButtonVisble : false }
- },
+ ListView {
+ id : desktopListView
+ anchors.fill : parent
+ property bool initMultitask : true
+ orientation : ListView.Horizontal
+ layoutDirection: isLayoutLeftToRight ? Qt.LeftToRight : Qt.RightToLeft
+ property int contentXoffset : isLayoutLeftToRight ? 0 : contentWidth
+ model : desktopListModel
+ spacing : root.spacing
+ activeFocusOnTab: false
+ clip : true
+ keyNavigationEnabled: true
+ interactive: true
+
+ UkuiItem.DtThemeScrollBar.horizontal: UkuiItem.DtThemeScrollBar {
+ id: hScrollBar
+ Accessible.role: Accessible.ScrollBar
+ Accessible.name: "desktoparea-horizontal-scrollbar"
+ Accessible.description: "a scroll bar, which allows the user to scroll the visible area"
+ policy: UkuiItem.DtThemeScrollBar.AsNeeded
+ visual: parent.contentWidth > parent.width
+ }
- State {
- name : "hover"
- PropertyChanges { target : desktopDragRect; borderWidth : 4 }
- PropertyChanges { target : desktopDragRect; closeButtonVisble : true }
+ onActiveFocusChanged: {
+ if (desktopListView.activeFocus) {
+ currentIndex = 0
}
- ]
- Rectangle {
- id: workspace
- anchors.horizontalCenter : desktopDragRect.horizontalCenter
- x : desktopBorderWidth
- y : desktopCaptionHeight+desktopBorderWidth+1
- width : desktopThumbnailWidth
- height : desktopThumbnailHeight
- color : Qt.rgba(255,255,255, 0.5)
- clip :true
- visible: true
- layer.enabled : multitaskViewManager.useOpenGL() ? true : false
- layer.effect : OpacityMask{
- maskSource : Rectangle{
- width : desktopThumbnailWidth
- height : desktopThumbnailHeight
- radius : 8
- }
- }
+ // interactive == false,透传鼠标事件,使desktopMouseArea clicked事件得以触发,退出工作区名称编辑状态
+ // interactive == true,截获鼠标事件,ListView交互生效
+ interactive = !activeFocus
+ }
- KWinComponents.DesktopBackground {
- id : desktopThumbnailBackground
- anchors.centerIn : parent
- width : desktopThumbnailWidth
- height : desktopThumbnailHeight
- blurAlpha : 0
+ Keys.onPressed: {
+ if (rootWindow.isWlcom) {
+ multitaskViewManager.keyNavigationDataCollect(event.key)
}
- DropArea {
- id : previewDropArea
- anchors.fill : parent
-
- onEntered : {
- desktopMaskColor.visible = true
- desktopDragRect.controller.onSourceEntered(drag.source,drag.source.wid,desktopDragRect.wid);
+ if (event.key === Qt.Key_PageUp || event.key === Qt.Key_Home) {
+ if (currentIndex === 0) {
+ return
}
-
- onExited : {
- desktopMaskColor.visible = false
+ currentIndex = 0
+ if (isLayoutLeftToRight && desktopListView.contentX > 0) {
+ contentMoveAnimation.to = 0
+ contentMoveAnimation.start()
+ } else if (!isLayoutLeftToRight && desktopListView.contentX + desktopListView.width < 0) {
+ contentMoveAnimation.to = - desktopListView.width
+ contentMoveAnimation.start()
}
-
- onDropped : {
- desktopMaskColor.visible = false
- desktopDragRect.controller.onSourceDropped(drop.source,allroot.highlightDesktop,desktopDragRect.wid);
- root.updateListModel()
+ } else if (event.key === Qt.Key_PageDown || event.key === Qt.Key_End) {
+ if (currentIndex === desktopListModel.rowCount() - 2) {
+ return
}
- }
-
- Repeater {
- id : desktopWindowRepeater
- model : listModel.get(index).model
-
- KWinComponents.WindowThumbnailItem {
- id : desktopWindowThumbnail
- width : model.width * desktopScale
- height : model.height * desktopScale
- visible : !(model.minimized)
- x : (model.x - screenRect.x) * desktopScale
- y : (model.y - screenRect.y) * desktopScale
- wId : model.uuid
- clip : true
+ currentIndex = desktopListModel.rowCount() - 2
+ if (isLayoutLeftToRight && desktopListView.contentX < desktopListView.contentWidth - desktopListView.width) {
+ contentMoveAnimation.to = desktopListView.contentWidth - desktopListView.width
+ contentMoveAnimation.start()
+ } else if (!isLayoutLeftToRight && desktopListView.contentX + desktopListView.contentWidth > 0) {
+ contentMoveAnimation.to = - desktopListView.contentWidth
+ contentMoveAnimation.start()
}
+ } else if (event.key === Qt.Key_Left && currentIndex === 0) {
+ // 当焦点在第一个工作区,不响应左键;在其他工作区则正常响应左键
+ return
}
- Rectangle {
- id : desktopMaskColor
- visible : false
- anchors.fill: parent
- color : desktopMaskReceiveColor
+ if (event.key === Qt.Key_Tab || event.key === Qt.Key_Left ||
+ event.key === Qt.Key_Right || event.key === Qt.Key_Home ||
+ event.key === Qt.Key_End || event.key === Qt.Key_PageUp ||
+ event.key === Qt.Key_PageDown) {
+ multitaskViewManager.setShouldShowTabBorder(true);
+ event.accepted = false;
}
}
- }
- }
- onCountChanged : {
- if (initMultitask) {
- if (count === listModel.count) {
- initMultitask = false;
+ //这里实现了虚拟桌面listview的居中
+ NumberAnimation {
+ id : desktopListViewLeftMarginAni
+ target : desktopListView
+ property : isLayoutLeftToRight ? "leftMargin" : "rightMargin"
+ duration : 300
+ easing.type : Easing.InOutQuad
}
- return;
- }
- var newWidth = desktopRectWidth * (count + 1) + desktopListView.spacing * (count)
- desktopListViewLeftMarginAni.to = (parent.width - newWidth) / 2 < 0 ? 0 : (parent.width - newWidth) / 2
- desktopListViewLeftMarginAni.start()
- }
-
- footer : Item {
- id : newDesktopButton
- width : desktopThumbnailWidth + 2 * desktopBorderWidth + 24
- height : desktopThumbnailHeight + desktopCaptionHeight + 2 * desktopBorderWidth
- visible : desktopListView.count < 16 ? true : false
+ populate: Transition {
+ NumberAnimation {
+ properties : "scale,opacity"
+ from : 0
+ to : 1
+ duration : 300
+ easing.type : Easing.InOutQuad
+ }
+ }
- PreviewWindow {
- id : spacingRect
- anchors.fill : parent
- anchors.leftMargin : 24
- previewAreaHeight : desktopThumbnailHeight+ 2 * desktopBorderWidth
- previewAreaWidth :desktopThumbnailWidth+ 2 * desktopBorderWidth
- captionColor: desktopCaptionColor
- iconVisble : false
- windowType : "creation"
- controller : new Controller.CreationController(multitaskViewModel, spacingRect, multitaskViewManager, ["app"]);
+ add : Transition {
+ NumberAnimation {
+ properties : "scale,opacity"
+ from : 0
+ to : 1
+ duration : 400
+ easing.type : Easing.InOutQuad
+ }
+ }
+ remove : Transition {
+ NumberAnimation {
+ properties : "scale,opacity"
+ from : 1
+ to : 0
+ duration : 400
+ easing.type : Easing.InOutQuad
+ }
+ }
+ removeDisplaced : Transition {
+ NumberAnimation {
+ properties : "x,y"
+ duration : 400
+ }
+ }
- DropArea {
- id : newDesktopDropArea
- anchors.fill : parent
+ move : Transition {
+ NumberAnimation {
+ property : "x"
+ duration : 200
+ easing.type : Easing.InOutQuad
+ }
+ }
+ moveDisplaced : Transition {
+ NumberAnimation {
+ property : "x"
+ duration : 200
+ easing.type : Easing.InOutQuad
+ }
+ }
- onEntered : {
- createDesktopButton.color = createDesktopButtonReceiveColor
+ onCountChanged : {
+ if (initMultitask || count <= 0) {
+ if (count === desktopListModel.rowCount()) {
+ initMultitask = false;
+ }
+ return;
}
- onExited : {
- createDesktopButton.color = createDesktopButtonDefaultColor
+ var newWidth = desktopRectWidth * count + desktopListView.spacing * (count - 1)
+ desktopListViewLeftMarginAni.to = (rootWindow.width - newWidth) / 2 < 0 ? 0 : (rootWindow.width - newWidth) / 2
+ desktopListViewLeftMarginAni.start()
+ }
+
+ Connections {
+ target: rootWindow.isWlcom ? multitaskViewManager : null
+ function onDesktopDataUpdated() {
+ desktopListView.model = {}
+ desktopListView.model = desktopListModel
}
+ }
- onDropped : {
- spacingRect.controller.onSourceDropped(drop.source,allroot.highlightDesktop,listModel.count+1);
- root.updateListModel()
+ function getWorkspaceItemOrNewWorkspaceItem(type) {
+ if(type === "newDesktop") {
+ return "NewDesktopButton.qml"
}
+ return "VirtualDesktopWindow.qml"
}
- Rectangle {
- id : createDesktopButton
- width : desktopThumbnailWidth
- height : desktopThumbnailHeight
- x : desktopBorderWidth
- y : desktopCaptionHeight+desktopBorderWidth
- radius : 8
- color : createDesktopButtonDefaultColor
+ NumberAnimation {
+ id : moveToScrollEndAnimation
+ target : desktopListView
+ property : "contentX"
+ from : desktopListView.contentX
+ to : isLayoutLeftToRight ? desktopListView.contentWidth + desktopRectWidth + root.spacing - desktopListView.width :
+ - desktopListView.contentWidth - desktopRectWidth - root.spacing
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
- Rectangle {
- anchors.centerIn : parent
- color : desktopCaptionColor
- width : newDesktopButton.height / 4
- height : newDesktopButton.height / 100
+ function moveToScrollEnd() {
+ if (desktopListView.contentWidth + desktopRectWidth + root.spacing > desktopListView.width
+ && desktopListView.count < 16) {
+ moveToScrollEndAnimation.restart()
}
+ }
- Rectangle {
- anchors.centerIn : parent
- color : desktopCaptionColor
- width : newDesktopButton.height / 100
- height : newDesktopButton.height / 4
+ Connections {
+ target: desktopListModel
+ function onDesktopAppended(desktopIndex) {
+ desktopListView.moveToScrollEnd(desktopIndex)
}
}
- Component.onCompleted : {
- spacingRect.setCaption("新建工作区")
- spacingRect.setId(0)
+ delegate: Loader {
+ source : desktopListView.getWorkspaceItemOrNewWorkspaceItem(model.ItemType)
+ onLoaded: {
+ if ("customName" in item) {
+ item.customName = model.CustomName
+ }
+ }
+ Connections {
+ target: item
+ function onCustomNameChanged() {
+ if (model.CustomName !== item.customName) {
+ desktopListModel.setData(desktopListModel.index(index, 0),
+ item.customName,
+ DesktopListModel.CustomName)
+ }
+ }
+ }
}
+ } // desktopListView
+
+ NumberAnimation {
+ id : contentMoveAnimation
+ target : desktopListView
+ property : "contentX"
+ from : desktopListView.contentX
+ duration : 300
+ easing.type : Easing.InOutQuart
}
- } // footer : newdesktopButton
- } // desktopListView
+
+ ArrowButton {
+ id : leftButton
+ visible : desktopHoverStatus && desktopListView.contentX + desktopListView.contentXoffset > 0
+ x : Math.floor(48 * scaleFactor)
+ y : (parent.height-leftButton.height)/2
+ direction: "left"
+ }
+
+ ArrowButton {
+ id : rightButton
+ visible : desktopHoverStatus && desktopListView.contentX + desktopListView.contentXoffset < desktopListView.contentWidth-desktopListView.width
+ x : parent.width - Math.floor(48 * scaleFactor) - rightButton.width
+ y : (parent.height-rightButton.height)/2
+ direction: "right"
+ }
+ }
+ }
}
diff --git a/windowsview/qml/LineEdit.qml b/windowsview/qml/LineEdit.qml
new file mode 100644
index 0000000000000000000000000000000000000000..c01a143e065ad2d8e02f45e4adcd2dfa1565e6f6
--- /dev/null
+++ b/windowsview/qml/LineEdit.qml
@@ -0,0 +1,129 @@
+/*
+* Copyright (C) 2024, KylinSoft Co., Ltd.
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see .
+*
+* Authors: zy-yuan1
+*
+*/
+
+import QtQuick 2.15
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+UkuiItem.DtThemeBackground {
+ id: rootItem
+ property bool editable: false
+ property bool enableLayoutMirroring: false
+ property string defaultText: ""
+ property string itemDisplayText: defaultText
+ property int contentTextWidth: textDisplay.contentWidth
+ property bool isDefaultText : false
+
+ signal textEditingFinished()
+
+ implicitWidth: 100
+ implicitHeight: 32
+ color: "transparent"
+ borderColor: editable ? UkuiPlatform.GlobalTheme.kBrandNormal : UkuiPlatform.GlobalTheme.kGrayAlpha0
+ border.width : 2
+ radius: 4
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "edit-text-" + itemDisplayText
+ Accessible.description: "push-button, click to modify the text"
+
+ MouseArea {
+ id: rootMouseArea
+ anchors.fill: parent
+ hoverEnabled: true
+ preventStealing: true
+ cursorShape: editable ? Qt.IBeamCursor : Qt.ArrowCursor
+ onClicked: {
+ if (!editable) {
+ // 点击进入编辑状态
+ editable = true;
+ }
+ }
+ }
+
+ onEditableChanged: {
+ if (editable) {
+ // 单击进入textInput可输入状态,需要将焦点强制转移给textInput
+ textInput.forceActiveFocus();
+ textInput.selectAll();
+ }
+
+ // 更新Text显示文本
+ updateItemDisplayText();
+ textInput.text = itemDisplayText
+ }
+
+ TextInput {
+ id: textInput
+ anchors.fill: parent
+ anchors.centerIn : parent
+ anchors.leftMargin : 4
+ anchors.rightMargin : 4
+ horizontalAlignment: TextInput.AlignLeft
+ verticalAlignment: TextInput.AlignVCenter
+ LayoutMirroring.enabled: enableLayoutMirroring
+
+ clip: true
+ maximumLength : 32
+ focus: true
+ selectByMouse: true
+ color: UkuiPlatform.GlobalTheme.kFontPrimary.pureColor
+ selectionColor: UkuiPlatform.GlobalTheme.kBrandNormal.pureColor
+ visible: editable
+
+ text: itemDisplayText
+
+ onEditingFinished: {
+ editable = false;
+ textEditingFinished()
+ }
+
+ Keys.priority: Keys.AfterItem
+ Keys.onPressed: {
+ event.accepted = true
+ }
+ }
+
+ UkuiItem.DtThemeText {
+ id: textDisplay
+ anchors.fill: parent
+ anchors.centerIn: parent
+ horizontalAlignment: Text.AlignLeft
+ LayoutMirroring.enabled: enableLayoutMirroring
+ verticalAlignment: Text.AlignVCenter
+
+ text: itemDisplayText
+ elide: enableLayoutMirroring ? Text.ElideLeft : Text.ElideRight
+ visible: !editable
+
+ UkuiItem.Tooltip {
+ anchors.fill: parent
+ mainText: textDisplay.text
+ posFollowCursor: true
+ active: !editable && textDisplay.truncated
+ }
+ }
+
+ function updateItemDisplayText() {
+ itemDisplayText = textInput.length > 0 ? textInput.displayText : rootItem.defaultText
+ isDefaultText = textInput.length > 0 ? false : true
+ }
+}
diff --git a/windowsview/qml/MasterDesktopArea.qml b/windowsview/qml/MasterDesktopArea.qml
new file mode 100644
index 0000000000000000000000000000000000000000..bb36242356cc58eabcb969bbd9782ab110bbe971
--- /dev/null
+++ b/windowsview/qml/MasterDesktopArea.qml
@@ -0,0 +1,211 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/*
+ 虚拟桌面的UI和功能的处理,也是加载创建预览窗口
+ 虚拟桌面区域的窗口和窗口区域的窗口都来自一个"类”
+*/
+import QtQuick 2.12
+import QtQuick.Controls 2.5
+import QtQuick.Layouts 1.3
+import QtQuick.Window 2.12
+import QtGraphicalEffects 1.0
+
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+FocusScope {
+ id : root
+ //虚拟桌面的各个参数
+ property bool desktopHoverStatus : false
+ //虚拟桌面标题栏高度
+ property int desktopCaptionHeight : Math.floor(32 * scaleFactor)
+ property int spacing : Math.floor(24 * scaleFactor)
+ property int desktopRectWidth : desktopRect.height
+ property int desktopRectHeight : desktopThumbnailHeight + 2 * workspaceBorderWidth + spacingWidth + desktopCaptionHeight
+ property int listviewTopMargin : Math.floor(24 * scaleFactor)
+
+ UkuiItem.DtThemeBackground {
+ id : desktopRect
+ anchors.fill : parent
+ useStyleTransparency : true
+ backgroundColor : UkuiPlatform.GlobalTheme.kContainGeneralNormal
+
+ MouseArea {
+ id : desktopMouseArea
+ anchors.fill : parent
+ hoverEnabled : true
+ onEntered: {
+ desktopHoverStatus = true
+ }
+ onExited: {
+ desktopHoverStatus = false
+ }
+
+ ListView {
+ id : desktopListView
+ anchors.fill : parent
+ anchors.topMargin : root.listviewTopMargin
+ property bool initMultitask : true
+ orientation : ListView.Vertical
+ model : desktopListModel
+ spacing : root.spacing
+ activeFocusOnTab: false
+ clip : true
+ onActiveFocusChanged: {
+ if (desktopListView.activeFocus) {
+ currentIndex = 0
+ }
+ }
+
+ Keys.onPressed: {
+ if (event.key === Qt.Key_PageUp || event.key === Qt.Key_Home) {
+ if (currentIndex === 0) {
+ return
+ }
+ currentIndex = 0
+ if (desktopListView.contentY > 0){
+ contentMoveAnimation.to = 0
+ contentMoveAnimation.start()
+ }
+ } else if (event.key === Qt.Key_PageDown || event.key === Qt.Key_End) {
+ if (currentIndex === desktopListModel.rowCount() - 2) {
+ return
+ }
+ currentIndex = desktopListModel.rowCount() - 2
+ if (desktopListView.contentY < desktopListView.contentHeight - desktopListView.height) {
+ contentMoveAnimation.to = desktopListView.contentHeight - desktopListView.height
+ contentMoveAnimation.start()
+ }
+ }
+ }
+
+ ScrollBar.vertical: ScrollBar {
+ id : deskVbar
+ hoverEnabled : true
+ active : hovered || pressed
+
+ //定义样式
+ contentItem : Rectangle {
+ implicitWidth : Math.floor(8 * scaleFactor)
+ radius : Math.floor(4 * scaleFactor)
+ visible : desktopHoverStatus && desktopListView.contentHeight > desktopListView.height
+ color : deskVbar.hovered || deskVbar.pressed ? UkuiPlatform.GlobalTheme.kComponentAlphaHover : UkuiPlatform.GlobalTheme.kComponentAlphaNormal
+ }
+ }
+
+ populate: Transition {
+ NumberAnimation {
+ properties : "scale,opacity"
+ from : 0
+ to : 1
+ duration : 400
+ easing.type : Easing.InOutQuad
+ }
+ }
+
+ add : Transition {
+ NumberAnimation {
+ properties : "scale,opacity"
+ from : 0
+ to : 1
+ duration : 300
+ easing.type : Easing.InOutQuad
+ }
+ }
+ remove : Transition {
+ NumberAnimation {
+ properties : "scale,opacity"
+ from : 1
+ to : 0
+ duration : 300
+ easing.type : Easing.InOutQuad
+ }
+ }
+ removeDisplaced : Transition {
+ NumberAnimation {
+ properties : "x,y"
+ duration : 300
+ }
+ }
+
+ move : Transition {
+ NumberAnimation {
+ property : "y"
+ duration : 200
+ easing.type : Easing.InOutQuad
+ }
+ }
+ moveDisplaced : Transition {
+ NumberAnimation {
+ property : "y"
+ duration : 200
+ easing.type : Easing.InOutQuad
+ }
+ }
+
+ function getWorkspaceItemOrNewWorkspaceItem(type) {
+ if(type === "newDesktop") {
+ return "NewDesktopButton.qml"
+ }
+ return "VirtualDesktopWindow.qml"
+ }
+
+ NumberAnimation {
+ id : moveToScrollEndAnimation
+ target : desktopListView
+ property : "contentY"
+ from : desktopListView.contentY
+ to : desktopListView.contentHeight + desktopRectHeight + root.spacing - desktopListView.height
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+
+ function moveToScrollEnd() {
+ if (desktopListView.contentHeight + desktopRectHeight + root.spacing > desktopListView.height
+ && desktopListView.count < 16) {
+ moveToScrollEndAnimation.restart()
+ }
+ }
+
+ Connections {
+ target: desktopListModel
+ function onDesktopAppended(desktopIndex) {
+ desktopListView.moveToScrollEnd(desktopIndex)
+ }
+ }
+
+ delegate: Loader {
+ source : desktopListView.getWorkspaceItemOrNewWorkspaceItem(model.ItemType)
+ }
+ } // desktopListView
+ }
+
+ NumberAnimation {
+ id : contentMoveAnimation
+ target : desktopListView
+ property : "contentY"
+ from : desktopListView.contentY
+ to : desktopListView.contentY
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+ }
+}
diff --git a/windowsview/qml/MultitaskView.qml b/windowsview/qml/MultitaskView.qml
new file mode 100644
index 0000000000000000000000000000000000000000..acefa7e38b0ce69b5d2b5cfd49a959effa27c087
--- /dev/null
+++ b/windowsview/qml/MultitaskView.qml
@@ -0,0 +1,171 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import QtQuick 2.12
+import QtQuick.Layouts 1.3
+import QtQuick.Window 2.12
+import org.kylin.background 3.0 as KWin
+import QtGraphicalEffects 1.0
+//ukui-quick
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+import AppWindowFilterModel 1.0
+
+Repeater {
+ id : allroot
+ model : screencnt
+ focus: true
+ Keys.enabled: true
+ property int screencnt : multitaskViewModel.logicalScreenCount
+
+ Rectangle {
+ id : rootWindow
+ visible: allroot.visible
+ x : rootWindow.screenRect.x
+ y : rootWindow.screenRect.y
+ width : rootWindow.screenRect.width
+ height : rootWindow.screenRect.height
+ property var isWlcom : multitaskViewManager.isWlcom()
+ property var isVerticalLayout : multitaskViewManager.isMultitaskViewVerticalLayout()
+ property int highlightDesktop : multitaskViewModel.highlightDesktop
+ property var screenRect : multitaskViewModel.screenRectList[index] //getFullScreenGeometry(highlightDesktop, index)
+ property var scaleFactor : devicePixelRatio
+ property bool isTouchState : multitaskViewModel.isTouchState
+ // focus border color
+ property var hoverBorderColor : UkuiPlatform.GlobalTheme.kWhite
+ property var tabFocusBorderColor : UkuiPlatform.GlobalTheme.kBrandNormal
+ property var defaultBorderColor : UkuiPlatform.GlobalTheme.kGrayAlpha0
+ // focus border width
+ property int iconAndCloseButtonHeight : 32 * scaleFactor
+ property int appBorderWidth : 4 * scaleFactor
+ property int workspaceBorderWidth : 3 * scaleFactor
+ property int spacingWidth : 2 * scaleFactor
+ property int thumbRectangleHeight : isVerticalLayout ? Math.floor(screenRect.height * 5 / 22) : Math.floor(screenRect.height * 5 / 23)
+ // 工作区窗口缩放比
+ property double desktopScale : isVerticalLayout ? 16 / 135 : 57 / 480
+ // 工作区窗口的高度和宽度
+ property int desktopThumbnailWidth : screenRect.width * desktopScale
+ property int desktopThumbnailHeight : screenRect.height * desktopScale
+ //水平布局方向
+ property bool isLayoutLeftToRight: multitaskViewManager.isLayoutLeftToRight()
+
+ KWin.DesktopBackground {
+ id : wholeDesktopBackground
+ width : rootWindow.width
+ height : rootWindow.height
+ blurAlpha : 0.7
+ }
+
+ Connections {
+ target: rootWindow.isWlcom ? multitaskViewManager : null
+ function onBackgroundChanged() {
+ wholeDesktopBackground.update()
+ }
+ }
+
+ FocusScope {
+ id: mainView
+ anchors.fill: parent
+ focus: true
+ width: parent.width
+ height: parent.height
+ property var screenIndex : index
+
+ Keys.onPressed: {
+ if (event.key === Qt.Key_Escape) {
+ multitaskViewManager.close()
+ }
+ }
+
+ AppWindowFilterModel {
+ id: appAreaModel
+ desktopId: rootWindow.highlightDesktop
+ screenId: mainView.screenIndex
+ sourceModel: appWindowListModel
+ }
+
+ Loader {
+ id: viewLoader
+ sourceComponent: isVerticalLayout ? verticalLayoutView : horizontalLayoutView
+ anchors.fill: parent
+ }
+
+ Component {
+ id: verticalLayoutView
+ Rectangle {
+ color: "transparent"
+ AppArea {
+ id : appArea1
+ anchors.left : parent.left
+ anchors.right : parent.right
+ anchors.top : parent.top
+ height : Math.floor(mainView.height * 111 / 135)
+ width: parent.width
+
+ Component.onCompleted : {
+ console.log("AppArea end! ! !")
+ }
+ }
+ DesktopArea {
+ id : desktopArea1
+ anchors.left : parent.left
+ anchors.right : parent.right
+ anchors.top : appArea1.bottom
+ anchors.bottom : parent.bottom
+ }
+
+ Component.onCompleted : {
+ console.log("verticalLayoutView end! ! !")
+ }
+ }
+ }
+
+ Component {
+ id: horizontalLayoutView
+ Rectangle {
+ color: "transparent"
+ AppArea {
+ id : appArea2
+ anchors.left : parent.left
+ anchors.bottom : parent.bottom
+ anchors.top : parent.top
+ height: parent.height
+ width : Math.floor(mainView.width * 410 / 480)
+
+ Component.onCompleted : {
+ console.log("MasterAppArea end! ! !")
+ }
+ }
+
+ MasterDesktopArea {
+ id : desktopArea2
+ anchors.left : appArea2.right
+ anchors.right : parent.right
+ anchors.top : parent.top
+ anchors.bottom : parent.bottom
+ }
+
+ Component.onCompleted : {
+ console.log("horizontalLayoutView end! ! !")
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/windowsview/qml/NewDesktopButton.qml b/windowsview/qml/NewDesktopButton.qml
new file mode 100644
index 0000000000000000000000000000000000000000..a82db473afa97f6efe808b5c0148bc9765c3c0f3
--- /dev/null
+++ b/windowsview/qml/NewDesktopButton.qml
@@ -0,0 +1,167 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import QtQuick 2.12
+import QtQuick.Layouts 1.3
+import QtQuick.Window 2.12
+import QtGraphicalEffects 1.0
+import "Controller.js" as Controller
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+Item {
+ id : root
+ width : isVerticalLayout ? desktopRectWidth : desktopRect.width
+ height : isVerticalLayout ? desktopRect.height - 8 : desktopRectHeight
+ activeFocusOnTab: true
+ focus : true
+ property string windowType : "creation"
+ property var newWorkspaceController : new Controller.CreationController(multitaskViewModel, root, multitaskViewManager, ["app","desktop"]);
+ // 用户自定义工作区名称
+ property string customName: ""
+
+ onActiveFocusChanged: {
+ if (root.activeFocus) {
+ desktopListView.currentIndex = desktopListView.count - 1
+ if (isVerticalLayout && desktopListView.contentX + desktopListView.contentXoffset < desktopListView.contentWidth - desktopListView.width) {
+ contentMoveAnimation.to = isLayoutLeftToRight ? desktopListView.contentWidth - desktopListView.width : -desktopListView.contentWidth
+ contentMoveAnimation.start()
+ }
+ if (!isVerticalLayout && desktopListView.contentY < desktopListView.contentHeight - desktopListView.height) {
+ contentMoveAnimation.to = desktopListView.contentHeight + listviewTopMargin - desktopListView.height
+ contentMoveAnimation.start()
+ }
+ multitaskViewManager.activeAreaChangeDataCollect("New Workspace Button Area")
+ }
+ }
+
+ Keys.onPressed: {
+ if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter || event.key === Qt.Key_Space)
+ {
+ newWorkspaceController.onWindowClicked()
+ event.accepted = true
+ } else if (event.key === Qt.Key_Escape) {
+ newWorkspaceController.closeMultitaskView()
+ } else if (event.modifiers & Qt.MetaModifier) {
+ if (event.key === Qt.Key_Tab) {
+ newWorkspaceController.closeMultitaskView()
+ }
+ } else if (event.key === Qt.Key_Tab) {
+ if (appAreaModel.rowCount() === 0) {
+ desktopListView.currentIndex = 0
+ multitaskViewManager.setShouldShowTabBorder(true)
+ }
+ }
+ }
+
+ states: State {
+ name: "active"
+ when: root.activeFocus && (multitaskViewManager.shouldShowTabBorder)
+ PropertyChanges { target: createDesktopButtonBorder; borderColor : tabFocusBorderColor}
+ }
+
+ Item {
+ anchors.fill: parent
+ anchors.centerIn : parent
+
+ MouseArea {
+ id : previewMouseArea
+ anchors.fill : parent
+ preventStealing : true
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "new-desktop"
+ Accessible.description: "push-button, click to create a new desktop"
+
+ onClicked : {
+ newWorkspaceController.onWindowClicked()
+ }
+ }
+
+ ColumnLayout {
+ id : mainVerticalLayout
+ anchors.fill: parent
+ anchors.centerIn : parent
+ spacing : spacingWidth
+
+ UkuiItem.DtThemeText {
+ id : caption
+ verticalAlignment: Qt.AlignVCenter
+ horizontalAlignment: isLayoutLeftToRight ? Qt.AlignLeft : Qt.AlignRight
+ elide : isLayoutLeftToRight ? Text.ElideRight : Text.ElideLeft
+ Layout.fillWidth : true
+ Layout.fillHeight : true
+ Layout.preferredHeight: desktopCaptionHeight
+ Layout.maximumHeight: root.height - mainVerticalLayout.spacing - createDesktopButtonBorder.height
+ Layout.leftMargin : workspaceBorderWidth
+ text : qsTr("New Desktop")
+
+ UkuiItem.Tooltip {
+ anchors.fill: parent
+ mainText: caption.text
+ posFollowCursor: true
+ active: caption.truncated
+ }
+
+ MouseArea {
+ id: captionArea
+ anchors.fill: parent
+ hoverEnabled: true
+ }
+ }
+
+ UkuiItem.DtThemeBackground {
+ id : createDesktopButtonBorder
+ Layout.fillWidth: true
+ Layout.fillHeight: false
+ Layout.preferredHeight: desktopThumbnailHeight + 2 * border.width
+ color : "transparent"
+ border.width : workspaceBorderWidth
+ borderColor : defaultBorderColor
+ radius : UkuiPlatform.GlobalTheme.kRadiusWindow * scaleFactor
+
+ UkuiItem.DtThemeBackground {
+ id : createDesktopButton
+ width : desktopThumbnailWidth
+ height : desktopThumbnailHeight
+ anchors.centerIn : parent
+ radius : UkuiPlatform.GlobalTheme.kRadiusMenu * scaleFactor
+ backgroundColor : newDesktopDropArea.containsDrag ? UkuiPlatform.GlobalTheme.kGrayAlpha9 : UkuiPlatform.GlobalTheme.kModalMask
+
+ UkuiItem.Icon {
+ anchors.centerIn: parent
+ width: Math.floor(32 * scaleFactor)
+ height: width
+ source: "list-add-symbolic"
+ mode: UkuiItem.Icon.AutoHighlight
+ }
+
+ DropArea {
+ id : newDesktopDropArea
+ anchors.fill : parent
+ onDropped : {
+ newWorkspaceController.onSourceDropped(drop.source, rootWindow.highlightDesktop, desktopListView.count);
+ }
+ }
+ }
+ }
+ }//culumnLayout
+ }
+}
diff --git a/windowsview/qml/PreviewWindow.qml b/windowsview/qml/PreviewWindow.qml
deleted file mode 100644
index b7cc297b673f4c53a77b32f32df4d57dfe72e5b8..0000000000000000000000000000000000000000
--- a/windowsview/qml/PreviewWindow.qml
+++ /dev/null
@@ -1,264 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import "Controller.js" as Controller
-import IconTheme 1.0
-
-Rectangle {
- id : previewWindow
- width : 100
- height : 150
- color : "transparent"
-
- /** windowType is the type of PreviewWindow,
- * the options are : none, app, desktop, creation.
- * Default to none.
- */
- property string windowType : "none"
-
- /** stateList is the list of state,
- * the options are : default, hover, drag, receive.
- * Default to default.
- */
- property var stateList : ["default", "hover", "drag", "receive"];
- state : "default"
- property string wid : "";
- property int previewAreaWidth : 100
- property int previewAreaHeight : 150
- property real posX : 0
- property real posY : 0
- property double closeButtonSize : 24
- property bool closeButtonVisble : false
- property double titleOpacity : 1
- property var iconVisble : true
- property var controller : null
- property real borderWidth : 0
- property var dragAxis : Drag.XAndYAxis
- property var captionText : ""
- property var captionColor : Qt.rgba(255,255,255,1)
- property bool winowDragActive : previewMouseArea.drag.active
- property bool nowDragActive : false
- property bool onTop: false
- property ListModel premodel : null
- Drag.active : previewMouseArea.drag.active
- Drag.source : previewWindow
- Drag.hotSpot.x : previewWindow.previewAreaWidth
- Drag.hotSpot.y : previewWindow.previewAreaHeight
-
- onWinowDragActiveChanged : {
- if(winowDragActive !== nowDragActive){
- nowDragActive = winowDragActive
- }
- }
-
- NumberAnimation on x{
- id : movePreX
- duration : 500
- running : false
- }
-
- NumberAnimation on y{
- id : movePreY
- duration : 500
- running : false
- }
-
- function setStatus(status) {
- if(stateList.indexOf(status) < 0)
- {
- return;
- }
- if (status === state) {
- return
- } else {
- state = status;
- }
- }
-
- function setCaption(titleText) {
- caption.text = titleText;
- }
-
- function setId(wId) {
- wid = wId;
- /*此处加载关闭按钮的id的原因如下
- * 1.此类被虚拟桌面和预览窗口,同时复用;
- * 2.父子组件的onCompleted{},子类先触发,然后才是父类
- * 3.如果在Component.onCompleted{}中,给closebutton赋id时,只有model.id不为空,其他均为空,原因为2导致
- * 4.虚拟桌面没有model的概念,会在3处赋值的时候,报warning
- * 故以上原因,在此处赋id
- */
- closeButton.setId(wId)
- }
-
- function setDefaultStatus() {
- setStatus("default")
- }
-
- function setHoverStatus() {
- setStatus("hover")
- }
-
- function setDragStatus() {
- setStatus("drag")
- }
-
- function setReceiveStatus() {
- setStatus("receive")
- }
-
- function returnOriginal(x,y)
- {
- movePreX.to =0
- movePreY.to =0
- movePreX.from =x
- movePreY.from =y
- movePreX.stop()
- movePreY.stop()
- movePreX.start()
- movePreY.start()
- }
-
- // 应用程序预览窗口的缩放动画暂时
- // 由视图模块在响应拖拽事件时主动
- // 触发。因此,该函数暂时实现为空
- function onEnterDropArea() {
-
- }
-
- // 应用程序预览窗口的缩放动画暂时
- // 由视图模块在响应拖拽事件时主动
- // 触发。因此,该函数暂时实现为空
- function onExitDropArea() {
-
- }
-
- function zoomIn() {
- scaleAnimation.running = false
- scaleAnimation.stop();
- scaleAnimation.from = 1;
- scaleAnimation.to = 0.25;
- scaleAnimation.start();
- }
-
- function zoomOut() {
- scaleAnimation.running = false
- scaleAnimation.stop();
- scaleAnimation.from = 0.5;
- scaleAnimation.to = 1;
- scaleAnimation.start();
- }
-
- NumberAnimation on scale{
- id : scaleAnimation
- duration : 500
- from : 0
- to : 0
- running : false
- }
-
- MouseArea{
- id : previewMouseArea
- anchors.fill : parent
- hoverEnabled : true
- preventStealing : true
- drag.target : previewWindow
- drag.axis : dragAxis
-
- onEntered : {
- controller.setHoverStatus();
- }
-
- onExited : {
- if(!closeButton.closeButtonContainMouse)
- {
- controller.setDefaultStatus();
- }
- }
-
- onClicked : {
- controller.onWindowClicked(wid);
- }
-
- onReleased : {
- previewWindow.Drag.drop();
- }
- }
-
-
- ColumnLayout {
- spacing : 2
- anchors.centerIn : parent
- Layout.fillHeight : true
- width : parent.width
-
- RowLayout {
- id : captionRow
- spacing : 8
- Layout.fillHeight : true
- opacity : titleOpacity
- anchors.rightMargin: 6
-
- Rectangle {
- id : iconItem
- height : 24
- width : 24
- color : "transparent"
- visible : iconVisble
- IconTheme{
- anchors.fill : parent
- icon : multitaskViewModel.getWindowIcon(wid)
- }
- }
-
- Label {
- id : caption
- verticalAlignment: Qt.AlignVCenter
- elide : Text.ElideRight
- Layout.fillWidth : true
- height : 24
- text : captionText
- font.pixelSize: multitaskViewModel.getUKUIFontSize()
- color: captionColor
- }
-
- CloseButton {
- id : closeButton
- wid: previewWindow.wid
-
- states : [
- State {
- name : "default"
- PropertyChanges { target : closeButton; closeButtonColor : closeButtonDefaultColor }
- },
- State {
- name : "hover"
- PropertyChanges { target : closeButton; closeButtonColor : closeButtonHoverColor }
- },
- State {
- name : "click"
- PropertyChanges { target : closeButton; closeButtonColor : closeButtonClickColor }
- }
- ]
- }
- }//RowLayout
-
- Rectangle {
- id : previewArea
- width : previewAreaWidth
- height : previewAreaHeight
- color : "transparent"
- border.color : "#FFFFFF"
- border.width : borderWidth
- radius : multitaskViewManager.useOpenGL() ? 12 : 0
- }
-
- states : State {
- when : previewMouseArea.drag.active && windowType != "creation"
- ParentChange { target : previewWindow; parent : root }
- PropertyChanges { target : previewWindow; onTop : true }
- PropertyChanges { target : previewWindow; borderWidth : 4 }
- PropertyChanges { target : previewWindow; titleOpacity : 0 }
- }
- }//culumnLayout
-}
diff --git a/windowsview/qml/Tabbox.qml b/windowsview/qml/Tabbox.qml
new file mode 100755
index 0000000000000000000000000000000000000000..d75e69ae85509175521309e070a758bdb3c1a434
--- /dev/null
+++ b/windowsview/qml/Tabbox.qml
@@ -0,0 +1,368 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import QtQuick 2.0
+import QtQuick.Layouts 1.3
+import QtGraphicalEffects 1.0
+import "Controller.js" as Controller
+import org.kylin.thumbnail 1.0 as WlcomThumbnail
+import AppWindowFilterModel 1.0
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+//flow
+import org.ukui.positioner 1.0
+
+FocusScope {
+ id: root
+ property int currentIndex: -1
+ property real yOffset: tabbox.shadowHeight
+ width: tabbox.width
+ height: tabbox.height + 2 * tabbox.shadowHeight
+ focus: true
+
+UkuiItem.DtThemeBackground {
+ id : tabbox
+ anchors.centerIn: parent
+ property var controller : new Controller.AppController(multitaskViewModel, tabbox, multitaskViewManager, ["none"]);
+ property rect screenGeometry : multitaskViewManager.currentScreenRect
+ property bool isOpenGL : true
+ property int maxHeight : screenGeometry.height * 0.85
+ property var scaleFactor : devicePixelRatio
+ property int viewMargin : 20 * scaleFactor
+ property bool isLayoutLeftToRight: Qt.application.layoutDirection === Qt.LeftToRight
+ property real shadowHeight : shadow.size + Math.abs(shadow.yOffset)
+
+ focus : true
+ useStyleTransparency : true
+ backgroundColor : UkuiPlatform.GlobalTheme.kComponentNormal
+ width : screenGeometry.width
+ height : tabboxFlickable.height
+ Keys.enabled : true
+ border.width : UkuiPlatform.GlobalTheme.normalLine * scaleFactor
+ borderColor : UkuiPlatform.GlobalTheme.kLineWindowActive
+ shadowData: UkuiPlatform.GlobalTheme.kShadowMenu
+
+ // TODO: replace 2 DtThemeBackgrounds by UkuiPlatform multi-shadow item, if supported.
+ Loader {
+ id: childShadowLoader
+ anchors.fill: parent
+ sourceComponent: childShadowComponent
+ active: tabbox.shadowData.isMultiShadow
+ onLoaded: {
+ tabbox.shadowHeight = Math.max( tabbox.shadow.size, item.shadowHeight)
+ }
+ }
+ Component {
+ id: childShadowComponent
+ UkuiItem.DtThemeBackground {
+ property real shadowHeight : shadow.size + Math.abs(shadow.yOffset)
+ anchors.fill: parent
+ useStyleTransparency: false
+ alpha: 0
+ shadowData: tabbox.shadowData.childShadow
+ }
+ }
+
+ onActiveFocusChanged : {
+ if(!tabbox.activeFocus) {
+ multitaskViewManager.close()
+ } else {
+ if (multitaskViewManager.isBackTab) {
+ currentIndex = appWindowListModel.rowCount() > 1 ? appWindowListModel.rowCount() - 1 : 0;
+ } else {
+ currentIndex = appWindowListModel.rowCount() > 1 ? 1 : 0;
+ }
+
+ /**
+ 1. wlcom环境特定情况(快速操作按下alt+tab并松开)下,会出现本界面不隐藏问题,原因如下:
+ 由于wlcom合成器与窗口选择器是两个独立的进程,使得窗口选择器被快捷键拉起时,向合成器发出的GrabKeyboard请求未被及时响应
+ 导致在特定情况下窗口选择器无法收到Key_Alt的Released信号,进而无法通过响应alt released事件来关闭此界面
+ 2. 当前实现,此界面显示时可以认为Key_Alt必定处于按下状态,因此针对特定情况处理如下:
+ 在此界面显示并获取键盘焦点后,立即查询Key_Alt是否处于按下状态
+ 如果按未处于按下状态,则激活选定窗口并退出;否则,不做特殊处理
+ **/
+ // fix https://gitee.com/openkylin/ukui-window-switch/issues/IAID8L?from=project-issue
+ if (!multitaskViewManager.isAltKeyPressed()) {
+ activateSelectedWindow();
+ return;
+ }
+ }
+ }
+
+ Flickable {
+ id: tabboxFlickable
+ anchors.leftMargin: tabbox.viewMargin //注意:间距为0则无法显示滚动条
+ anchors.rightMargin: tabbox.viewMargin
+ width: contentWidth
+ height: Math.min(contentHeight, tabbox.maxHeight)
+ contentWidth: parent.width - 2 * tabbox.viewMargin
+ contentHeight: tabboxFlow.height
+ LayoutMirroring.enabled: !tabbox.isLayoutLeftToRight
+ LayoutMirroring.childrenInherit: true
+ clip: true
+
+ UkuiItem.DtThemeScrollBar.vertical: UkuiItem.DtThemeScrollBar {
+ id: tabboxScrollBar
+ Accessible.role: Accessible.ScrollBar
+ Accessible.name: "tabbox-vertical-scrollbar"
+ Accessible.description: "a scroll bar, which allows the user to scroll the visible area"
+ parent: tabboxFlickable.parent
+ anchors.top: tabboxFlickable.top
+ anchors.left: tabboxFlickable.right
+ anchors.bottom: tabboxFlickable.bottom
+ policy: UkuiItem.DtThemeScrollBar.AsNeeded
+ visual: tabboxFlow.height > height
+ }
+
+ NumberAnimation {
+ id : scrollMoveAnimation
+ target : tabboxScrollBar
+ property : "position"
+ from : tabboxScrollBar.position
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+
+ UkuiFlow {
+ id: tabboxFlow
+ spacing: 8 * tabbox.scaleFactor
+ padding: tabbox.viewMargin
+ width: parent.width
+ flow: Flow.LeftToRight
+ layoutDirection: Qt.LeftToRight
+ lineHorizontalCenterAlignment: true
+
+ Connections {
+ target: previewItemRepeater
+ function onCountChanged() {
+ tabboxFlow.forceLayout();
+ }
+ }
+
+ Repeater {
+ id : previewItemRepeater
+ model: appWindowListModel
+
+ delegate: UkuiItem.DtThemeBackground {
+ id: previewItem
+ property string uuid: model.Uuid
+ property int spaceWidth: 4 * tabbox.scaleFactor
+ property int outerBorderWidth: UkuiPlatform.GlobalTheme.focusLine * tabbox.scaleFactor
+ property int innerBorderWidth: UkuiPlatform.GlobalTheme.focusLine * tabbox.scaleFactor
+ property int maxThumbnailWidth: (tabbox.screenGeometry.width - 2 * tabboxFlow.padding) / 4
+ property int thumbnailHeight: tabbox.screenGeometry.height / 22 * 5
+ property int minWidth: Math.floor(tabbox.width / 10)
+ width: Math.max(thumbnailBorderItem.width + 2 * (spaceWidth + outerBorderWidth), minWidth)
+ height: captionRow.height + thumbnailHeight + 5 * spaceWidth + 2 * (innerBorderWidth + outerBorderWidth)
+ color: "transparent"
+ borderColor: UkuiPlatform.GlobalTheme.kFontStrong
+ border.width: index === currentIndex ? outerBorderWidth : 0
+ radius: tabbox.isOpenGL ? UkuiPlatform.GlobalTheme.kRadiusWindow : 0
+
+ MouseArea {
+ anchors.fill: parent
+ hoverEnabled: true
+ Accessible.role: Accessible.Button
+ Accessible.name: "active-window-" + model.caption
+ Accessible.description: "preview-window, click to active the app window"
+
+ onEntered : {
+ thumbnailBorderItem.border.width = previewItem.innerBorderWidth;
+ }
+
+ onExited : {
+ thumbnailBorderItem.border.width = 0;
+ }
+
+ onClicked : {
+ currentIndex = index;
+ tabbox.controller.onWindowClicked(model.Uuid);
+ }
+ }
+
+ function getThumbnailSize()
+ {
+ var thumbHeight = thumbnailHeight
+ var max_width = maxThumbnailWidth
+ var clientWidth = model.Width
+ var clientHeight = model.Height
+ var thumbWidth = Math.floor(thumbHeight * clientWidth / clientHeight)
+ if (thumbWidth > max_width) {
+ thumbWidth = max_width
+ thumbHeight = Math.floor(thumbWidth * clientHeight / clientWidth)
+ }
+ return [thumbWidth, thumbHeight]
+ }
+
+ ColumnLayout {
+ anchors.fill: parent
+ anchors.margins: previewItem.spaceWidth
+ spacing: 4 * tabbox.scaleFactor
+
+ RowLayout {
+ id: captionRow
+ spacing: 8 * tabbox.scaleFactor
+ Layout.preferredHeight: Math.max(iconItem.height, captionText.height)
+ Layout.maximumWidth: thumbnailBorderItem.width
+ Layout.alignment: Qt.AlignCenter
+ Layout.leftMargin: 2 * previewItem.spaceWidth
+
+ UkuiItem.Icon {
+ id: iconItem
+ width: 24 * tabbox.scaleFactor
+ height: width
+ source: model.Icon
+ }
+
+ UkuiItem.DtThemeText {
+ id: captionText
+ verticalAlignment: Qt.AlignVCenter
+ Layout.fillWidth: true
+ Layout.preferredHeight: contentHeight
+ text: model.Caption
+ horizontalAlignment: Qt.AlignLeft
+ elide: tabbox.isLayoutLeftToRight ? Text.ElideRight : Text.ElideLeft
+ }
+ } // RowLayout
+
+ UkuiItem.DtThemeBackground {
+ id: thumbnailBorderItem
+ Layout.alignment: Qt.AlignCenter
+ Layout.preferredWidth: getThumbnailSize()[0] + 2 * (previewItem.innerBorderWidth + previewItem.spaceWidth)
+ Layout.preferredHeight: previewItem.thumbnailHeight + 2 * (previewItem.innerBorderWidth + previewItem.spaceWidth)
+ color: "transparent"
+ borderColor: UkuiPlatform.GlobalTheme.kFontStrong
+ border.width: 0
+ radius: tabbox.isOpenGL ? UkuiPlatform.GlobalTheme.kRadiusMax : 0
+ // 预览图阴影
+ shadowData: UkuiPlatform.GlobalTheme.KShadowMin
+ Rectangle {
+ id: thumbnailBackItem
+ width: getThumbnailSize()[0]
+ height: getThumbnailSize()[1]
+ anchors.centerIn: parent
+ color: "transparent"
+ clip: true
+ layer.enabled: tabbox.isOpenGL ? true : false
+ layer.effect: OpacityMask {
+ maskSource: Rectangle {
+ width: thumbnailBackItem.width
+ height: thumbnailBackItem.height
+ radius: thumbnailBorderItem.radius
+ }
+ }
+ WlcomThumbnail.ThumbnailItem {
+ id: thumbnailItem
+ anchors.fill: parent
+ windowId: model.Uuid
+ }
+ }
+ }
+ } // ColumnLayout
+ } // Repeater.delegate
+ } // Repeater
+ } // Flow
+ } // Flickable
+
+ Keys.onDeletePressed : {
+ multitaskViewManager.close()
+ }
+
+ Keys.onEscapePressed : {
+ multitaskViewManager.close()
+ }
+
+ Keys.onBacktabPressed : {
+ if (!multitaskViewManager.isAltKeyPressed()) {
+ return;
+ }
+ if (isLayoutLeftToRight) {
+ currentIndex = tabboxFlow.moveCurrentIndexLeft(currentIndex);
+ } else {
+ currentIndex = tabboxFlow.moveCurrentIndexRight(currentIndex);
+ }
+ }
+
+ Keys.onTabPressed : {
+ if (isLayoutLeftToRight) {
+ currentIndex = tabboxFlow.moveCurrentIndexRight(currentIndex);
+ } else {
+ currentIndex = tabboxFlow.moveCurrentIndexLeft(currentIndex);
+ }
+ }
+
+ Keys.onPressed : {
+ if (event.key === Qt.Key_Left) {
+ currentIndex = tabboxFlow.moveCurrentIndexLeft(currentIndex);
+ } else if (event.key === Qt.Key_Right) {
+ currentIndex = tabboxFlow.moveCurrentIndexRight(currentIndex);
+ } else if (event.key === Qt.Key_Up) {
+ currentIndex = tabboxFlow.moveCurrentIndexUp(currentIndex);
+ } else if (event.key === Qt.Key_Down) {
+ currentIndex = tabboxFlow.moveCurrentIndexDown(currentIndex);
+ } else {
+ return;
+ }
+ }
+
+ Keys.onReleased : {
+ if (event.key === Qt.Key_Alt) {
+ activateSelectedWindow();
+ } else if (event.key === Qt.Key_Shift && !multitaskViewManager.isAltKeyPressed()) {
+ activateSelectedWindow();
+ }
+ }
+
+ function activateSelectedWindow() {
+ if (!previewItemRepeater.itemAt(currentIndex)) {
+ return;
+ }
+ controller.onWindowClicked(previewItemRepeater.itemAt(currentIndex).uuid);
+ }
+}
+ onCurrentIndexChanged: {
+ if (!multitaskViewManager.altTabVisible) {
+ return;
+ }
+
+ scrollToTabItem()
+ }
+
+ function scrollToTabItem() {
+ var currentNextY = previewItemRepeater.itemAt(currentIndex).mapToItem(tabboxFlickable, 0, 0).y
+ var previewWindowHeight = previewItemRepeater.itemAt(currentIndex).height
+ if (currentNextY < 0) {
+ scrollMoveAnimation.to = tabboxScrollBar.position - (-currentNextY + tabbox.viewMargin) / tabboxFlickable.contentHeight
+ scrollMoveAnimation.start()
+ } else if (currentNextY + previewWindowHeight > tabboxFlickable.height) {
+ scrollMoveAnimation.to = tabboxScrollBar.position + (currentNextY + previewWindowHeight - tabboxFlickable.height + tabbox.viewMargin) / tabboxFlickable.contentHeight
+ scrollMoveAnimation.start()
+ }
+ }
+
+ Connections {
+ target: multitaskViewManager
+ function onAltTabVisibleChanged() {
+ if (!multitaskViewManager.altTabVisible) {
+ root.currentIndex = -1
+ }
+ }
+ }
+}
diff --git a/windowsview/qml/TabletController.js b/windowsview/qml/TabletController.js
deleted file mode 100644
index fcc80c727901cff1ca82ebac1a486c98c551f232..0000000000000000000000000000000000000000
--- a/windowsview/qml/TabletController.js
+++ /dev/null
@@ -1,166 +0,0 @@
-// Controller 是基类,用于各种根窗口或者非应用程序预览窗口的窗口, 实现了设计文档中预览窗口类中的大部分函数的转发接口;
-// TabletAppController 是应用程序预览窗口控制器类,实现了点击窗口时激活的接口和删除应用程序预览窗口的接口。
-// ClearAllController 是全部清除按钮控制器类,实现了清除所有窗口的接口和设置按钮按下状态的接口。
-// 控制器基类
-class Controller {
- constructor(model, view, manager, acceptedTypeSet) {
- this.model = model;
- this.view = view;
- this.manager = manager;
- this.acceptedTypeSet = acceptedTypeSet;
- }
-
- initViewAnimation() {
- // default screen is 0
- if (this.model.getAppWindowList(this.model.getCurrentDesktop(), 0).length === 0)
- {
- // no app window
- // calling no window animation
- this.view.startNoWindowTipsAnimation();
- // view will call disappear animation itself.
- // view will call close function then.
- }
- else
- {
- // call AllClear Button animation
- this.view.startSequentialLoadWindowTimer();
- }
- }
-
- //点击空白处关闭多任务视图
- viewSpacingClickedController()
- {
- if (this.model.isTabletMode) {
- this.manager.showDesktop(true);
- }
- this.view.viewSpacingClickedController()
- }
-
- // 关闭多任务视图
- closeMultitaskView() {
- this.manager.close();
- }
-
- // 窗口点击事件处理
- onWindowClicked(windowId) {
- }
-
- startClearAllBtnDisappearAni()
- {
- this.view.startClearAllBtnDisappearAni();
- }
-
- // 删除预览窗口
- removePreviewWindow(windowId) {}
-
- // 设置默认态
- setDefaultStatus() {
- this.view.setDefaultStatus();
- }
-
- // 设置 Hover 态
- setHoverStatus() {
- this.view.setHoverStatus();
- }
-
- //设置长按状态
- setPressStatus()
- {
- this.view.setHoverStatus();
- }
-
- // 设置拖拽态
- setDragStatus() {
- this.view.setDragStatus();
- }
-
- // 设置拖拽接收态
- setReceiveStatus() {
- this.view.setReceiveStatus();
- }
-
- startSpaceClickedPreWindowAnimation()
- {
- this.view.startSpaceClickedPreWindowAnimation();
- }
-}
-
-class TabletAppController extends Controller {
- constructor(model, view, manager, acceptedTypeSet) {
- super(model, view, manager, acceptedTypeSet);
- }
-
- // 窗口点击事件处理
- onWindowClicked(windowId) {
- // activate windowId
- this.model.activateAppWindow(windowId);
- if (this.model.isTabletMode)
- {
- this.view.startActiveWindowAnimation();
- // view will call close function
- }
- }
-
- // 向上滑动确认关闭
- slideUpCloseWindow() {
- this.view.startCloseWindowAnimation();
- }
-
- // 向上滑动取消关闭
- startResumeWindowAnimation() {
- this.view.startResumeWindowAnimation();
- }
-
- // 删除预览窗口
- removePreviewWindow(windowId) {
- if (this.model.hasModalChildWindow(windowId))
- {
- this.onWindowClicked(windowId);
- // If window has modal child window,
- // controller calls close force.
- this.closeMultitaskView();
- }
- else
- {
- // delete app
- this.model.removeAppWindow(windowId);
- }
- }
-
- startClearAllWindowAnimation(/*unused*/) {
- this.view.startClearAllWindowAnimation();
- }
-
- removeAppWindowOnDesktop()
- {
- this.model.removeAllAppWindowOnDesktop(this.model.getCurrentDesktop());
- this.closeMultitaskView();
- }
-}
-
-class CloseButtonController extends Controller {
- constructor(model, view, manager, acceptedTypeSet) {
- super(model, view, manager, acceptedTypeSet);
- }
-}
-
-class ClearAllController extends Controller {
- constructor(model, view, manager, acceptedTypeSet) {
- super(model, view, manager, acceptedTypeSet);
- }
-
- // 窗口点击事件处理
- onWindowClicked(/*unused*/) {
- this.view.startClearAllWindowAnimation();
- }
- removeAllAppWindowOnDesktop()
- {
- this.model.removeAllAppWindowOnDesktop(this.model.getCurrentDesktop());
- this.closeMultitaskView();
- }
-
- // 窗口按下事件处理
- setPressStatus() {
- this.view.setPressStatus();
- }
-}
diff --git a/windowsview/qml/TabletMultitaskView.qml b/windowsview/qml/TabletMultitaskView.qml
deleted file mode 100644
index 6ac92613a9342ff3308de1a73269d38f8ade58f7..0000000000000000000000000000000000000000
--- a/windowsview/qml/TabletMultitaskView.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import QtQuick.Window 2.12
-import org.ukui.kwin 2.0 as KWin
-import org.kde.plasma 2.0 as PlasmaCore
-import QtGraphicalEffects 1.0
-import "TabletController.js" as TabletController
-import IconTheme 1.0
-
-TabletViewRootWindow {
- id : rootView
-
- //为了解决控制器模块的view,实现父类调用子类
- signal qmlViewSpaceClicked()
- signal qmlViewClosed()
- signal qmlClearAllAppWindow()
- //由于执行小窗口关闭动效时,会关闭多任务视图多次,导致崩溃,故增加此属性
- property bool alreadyCloseView: false
-
- Connections{
- target : rootView
-
- onQmlViewClosed:{
- if (!alreadyCloseView)
- {
- alreadyCloseView = true
- controller.closeMultitaskView()
- }
- if (tabletViewRootModel.count>0)
- {
- tabletViewRootModel.clear()
- }
- }
- }
- Connections{
- target : tabletViewMainWindow
- onQmlAppWindowRemovedForward:{
- for(var i = 0; i < tabletViewRootModel.count; i++){
- var info = tabletViewRootModel.get(i);
- if(info.id === id) {
- tabletViewRootModel.remove(i);
- return;
- }
- }
- }
- }
-
- TabletScrollViewArea {
- id : appArea
- x : 0
- y : Math.floor(scrollViewYStartPoint)
- width : Math.floor(tabletViewMain.width)
- height : Math.floor(scrollViewHeight)
- appModel : tabletViewRootModel
- rootRect : screenRect
- }
-
- TabletViewClearAllWindowButton {
- id : clearAllWindow
- property var controller : new TabletController.Controller(multitaskViewModel, clearAllWindow, multitaskViewManager, ["none"])
- }
-
-}//Rectangle rootView
diff --git a/windowsview/qml/TabletPreviewWindow.qml b/windowsview/qml/TabletPreviewWindow.qml
index 48305cf341ac6a4345c95b43e2c1f4db94ab742f..dbbdb62ef2bdfefb5d967dc300f4516eee88ac26 100644
--- a/windowsview/qml/TabletPreviewWindow.qml
+++ b/windowsview/qml/TabletPreviewWindow.qml
@@ -1,451 +1,394 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
import QtQuick 2.12
-import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
-import "TabletController.js" as TabletController
-import IconTheme 1.0
-import org.kde.plasma 2.0 as PlasmaCore
import QtGraphicalEffects 1.0
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
-Rectangle {
- id : tabletPreviewWindow
- width : 498
- height : 320
- color : "transparent"
-
- property ListModel premodel : null
+Item {
+ id : root
property bool closeButtonVisble : false
- property real borderWidth : 0
- property var stateList : ["default", "hover"];
+ property var screenIndex : null
state : "default"
- property int wid : -1
+ property string wid : ""
+ property int x_wid
//当前预览窗口在桌面上的未缩放前的实际宽度
property int preViewNoScaledWidth : -1
//当前预览窗口在桌面上的未缩放前的实际高度
property int preViewNoScaledHeight : -1
//当前预览窗口在桌面上的未缩放前的X坐标
property int preViewNoScaledXCoordinate : -1
- //当前预览窗口在桌面上的未缩放前的Y坐标
+ //当前预览窗口在桌面上的未缩放前的Y坐标
property int preViewNoScaledYCoordinate : -1
- property var captionText : ""
- property var appController : new TabletController.TabletAppController(multitaskViewModel, appWindow, multitaskViewManager, ["app"])
- property var thumbAnchorRootMapGloableX : mapToGlobal(thumbAnchorRoot.x,thumbAnchorRoot.y).x
- property var thumbAnchorRootMapGloableY : mapToGlobal(thumbAnchorRoot.x,thumbAnchorRoot.y).y
- property int thumbnailRadius: multitaskViewManager.useOpenGL() ? 14 : 0
+ property string captionText : ""
+ property real thumbAnchorRootMapGloableX : 0
+ property real thumbAnchorRootMapGloableY : 0
+ property int thumbnailRadius : UkuiPlatform.GlobalTheme.kRadiusWindow * tabletScaleFactor
+ property var icon
+ //drag event
+ property bool dragActive: previewWindowMouseArea.drag.active
+ property real dargBeginTime : Date.now()
+
+ states : [
+ State {
+ name : "default"
+ PropertyChanges { target : thumbnailWindow; border.width : 0 }
+ PropertyChanges { target : previewWindowCloseButton; visible : false }
+ },
+ State {
+ name : "hover"
+ PropertyChanges { target : thumbnailWindow; border.width : borderWidth }
+ PropertyChanges { target : previewWindowCloseButton; visible : true }
+ }
+ ]
+
+ //控制白色边框是否显示
+ MouseArea {
+ id : previewWindowMouseArea
+ anchors.fill : parent
+ hoverEnabled : true
+ drag.target: root
+ drag.axis: Drag.YAxis
+ drag.maximumY: root.height / 10
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "active-window-" + root.caption
+ Accessible.description: "preview-window, click to active the app window"
+
+ onEntered : {
+ if (!thumbnailWindow.thumbClicked) {
+ root.state = "hover"
+ }
+ }
+ onExited: {
+ root.state = "default"
+ }
+ onClicked: {
+ appWindowClicked()
+ }
+
+ ColumnLayout {
+ id : columnLayout
+ spacing : iconToThumbSpacing
+ anchors.centerIn : parent
+ Layout.fillHeight : true
+ width : root.width
+
+ RowLayout {
+ id : captionRow
+ spacing : Math.floor(12 * tabletScaleFactor)
+ Layout.fillHeight : true
+ layoutDirection: isLayoutLeftToRight ? Qt.LeftToRight : Qt.RightToLeft
+
+ UkuiItem.Icon {
+ id: iconItem
+ width: iconAndCloseButtonHeight
+ height: width
+ source: icon
+ }
+
+ UkuiItem.DtThemeText {
+ id : caption
+ Layout.fillWidth : true
+ text : captionText
+ fontSizeMode : Text.HorizontalFit
+ horizontalAlignment: isLayoutLeftToRight ? Qt.AlignLeft : Qt.AlignRight
+ elide : isLayoutLeftToRight ? Text.ElideRight : Text.ElideLeft
+ textColor : UkuiPlatform.GlobalTheme.kFontWhite
+ }
+
+ TabletViewCloseButton {
+ id : previewWindowCloseButton
+ Accessible.name: "close-window-" + captionText
+ Accessible.description: "close-button, click to close the app window"
+
+ onExited: {
+ if (!previewWindowMouseArea.containsMouse) {
+ root.state = "default"
+ }
+ }
+ onClicked: {
+ removePreviewWindow(wid)
+ }
+ }
+ }//RowLayout captionRow
+
+ UkuiItem.DtThemeBackground {
+ id : thumbnailWindow
+ height : root.height - iconToThumbSpacing - iconAndCloseButtonHeight
+ width : root.width
+ color : "transparent"
+ radius : root.thumbnailRadius
+ borderColor : UkuiPlatform.GlobalTheme.kWhite
+ border.width : borderWidth
+ property bool thumbClicked: false // 记录是否是点击缩略图
+
+ states: [
+ State {
+ name : "mousestate"
+ when : thumbnailWindow.thumbClicked
+ ParentChange {
+ target : thumbnailBackground
+ parent : tabletViewMain
+ }
+ }
+ ]
+
+ UkuiItem.DtThemeBackground {
+ id : thumbnailBackground
+ /*
+ * 此处必须使用 x, y, width, height 进行位置设置,且禁止使用 anchors.centerIn 和 anchors.fill 等
+ * 因为 thumbnailBackground 在动画过程中会改变 parent,所以如果使用锚点会导致 thumbnailBackground
+ * 突然参考新的 parent 改变大小。设置 width 和 height 时,禁止使用 parent.width 和 parent.height
+ * 也是如此。
+ */
+ x : borderWidth
+ y : borderWidth
+ width : thumbnailWindow.width - 2 * borderWidth
+ height : thumbnailWindow.height - 2 * borderWidth
+ // anchors.centerIn : parent
+ useStyleTransparency: true
+ backgroundColor : UkuiPlatform.GlobalTheme.kContainGeneralNormal
+ radius : root.thumbnailRadius !== 0 ? root.thumbnailRadius - borderWidth : 0
+ Loader {
+ id: thumbnail
+ width : Math.floor(thumbWidth())
+ height : Math.floor(thumbHeight())
+ anchors.centerIn : parent
+ property string thumbnailId : wid
+ source: isWlcom ? "ThumbnailWithWlcom.qml" : "ThumbnailWithKwin.qml"
+ clip : true
+ layer.enabled : root.thumbnailRadius !== 0
+ layer.effect : OpacityMask {
+ maskSource : Rectangle {
+ width : thumbnail.width
+ height : thumbnail.height
+ radius : root.thumbnailRadius
+ }
+ }
+
+ function thumbWidth(){
+ var factor = model.height / thumbnailBackground.height;
+ var width = model.width / factor;
+ return Math.min(thumbnailBackground.width, width);
+ }
+
+ function thumbHeight(){
+ var factor = thumbnailBackground.width * model.height
+ var height = factor / model.width;
+ return Math.round(Math.min(thumbnailBackground.height, height))
+ }
+ }
+
+ }
+ }
+ }
+ }
+
+ onDragActiveChanged: {
+ if (dragActive) {
+ enlargeWindowAnimation.start()
+ appWindowReturnBackAnimation.stop()
+ dargBeginTime = Date.now()
+ } else {
+ var subTime = Date.now() - dargBeginTime
+ var subDistance = -root.y
+ var velocity = Math.abs(subDistance) / subTime;
+ // console.log("移动距离: " + subDistance , "窗口的三分之二距离: ", root.height * 2 / 3)
+ // console.log("速度为: " + velocity)
+ // 平均速度或者位移距离
+ if ((velocity > 0.5 && subDistance > 0 ) || subDistance >= root.height * 2 / 3) {
+ slideUpToCloseWindowAnimation.start()
+ } else {
+ appWindowReturnBackAnimation.start()
+ }
+ }
+ }
+
+ Connections {
+ target : tabletViewMain
+ function onClearAllWindowButtonClickSignal() {
+ clearAllWindowAnimation.start()
+ }
+ function onBlankAreaClickSignal() {
+ spaceClickedPreWindowAnimation.start()
+ }
+ }
/***************************************动画***************************/
- //全部清除窗口的动效
- ParallelAnimation
- {
- id:clearAllWindowAnimation
+ // 全部清除窗口的动效
+ ParallelAnimation {
+ id : clearAllWindowAnimation
NumberAnimation {
- target: tabletPreviewWindow
+ target: root
properties: "y"
- to: Math.floor(tabletPreviewWindow.y - tabletPreviewWindow.height * 2)
+ to: Math.floor(root.y - root.height * 2)
duration: 300
easing.type: Easing.InOutQuart
}
NumberAnimation {
- target: tabletPreviewWindow
+ target: root
properties: "opacity"
to: 0
duration: 300
easing.type: Easing.InOutQuart
}
- onFinished: {
- removeAppWindow(wid)
- if (premodel.count <= 0)
- {
- appController.removeAppWindowOnDesktop()
- }
+ onFinished : {
+ removePreviewWindow(wid)
}
}
- //点击空白处关闭多任务视图动效(小窗口逐渐在原地消失)
+ // 点击空白处关闭多任务视图动效(小窗口逐渐在原地消失)
NumberAnimation {
id : spaceClickedPreWindowAnimation
- target : tabletPreviewWindow
+ target : root
property : "opacity"
duration : 300
easing.type : Easing.InOutQuart
from : 1
to : 0
onFinished: {
- qmlViewClosed()
+ closeMultitaskView()
}
}
- //! 上滑关闭窗口动效
- NumberAnimation {
+ // 上滑关闭窗口动效
+ SmoothedAnimation {
id : slideUpToCloseWindowAnimation
- target : tabletPreviewWindowMove
+ target : root
property : "y"
//因为需要上滑完全离开屏幕 尤其第二行预览窗口,故需要-(预览窗口距离屏幕顶端的距离+预览窗口本身高度)
- to : Math.floor(0 - appWindowBack.y- tabletPreviewWindowMove.height)
- duration : 200
- easing.type : Easing.InOutQuart
+ to : Math.floor(0 - root.parent.y - root.height)
+ velocity : 1100
+ reversingMode: SmoothedAnimation.Eased
onFinished: {
removePreviewWindow(wid)
}
}
- //取消上滑后,恢复到原始位置的动画
+ // 上滑窗口 放大窗口
NumberAnimation {
- id : appWindowReturnBackAnimation
- target : tabletPreviewWindow
- property : "y"
- to : Math.floor(tabletPreviewWindowMove.y)
+ id : enlargeWindowAnimation
+ target: root
+ property : "scale"
duration : 200
- easing.type : Easing.InOutQuart
+ to : 1.05
}
- //点击应用程序预览窗口激活应用程序时的动画特效
- ParallelAnimation{
- id : activateWindowAnimation
- NumberAnimation{
- target : thumbAnchorRoot
+ // 取消上滑后,恢复到原始位置的动画
+ ParallelAnimation {
+ id : appWindowReturnBackAnimation
+ SpringAnimation {
+ target : root
+ property : "y"
+ to : 0
+ easing.type : Easing.InOutQuart
+ damping : 0.15 // 弹簧阻尼值。默认值为0,取值0~1.0。控制
+ spring : 2 // 弹性。有效值范围是0~5.0,默认值为0(禁用了spring的动作)。
+ }
+
+ NumberAnimation {
+ id : restoreWindowSizeAnimation
+ target: root
+ property : "scale"
+ duration : 200
+ to : 1
+ }
+ }
+
+ // 点击应用程序预览窗口激活应用程序时的动画特效,只针对平板模式
+ ParallelAnimation {
+ id : activateWindowAnimationForTabletMode
+ NumberAnimation {
+ target : thumbnailBackground
property : "x"
- from : Math.floor(thumbAnchorRootMapGloableX)
+ from : thumbAnchorRootMapGloableX
to : preViewNoScaledXCoordinate
- duration : 250
+ duration : 1000
easing.type : Easing.InOutQuart
}
- NumberAnimation{
- target : thumbAnchorRoot
+ NumberAnimation {
+ target : thumbnailBackground
property : "y"
- from : Math.floor(thumbAnchorRootMapGloableY)
+ from : thumbAnchorRootMapGloableY
to : preViewNoScaledYCoordinate
- duration : 250
+ duration : 1000
easing.type : Easing.InOutQuart
}
- NumberAnimation{
- target : thumbAnchorRoot
+ NumberAnimation {
+ target : thumbnailBackground
property : "width"
to : preViewNoScaledWidth
- duration : 250
+ duration : 1000
easing.type : Easing.InOutQuart
}
- NumberAnimation{
- target : thumbAnchorRoot
+ NumberAnimation {
+ target : thumbnailBackground
property : "height"
to : preViewNoScaledHeight
- duration : 250
+ duration : 1000
easing.type : Easing.InOutQuart
}
onFinished: {
- qmlViewClosed()
+ closeMultitaskView()
}
}
-
/***************************************函数*************************/
- function removePreviewWindow(wid)
- {
- appController.removePreviewWindow(wid)
- if ( premodel.count<= 1)
- {
- qmlViewClosed()
- }
- removeAppWindow(wid)
- }
-
- function removeAppWindow(wid){
- for(var i = 0; i < premodel.count; i++){
- var info = premodel.get(i);
- if(info.id === wid) {
- premodel.remove(i);
- return;
- }
- }
+ function closeMultitaskView() {
+ multitaskViewManager.close()
}
- function appWindowClicked(){
- if (!multitaskViewModel.isTabletMode)
- {
- appController.onWindowClicked(wid);
- qmlViewClosed()
- }
- else
- {
- thumbAnchorRootMapGloableY = Math.floor(mapToGlobal(thumbMove.x,thumbMove.y).y)
- thumbAnchorRootMapGloableX = Math.floor(mapToGlobal(thumbMove.x,thumbMove.y).x)
- thumbAnchorRoot.thumbClicked = true
- captionRow.visible = false
- thumbBorder.border.width = 0
- preWindowCloseButton.visible = false
- appController.onWindowClicked(wid);
- }
- }
-
- function setStatus(status) {
- if(stateList.indexOf(status) < 0)
- {
- return;
- }
- if (status === state) {
- return
- }
- state = status;
- }
-
- function setDefaultStatus() {
- setStatus("default")
- }
-
- function setHoverStatus() {
- setStatus("hover")
- }
-
- function startClearAllWindowAnimation()
- {
- clearAllWindowAnimation.start()
- }
-
- function startSpaceClickedPreWindowAnimation()
- {
- spaceClickedPreWindowAnimation.start()
- }
-
- function startCloseWindowAnimation()
- {
- slideUpToCloseWindowAnimation.start()
- }
-
- function startResumeWindowAnimation()
- {
- appWindowReturnBackAnimation.start()
- }
-
- function startActiveWindowAnimation()
+ function removePreviewWindow(wid)
{
- activateWindowAnimation.start()
- }
-
- function setCaption(titleText) {
- caption.text = titleText;
- }
-
- function setId(wId) {
- wid = wId;
- }
-
- function setPreViewNoScaledWidth(Width) {
- preViewNoScaledWidth = Width;
- }
-
- function setPreViewNoScaledHeight(Height) {
- preViewNoScaledHeight = Height;
- }
-
- function setPreViewNoScaledXCoordinate(X) {
- preViewNoScaledXCoordinate = X;
- }
-
- function setPreViewNoScaledYCoordinate(Y) {
- preViewNoScaledYCoordinate = Y;
- }
-
- //控制白色边框是否显示
- MouseArea{
- id : preWindowMouseArea
- anchors.fill : parent
- preventStealing : true
- hoverEnabled : true
-
- onEntered : {
- appController.setHoverStatus();
- }
-
- onExited: {
- if(!preWindowCloseButton.closeButtonContainMouse)
- {
- appController.setDefaultStatus();
+ console.log("removePreviewWindow", wid)
+ if (multitaskViewModel.hasModalChildWindow(wid)) {
+ multitaskViewModel.activateAppWindow(wid)
+ if (multitaskViewModel.isTabletMode()) {
+ activateWindowAnimationForTabletMode.start()
}
- }
-
- onClicked: {
- appWindowClicked()
+ // If window has modal child window, calls close force.
+ multitaskViewManager.close();
+ } else {
+ // delete app
+ multitaskViewModel.removeAppWindow(wid);
}
}
- Rectangle{
- id : tabletPreviewWindowMove
- width : Math.floor(parent.width)
- height : Math.floor(parent.height)
- color : "transparent"
- radius : tabletPreviewWindow.thumbnailRadius
- ColumnLayout {
- id : columnLayout
- spacing : iconToThumbSpacing
- anchors.centerIn : parent
- Layout.fillHeight : true
- width : Math.floor(tabletPreviewWindow.width)
-
- RowLayout {
- id : captionRow
- spacing : 12 * tabletScaleFactor
- Layout.fillHeight : true
-
- Rectangle {
- id : iconItem
- height : Math.floor(iconAndCloseButtonHeight)
- width : Math.floor(iconAndCloseButtonHeight)
- color : "transparent"
- IconTheme{
- anchors.fill : parent
- icon : multitaskViewModel.getWindowIcon(wid)
- }
- }
-
- Label {
- id : caption
- Layout.fillWidth : true
- text : captionText
- fontSizeMode : Text.HorizontalFit
- elide : Text.ElideRight
- color : "#FFFFFF"
- }
-
- TabletViewCloseButton {
- id : preWindowCloseButton
-
- states : [
- State {
- name : "default"
- PropertyChanges { target : preWindowCloseButton; imageSource : "qrc:/images/ukui-taskview-close-default.svg" }
- },
- State {
- name : "hover"
- PropertyChanges { target : preWindowCloseButton; imageSource : "qrc:/images/ukui-taskview-close-hover.svg" }
- },
- State {
- name : "press"
- PropertyChanges { target : preWindowCloseButton; imageSource : "qrc:/images/ukui-taskview-close-click.svg" }
- }
- ]
-
- Component.onCompleted: {
- preWindowCloseButton.setId(model.id)
- }
- }
- }//RowLayout captionRow
-
- Rectangle{
- id : thumbBorder
- height : Math.floor(preWinHeight)
- width : Math.floor(preWinWidth + 8)
- color : "transparent"
- radius : tabletPreviewWindow.thumbnailRadius
- border.color : "#FFFFFF"
- border.width : Math.floor(borderWidth)
-
- Rectangle{
- id : thumbAnchorRoot
- height : Math.floor(preWinHeight)
- width : Math.floor(preWinWidth)
- color : Qt.rgba(255,255,255, 0.5)
- x : 4
- y : 0
- radius : tabletPreviewWindow.thumbnailRadius
- property bool thumbClicked: false//记录是否是点击缩略图
-
- Rectangle{
- id : thumbMove
- width : Math.floor(parent.width)
- height : Math.floor(parent.height)
- color : "transparent"
- anchors.centerIn : parent
- radius : tabletPreviewWindow.thumbnailRadius
-
- states: [
- State {
- name : "mousestate"
- when : thumbAnchorRoot.thumbClicked
- ParentChange {
- target : thumbAnchorRoot
- parent : rootView
- }
- }
- ]
-
- MouseArea{
- anchors.fill : parent
- //这里没有鼠标透传的原因:如果鼠标透传的话,会影响Scrollview的拖拽功能
- onClicked: {
- appWindowClicked()
- }
- }
-
- Rectangle {
- id:thumb
- visible:true
-
- function thumbWidth(){
- var factor = model.height / thumbMove.height;
- var width = model.width / factor;
- return Math.min(thumbMove.width, width);
- }
-
- function thumbHeight(){
- var factor = thumbMove.width * model.height
- var height = factor / model.width;
- return Math.floor(Math.min(thumbMove.height, height))
- }
-
- width : Math.floor(thumb.thumbWidth())
- height : Math.floor(thumb.thumbHeight())
- anchors.centerIn : parent
- radius : tabletPreviewWindow.thumbnailRadius
- color : "transparent"
- clip : true
- layer.enabled : multitaskViewManager.useOpenGL() ? true : false
- layer.effect : OpacityMask{
- maskSource : Rectangle{
- width : Math.floor(thumb.width)
- height : Math.floor(thumb.height)
- radius : tabletPreviewWindow.thumbnailRadius
- }
- }
- PlasmaCore.WindowThumbnail{
- anchors.centerIn : parent
- height : Math.floor(thumb.height)
- width : Math.floor(thumb.width)
- winId : wid
- clip : true
- }
- }
- }
- }
- }
+ function appWindowClicked()
+ {
+ if (multitaskViewModel.isTabletMode) {
+ thumbAnchorRootMapGloableX = mapToGlobal(thumbnailBackground.x, thumbnailBackground.y).x
+ thumbAnchorRootMapGloableY = mapToGlobal(thumbnailBackground.x, thumbnailBackground.y).y
+ thumbnailWindow.thumbClicked = true
+ captionRow.visible = false
+ thumbnailWindow.border.width = 0
+ previewWindowCloseButton.visible = false
+ multitaskViewModel.activateAppWindow(wid)
+ activateWindowAnimationForTabletMode.start()
+ } else {
+ multitaskViewModel.activateAppWindow(wid);
+ closeMultitaskView()
}
}
- DragHandler{
- property int dragTime : 0
- property var beginTime : Date.now()
- id : windowDrag
- target : tabletPreviewWindow
- xAxis.enabled : false
- yAxis.maximum : 0
-
- onActiveChanged: {
- if (active){
- beginTime = Date.now()
- }
- if (!active){
- var subTime = Date.now() - beginTime
- var subDistance = Math.abs(tabletPreviewWindowMove.y - tabletPreviewWindow.y)
- var v = Math.abs(subDistance) / subTime;
- console.log("移动距离 ,窗口的三分之二" + subDistance , tabletPreviewWindow.height * 1 / 2)
- console.log("速度为: " + v)
- // 平均速度或者位移距离
- if (v > 0.5 || subDistance >= tabletPreviewWindow.height * 1 / 2){
- appController.slideUpCloseWindow()
- }else{
- appController.startResumeWindowAnimation()
- }
- }
- }
- }//windowDrag
}
-
-
diff --git a/windowsview/qml/TabletScrollViewArea.qml b/windowsview/qml/TabletScrollViewArea.qml
deleted file mode 100644
index 0a6ce557f0fc80f8dbdf6f51d1db246d06b05f6a..0000000000000000000000000000000000000000
--- a/windowsview/qml/TabletScrollViewArea.qml
+++ /dev/null
@@ -1,167 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import QtQuick.Window 2.12
-import org.kde.plasma 2.0 as PlasmaCore
-import QtGraphicalEffects 1.0
-import "TabletController.js" as TabletController
-import IconTheme 1.0
-
-
-Rectangle{
- id : tabletScrollViewArea
- width : 1920
- height : 1080
- color : "transparent"
- property ListModel appModel : null
- property var rootRect : null
- //调用全部清除按钮动效的时候需要用到
- property var appAreaController : null
-
- ScrollView{
- id : scrollView
-
- //更新滚动区域的大小,之所以这么做,是为了解决滚动区域增加鼠标事件后,滚动失效的问题
- function getContentWidth()
- {
- var maxColumn = Math.ceil(appModel.count / 2)
- var scrollViewContentWidth = appArea.width
- if (appModel.count <= 4)
- {
- scrollViewContentWidth = appArea.width
- return Math.floor(scrollViewContentWidth)
- }
- scrollViewContentWidth = maxColumn * preWinWidth + maxColumn * gridLayout.columnSpacing + 2 * gridLayout.leftPadding
- return Math.floor(scrollViewContentWidth)
- }
-
- x : 0
- y : 0
- contentWidth : Math.floor(scrollView.getContentWidth())
- contentHeight : Math.floor(appArea.height)
- width : Math.floor(rootRect.width)
- ScrollBar.horizontal.policy : ScrollBar.AlwaysOff
- ScrollBar.vertical.policy : ScrollBar.AlwaysOff
-
- MouseArea{
- anchors.fill : parent
- propagateComposedEvents: true
-
- onClicked: {
- mouse.accepted = false
- }
- }
-
- Grid{
- id : gridLayout
- anchors.fill : parent
- anchors.centerIn : parent
- columnSpacing : Math.floor(preWinVecSpace)
- rowSpacing : Math.floor(preWinHorSpace)
- leftPadding : Math.floor(scrollViewLeftSpace)
- rightPadding : Math.floor(scrollViewLeftSpace)
- rows : 2
- flow : Grid.TopToBottom
-
- //显示多任务视图时,每个Item在显示的时候执行的动效
- add : Transition {
- id : displayPreviewWinAnimation
-
- ParallelAnimation{
- NumberAnimation {
- property : "opacity"
- duration : 300
- easing.type : Easing.InOutQuart
- from : 0
- to : 1
- }
- NumberAnimation {
- property : "x"
- duration :300
- easing.type : Easing.InOutQuart
- from : Math.floor(rootRect.width / 2 - 510/*窗口的宽度*/ / 2)
- }
- NumberAnimation {
- property : "y"
- duration : 300
- easing.type : Easing.InOutQuart
- from : Math.floor(rootRect.height)
- }
- NumberAnimation {
- property : "scale"
- from : 0
- to : 1.0
- duration : 150
- }
- }
-
- }
-
- //关闭小窗口时,W补齐方式的动画
- move : Transition {
- NumberAnimation{
- properties : "x,y";
- easing.type : Easing.InOutQuart;
- duration : 300
- }
- }
-
-
- Repeater{
- id : previewWindowRepeater
- model : appModel
-
- Rectangle{
- id : appWindowBack
- height : Math.floor(preWinHeight + iconToThumbSpacing + iconAndCloseButtonHeight)
- width : Math.floor(preWinWidth)
- color : "transparent"
- radius : 14
-
- TabletPreviewWindow {
- id : appWindow
- height : Math.floor(preWinHeight + iconToThumbSpacing + iconAndCloseButtonHeight)
- width : Math.floor(preWinWidth)
- color : "transparent"
- radius : 14
- premodel : appModel
-
- states : [
- State {
- name : "default"
- PropertyChanges { target : appWindow; borderWidth : 0 }
- PropertyChanges { target : appWindow; closeButtonVisble : false }
- },
-
- State {
- name : "hover"
- PropertyChanges { target : appWindow; borderWidth : 4 }
- PropertyChanges { target : appWindow; closeButtonVisble : true }
- }
- ]
-
- Connections{
- target : rootView
- onQmlViewSpaceClicked:{
- appWindow.appController.startSpaceClickedPreWindowAnimation()
- }
-
- onQmlClearAllAppWindow:{
- appWindow.appController.startClearAllWindowAnimation()
- }
- }
-
- Component.onCompleted: {
- appWindow.setCaption(model.caption)
- appWindow.setId(model.id)
- appWindow.setPreViewNoScaledHeight(model.height)
- appWindow.setPreViewNoScaledWidth(model.width)
- appWindow.setPreViewNoScaledXCoordinate(model.x)
- appWindow.setPreViewNoScaledYCoordinate(model.y)
- }
- }
- }
- }
- }
- }
-}
diff --git a/windowsview/qml/TabletViewClearAllWindowButton.qml b/windowsview/qml/TabletViewClearAllWindowButton.qml
deleted file mode 100644
index 94a290bbae8392b871bf3e31aa01f789406f47d6..0000000000000000000000000000000000000000
--- a/windowsview/qml/TabletViewClearAllWindowButton.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import "TabletController.js" as TabletController
-import IconTheme 1.0
-import QtQuick.Window 2.12
-import org.ukui.kwin 2.0 as KWin
-import QtGraphicalEffects 1.0
-
-Rectangle{
- id : tabletViewClearAllWindowButton
- height : Math.floor(48 * tabletScaleFactor)
- width : Math.floor(126 * tabletScaleFactor)
- color : Qt.rgba(255,255,255, 0.4)
- radius : 10
- anchors.verticalCenter : parent.verticalCenter
- anchors.verticalCenterOffset : Math.floor(screenRect.height / 2 - 48 * tabletScaleFactor -38 * tabletScaleFactor)
- anchors.horizontalCenter : parent.horizontalCenter
- anchors.horizontalCenterOffset : 0
- visible : tabletViewRootModel.count>0
- opacity : 0
-
-
- Rectangle{
- id : deleteIcon
- width : Math.floor(24 * tabletScaleFactor)
- height : Math.floor(24 * tabletScaleFactor)
- color : "transparent"
- x : Math.floor(27 * tabletScaleFactor)
- y : Math.floor(12 * tabletScaleFactor)
- Image {
- id : deleteImage
- anchors.fill : parent
- source : "qrc:/images/tablet_delete.svg"
- }
- }
-
- Label{
- id : deletText
- x : Math.floor(60 * tabletScaleFactor)
- y : Math.floor(10 * tabletScaleFactor)
- Layout.fillWidth : true
- text : "清除"
- elide : Text.ElideRight
- font.pixelSize : 18 * tabletScaleFactor
- color : "#000000"
- }
-
- MouseArea{
- anchors.fill : parent
- hoverEnabled : true
- onEntered: {
- tabletViewClearAllWindowButton.color = Qt.rgba(255,255,255, 0.6)
- }
- onPressed: {
- tabletViewClearAllWindowButton.color = Qt.rgba(255,255,255, 0.8)
- }
- onExited: {
- tabletViewClearAllWindowButton.color = Qt.rgba(255,255,255, 0.4)
- }
-
- onClicked: {
- console.log("全部清除被点击!")
- controller.startClearAllBtnDisappearAni()
- qmlClearAllAppWindow()
- }
- }
-
- function startClearAllBtnAppearAni()
- {
- clearAllWindowButtonAppearAni.start()
- }
-
- function startClearAllBtnDisappearAni()
- {
- clearAllWindowButtonDisappearAni.start()
- }
-
- //全部清除按钮出现的动画
- NumberAnimation {
- id : clearAllWindowButtonAppearAni
- target : tabletViewClearAllWindowButton
- properties : "opacity"
- from : 0
- to : 1
- duration : tabletViewRootModel.count >= 6 ? 5 * 100 + 300 : (tabletViewRootModel.count - 1) * 100 + 300
- easing.type : Easing.InOutQuart
- }
-
- //全部清除按钮消失的动画
- NumberAnimation {
- id : clearAllWindowButtonDisappearAni
- target : tabletViewClearAllWindowButton
- properties : "opacity"
- from : 1
- to : 0
- duration : 300
- easing.type : Easing.InOutQuart
- }
-}
diff --git a/windowsview/qml/TabletViewCloseButton.qml b/windowsview/qml/TabletViewCloseButton.qml
index eaf94b113c8293bb7c57db13b069fe0893b13c38..c418b22f1e17a259f645857d3da8196dc2b330fd 100644
--- a/windowsview/qml/TabletViewCloseButton.qml
+++ b/windowsview/qml/TabletViewCloseButton.qml
@@ -1,60 +1,69 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import "TabletController.js" as TabletController
-import IconTheme 1.0
-import org.kde.plasma 2.0 as PlasmaCore
import QtGraphicalEffects 1.0
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
-Rectangle {
- id : closeButton
- visible : closeButtonVisble
- width : Math.floor(iconAndCloseButtonHeight)
- height : Math.floor(iconAndCloseButtonHeight)
- radius : 14
- color : "transparent"
-
- property var closeButtonController : new TabletController.CloseButtonController(multitaskViewModel, closeButton, multitaskViewManager, ["app"])
- property var buttonStateList : ["default", "hover", "press"];
+UkuiItem.DtThemeBackground {
+ id : root
+ visible : false
+ width : iconAndCloseButtonHeight
+ height : width
+ radius : width / 2
state : "default"
- property var imageSource : "qrc:/images/ukui-taskview-close-default.svg"
- property int wid : -1
property alias closeButtonContainMouse: closeButtonMouseArea.containsMouse
- Image {
- id: closeWindow
- anchors.fill : parent
- source : imageSource
- sourceSize.width: Math.floor(parent.width)
- sourceSize.height: Math.floor(parent.height)
- }
-
- function setStatus(status) {
- if(buttonStateList.indexOf(status) < 0)
- {
- return;
- }
- if (status === state) {
- return
- } else {
- state = status;
- }
- }
-
- function setDefaultStatus() {
- setStatus("default")
- }
+ signal entered()
+ signal exited()
+ signal pressed()
+ signal clicked()
- function setHoverStatus() {
- setStatus("hover")
- }
+ Accessible.role: Accessible.Button
+ Accessible.name: "close"
+ Accessible.description: "a push button, click to close the preview window"
+ Accessible.onPressAction: { root.clicked() }
- function setPressStatus() {
- setStatus("press")
- }
+ states : [
+ State {
+ name : "default"
+ PropertyChanges { target: root; backgroundColor: UkuiPlatform.GlobalTheme.kContainGeneralAlphaNormal }
+ },
+ State {
+ name : "hover"
+ PropertyChanges { target: root; backgroundColor: UkuiPlatform.GlobalTheme.kComponentHover }
+ },
+ State {
+ name : "press"
+ PropertyChanges { target: root; backgroundColor: UkuiPlatform.GlobalTheme.kComponentClick }
+ }
+ ]
- function setId(wId) {
- wid = wId;
+ UkuiItem.Icon {
+ id: closeIcon
+ anchors.centerIn: parent
+ width: parent.width / 2
+ height: parent.height / 2
+ source: "window-close-symbolic"
+ mode: parent.closeButtonContainMouse ? UkuiItem.Icon.AutoHighlight : UkuiItem.Icon.Highlight
}
MouseArea{
@@ -62,23 +71,22 @@ Rectangle {
anchors.fill : parent
hoverEnabled : true
onEntered: {
- closeButtonController.setHoverStatus()
+ root.state = "hover"
+ root.entered()
}
onExited: {
- closeButtonController.setDefaultStatus()
- if(!preWindowMouseArea.containsMouse)
- {
- tabletPreviewWindow.setDefaultStatus()
- }
+ root.state = "default"
+ root.exited()
}
onPressed: {
- closeButtonController.setPressStatus()
+ root.state = "press"
+ root.pressed()
}
onClicked: {
- tabletPreviewWindow.removePreviewWindow(wid)
+ root.clicked()
}
}
}
diff --git a/windowsview/qml/TabletViewMain.qml b/windowsview/qml/TabletViewMain.qml
index 9d392a9dfc3622bb6976fe1b46ddca0ac99cad4b..ce48da695ab699ea7010d9dfc912c5289bfce53b 100644
--- a/windowsview/qml/TabletViewMain.qml
+++ b/windowsview/qml/TabletViewMain.qml
@@ -1,126 +1,476 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
-import "TabletController.js" as TabletController
-import IconTheme 1.0
import QtQuick.Window 2.12
-import org.ukui.kwin 2.0 as KWin
import QtGraphicalEffects 1.0
+import org.kylin.background 3.0 as KWin
+import AppWindowFilterModel 1.0
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
-Rectangle{
- id : tabletViewMainWindow
-
- property var controller : new TabletController.Controller(multitaskViewModel, tabletViewMainWindow, multitaskViewManager, ["none"])
- Keys.onPressed: {
- if (event.key === Qt.Key_Escape) {
- controller.closeMultitaskView();
- return;
- }
- if (event.modifiers & Qt.MetaModifier) {
- if (event.key === Qt.Key_Tab) {
- controller.closeMultitaskView();
- return;
- }
- }
- }
+Repeater{
+ id : allrootRepeater
+ model : screencnt
+ property int screencnt : multitaskViewModel.logicalScreenCount
+ //水平布局方向
+ property bool isLayoutLeftToRight: multitaskViewManager.isLayoutLeftToRight()
- signal qmlAppWindowActivated()
- signal qmlAppWindowCreated(int id)
- signal qmlAppWindowRemoved(int id)
- signal qmlDeviceModeChanged(bool modeFlag)
- signal qmlOrientationChanged(string orientation)
+ Item {
+ id : tabletViewMain
+ property var isWlcom : multitaskViewManager.isWlcom()
+ property var screenRect : multitaskViewModel.getFullScreenGeometry(multitaskViewModel.highlightDesktop, index)
+ // 整体缩放比
+ property var tabletScaleFactor : screenRect.width > screenRect.height ? screenRect.height / 1080 : screenRect.width / 1080
+ // 预览窗口宽高比
+ property real previewWinAspectRatio: screenRect.width / screenRect.height
+ // 图标和缩略图的间距
+ property int iconToThumbSpacing : 12 * tabletScaleFactor
+ // 图标高度
+ property int iconAndCloseButtonHeight : 32 * tabletScaleFactor
+ // 缩略图高度
+ property var preWinHeight
+ // 缩略图宽度
+ property var preWinWidth
+ property int borderWidth : 4 * tabletScaleFactor
+ // 预览窗口列间距
+ property var preWinVecSpace
+ // 预览窗口行间距
+ property var preWinHorSpace
+ // 滚动区域距离左侧和右侧的间距
+ property var scrollViewLeftSpace
+ // 滚动区域高度
+ property var scrollViewHeight
+ // 滚动区域 y 轴起始高度
+ property var scrollViewYStartPoint : getCurrentPreWindowHeight()
+ property ListModel tabletViewRootModel : ListModel{}
+ property var language : multitaskViewModel.getCurrentLanguage()
+ property int screenId: index
- //后台发送qmlAppWindowRemoved,通过qmlAppWindowRemovedForward通知视图模块删除model内的数据
- signal qmlAppWindowRemovedForward(int id)
+ x : Math.floor(screenRect.x)
+ y : Math.floor(screenRect.y)
+ width : Math.floor(screenRect.width)
+ height : Math.floor(screenRect.height)
- Connections{
- target : tabletViewMainWindow
+ // 这里放置后台提供的桌面背景的 Item
+ KWin.DesktopBackground {
+ anchors.fill : parent
+ blurAlpha : 0.7
+ }
- onQmlAppWindowActivated: {
- controller.closeMultitaskView();
+ function getCurrentPreWindowHeight()
+ {
+ console.log("当前开始计算每一个预览窗口的尺寸")
+ if ( screenRect.width > screenRect.height )
+ {
+ scrollViewYStartPoint = Math.floor(99 * tabletScaleFactor)
+ preWinHeight = Math.floor(324 * tabletScaleFactor)
+ preWinWidth = Math.floor(preWinHeight * previewWinAspectRatio)
+ preWinVecSpace = Math.floor(112 * tabletScaleFactor)
+ preWinHorSpace = Math.floor(56 * tabletScaleFactor)
+ scrollViewLeftSpace = Math.floor(112 * tabletScaleFactor)
+ scrollViewHeight = Math.floor(820 * tabletScaleFactor)
+ } else {
+ scrollViewYStartPoint = Math.floor(196 * tabletScaleFactor)
+ preWinHeight = Math.floor(498 * tabletScaleFactor)
+ preWinWidth = Math.floor(preWinHeight * previewWinAspectRatio)
+ preWinVecSpace = Math.floor(96 * tabletScaleFactor)
+ preWinHorSpace = Math.floor(68 * tabletScaleFactor)
+ scrollViewLeftSpace = Math.floor(96 * tabletScaleFactor)
+ scrollViewHeight = Math.floor(1196 * tabletScaleFactor)
+ }
}
+ focus : true
+ property int loadedWindowNum : 0
+ /*
+ 此处的focus不可以删除,因为后台在grabbedKeyboardEvent()函数中增加了setfocus()
+ 不增加focus:true前端无法接受键盘事件
+ 这是正向解决方法,其他方法非正向解决,不推荐!!!
+ */
- // onQmlAppWindowCreated: {
- // controller.closeMultitaskView();
- // }
+ signal blankAreaClickSignal()
+ signal clearAllWindowButtonClickSignal()
+ //由于执行小窗口关闭动效时,会关闭多任务视图多次,导致崩溃,故增加此属性
+ property bool alreadyCloseView: false
- onQmlDeviceModeChanged : {
- controller.closeMultitaskView();
+ function sequentialLoadWindow() {
+ var appWindowCount = appListModel.rowCount()
+ var info
+ if (loadedWindowNum < appWindowCount && loadedWindowNum < 6 ) {
+ info = appWindowListModel.getItemData(appListModel.mapToSource(appListModel.index(loadedWindowNum, 0)))
+ tabletViewRootModel.append({"x": info.x, "y": info.y,
+ "width": info.width, "height": info.height,
+ "id": info.id, "minimized": info.minimized,
+ "caption": info.caption, "uuid": String(info.uuid)});
+ loadedWindowNum = loadedWindowNum + 1
+ // console.log("加载窗口中,目前已加载窗口数量为" + loadedWindowNum)
+
+ } else {
+ sequentialLoadWindowTimer.stop()
+ // console.log("计时器停止,窗口数量为: " + tabletViewRootModel.count)
+ }
+ if (loadedWindowNum >= 6) {
+ sequentialLoadWindowTimer.stop()
+ console.log("计时器停止,接下来一次性加载所有窗口")
+ while (loadedWindowNum < appWindowCount) {
+ info = appWindowListModel.getItemData(appListModel.mapToSource(appListModel.index(loadedWindowNum, 0)))
+ tabletViewRootModel.append({"x": info.x, "y": info.y,
+ "width": info.width, "height": info.height,
+ "id": info.id, "minimized": info.minimized,
+ "caption": info.caption, "uuid": String(info.uuid),
+ "icon": info.icon});
+ loadedWindowNum = loadedWindowNum + 1
+ }
+ }
+ if (loadedWindowNum >= appWindowCount) {
+ sequentialLoadWindowTimer.stop()
+ // console.log("所有窗口加载完毕,显示全部清除按钮")
+ clearAllWindowButtonAppearAni.start()
+ }
}
- onQmlAppWindowRemoved: {
- qmlAppWindowRemovedForward(id)
+ function closeMultitaskView() {
+ if (!alreadyCloseView) {
+ alreadyCloseView = true
+ console.log("closeMultitaskView() !")
+ multitaskViewManager.close()
+ }
}
- }
- property var screenIndex : 0
- property var screenRect : multitaskViewModel.getFullScreenGeometry(1,0)
- property string orientation: multitaskViewModel.rotationMode
- //整体缩放比
- property var tabletScaleFactor : screenRect.width > screenRect.height ? screenRect.height / 1080 : screenRect.width / 1080
- //预览窗口宽高比
- property var preWinAspectRatio: screenRect.width / screenRect.height
- //图标和缩略图的间距
- property var iconToThumbSpacing : Math.floor(18 * tabletScaleFactor)
- //图标高度
- property var iconAndCloseButtonHeight : Math.floor(44 * tabletScaleFactor)
- //缩略图高度
- property var preWinHeight : Math.floor(320 * tabletScaleFactor)
- //缩略图宽度
- property var preWinWidth : Math.floor(preWinHeight * preWinAspectRatio)
- //预览窗口列间距
- property var preWinVecSpace : Math.floor(112 * tabletScaleFactor)
- //预览窗口行间距
- property var preWinHorSpace : Math.floor(56 * tabletScaleFactor)
- //滚动区域距离左侧和右侧的间距
- property var scrollViewLeftSpace : Math.floor(112 * tabletScaleFactor)
- //滚动区域高度
- property var scrollViewHeight : Math.floor(820 * tabletScaleFactor)
- //全部清除按钮x
- property var clearWindwoX : Math.floor(747 * tabletScaleFactor)
- //全部清除按钮y
- property var clearWindwoY : Math.floor(994 * tabletScaleFactor)
- //滚动区域y轴起始高度
- property var scrollViewYStartPoint : Math.floor(getCurrentPreWindowHeight())
-
- width : Math.floor(screenRect.width)
- height : Math.floor(screenRect.height)
- x : Math.floor(screenRect.x)
- y : Math.floor(screenRect.y)
- color : "transparent"
-
- /**********************************************函数*********************************************/
- function getCurrentPreWindowHeight()
- {
- if ( orientation == "normal" || orientation == "upside-down" )
- {
- scrollViewYStartPoint = Math.floor(99 * tabletScaleFactor)
- preWinHeight = Math.floor(320 * tabletScaleFactor)
- tabletParentWindow.preWinWidth = Math.floor(preWinHeight * preWinAspectRatio)
- preWinVecSpace = Math.floor(112 * tabletScaleFactor)
- preWinHorSpace = Math.floor(56 * tabletScaleFactor)
- scrollViewLeftSpace = Math.floor(112 * tabletScaleFactor)
- scrollViewHeight = Math.floor(820 * tabletScaleFactor)
- clearWindwoX = Math.floor(747 * tabletScaleFactor)
- clearWindwoY = Math.floor(994 * tabletScaleFactor)
+ // 控制启动动效中,小窗口之间的间隔
+ Timer {
+ id : sequentialLoadWindowTimer
+ interval : 150
+ repeat : true
+ running : false
+ triggeredOnStart : false
+ onTriggered: {
+ // console.log("计时器启动 间隔150")
+ tabletViewMain.sequentialLoadWindow()
+ }
}
- else if ( orientation == "left" || orientation == "right" )
- {
- scrollViewYStartPoint = Math.floor(196 * tabletScaleFactor)
- preWinHeight = Math.floor(498 * tabletScaleFactor)
- preWinWidth = Math.floor(preWinHeight * preWinAspectRatio)
- preWinVecSpace = Math.floor(96 * tabletScaleFactor)
- preWinHorSpace = Math.floor(68 * tabletScaleFactor)
- scrollViewLeftSpace = Math.floor(96 * tabletScaleFactor)
- scrollViewHeight = Math.floor(1196 * tabletScaleFactor)
- clearWindwoX = Math.floor(477 * tabletScaleFactor)
- clearWindwoY = Math.floor(1534 * tabletScaleFactor)
+
+ UkuiItem.DtThemeBackground {
+ id : scrollBackgroundArea
+ anchors.fill: parent
+ useStyleTransparency: true
+ backgroundColor: UkuiPlatform.GlobalTheme.kModalMask
+ // 无应用时的窗口显示
+ UkuiItem.DtThemeText {
+ id : noWindowText
+ anchors.centerIn : parent
+ font.bold : true
+ font.pixelSize : Math.floor(25 * tabletScaleFactor)
+ textColor : UkuiPlatform.GlobalTheme.kFontWhite
+ text : qsTr("No recent tasks") // 无应用开启
+ visible : tabletViewRootModel.count === 0
+ opacity : 0
+
+ SequentialAnimation{
+ id : noWindowTipsAnimation
+ // 无窗口文字出现动画
+ NumberAnimation {
+ id : noWindowTipsAppearAni
+ target : noWindowText
+ property : "opacity"
+ duration : 1000
+ easing.type : Easing.InOutQuart
+ from : 0
+ to : 1
+ }
+ // 无窗口文字消失动画
+ NumberAnimation {
+ id : noWindowTipsDisappearAni
+ target : noWindowText
+ property : "opacity"
+ duration : 1000
+ easing.type : Easing.InOutQuart
+ from : 1
+ to : 0
+ }
+ onFinished: {
+ console.log("无窗口文字消失动画")
+ tabletViewMain.closeMultitaskView()
+ }
+ }
+ }
}
- }
- TabletMultitaskView {
- id : tabletViewMain
- anchors.fill : parent
- color : "transparent"
+ // 预览窗口显示区域
+ ScrollView {
+ id : previewWindowShownRegion
+ anchors.fill : parent
+
+ //更新滚动区域的大小,之所以这么做,是为了解决滚动区域增加鼠标事件后,滚动失效的问题
+ function getContentWidth()
+ {
+ var maxColumn = Math.ceil(tabletViewRootModel.count / 2)
+ var scrollViewContentWidth = parent.width
+ if (tabletViewRootModel.count <= 4)
+ {
+ scrollViewContentWidth = parent.width
+ return Math.floor(scrollViewContentWidth)
+ }
+ scrollViewContentWidth = maxColumn * preWinWidth + maxColumn * gridLayout.columnSpacing + 2 * gridLayout.leftPadding
+ return Math.floor(scrollViewContentWidth)
+ }
+ contentWidth : Math.floor(previewWindowShownRegion.getContentWidth())
+ contentHeight : Math.floor(this.height)
+ ScrollBar.horizontal.policy : ScrollBar.AlwaysOff
+ ScrollBar.vertical.policy : ScrollBar.AlwaysOff
+
+ MouseArea {
+ anchors.fill : parent
+ onClicked : {
+ if (multitaskViewModel.isTabletMode) {
+ multitaskViewManager.setShowingDesktop(true)
+ }
+ tabletViewMain.blankAreaClickSignal()
+ }
+ }
+
+ Grid {
+ id : gridLayout
+ anchors.fill : parent
+ anchors.centerIn : parent
+ topPadding : Math.floor(scrollViewYStartPoint)
+ columnSpacing : Math.floor(preWinVecSpace)
+ rowSpacing : Math.floor(preWinHorSpace)
+ leftPadding : Math.floor(scrollViewLeftSpace)
+ rightPadding : Math.floor(scrollViewLeftSpace)
+ rows : 2
+ flow : Grid.TopToBottom
+ transformOrigin : "TopLeft"
+
+ //显示多任务视图时,每个Item在显示的时候执行的动效
+ add : Transition {
+ id : displayPreviewWinAnimation
+ ParallelAnimation {
+ NumberAnimation {
+ property : "opacity"
+ duration : 900
+ easing.type : Easing.InOutQuart
+ from : 0
+ to : 1
+ }
+ NumberAnimation {
+ property : "x"
+ duration : 900
+ easing.type : Easing.InOutQuart
+ from : Math.floor(parent.width / 2 - 510/*窗口的宽度*/ / 2)
+ }
+ NumberAnimation {
+ property : "y"
+ duration : 900
+ easing.type : Easing.InOutQuart
+ from : Math.floor(parent.height)
+ }
+ NumberAnimation {
+ property : "scale"
+ from : 0
+ to : 1.0
+ duration : 450
+ }
+ }
+ }
+
+ //关闭小窗口时,W补齐方式的动画
+ move : Transition {
+ NumberAnimation{
+ properties : "x,y";
+ easing.type : Easing.InOutQuart;
+ duration : 300
+ }
+ }
+
+ Repeater {
+ id : previewWindowRepeater
+ model : tabletViewRootModel
+
+ Item {
+ id : appWindowBack
+ height : Math.floor(preWinHeight + iconToThumbSpacing + iconAndCloseButtonHeight)
+ width : Math.floor(preWinWidth) + borderWidth * 2
+
+ TabletPreviewWindow {
+ id : appWindow
+ height : parent.height
+ width : parent.width
+ x_wid : model.id
+ wid : model.uuid
+ screenIndex : tabletViewMain.index
+ captionText : model.caption
+ preViewNoScaledWidth : model.width
+ preViewNoScaledHeight : model.height
+ preViewNoScaledXCoordinate : model.x
+ preViewNoScaledYCoordinate : model.y
+ icon: model.icon
+ }
+ }
+ }
+ }
+ }
+
+ // 清除所有窗口的按钮
+ UkuiItem.DtThemeBackground {
+ id : clearAllWindowButton
+ property int bottomMargin : 38 * tabletScaleFactor
+ height : Math.floor(48 * tabletScaleFactor)
+ width : language === "Chinese" ? Math.floor(112 * tabletScaleFactor) : Math.floor(184 * tabletScaleFactor)
+ backgroundColor: clearAllMousearea.containsPress ? UkuiPlatform.GlobalTheme.kComponentClick
+ : clearAllMousearea.containsMouse ? UkuiPlatform.GlobalTheme.kComponentHover : UkuiPlatform.GlobalTheme.kComponentNormal
+ radius : Math.floor(24 * tabletScaleFactor)
+ anchors.verticalCenter : parent.verticalCenter
+ anchors.verticalCenterOffset : Math.floor(tabletViewMain.height / 2) - bottomMargin - this.height
+ anchors.horizontalCenter : parent.horizontalCenter
+ visible : tabletViewRootModel.count > 0
+ opacity : 0
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "clear"
+ Accessible.description: "a push button, click to clear all preview windows"
+
+ Row {
+ anchors.centerIn: parent
+ spacing: Math.floor(8 * tabletScaleFactor)
+ UkuiItem.Icon {
+ id : deleteIcon
+ anchors.verticalCenter : parent.verticalCenter
+ width : Math.floor(16 * tabletScaleFactor)
+ height : Math.floor(16 * tabletScaleFactor)
+ source: "window-close-symbolic"
+ mode: UkuiItem.Icon.AutoHighlight
+ }
+
+ UkuiItem.DtThemeText {
+ id : deletText
+ anchors.verticalCenter : parent.verticalCenter
+ text : qsTr("Clear") // 清除
+ elide : isLayoutLeftToRight ? Text.ElideRight : Text.ElideLeft
+ font.pixelSize : Math.floor(18 * tabletScaleFactor)
+ textColor : UkuiPlatform.GlobalTheme.kFontPrimary
+ }
+ }
+
+ MouseArea {
+ id: clearAllMousearea
+ anchors.fill: parent
+ hoverEnabled: true
+
+ onClicked: {
+ console.log("全部清除被点击!")
+ clearAllWindowButtonDisappearAni.start()
+ tabletViewMain.clearAllWindowButtonClickSignal()
+ }
+ }
+
+ //全部清除按钮出现的动画
+ NumberAnimation {
+ id : clearAllWindowButtonAppearAni
+ target : clearAllWindowButton
+ properties : "opacity"
+ from : 0
+ to : 1
+ duration : tabletViewRootModel.count >= 6 ? 5 * 100 + 300 : (tabletViewRootModel.count - 1) * 100 + 300
+ easing.type : Easing.InOutQuart
+ }
+
+ //全部清除按钮消失的动画
+ NumberAnimation {
+ id : clearAllWindowButtonDisappearAni
+ target : clearAllWindowButton
+ properties : "opacity"
+ from : 1
+ to : 0
+ duration : 300
+ easing.type : Easing.InOutQuart
+ }
+
+ Connections {
+ target : tabletViewMain
+ function onBlankAreaClickSignal() {
+ clearAllWindowButtonDisappearAni.start()
+ }
+ }
+ }
+
+ Component.onCompleted: {
+ if (multitaskViewModel.currentDesktopHasWindow()) {
+ console.log("顺序加载窗口的启动计时器")
+ sequentialLoadWindowTimer.start()
+ } else {
+ console.log("启动无窗口动画")
+ noWindowTipsAnimation.start()
+ }
+ }
+
+ Keys.onPressed: {
+ if (event.key === Qt.Key_Escape) {
+ closeMultitaskView();
+ return;
+ }
+ if (event.modifiers & Qt.MetaModifier) {
+ if (event.key === Qt.Key_Tab) {
+ closeMultitaskView();
+ return;
+ }
+ }
+ }
+
+ Timer {
+ id : closeViewTimer
+ interval : 0
+ repeat : false
+ running : false
+ triggeredOnStart : false
+ onTriggered: {
+ closeMultitaskView()
+ }
+ }
+
+ AppWindowFilterModel {
+ id: appListModel
+ desktopId: multitaskViewModel.highlightDesktop
+ screenId: tabletViewMain.screenId
+ sourceModel: appWindowListModel
+ }
+
+ Connections {
+ target: multitaskViewModel
+ function onAppWindowRemoved(windowId) {
+ multitaskViewModel.removeAppWindow(windowId)
+
+ // remove window from tabletViewRootModel
+ for(var i = 0; i < tabletViewRootModel.count; i++){
+ var info = tabletViewRootModel.get(i);
+ if(info.uuid === windowId) {
+ tabletViewRootModel.remove(i);
+ break;
+ }
+ }
+ if (!multitaskViewModel.currentDesktopHasWindow()) {
+ closeViewTimer.start()
+ }
+ }
+ }
}
}
diff --git a/windowsview/qml/TabletViewRootWindow.qml b/windowsview/qml/TabletViewRootWindow.qml
deleted file mode 100644
index 0bf29359626a00d5b636ef2bb17222e104b0109a..0000000000000000000000000000000000000000
--- a/windowsview/qml/TabletViewRootWindow.qml
+++ /dev/null
@@ -1,155 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import "TabletController.js" as TabletController
-import IconTheme 1.0
-import QtQuick.Window 2.12
-import org.ukui.kwin 2.0 as KWin
-import QtGraphicalEffects 1.0
-
-Rectangle{
- id : tabletRootWindow
- anchors.fill : parent
- property var controller : new TabletController.Controller(multitaskViewModel, tabletRootWindow, multitaskViewManager, ["none"])
- property var appWindowCount : 0
- property var loadedWindowNum : 0
- property ListModel tabletViewRootModel : ListModel{}
-
- /**********************************************函数*********************************************/
- function viewSpacingClickedController()
- {
- clearAllWindow.startClearAllBtnDisappearAni()
- qmlViewSpaceClicked()
- }
-
- function startNoWindowTipsAnimation()
- {
- noWindowTipsAnimation.start()
- }
- function startSequentialLoadWindowTimer()
- {
- sequentialLoadWindowTimer.start()
- }
-
- function fetchWindowNum(){
- var appWindowList = multitaskViewModel.getAppWindowList(1,tabletViewMainWindow.screenIndex)
- for (var i in appWindowList)
- {
- tabletRootWindow.appWindowCount = tabletRootWindow.appWindowCount+1
- }
- controller.initViewAnimation()
- }
-
- function sequentialLoadWindow() {
- var appWindowList = multitaskViewModel.getAppWindowList(1,tabletViewMainWindow.screenIndex)
- if (loadedWindowNum < appWindowCount && loadedWindowNum < 6 )
- {
- var info = appWindowList[loadedWindowNum]
- tabletViewRootModel.append({"x": info.x, "y": info.y,
- "width": info.width, "height": info.height,
- "id": info.id,"minimized":info.minimized, "caption": info.caption});
- loadedWindowNum = loadedWindowNum+1
- console.log("加载窗口中,目前已加载窗口数量为" + loadedWindowNum)
-
- }
- else
- {
- sequentialLoadWindowTimer.stop()
- console.log("计时器停止,窗口数量为: " + tabletViewRootModel.count)
- }
- if (loadedWindowNum >= 6)
- {
- sequentialLoadWindowTimer.stop()
- while(loadedWindowNum < appWindowCount)
- {
- var info = appWindowList[loadedWindowNum]
- tabletViewRootModel.append({"x": info.x, "y": info.y,
- "width": info.width, "height": info.height,
- "id": info.id,"minimized":info.minimized, "caption": info.caption});
- loadedWindowNum = loadedWindowNum + 1
- }
- console.log("sequentialLoadWindow的剩余窗口加载完毕!!!")
-
- }
- if (loadedWindowNum >= appWindowCount || appWindowCount <= 0)
- {
- console.log("全部清除按钮显示或者无窗口显示")
- sequentialLoadWindowTimer.stop()
- clearAllWindow.startClearAllBtnAppearAni()
- }
- }
-
- /**********************************************动画*********************************************/
- SequentialAnimation{
- id : noWindowTipsAnimation
- //无窗口文字出现动画
- NumberAnimation {
- id : noWindowTipsAppearAni
- target : noWindowText
- property : "opacity"
- duration : 1000
- easing.type : Easing.InOutQuart
- from : 0
- to : 1
- }
-
- //无窗口文字消失动画
- NumberAnimation {
- id : noWindowTipsDisappearAni
- target : noWindowText
- property : "opacity"
- duration : 1000
- easing.type : Easing.InOutQuart
- from : 1
- to : 0
- }
- onFinished: {
- controller.closeMultitaskView()
- }
- }
-
-
- //控制启动动效中,小窗口之间的间隔
- Timer {
- id : sequentialLoadWindowTimer;
- interval : 100;
- repeat : true
- running : false
- triggeredOnStart : false
- onTriggered: {
- tabletRootWindow.sequentialLoadWindow()
- }
- }
-
- //这里放置后台提供的桌面背景的Item
- KWin.DesktopBackground {
- width : Math.floor(tabletRootWindow.width)
- height : Math.floor(tabletRootWindow.height)
- blurAlpha : 0.7
- z : -1
- }
-
- //无应用时的窗口显示
- Text {
- id : noWindowText
- anchors.centerIn : parent
- font.bold : true
- font.pixelSize : 25
- color : "white"
- text : qsTr("无应用开启")
- visible : tabletViewRootModel.count == 0
- opacity : 0
- }
-
- //根窗口的鼠标事件
- MouseArea{
- anchors.fill : parent
- onClicked: {
- controller.viewSpacingClickedController()
- }
- }
-
- Component.onCompleted: {
- tabletRootWindow.fetchWindowNum();
- }
-}
diff --git a/windowsview/qml/ThumbnailWithKwin.qml b/windowsview/qml/ThumbnailWithKwin.qml
new file mode 100644
index 0000000000000000000000000000000000000000..bebf44a699a84ac72ae43d447ad1505461c1a2d6
--- /dev/null
+++ b/windowsview/qml/ThumbnailWithKwin.qml
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import org.kde.kwin 3.0 as KWinComponents
+
+KWinComponents.WindowThumbnailItem {
+ id : appWindowThumbnail
+ anchors.fill : parent
+ wId : thumbnailId
+}
diff --git a/windowsview/qml/ThumbnailWithWlcom.qml b/windowsview/qml/ThumbnailWithWlcom.qml
new file mode 100644
index 0000000000000000000000000000000000000000..59b0382aac9cf8b28de5252b817a46da6f0bbe4d
--- /dev/null
+++ b/windowsview/qml/ThumbnailWithWlcom.qml
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import org.kylin.thumbnail 1.0 as WlcomThumbnail
+
+WlcomThumbnail.ThumbnailItem {
+ anchors.fill: parent
+ windowId: thumbnailId
+}
+
diff --git a/windowsview/qml/VirtualDesktopWindow.qml b/windowsview/qml/VirtualDesktopWindow.qml
new file mode 100644
index 0000000000000000000000000000000000000000..068b30bc293c3acb57dde764fa621fa482f4ec3e
--- /dev/null
+++ b/windowsview/qml/VirtualDesktopWindow.qml
@@ -0,0 +1,415 @@
+/*
+ * Copyright (C) 2022, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/*
+ 此文件是虚拟桌面的预览窗口的内容设置
+*/
+
+import QtQuick 2.12
+import QtQuick.Layouts 1.3
+import QtQuick.Window 2.12
+import org.kylin.background 3.0 as KWin
+//import org.kde.kwin 3.0 as KWinComponents
+import QtGraphicalEffects 1.0
+import "Controller.js" as Controller
+//ukui-quick
+import org.ukui.quick.items 1.0 as UkuiItem
+import org.ukui.quick.platform 1.0 as UkuiPlatform
+
+Item {
+ id : root
+ width : isVerticalLayout ? desktopRectWidth : desktopRect.width
+ height : isVerticalLayout ? desktopRect.height - 8 : desktopRectHeight
+ activeFocusOnTab: index === 0 ? true : false
+ focus : true
+ property string windowType : "desktop"
+ property var wid : index + 1
+ // Using the Drag attached property, any Item can be made a source of drag and drop events within a scene
+ Drag.active : previewMouseArea.drag.active
+ Drag.hotSpot.x : width / 2
+ Drag.hotSpot.y : height / 2
+ property bool windowDragActive : previewMouseArea.drag.active
+ property bool nowDragActive: false
+ property var controller : new Controller.DesktopController(multitaskViewModel, this, multitaskViewManager, ["app","desktop"])
+ property real posX : 0
+ property real posY : 0
+ // 用户自定义工作区名称
+ property string customName: ""
+
+ states: [
+ State {
+ name : "tabAndDragActive"
+ when: root.activeFocus && root.windowDragActive && (multitaskViewManager.shouldShowTabBorder)
+ PropertyChanges { target: previewArea; borderColor: tabFocusBorderColor }
+ ParentChange { target: root; parent: desktopRect }
+ },
+ State {
+ name : "tabActive"
+ when: root.activeFocus && (multitaskViewManager.shouldShowTabBorder)
+ PropertyChanges { target: previewArea; borderColor: tabFocusBorderColor }
+ },
+ State {
+ name : "dragActive"
+ when : nowDragActive
+ ParentChange { target: root; parent: desktopRect }
+ }
+ ]
+
+ Keys.onPressed: {
+ if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter || event.key === Qt.Key_Space) {
+ controller.setCurrentDesktop(root.wid)
+ controller.onWindowClicked(root.wid)
+ event.accepted = true
+ } else if (event.key === Qt.Key_Escape) {
+ controller.closeMultitaskView()
+ } else if (event.modifiers & Qt.MetaModifier) {
+ if (event.key === Qt.Key_Tab) {
+ controller.closeMultitaskView()
+ }
+ } else if (event.key === Qt.Key_Tab) {
+ if (index === 0 ) {
+ desktopListView.currentIndex = desktopListView.count - 1
+ multitaskViewManager.setShouldShowTabBorder(true)
+ }
+ }
+ }
+
+ onActiveFocusChanged: {
+ if (index === 0 && root.activeFocus) {
+ desktopListView.currentIndex = 0
+ var offsetPosition = isVerticalLayout ? desktopListView.contentX : desktopListView.contentY
+ if (offsetPosition > 0) {
+ contentMoveAnimation.to = 0
+ contentMoveAnimation.start()
+ }
+ multitaskViewManager.activeAreaChangeDataCollect("Workspace Preview Area")
+ }
+ }
+
+ // 工作区位置移动触发下方信号
+ onWindowDragActiveChanged : {
+ // 需要保证让 dragRectangle 先恢复原来的 parent 再移动到合适的位置
+ // 因为直接使用 windowDragActive 变量并无法实现上述控制顺序,所以
+ // 需要额外的变量 nowDragActive 来实现 ParentChange,然后再移动到
+ // 合适的位置
+ if (nowDragActive != windowDragActive) {
+ nowDragActive = windowDragActive
+ }
+ if (windowDragActive) {
+ opacity = 0.75
+ } else {
+ // 工作区取消拖动后需要返回原来的位置,如果拖拽产
+ // 生了工作区的位置交换也没有关系,也不会影响动效
+ opacity = 1
+ this.posX = 0
+ this.posY = 0
+ controller.rejectSource(root)
+ }
+ }
+
+ Item {
+ id : desktopDragRect
+ anchors.fill: parent
+ anchors.centerIn : parent
+ state : "default"
+ property int desktopIndex: root.wid
+
+ states : [
+ State {
+ name : "default"
+ PropertyChanges {
+ target : previewArea
+ borderColor : desktopDragRect.getWorkspaceDefaultBorderColor()
+ }
+ PropertyChanges { target : closeButton; visible : rootWindow.isTouchState ? true : false }
+ PropertyChanges { target : editButton; visible : false }
+ },
+ State {
+ name : "hover"
+ PropertyChanges {
+ target : previewArea
+ borderColor : desktopDragRect.getWorkspaceHoverBorderColor()
+ }
+ PropertyChanges { target : closeButton; visible : true && !captionEdit.editable }
+ PropertyChanges { target : editButton; visible : true && !captionEdit.editable}
+ }
+ ]
+
+ MouseArea {
+ id : previewMouseArea
+ anchors.fill : parent
+ hoverEnabled : true
+ preventStealing : true
+ drag.axis : isVerticalLayout ? Drag.XAxis : Drag.YAxis
+ drag.target : root
+
+ Accessible.role: Accessible.Button
+ Accessible.name: "desktop-" + root.wid
+ Accessible.description: "preview-desktop, click to enter the desktop"
+
+ onEntered : {
+ controller.setHoverStatus();
+ }
+ onExited : {
+ controller.setDefaultStatus()
+ }
+ onClicked : {
+ controller.onWindowClicked(root.wid)
+ }
+
+ ColumnLayout {
+ id : mainVerticalLayout
+ anchors.fill: parent
+ anchors.centerIn : parent
+ spacing : spacingWidth
+
+ RowLayout {
+ id : captionRow
+ spacing : 0
+ Layout.fillHeight : true
+ Layout.rightMargin: workspaceBorderWidth
+ layoutDirection: isLayoutLeftToRight ? Qt.LeftToRight : Qt.RightToLeft
+ Layout.preferredHeight: desktopCaptionHeight
+ Layout.maximumHeight: root.height - mainVerticalLayout.spacing - previewArea.height
+
+ LineEdit {
+ id: captionEdit
+ editable: false
+ enableLayoutMirroring: !isLayoutLeftToRight
+ Layout.fillWidth : true
+ Layout.maximumWidth: (editable || !editButton.visible) ? desktopRectWidth : contentTextWidth + Math.floor(8 * scaleFactor)
+ Layout.leftMargin : workspaceBorderWidth
+ Layout.preferredHeight: Math.min(desktopCaptionHeight, captionRow.height)
+
+ onTextEditingFinished: {
+ if (itemDisplayText != defaultText) {
+ customName = itemDisplayText
+ } else {
+ //清空输入则恢复默认名称
+ customName = captionEdit.isDefaultText ? "" : defaultText
+ }
+ //在输入状态按回车键保存时,要求仅保存名称,不退出任务视图界面
+ //工作区名称编辑结束,需要将焦点还给root,否则会影响工作区键盘导航
+ root.forceActiveFocus()
+ }
+ }
+ Binding {
+ id: defaultTextBinding
+ target: captionEdit
+ property: "defaultText"
+ value: qsTr("Desktop") + " " + root.wid
+ }
+ Binding {
+ target: captionEdit
+ property: "itemDisplayText"
+ value: customName.length === 0 ? captionEdit.defaultText : customName
+ }
+
+ Rectangle {
+ id : editButton
+ implicitWidth : Math.floor(16 * scaleFactor)
+ implicitHeight: width
+ color : "transparent"
+ Accessible.role: Accessible.Button
+ Accessible.name: "edit-desktop-name-" + root.wid
+ Accessible.description: "push-button, click to rename the desktop"
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: {
+ captionEdit.editable = true
+ }
+ }
+ UkuiItem.Icon {
+ id: editIcon
+ anchors.centerIn: parent
+ width: parent.width
+ height: width
+ source: "document-edit-symbolic"
+ mode: UkuiItem.Icon.AutoHighlight
+ }
+ }
+
+ Item {
+ // 填充剩余空间
+ Layout.fillWidth : true
+ Layout.minimumWidth: Math.floor(8 * scaleFactor)
+ visible: editButton.visible
+ }
+
+ CloseButton {
+ id : closeButton
+ implicitWidth : Math.min(iconAndCloseButtonHeight, captionRow.height)
+ implicitHeight : width
+ radius : width / 2
+ windowType : "desktop"
+
+ Accessible.name: "close-desktop-" + root.wid
+ Accessible.description: "close-button, click to remove the desktop"
+
+ onClicked : {
+ if (desktopListModel.rowCount() > 2) {
+ //剩余[1个工作区+"新建工作区"]时不会删除"工作区1",属性绑定不能解除
+ defaultTextBinding.when = false
+ }
+ controller.removePreviewWindow(root.wid)
+ }
+ onExited: {
+ if (!previewMouseArea.containsMouse) {
+ root.setDefaultStatus()
+ }
+ }
+ }
+ }//RowLayout
+
+ UkuiItem.DtThemeBackground {
+ id : previewArea
+ Layout.fillWidth: true
+ Layout.fillHeight: false
+ Layout.preferredHeight: desktopThumbnailHeight + 2 * border.width
+ color : "transparent"
+ borderColor : defaultBorderColor
+ border.width : workspaceBorderWidth
+ radius : UkuiPlatform.GlobalTheme.kRadiusWindow * scaleFactor
+
+ Rectangle {
+ id: workspace
+ anchors.centerIn: parent
+ width : desktopThumbnailWidth
+ height : desktopThumbnailHeight
+ color : "black"
+ radius : UkuiPlatform.GlobalTheme.kRadiusMenu * scaleFactor
+ clip : true
+ visible : true
+ layer.enabled : workspace.radius !== 0
+ layer.effect : OpacityMask {
+ maskSource : Rectangle {
+ width : desktopThumbnailWidth
+ height : desktopThumbnailHeight
+ radius : workspace.radius
+ }
+ }
+ KWin.DesktopBackground {
+ id : desktopThumbnailBackground
+ anchors.centerIn : parent
+ width : desktopThumbnailWidth
+ height : desktopThumbnailHeight
+ blurAlpha : 0
+ }
+
+ Loader {
+ id : workSpaceThumbnailLoader
+ width : desktopThumbnailWidth
+ height : desktopThumbnailHeight
+ source: isWlcom ? "WorkSpaceThumbnailWithWlcom.qml" : "WorkSpaceThumbnailWithKwin.qml"
+ }
+
+ UkuiItem.DtThemeBackground {
+ id : desktopMaskColor
+ visible : false
+ anchors.fill: parent
+ backgroundColor : UkuiPlatform.GlobalTheme.kModalMask
+ }
+ }
+ }
+ }//culumnLayout
+ }
+
+ // 应用程序预览窗口拖动到虚拟桌面,虚拟桌面区域收到下方信号
+ DropArea {
+ id : previewDropArea
+ anchors.fill : parent
+ visible: !root.windowDragActive
+ onEntered : {
+ if (drag.source.windowType == "app") {
+ desktopMaskColor.visible = true
+ }
+ if (drag.source.wid !== root.wid) {
+ controller.onSourceEntered(drag.source, drag.source.wid, root.wid);
+ }
+ }
+ onExited : {
+ desktopMaskColor.visible = false
+ }
+ onDropped : {
+ desktopMaskColor.visible = false
+ controller.onSourceDropped(drop.source, rootWindow.highlightDesktop, root.wid);
+ }
+ }
+
+ function getWorkspaceDefaultBorderColor()
+ {
+ if (root.activeFocus && (multitaskViewManager.shouldShowTabBorder)) {
+ return tabFocusBorderColor
+ } else if (highlightDesktop === root.wid) {
+ return hoverBorderColor
+ } else {
+ return defaultBorderColor
+ }
+ }
+
+ function getWorkspaceHoverBorderColor()
+ {
+ if (root.activeFocus && (multitaskViewManager.shouldShowTabBorder)) {
+ return tabFocusBorderColor
+ } else {
+ return hoverBorderColor
+ }
+ }
+ }
+
+ NumberAnimation on x{
+ id : movePreX
+ duration : 0
+ running : false
+ }
+
+ NumberAnimation on y{
+ id : movePreY
+ duration : 0
+ running : false
+ }
+
+ function returnOriginal(x,y)
+ {
+ movePreX.to = 0
+ movePreY.to = 0
+ movePreX.from = x
+ movePreY.from = y
+ movePreX.stop()
+ movePreY.stop()
+ movePreX.start()
+ movePreY.start()
+ }
+
+ function setDefaultStatus() {
+ desktopDragRect.state = "default"
+ }
+
+ function setHoverStatus() {
+ desktopDragRect.state = "hover"
+ }
+
+ Component.onCompleted: {
+ if (root.activeFocusOnTab && appAreaModel.rowCount() === 0) {
+ // 无应用窗口时获取tab焦点
+ root.forceActiveFocus()
+ }
+ }
+}
diff --git a/windowsview/qml/WorkSpaceThumbnailWithKwin.qml b/windowsview/qml/WorkSpaceThumbnailWithKwin.qml
new file mode 100644
index 0000000000000000000000000000000000000000..1617d03adbbe7fcbb993db34a81dfbb93475f5fe
--- /dev/null
+++ b/windowsview/qml/WorkSpaceThumbnailWithKwin.qml
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import QtQuick 2.12
+import QtQuick.Window 2.12
+import org.kde.kwin 3.0 as KWinComponents
+import AppWindowFilterModel 1.0
+
+Item {
+ id: root
+ anchors.fill: parent
+
+ Repeater {
+ id : desktopWindowRepeater
+
+ model : AppWindowFilterModel {
+ id: kwinWorkspaceThumbnailModel
+ desktopId: desktopDragRect.desktopIndex
+ screenId: mainView.screenIndex
+ sourceModel: multitaskViewModel.isCurrentDesktopShowingDesktop() ? {} : appWindowListModel
+ }
+
+ KWinComponents.WindowThumbnailItem {
+ width : Math.floor(model.Width * desktopScale)
+ height : Math.floor(model.Height * desktopScale)
+ visible : !(model.Minimized)
+ x : Math.floor((model.X - screenRect.x) * desktopScale)
+ y : Math.floor((model.Y - screenRect.y) * desktopScale)
+ wId: model.Uuid
+ }
+ }
+}
diff --git a/windowsview/qml/WorkSpaceThumbnailWithWlcom.qml b/windowsview/qml/WorkSpaceThumbnailWithWlcom.qml
new file mode 100644
index 0000000000000000000000000000000000000000..a315c63bf1c194fe96a5445b4648626defd3297d
--- /dev/null
+++ b/windowsview/qml/WorkSpaceThumbnailWithWlcom.qml
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2024, KylinSoft Co., Ltd.
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import QtQuick 2.12
+import QtQuick.Window 2.12
+import org.kylin.thumbnail 1.0 as WlcomThumbnail
+
+WlcomThumbnail.ThumbnailItem {
+ anchors.fill: parent
+ thumbnailType: 2
+ outputId: multitaskViewModel.getOutputUuid(mainView.screenIndex)
+ windowId: multitaskViewModel.getDesktopUuid(wid)
+}
+
+
+
+
diff --git a/windowsview/qml/multitaskview.qml b/windowsview/qml/multitaskview.qml
deleted file mode 100644
index bdd1818c8fd7f8787ba6b8f0806d44dd1c831018..0000000000000000000000000000000000000000
--- a/windowsview/qml/multitaskview.qml
+++ /dev/null
@@ -1,287 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-import QtQuick.Layouts 1.3
-import QtQuick.Window 2.12
-import org.kde.kwin 3.0 as KWinComponents
-import QtGraphicalEffects 1.0
-import "Controller.js" as Controller
-import IconTheme 1.0
-
-Repeater {
- id : allroot
- property int screencnt : multitaskViewModel.logicalScreenCount
- model : screencnt
- signal qmlAppWindowCreated(int visiblestatus)
- signal qmlAppWindowRemoved(int Id)
- signal qmlAppWindowActivated()
- signal qmlAppWindowDesktopChanged(int windowId, int oldDesktopIndex, int newDesktopIndex)
- signal qmlDesktopRemoved(int Id)
- signal qmlDesktopAppended(int Id)
- signal qmlDesktopMoved(int oldDesktop,int newDesktop)
- signal qmlCurrentDesktopChanged(int old,int newId)
- signal qmlScreenCountChanged(int oldCount,int newCount)
- signal qmlScreenSizeChanged()
- property int highlightDesktop : multitaskViewModel.getCurrentDesktop()
- property var allcontroller : new Controller.Controller(multitaskViewModel, allroot, multitaskViewManager, ["none"])
- property var currentTheme : multitaskViewModel.getUKUIStyleName()
- property var closeButtonHoverColor : setItemColor()
- property var closeButtonDefaultColor : ""
- property var closeButtonClickColor : ""
- property var createDesktopButtonReceiveColor : ""
- property var createDesktopButtonDefaultColor : ""
- property var desktopMaskReceiveColor : ""
- property var desktopCaptionColor : ""
- property var desktopAreaColor : ""
- focus : true
-
- function setItemColor() {
- closeButtonDefaultColor = Qt.rgba(255,255,255, 0.15)
- if (allroot.currentTheme === "ukui-default" || allroot.currentTheme === "ukui-white"
- || allroot.currentTheme === "ukui" || allroot.currentTheme === "ukui-light")
- {
- closeButtonHoverColor = Qt.rgba(255,255,255, 1)
- closeButtonClickColor = Qt.rgba(217,217,217, 1)
- createDesktopButtonReceiveColor = Qt.rgba(0, 0, 0, 0.25)
- createDesktopButtonDefaultColor = Qt.rgba(0, 0, 0, 0.15)
- desktopMaskReceiveColor = Qt.rgba(0, 0, 0, 0.25)
- desktopCaptionColor = Qt.rgba(0,0,0,1)
- desktopAreaColor = Qt.rgba(245/255, 245/255, 245/255,0.75)
- }
- else
- {
- closeButtonHoverColor = "#37373B"
- closeButtonClickColor = Qt.rgba(75,75,79, 1)
- createDesktopButtonReceiveColor = Qt.rgba(0, 0, 0, 0.1)
- createDesktopButtonDefaultColor = Qt.rgba(255, 255, 255, 0.15)
- desktopMaskReceiveColor = Qt.rgba(255, 255, 255, 0.25)
- desktopCaptionColor = Qt.rgba(255, 255, 255, 1)
- desktopAreaColor = Qt.rgba(35/255, 36/255, 38/255, 0.75)
- }
- }
-
- onQmlAppWindowCreated : {
- // allroot.allcontroller.closeMultitaskView();
- }
-
- onQmlAppWindowActivated: {
- allroot.allcontroller.closeMultitaskView();
- }
-
- onQmlScreenCountChanged : {
- allroot.allcontroller.closeMultitaskView();
- }
-
- onQmlScreenSizeChanged : {
- allroot.allcontroller.closeMultitaskView();
- }
-
- Keys.onPressed : {
- if (event.key === Qt.Key_Escape) {
- allroot.allcontroller.closeMultitaskView();
- return;
- }
- if (event.modifiers & Qt.MetaModifier)
- {
- if (event.key === Qt.Key_Tab)
- {
- allroot.allcontroller.closeMultitaskView();
- return;
- }
- }
- }
-
- Rectangle {
- // 窗口缩略图区域
- id :root
- property var windowIndex : index
- property var screenRect : multitaskViewModel.getFullScreenGeometry(multitaskViewModel.getCurrentDesktop(),root.windowIndex)
- width : screenRect.width
- height : screenRect.height
- x : screenRect.x
- y : screenRect.y
-
- color : "transparent"
- objectName : "root"
- property var controller : new Controller.Controller(multitaskViewModel, root, multitaskViewManager, ["none"])
-
- Connections{
- target : allroot
- onQmlAppWindowRemoved : {
- for(var i = 0;i.
+ * *
+ * * Authors: iaom
+ *
+ */
+
+#include
+#include "screens-manager.h"
+
+Screen::Screen(QScreen *screen, QObject *parent): QObject(parent), m_screen(screen)
+{
+
+}
+
+QRect Screen::geometry() const
+{
+ return m_screen->geometry();
+}
+
+QScreen *Screen::internal()
+{
+ return m_screen;
+}
+
+bool Screen::enable()
+{
+ return m_enable;
+}
+
+void Screen::setEnable(bool enable)
+{
+ if(m_enable != enable) {
+ m_enable = enable;
+ Q_EMIT enableChanged(m_enable);
+ }
+}
+
+ScreensManager::ScreensManager(QObject *parent) : QObject(parent)
+{
+ for(auto screen : qApp->screens()) {
+ onScreenAdded(screen);
+ }
+ connect(qApp, &QGuiApplication::screenAdded, this, &ScreensManager::onScreenAdded);
+ connect(qApp, &QGuiApplication::screenRemoved, this, &ScreensManager::onScreenRemoved);
+ connect(qApp, &QGuiApplication::primaryScreenChanged, this, &ScreensManager::onPrimaryScreenChanged);
+}
+
+ScreensManager::~ScreensManager()
+{
+ qDeleteAll(m_screens);
+}
+
+QList ScreensManager::screens()
+{
+ QList tmp;
+ for(auto screen : m_screens) {
+ if(screen->enable()) {
+ tmp.append(screen);
+ }
+ }
+ return tmp;
+}
+
+Screen *ScreensManager::primaryScreen()
+{
+ return m_primaryScreen;
+}
+
+void ScreensManager::onScreenAdded(QScreen *screen)
+{
+ auto s = new Screen(screen, this);
+ if(screen == qApp->primaryScreen()) {
+ m_primaryScreen = s;
+ Q_EMIT primaryScreenChanged(s);
+ }
+ m_screens.append(s);
+ connect(s->internal(), &QScreen::geometryChanged, this, [&, s](){
+ checkScreensGeometryStatus(s);
+ });
+ connect(s, &Screen::enableChanged, this, [&, s](bool enable){
+ onEnableChanged(s, enable);
+ });
+ checkScreensGeometryStatus(s);
+}
+
+void ScreensManager::onScreenRemoved(QScreen *screen)
+{
+ int i = 0;
+ for(; i <= m_screens.size(); ++i) {
+ if(m_screens.at(i)->internal() == screen) {
+ break;
+ }
+ }
+ if(i < m_screens.size()) {
+ auto s = m_screens.takeAt(i);
+ Q_EMIT screenRemoved(s);
+ s->deleteLater();
+ }
+}
+
+void ScreensManager::onPrimaryScreenChanged(QScreen *screen)
+{
+ if(m_primaryScreen->internal() != screen) {
+ for(auto s : m_screens) {
+ if(s->internal() == screen) {
+ if(!s->enable()) {
+ s->setEnable(true);
+ }
+ m_primaryScreen = s;
+ Q_EMIT primaryScreenChanged(s);
+ return;
+ }
+ }
+ }
+}
+
+void ScreensManager::onEnableChanged(Screen *screen, bool enable)
+{
+ if(enable) {
+ Q_EMIT screenAdded(screen);
+ } else {
+ Q_EMIT screenRemoved(screen);
+ }
+}
+
+void ScreensManager::checkScreensGeometryStatus(Screen* screen)
+{
+ if(screen == nullptr || m_primaryScreen == nullptr) {
+ return;
+ }
+
+ for(auto s : m_screens) {
+ if(s == nullptr) {
+ continue;
+ }
+ if(s->internal()->geometry() == screen->geometry() && s != screen) {
+ if(s == m_primaryScreen) {
+ screen->setEnable(false);
+ Q_EMIT s->geometryChanged(s->internal()->geometry());
+ return;
+ } else {
+ s->setEnable(false);
+ Q_EMIT screen->geometryChanged(screen->internal()->geometry());
+ return;
+ }
+ } else {
+ if(!s->enable()) {
+ s->setEnable(true);
+ }
+ Q_EMIT s->geometryChanged(s->internal()->geometry());
+ }
+ }
+}
diff --git a/windowsview/screens-manager.h b/windowsview/screens-manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..61a45427ccfc6b8baab39de38726fc67986f565d
--- /dev/null
+++ b/windowsview/screens-manager.h
@@ -0,0 +1,73 @@
+/*
+ * * Copyright (C) 2024, KylinSoft Co., Ltd.
+ * *
+ * * This program is free software: you can redistribute it and/or modify
+ * * it under the terms of the GNU General Public License as published by
+ * * the Free Software Foundation, either version 3 of the License, or
+ * * (at your option) any later version.
+ * *
+ * * This program is distributed in the hope that it will be useful,
+ * * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * * GNU General Public License for more details.
+ * *
+ * * You should have received a copy of the GNU General Public License
+ * * along with this program. If not, see .
+ * *
+ * * Authors: iaom
+ *
+ */
+
+#ifndef SCREENS_MANAGER_H
+#define SCREENS_MANAGER_H
+#include
+#include
+
+class ScreensManager;
+class Screen : public QObject
+{
+ Q_OBJECT
+public:
+ explicit Screen(QScreen *screen, QObject *parent = nullptr);
+ Q_DISABLE_COPY(Screen);
+
+public:
+ QRect geometry() const;
+ QScreen * internal();
+ bool enable();
+ void setEnable(bool enable);
+Q_SIGNALS:
+ void geometryChanged(const QRect &geometry);
+ void enableChanged(bool enable);
+
+private:
+ QScreen *m_screen = nullptr;
+ bool m_enable = false;
+};
+class ScreensManager : public QObject
+{
+ Q_OBJECT
+public:
+ explicit ScreensManager(QObject *parent = nullptr);
+ ~ScreensManager();
+ QList screens();
+ Screen * primaryScreen();
+
+Q_SIGNALS:
+ void screenAdded(Screen *);
+ void screenRemoved(Screen *);
+ void primaryScreenChanged(Screen *);
+
+private Q_SLOTS:
+ void onScreenAdded(QScreen *screen);
+ void onScreenRemoved(QScreen *screen);
+ void onPrimaryScreenChanged(QScreen *screen);
+ void onEnableChanged(Screen *screen, bool enable);
+ void checkScreensGeometryStatus(Screen *screen);
+private:
+ Screen *m_primaryScreen = nullptr;
+ QList m_screens;
+
+};
+
+#endif //SCREENS_MANAGER_H
diff --git a/windowsview/translations/ukui-window-switch_bo_CN.ts b/windowsview/translations/ukui-window-switch_bo_CN.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6ce331fc27fcca0b976032c041f438e1be8710f9
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_bo_CN.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ ལས་ཁུལ་གསར་འཛུགས།
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ བེད་སྤྱོད་སྒོ་འབྱེད་མེད།
+
+
+
+ Clear
+ གསལ་པོར་བཤད་ན།
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ ཅོག་ཙེའི་སྟེང་གི
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_de.ts b/windowsview/translations/ukui-window-switch_de.ts
new file mode 100644
index 0000000000000000000000000000000000000000..c0a5de431526a5c19268ae868dc33925dbc0b558
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_de.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ Neuer Desktop
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ Keine aktuellen Aufgaben
+
+
+
+ Clear
+ Klar
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ Desktop
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_es.ts b/windowsview/translations/ukui-window-switch_es.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d6b0244542640e3b75e61de3a08a527a82cfbfbc
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_es.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ Nuevo escritorio
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ No hay tareas recientes
+
+
+
+ Clear
+ Claro
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ Escritorio
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_fr.ts b/windowsview/translations/ukui-window-switch_fr.ts
new file mode 100644
index 0000000000000000000000000000000000000000..bdb68d96c7e115cb0fd7723d75cfdde86a22f702
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_fr.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ Nouveau bureau
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ Pas de tâches récentes
+
+
+
+ Clear
+ Clair
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ Bureau
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_kk.ts b/windowsview/translations/ukui-window-switch_kk.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b3fd344bacbdbc001ecb231b508d8409179ce9c3
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_kk.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ ۇستەل جوعارعى
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ جاقىنعى مىندەتتەر جوق
+
+
+
+ Clear
+ تازالاۋ
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ ۇستەل بەتى
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_ky.ts b/windowsview/translations/ukui-window-switch_ky.ts
new file mode 100644
index 0000000000000000000000000000000000000000..cbd03e0fe14821818b7993afc10822c4ad6e48cd
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_ky.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ شىرە ۉستۉ
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ جاقىندا مٸلدەتتەر جوق
+
+
+
+ Clear
+ تازالوو
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ ئۈستەلئۈستى
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_mn.ts b/windowsview/translations/ukui-window-switch_mn.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b7682dd1a7cf21f5163b3a9c0e0144c060720350
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_mn.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ ᠱᠢᠨᠡᠪᠡᠷ ᠪᠠᠢᠭᠤᠯᠤᠭ᠍ᠰᠠᠨ ᠠᠵᠢᠯᠯᠠᠬᠤ ᠤᠷᠤᠨ
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ ᠨᠡᠬᠡᠬᠡᠬᠦ᠌ ᠬᠡᠷᠡᠭᠯᠡᠭᠡ ᠪᠠᠢᠬᠤ ᠦᠬᠡᠢ
+
+
+
+ Clear
+ ᠤᠰᠠᠳᠬᠠᠬᠤ
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ ᠠᠵᠢᠯᠯᠠᠬᠤ ᠤᠷᠤᠨ
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_ug.ts b/windowsview/translations/ukui-window-switch_ug.ts
new file mode 100644
index 0000000000000000000000000000000000000000..c25db44f88723b3f968c4c0cdddc8e8f55fab2dd
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_ug.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ ئۈستەل ئۈستىلىرى
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ يېقىنقى ۋەزىپىلەر يوق
+
+
+
+ Clear
+ تازلاش
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ ئۈستەل يۈزى
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_zh_CN.ts b/windowsview/translations/ukui-window-switch_zh_CN.ts
new file mode 100644
index 0000000000000000000000000000000000000000..4349d6bc261f906232894626ca39586d3413827d
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_zh_CN.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ 新建工作区
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ 无应用开启
+
+
+
+ Clear
+ 清除
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ 工作区
+
+
+
diff --git a/windowsview/translations/ukui-window-switch_zh_Hant.ts b/windowsview/translations/ukui-window-switch_zh_Hant.ts
new file mode 100644
index 0000000000000000000000000000000000000000..953b8246dcc66058c98815b42df95c946d5abd52
--- /dev/null
+++ b/windowsview/translations/ukui-window-switch_zh_Hant.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ NewDesktopButton
+
+
+ New Desktop
+ 新建工作區
+
+
+
+ TabletViewMain
+
+
+ No recent tasks
+ 無應用開啟
+
+
+
+ Clear
+ 清除
+
+
+
+ VirtualDesktopWindow
+
+
+ Desktop
+ 工作區
+
+
+
diff --git a/windowsview/ukui-flow.cpp b/windowsview/ukui-flow.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..fb678874c0245f9e6d174e55e628297d45ffc159
--- /dev/null
+++ b/windowsview/ukui-flow.cpp
@@ -0,0 +1,1064 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+* Copyright (C) 2025, KylinSoft Co., Ltd.
+*
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the QtQml module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or (at your option) the GNU General
+** Public license version 3 or any later version approved by the KDE Free
+** Qt Foundation. The licenses are as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
+** https://www.gnu.org/licenses/gpl-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+** iaom
+****************************************************************************/
+
+#include "ukui-flow.h"
+
+#include
+#include
+static const QQuickItemPrivate::ChangeTypes watchedChanges
+ = QQuickItemPrivate::Geometry
+ | QQuickItemPrivate::SiblingOrder
+ | QQuickItemPrivate::Visibility
+ | QQuickItemPrivate::Destroyed;
+
+void UkuiBasePositionerPrivate::watchChanges(QQuickItem *other)
+{
+ QQuickItemPrivate *otherPrivate = QQuickItemPrivate::get(other);
+ otherPrivate->addItemChangeListener(this, watchedChanges);
+}
+
+void UkuiBasePositionerPrivate::unwatchChanges(QQuickItem* other)
+{
+ QQuickItemPrivate *otherPrivate = QQuickItemPrivate::get(other);
+ otherPrivate->removeItemChangeListener(this, watchedChanges);
+}
+
+
+UkuiBasePositioner::PositionedItem::PositionedItem(QQuickItem *i)
+ : item(i)
+ , transitionableItem(nullptr)
+ , index(-1)
+ , isNew(false)
+ , isVisible(true)
+ , topPadding(0)
+ , leftPadding(0)
+ , rightPadding(0)
+ , bottomPadding(0)
+{
+}
+
+UkuiBasePositioner::PositionedItem::~PositionedItem()
+{
+ delete transitionableItem;
+}
+
+qreal UkuiBasePositioner::PositionedItem::itemX() const
+{
+ return transitionableItem ? transitionableItem->itemX() : item->x();
+}
+
+qreal UkuiBasePositioner::PositionedItem::itemY() const
+{
+ return transitionableItem ? transitionableItem->itemY() : item->y();
+}
+
+void UkuiBasePositioner::PositionedItem::moveTo(const QPointF &pos)
+{
+ if (transitionableItem) {
+ transitionableItem->moveTo(pos);
+ }
+ else
+ item->setPosition(pos);
+}
+
+void UkuiBasePositioner::PositionedItem::transitionNextReposition(QQuickItemViewTransitioner *transitioner, QQuickItemViewTransitioner::TransitionType type, bool asTarget)
+{
+ if (!transitioner)
+ return;
+ if (!transitionableItem)
+ transitionableItem = new QQuickItemViewTransitionableItem(item);
+ transitioner->transitionNextReposition(transitionableItem, type, asTarget);
+}
+
+bool UkuiBasePositioner::PositionedItem::prepareTransition(QQuickItemViewTransitioner *transitioner, const QRectF &viewBounds)
+{
+ return transitionableItem ? transitionableItem->prepareTransition(transitioner, index, viewBounds) : false;
+}
+
+void UkuiBasePositioner::PositionedItem::startTransition(QQuickItemViewTransitioner *transitioner)
+{
+ if (transitionableItem)
+ transitionableItem->startTransition(transitioner, index);
+}
+
+void UkuiBasePositioner::PositionedItem::updatePadding(qreal lp, qreal tp, qreal rp, qreal bp)
+{
+ leftPadding = lp;
+ topPadding = tp;
+ rightPadding = rp;
+ bottomPadding = bp;
+}
+
+UkuiBasePositioner::UkuiBasePositioner(PositionerType at, QQuickItem *parent)
+ : QQuickImplicitSizeItem(*(new UkuiBasePositionerPrivate), parent)
+{
+ Q_D(UkuiBasePositioner);
+ d->init(at);
+}
+
+UkuiBasePositioner::UkuiBasePositioner(UkuiBasePositionerPrivate &dd, PositionerType at, QQuickItem *parent)
+ : QQuickImplicitSizeItem(dd, parent)
+{
+ Q_D(UkuiBasePositioner);
+ d->init(at);
+}
+
+UkuiBasePositioner::~UkuiBasePositioner()
+{
+ Q_D(UkuiBasePositioner);
+ delete d->transitioner;
+ for (int i = 0; i < positionedItems.count(); ++i)
+ d->unwatchChanges(positionedItems.at(i).item);
+ for (int i = 0; i < unpositionedItems.count(); ++i)
+ d->unwatchChanges(unpositionedItems.at(i).item);
+ clearPositionedItems(&positionedItems);
+ clearPositionedItems(&unpositionedItems);
+}
+
+void UkuiBasePositioner::updatePolish()
+{
+ Q_D(UkuiBasePositioner);
+ if (d->positioningDirty)
+ prePositioning();
+}
+
+qreal UkuiBasePositioner::spacing() const
+{
+ Q_D(const UkuiBasePositioner);
+ return d->spacing;
+}
+
+void UkuiBasePositioner::setSpacing(qreal s)
+{
+ Q_D(UkuiBasePositioner);
+ if (s == d->spacing)
+ return;
+ d->spacing = s;
+ d->setPositioningDirty();
+ emit spacingChanged();
+}
+
+QQuickTransition *UkuiBasePositioner::populate() const
+{
+ Q_D(const UkuiBasePositioner);
+ return d->transitioner ? d->transitioner->populateTransition : nullptr;
+}
+
+void UkuiBasePositioner::setPopulate(QQuickTransition *transition)
+{
+ Q_D(UkuiBasePositioner);
+ if (!d->transitioner)
+ d->transitioner = new QQuickItemViewTransitioner;
+ if (d->transitioner->populateTransition != transition) {
+ d->transitioner->populateTransition = transition;
+ emit populateChanged();
+ }
+}
+
+QQuickTransition *UkuiBasePositioner::move() const
+{
+ Q_D(const UkuiBasePositioner);
+ return d->transitioner ? d->transitioner->displacedTransition : nullptr;
+}
+
+void UkuiBasePositioner::setMove(QQuickTransition *mt)
+{
+ Q_D(UkuiBasePositioner);
+ if (!d->transitioner)
+ d->transitioner = new QQuickItemViewTransitioner;
+ if (mt == d->transitioner->displacedTransition)
+ return;
+
+ d->transitioner->displacedTransition = mt;
+ emit moveChanged();
+}
+
+QQuickTransition *UkuiBasePositioner::add() const
+{
+ Q_D(const UkuiBasePositioner);
+ return d->transitioner ? d->transitioner->addTransition : nullptr;
+}
+
+void UkuiBasePositioner::setAdd(QQuickTransition *add)
+{
+ Q_D(UkuiBasePositioner);
+ if (!d->transitioner)
+ d->transitioner = new QQuickItemViewTransitioner;
+ if (add == d->transitioner->addTransition)
+ return;
+
+ d->transitioner->addTransition = add;
+ emit addChanged();
+}
+
+void UkuiBasePositioner::componentComplete()
+{
+ Q_D(UkuiBasePositioner);
+ QQuickItem::componentComplete();
+ if (d->transitioner)
+ d->transitioner->setPopulateTransitionEnabled(true);
+ positionedItems.reserve(childItems().count());
+ prePositioning();
+ if (d->transitioner)
+ d->transitioner->setPopulateTransitionEnabled(false);
+}
+
+void UkuiBasePositioner::itemChange(ItemChange change, const ItemChangeData &value)
+{
+ Q_D(UkuiBasePositioner);
+ if (change == ItemChildAddedChange) {
+ d->setPositioningDirty();
+ } else if (change == ItemChildRemovedChange) {
+ QQuickItem *child = value.item;
+ UkuiBasePositioner::PositionedItem posItem(child);
+ int idx = positionedItems.find(posItem);
+ if (idx >= 0) {
+ d->unwatchChanges(child);
+ removePositionedItem(&positionedItems, idx);
+ } else if ((idx = unpositionedItems.find(posItem)) >= 0) {
+ d->unwatchChanges(child);
+ removePositionedItem(&unpositionedItems, idx);
+ }
+ d->setPositioningDirty();
+ }
+
+ QQuickItem::itemChange(change, value);
+}
+
+void UkuiBasePositioner::forceLayout()
+{
+ updatePolish();
+}
+
+void UkuiBasePositioner::prePositioning()
+{
+ Q_D(UkuiBasePositioner);
+ if (!isComponentComplete())
+ return;
+
+ if (d->doingPositioning)
+ return;
+
+ d->positioningDirty = false;
+ d->doingPositioning = true;
+ //Need to order children by creation order modified by stacking order
+ QList children = childItems();
+
+ QPODVector oldItems;
+ positionedItems.copyAndClear(oldItems);
+ for (int ii = 0; ii < unpositionedItems.count(); ii++)
+ oldItems.append(unpositionedItems[ii]);
+ unpositionedItems.clear();
+ int addedIndex = -1;
+
+ for (int ii = 0; ii < children.count(); ++ii) {
+ QQuickItem *child = children.at(ii);
+ if (QQuickItemPrivate::get(child)->isTransparentForPositioner())
+ continue;
+ QQuickItemPrivate *childPrivate = QQuickItemPrivate::get(child);
+ PositionedItem posItem(child);
+ int wIdx = oldItems.find(posItem);
+ if (wIdx < 0) {
+ d->watchChanges(child);
+ posItem.isNew = true;
+ if (!childPrivate->explicitVisible || !child->width() || !child->height()) {
+ posItem.isVisible = false;
+ posItem.index = -1;
+ unpositionedItems.append(posItem);
+ } else {
+ posItem.index = positionedItems.count();
+ positionedItems.append(posItem);
+
+ if (d->transitioner) {
+ if (addedIndex < 0)
+ addedIndex = posItem.index;
+ PositionedItem *theItem = &positionedItems[positionedItems.count()-1];
+ if (d->transitioner->canTransition(QQuickItemViewTransitioner::PopulateTransition, true))
+ theItem->transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::PopulateTransition, true);
+ else if (!d->transitioner->populateTransitionEnabled())
+ theItem->transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, true);
+ }
+ }
+ } else {
+ PositionedItem *item = &oldItems[wIdx];
+ // Items are only omitted from positioning if they are explicitly hidden
+ // i.e. their positioning is not affected if an ancestor is hidden.
+ if (!childPrivate->explicitVisible || !child->width() || !child->height()) {
+ item->isVisible = false;
+ item->index = -1;
+ unpositionedItems.append(*item);
+ } else if (!item->isVisible) {
+ // item changed from non-visible to visible, treat it as a "new" item
+ item->isVisible = true;
+ item->isNew = true;
+ item->index = positionedItems.count();
+ positionedItems.append(*item);
+
+ if (d->transitioner) {
+ if (addedIndex < 0)
+ addedIndex = item->index;
+ positionedItems[positionedItems.count()-1].transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, true);
+ }
+ } else {
+ item->isNew = false;
+ item->index = positionedItems.count();
+ positionedItems.append(*item);
+ }
+ }
+ }
+
+ if (d->transitioner) {
+ for (int i=0; i= 0) {
+ positionedItems[i].transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, false);
+ } else {
+ // just queue the item for a move-type displace - if the item hasn't
+ // moved anywhere, it won't be transitioned anyway
+ positionedItems[i].transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::MoveTransition, false);
+ }
+ }
+ }
+ }
+
+ QSizeF contentSize(0,0);
+ reportConflictingAnchors();
+ if (!d->anchorConflict) {
+ doPositioning(&contentSize);
+ updateAttachedProperties();
+ }
+
+ if (d->transitioner) {
+ QRectF viewBounds(QPointF(), contentSize);
+ for (int i=0; itransitioner, viewBounds);
+ for (int i=0; itransitioner);
+ d->transitioner->resetTargetLists();
+ }
+
+ d->doingPositioning = false;
+
+ //Set implicit size to the size of its children
+ setImplicitSize(contentSize.width(), contentSize.height());
+
+ emit positioningComplete();
+}
+
+void UkuiBasePositioner::positionItem(qreal x, qreal y, PositionedItem *target)
+{
+ if ( target->itemX() != x || target->itemY() != y )
+ target->moveTo(QPointF(x, y));
+}
+
+void UkuiBasePositioner::positionItemX(qreal x, PositionedItem *target)
+{
+ Q_D(UkuiBasePositioner);
+ if (target->itemX() != x
+ && (d->type == Horizontal || d->type == Both)) {
+ target->moveTo(QPointF(x, target->itemY()));
+ }
+}
+
+void UkuiBasePositioner::positionItemY(qreal y, PositionedItem *target)
+{
+ Q_D(UkuiBasePositioner);
+ if (target->itemY() != y
+ && (d->type == Vertical || d->type == Both)) {
+ target->moveTo(QPointF(target->itemX(), y));
+ }
+}
+
+/*
+ Since PositionedItem values are stored by value, their internal transitionableItem pointers
+ must be cleaned up when a PositionedItem is removed from a QPODVector, otherwise the pointer
+ is never deleted since QPODVector doesn't invoke the destructor.
+ */
+void UkuiBasePositioner::removePositionedItem(QPODVector *items, int index)
+{
+ Q_ASSERT(index >= 0 && index < items->count());
+ delete items->at(index).transitionableItem;
+ items->remove(index);
+}
+void UkuiBasePositioner::clearPositionedItems(QPODVector *items)
+{
+ for (int i=0; icount(); i++)
+ delete items->at(i).transitionableItem;
+ items->clear();
+}
+
+UkuiPositionerAttached *UkuiBasePositioner::qmlAttachedProperties(QObject *obj)
+{
+ return new UkuiPositionerAttached(obj);
+}
+
+void UkuiBasePositioner::updateAttachedProperties(UkuiPositionerAttached *specificProperty, QQuickItem *specificPropertyOwner) const
+{
+ // If this function is deemed too expensive or shows up in profiles, it could
+ // be changed to run only when there are attached properties present. This
+ // could be a flag in the positioner that is set by the attached property
+ // constructor.
+ UkuiPositionerAttached *prevLastProperty = nullptr;
+ UkuiPositionerAttached *lastProperty = nullptr;
+
+ for (int ii = 0; ii < positionedItems.count(); ++ii) {
+ const PositionedItem &child = positionedItems.at(ii);
+ if (!child.item)
+ continue;
+
+ UkuiPositionerAttached *property = nullptr;
+
+ if (specificProperty) {
+ if (specificPropertyOwner == child.item) {
+ property = specificProperty;
+ }
+ } else {
+ property = static_cast(qmlAttachedPropertiesObject(child.item, false));
+ }
+
+ if (property) {
+ property->setIndex(ii);
+ property->setIsFirstItem(ii == 0);
+
+ if (property->isLastItem()) {
+ if (prevLastProperty)
+ prevLastProperty->setIsLastItem(false); // there can be only one last property
+ prevLastProperty = property;
+ }
+ }
+
+ lastProperty = property;
+ }
+
+ if (prevLastProperty && prevLastProperty != lastProperty)
+ prevLastProperty->setIsLastItem(false);
+ if (lastProperty)
+ lastProperty->setIsLastItem(true);
+
+ // clear attached properties for unpositioned items
+ for (int ii = 0; ii < unpositionedItems.count(); ++ii) {
+ const PositionedItem &child = unpositionedItems.at(ii);
+ if (!child.item)
+ continue;
+
+ UkuiPositionerAttached *property = nullptr;
+
+ if (specificProperty) {
+ if (specificPropertyOwner == child.item) {
+ property = specificProperty;
+ }
+ } else {
+ property = static_cast(qmlAttachedPropertiesObject(child.item, false));
+ }
+
+ if (property) {
+ property->setIndex(-1);
+ property->setIsFirstItem(false);
+ property->setIsLastItem(false);
+ }
+ }
+}
+
+qreal UkuiBasePositioner::padding() const
+{
+ Q_D(const UkuiBasePositioner);
+ return d->padding();
+}
+
+void UkuiBasePositioner::setPadding(qreal padding)
+{
+ Q_D(UkuiBasePositioner);
+ if (qFuzzyCompare(d->padding(), padding))
+ return;
+
+ d->extra.value().padding = padding;
+ d->setPositioningDirty();
+ emit paddingChanged();
+ if (!d->extra.isAllocated() || !d->extra->explicitTopPadding)
+ emit topPaddingChanged();
+ if (!d->extra.isAllocated() || !d->extra->explicitLeftPadding)
+ emit leftPaddingChanged();
+ if (!d->extra.isAllocated() || !d->extra->explicitRightPadding)
+ emit rightPaddingChanged();
+ if (!d->extra.isAllocated() || !d->extra->explicitBottomPadding)
+ emit bottomPaddingChanged();
+}
+
+void UkuiBasePositioner::resetPadding()
+{
+ setPadding(0);
+}
+
+qreal UkuiBasePositioner::topPadding() const
+{
+ Q_D(const UkuiBasePositioner);
+ if (d->extra.isAllocated() && d->extra->explicitTopPadding)
+ return d->extra->topPadding;
+ return d->padding();
+}
+
+void UkuiBasePositioner::setTopPadding(qreal padding)
+{
+ Q_D(UkuiBasePositioner);
+ d->setTopPadding(padding);
+}
+
+void UkuiBasePositioner::resetTopPadding()
+{
+ Q_D(UkuiBasePositioner);
+ d->setTopPadding(0, true);
+}
+
+qreal UkuiBasePositioner::leftPadding() const
+{
+ Q_D(const UkuiBasePositioner);
+ if (d->extra.isAllocated() && d->extra->explicitLeftPadding)
+ return d->extra->leftPadding;
+ return d->padding();
+}
+
+void UkuiBasePositioner::setLeftPadding(qreal padding)
+{
+ Q_D(UkuiBasePositioner);
+ d->setLeftPadding(padding);
+}
+
+void UkuiBasePositioner::resetLeftPadding()
+{
+ Q_D(UkuiBasePositioner);
+ d->setLeftPadding(0, true);
+}
+
+qreal UkuiBasePositioner::rightPadding() const
+{
+ Q_D(const UkuiBasePositioner);
+ if (d->extra.isAllocated() && d->extra->explicitRightPadding)
+ return d->extra->rightPadding;
+ return d->padding();
+}
+
+void UkuiBasePositioner::setRightPadding(qreal padding)
+{
+ Q_D(UkuiBasePositioner);
+ d->setRightPadding(padding);
+}
+
+void UkuiBasePositioner::resetRightPadding()
+{
+ Q_D(UkuiBasePositioner);
+ d->setRightPadding(0, true);
+}
+
+qreal UkuiBasePositioner::bottomPadding() const
+{
+ Q_D(const UkuiBasePositioner);
+ if (d->extra.isAllocated() && d->extra->explicitBottomPadding)
+ return d->extra->bottomPadding;
+ return d->padding();
+}
+
+void UkuiBasePositioner::setBottomPadding(qreal padding)
+{
+ Q_D(UkuiBasePositioner);
+ d->setBottomPadding(padding);
+}
+
+void UkuiBasePositioner::resetBottomPadding()
+{
+ Q_D(UkuiBasePositioner);
+ d->setBottomPadding(0, true);
+}
+
+UkuiBasePositionerPrivate::ExtraData::ExtraData()
+ : padding(0)
+ , topPadding(0)
+ , leftPadding(0)
+ , rightPadding(0)
+ , bottomPadding(0)
+ , explicitTopPadding(false)
+ , explicitLeftPadding(false)
+ , explicitRightPadding(false)
+ , explicitBottomPadding(false)
+{
+}
+
+void UkuiBasePositionerPrivate::setTopPadding(qreal value, bool reset)
+{
+ Q_Q(UkuiBasePositioner);
+ qreal oldPadding = q->topPadding();
+ if (!reset || extra.isAllocated()) {
+ extra.value().topPadding = value;
+ extra.value().explicitTopPadding = !reset;
+ }
+ if ((!reset && !qFuzzyCompare(oldPadding, value)) || (reset && !qFuzzyCompare(oldPadding, padding()))) {
+ setPositioningDirty();
+ emit q->topPaddingChanged();
+ }
+}
+
+void UkuiBasePositionerPrivate::setLeftPadding(qreal value, bool reset)
+{
+ Q_Q(UkuiBasePositioner);
+ qreal oldPadding = q->leftPadding();
+ if (!reset || extra.isAllocated()) {
+ extra.value().leftPadding = value;
+ extra.value().explicitLeftPadding = !reset;
+ }
+ if ((!reset && !qFuzzyCompare(oldPadding, value)) || (reset && !qFuzzyCompare(oldPadding, padding()))) {
+ setPositioningDirty();
+ emit q->leftPaddingChanged();
+ }
+}
+
+void UkuiBasePositionerPrivate::setRightPadding(qreal value, bool reset)
+{
+ Q_Q(UkuiBasePositioner);
+ qreal oldPadding = q->rightPadding();
+ if (!reset || extra.isAllocated()) {
+ extra.value().rightPadding = value;
+ extra.value().explicitRightPadding = !reset;
+ }
+ if ((!reset && !qFuzzyCompare(oldPadding, value)) || (reset && !qFuzzyCompare(oldPadding, padding()))) {
+ setPositioningDirty();
+ emit q->rightPaddingChanged();
+ }
+}
+
+void UkuiBasePositionerPrivate::setBottomPadding(qreal value, bool reset)
+{
+ Q_Q(UkuiBasePositioner);
+ qreal oldPadding = q->bottomPadding();
+ if (!reset || extra.isAllocated()) {
+ extra.value().bottomPadding = value;
+ extra.value().explicitBottomPadding = !reset;
+ }
+ if ((!reset && !qFuzzyCompare(oldPadding, value)) || (reset && !qFuzzyCompare(oldPadding, padding()))) {
+ setPositioningDirty();
+ emit q->bottomPaddingChanged();
+ }
+}
+
+UkuiPositionerAttached::UkuiPositionerAttached(QObject *parent) : QObject(parent), m_index(-1), m_isFirstItem(false), m_isLastItem(false)
+{
+ QQuickItem *attachedItem = qobject_cast(parent);
+ if (attachedItem) {
+ UkuiBasePositioner *positioner = qobject_cast(attachedItem->parent());
+ if (positioner) {
+ positioner->updateAttachedProperties(this, attachedItem);
+ }
+ }
+}
+
+void UkuiPositionerAttached::setIndex(int index)
+{
+ if (m_index == index)
+ return;
+ m_index = index;
+ emit indexChanged();
+}
+
+void UkuiPositionerAttached::setIsFirstItem(bool isFirstItem)
+{
+ if (m_isFirstItem == isFirstItem)
+ return;
+ m_isFirstItem = isFirstItem;
+ emit isFirstItemChanged();
+}
+
+void UkuiPositionerAttached::setIsLastItem(bool isLastItem)
+{
+ if (m_isLastItem == isLastItem)
+ return;
+ m_isLastItem = isLastItem;
+ emit isLastItemChanged();
+}
+
+class UkuiFlowPrivate : public UkuiBasePositionerPrivate
+{
+ Q_DECLARE_PUBLIC(UkuiFlow)
+
+public:
+ UkuiFlowPrivate()
+ : UkuiBasePositionerPrivate(), flow(UkuiFlow::LeftToRight), lineHorizontalCenterAlignment(false)
+ {}
+
+ void effectiveLayoutDirectionChange() override
+ {
+ Q_Q(UkuiFlow);
+ // Don't postpone, as it might be the only trigger for visible changes.
+ q->prePositioning();
+ emit q->effectiveLayoutDirectionChanged();
+ }
+
+ UkuiFlow::Flow flow;
+ bool lineHorizontalCenterAlignment;
+ QHash posCache;
+};
+
+UkuiFlow::UkuiFlow(QQuickItem *parent)
+: UkuiBasePositioner(*(new UkuiFlowPrivate), Both, parent)
+{
+ Q_D(UkuiFlow);
+ // Flow layout requires relayout if its own size changes too.
+ d->addItemChangeListener(d, QQuickItemPrivate::Geometry);
+}
+
+UkuiFlow::Flow UkuiFlow::flow() const
+{
+ Q_D(const UkuiFlow);
+ return d->flow;
+}
+
+void UkuiFlow::setFlow(Flow flow)
+{
+ Q_D(UkuiFlow);
+ if (d->flow != flow) {
+ d->flow = flow;
+ prePositioning();
+ emit flowChanged();
+ }
+}
+
+Qt::LayoutDirection UkuiFlow::layoutDirection() const
+{
+ Q_D(const UkuiFlow);
+ return d->layoutDirection;
+}
+
+void UkuiFlow::setLayoutDirection(Qt::LayoutDirection layoutDirection)
+{
+ Q_D(UkuiFlow);
+ if (d->layoutDirection != layoutDirection) {
+ d->layoutDirection = layoutDirection;
+ emit layoutDirectionChanged();
+ d->effectiveLayoutDirectionChange();
+ }
+}
+
+Qt::LayoutDirection UkuiFlow::effectiveLayoutDirection() const
+{
+ return UkuiBasePositionerPrivate::getEffectiveLayoutDirection(this);
+}
+
+bool UkuiFlow::lineHorizontalCenterAlignment() const
+{
+ Q_D(const UkuiFlow);
+ return d->lineHorizontalCenterAlignment;
+}
+
+void UkuiFlow::setLineHorizontalCenterAlignment(bool lineHorizontalCenterAlignment)
+{
+ Q_D(UkuiFlow);
+ if (d->lineHorizontalCenterAlignment != lineHorizontalCenterAlignment) {
+ d->lineHorizontalCenterAlignment = lineHorizontalCenterAlignment;
+ d->setPositioningDirty();
+ emit lineHorizontalCenterAlignmentChanged();
+ }
+}
+
+int UkuiFlow::moveCurrentIndexLeft(int currentIndex)
+{
+ if (effectiveLayoutDirection() == Qt::LayoutDirection::LeftToRight) {
+ if (currentIndex > 0) {
+ return currentIndex - 1;
+ } else {
+ return positionedItems.count() - 1;
+ }
+ } else {
+ if (currentIndex < positionedItems.count() - 1) {
+ return currentIndex + 1;
+ } else {
+ return 0;
+ }
+ }
+}
+
+int UkuiFlow::moveCurrentIndexRight(int currentIndex)
+{
+ if (effectiveLayoutDirection() == Qt::LayoutDirection::LeftToRight) {
+ if (currentIndex < positionedItems.count() - 1) {
+ return currentIndex + 1;
+ } else {
+ return 0;
+ }
+ } else {
+ if (currentIndex > 0) {
+ return currentIndex - 1;
+ } else {
+ return positionedItems.count() - 1;
+ }
+ }
+}
+
+int UkuiFlow::moveCurrentIndexUp(int currentIndex)
+{
+ // 只有一行时移动到末尾
+ if (positionedItems[0].itemY() == positionedItems[positionedItems.count() - 1].itemY()) {
+ return positionedItems.count() - 1;
+ }
+
+ PositionedItem ¤tChild = positionedItems[currentIndex];
+ qreal currentRowY = currentChild.itemY();
+ int upRowStartIndex = 0;
+ int upRowEndIndex = positionedItems.count() - 1;
+
+ // 计算当前获取键盘焦点的窗口需要移动至哪一行
+ if (currentChild.itemY() == positionedItems[0].itemY()) {
+ // 当前键盘焦点窗口位于第一行
+ currentRowY = positionedItems[positionedItems.count() - 1].itemY();
+ upRowEndIndex = positionedItems.count() - 1;
+ } else {
+ for (int i = positionedItems.count() - 1; i >= 0; i--) {
+ if (positionedItems[i].itemY() < currentChild.itemY()) {
+ currentRowY = positionedItems[i].itemY();
+ upRowEndIndex = i;
+ break;
+ }
+ }
+ }
+
+ for (int i = upRowEndIndex; i >= 0; i--) {
+ if (positionedItems[i].itemY() < currentRowY) {
+ upRowStartIndex = i + 1;
+ break;
+ }
+ }
+
+ // 查找应该跳转到上一行的哪个窗口
+ return findUpDownItemIndex(currentIndex, upRowStartIndex, upRowEndIndex);
+}
+
+int UkuiFlow::moveCurrentIndexDown(int currentIndex)
+{
+ // 只有一行时移动到首个
+ if (positionedItems[0].itemY() == positionedItems[positionedItems.count() - 1].itemY()) {
+ return 0;
+ }
+
+ PositionedItem ¤tChild = positionedItems[currentIndex];
+ qreal currentRowY = currentChild.itemY();
+ int downRowStartIndex = 0;
+ int downRowEndIndex = positionedItems.count() - 1;
+
+ // 计算当前获取键盘焦点的窗口需要移动至哪一行
+ if (currentChild.itemY() == positionedItems[positionedItems.count() - 1].itemY()) {
+ // 当前键盘焦点窗口位于最后一行
+ currentRowY = positionedItems[0].itemY();
+ downRowStartIndex = 0;
+ } else {
+ for (int i = 0; i < positionedItems.count(); i++) {
+ if (positionedItems[i].itemY() > currentChild.itemY()) {
+ currentRowY = positionedItems[i].itemY();
+ downRowStartIndex = i;
+ break;
+ }
+ }
+ }
+
+ for (int i = downRowStartIndex; i < positionedItems.count(); i++) {
+ if (positionedItems[i].itemY() > currentRowY) {
+ downRowEndIndex = i - 1;
+ break;
+ }
+ }
+
+ // 查找应该跳转到下一行的哪个窗口
+ return findUpDownItemIndex(currentIndex, downRowStartIndex, downRowEndIndex);
+}
+
+int UkuiFlow::findUpDownItemIndex(int currentIndex, int startIndex, int endIndex)
+{
+ PositionedItem ¤tChild = positionedItems[currentIndex];
+ // 获取当前键盘焦点窗口的leftX rightX
+ qreal currentIndexLeftX = currentChild.itemX();
+ qreal currentIndexRightX = currentChild.itemX() + currentChild.item->width();
+
+ // 判断应该跳转到上/下一行的哪个窗口
+ int resultIndex = startIndex;
+ qreal result = 0;
+ for (int i = startIndex; i <= endIndex; i++) {
+ qreal temp = 0;
+ if ((positionedItems[i].itemX() + positionedItems[i].item->width()) < currentIndexLeftX) {
+ resultIndex = i;
+ continue;
+ }
+ if (positionedItems[i].itemX()> currentIndexRightX) {
+ break;
+ }
+ if (positionedItems[i].itemX() <= currentIndexLeftX) {
+ if ((positionedItems[i].itemX() + positionedItems[i].item->width()) <= currentIndexRightX) {
+ temp = (positionedItems[i].itemX() + positionedItems[i].item->width()) - currentIndexLeftX;
+ } else {
+ temp = currentIndexRightX - currentIndexLeftX;
+ }
+ } else {
+ if ((positionedItems[i].itemX() + positionedItems[i].item->width()) <= currentIndexRightX) {
+ temp = (positionedItems[i].itemX() + positionedItems[i].item->width()) - positionedItems[i].itemX();
+ } else {
+ temp = currentIndexRightX - positionedItems[i].itemX();
+ }
+ }
+
+ if (temp > result) {
+ result = temp;
+ resultIndex = i;
+ }
+ }
+ return resultIndex;
+}
+
+void UkuiFlow::doPositioning(QSizeF *contentSize)
+{
+ //Precondition: All items in the positioned list have a valid item pointer and should be positioned
+ Q_D(UkuiFlow);
+
+ qreal hoffset1 = leftPadding();
+ qreal hoffset2 = rightPadding();
+ if (!d->isLeftToRight())
+ qSwap(hoffset1, hoffset2);
+ qreal hoffset = hoffset1;
+ const qreal voffset1 = topPadding();
+ qreal voffset = voffset1;
+ qreal linemax = 0;
+ contentSize->setWidth(qMax(contentSize->width(), hoffset1 + hoffset2));
+ contentSize->setHeight(qMax(contentSize->height(), voffset + bottomPadding()));
+
+ int lineFirstIndex = 0;
+ for (int i = 0; i < positionedItems.count(); ++i) {
+ PositionedItem &child = positionedItems[i];
+
+ if (d->flow == LeftToRight) {
+ if (widthValid() && hoffset != hoffset1 && hoffset + child.item->width() + hoffset2 > width()) {
+ //居中处理
+ if (d->lineHorizontalCenterAlignment) {
+ PositionedItem &lineLastItem = positionedItems[i - 1];
+ qreal moveOffSet = (width() - (d->posCache.value(lineLastItem.index).x() + lineLastItem.item->width() - d->posCache.value(lineFirstIndex).x())) / 2;
+ for (int j = lineFirstIndex; j < i; ++j) {
+ PositionedItem &lineChild = positionedItems[j];
+ qreal posX = d->posCache.value(j).x() + moveOffSet;
+ if (!d->isLeftToRight()) {
+ posX = width() - lineChild.item->width() - posX;
+ }
+ positionItem(posX, d->posCache.value(j).y(), &lineChild);
+ lineChild.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding());
+ }
+ lineFirstIndex = i;
+ }
+ hoffset = hoffset1;
+ voffset += linemax + spacing();
+ linemax = 0;
+ }
+ } else {
+ if (heightValid() && voffset != voffset1 && voffset + child.item->height() + bottomPadding() > height()) {
+ voffset = voffset1;
+ hoffset += linemax + spacing();
+ linemax = 0;
+ }
+ }
+
+ if (d->isLeftToRight()) {
+ if(d->lineHorizontalCenterAlignment) {
+ d->posCache.insert(child.index, {hoffset, voffset});
+ } else {
+ positionItem(hoffset, voffset, &child);
+ }
+ } else {
+ if(d->lineHorizontalCenterAlignment) {
+ d->posCache.insert(child.index, {hoffset, voffset});
+ } else {
+ positionItemY(voffset, &child);
+ child.topPadding = topPadding();
+ child.bottomPadding = bottomPadding();
+ }
+ }
+
+ contentSize->setWidth(qMax(contentSize->width(), hoffset + child.item->width() + hoffset2));
+ contentSize->setHeight(qMax(contentSize->height(), voffset + child.item->height() + bottomPadding()));
+
+ if (d->flow == LeftToRight) {
+ hoffset += child.item->width();
+ hoffset += spacing();
+ linemax = qMax(linemax, child.item->height());
+ } else {
+ voffset += child.item->height();
+ voffset += spacing();
+ linemax = qMax(linemax, child.item->width());
+ }
+ }
+ //最后一行
+ if (widthValid() && d->lineHorizontalCenterAlignment && lineFirstIndex < positionedItems.count()) {
+ PositionedItem &lastItem = positionedItems[positionedItems.count() - 1];
+ if (d->flow == LeftToRight) {
+ qreal moveOffSet = (width() - (d->posCache.value(lastItem.index).x() + lastItem.item->width() - d->posCache.value(lineFirstIndex).x())) / 2;
+ for (int j = lineFirstIndex; j < positionedItems.count(); ++j) {
+ PositionedItem &lineChild = positionedItems[j];
+ qreal posX = d->posCache.value(j).x() + moveOffSet;
+ if (!d->isLeftToRight()) {
+ posX = width() - lineChild.item->width() - posX;
+ }
+ positionItem(posX, d->posCache.value(j).y(), &lineChild);
+ lineChild.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding());
+ }
+ }
+ }
+ if(d->lineHorizontalCenterAlignment && d->flow == LeftToRight) {
+ contentSize->setWidth(width());
+ }
+ d->posCache.clear();
+}
+
+void UkuiFlow::reportConflictingAnchors()
+{
+ Q_D(UkuiFlow);
+ for (int ii = 0; ii < positionedItems.count(); ++ii) {
+ const PositionedItem &child = positionedItems.at(ii);
+ if (child.item) {
+ QQuickAnchors *anchors = QQuickItemPrivate::get(static_cast