From 35982bd4bacad8559a9ee222551fa33707acd0de Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Mon, 17 Apr 2023 20:55:38 +0500 Subject: [PATCH] Init --- .github/FUNDING.yml | 15 + LICENSE | 661 ++++++++++++++++++ README.md | 11 + .../contents/code/tools.js | 202 ++++++ .../contents/config/config.qml | 30 + .../contents/config/main.xml | 157 +++++ .../contents/ui/ActionMenu.qml | 138 ++++ .../contents/ui/CompactRepresentation.qml | 114 +++ .../contents/ui/ConfigGeneral.qml | 358 ++++++++++ .../contents/ui/Footer.qml | 233 ++++++ .../contents/ui/ItemGridDelegate.qml | 132 ++++ .../contents/ui/ItemGridDelegate2.qml | 114 +++ .../contents/ui/ItemGridView.qml | 480 +++++++++++++ .../contents/ui/ItemMultiGridView.qml | 228 ++++++ .../contents/ui/MainColumnItem.qml | 563 +++++++++++++++ .../contents/ui/MenuRepresentation.qml | 160 +++++ .../contents/ui/icons/explorer.svg | 126 ++++ .../contents/ui/icons/explorer_dark.svg | 126 ++++ com.github.adhec.Menu11/contents/ui/main.qml | 221 ++++++ com.github.adhec.Menu11/metadata.json | 28 + com.github.adhec.Menu11/translate/README.md | 42 ++ com.github.adhec.Menu11/translate/build | 53 ++ com.github.adhec.Menu11/translate/de.po | 221 ++++++ com.github.adhec.Menu11/translate/es_ES.po | 222 ++++++ com.github.adhec.Menu11/translate/fr.po | 222 ++++++ com.github.adhec.Menu11/translate/he.po | 223 ++++++ com.github.adhec.Menu11/translate/hi_IN.po | 222 ++++++ com.github.adhec.Menu11/translate/it.po | 222 ++++++ com.github.adhec.Menu11/translate/ko.po | 223 ++++++ com.github.adhec.Menu11/translate/nl.po | 223 ++++++ com.github.adhec.Menu11/translate/pl.po | 222 ++++++ com.github.adhec.Menu11/translate/pt_BR.po | 222 ++++++ com.github.adhec.Menu11/translate/ru.po | 223 ++++++ .../translate/template.pot | 222 ++++++ com.github.adhec.Menu11/translate/tr.po | 222 ++++++ make.sh | 23 + 36 files changed, 7104 insertions(+) create mode 100755 .github/FUNDING.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 com.github.adhec.Menu11/contents/code/tools.js create mode 100644 com.github.adhec.Menu11/contents/config/config.qml create mode 100644 com.github.adhec.Menu11/contents/config/main.xml create mode 100644 com.github.adhec.Menu11/contents/ui/ActionMenu.qml create mode 100644 com.github.adhec.Menu11/contents/ui/CompactRepresentation.qml create mode 100644 com.github.adhec.Menu11/contents/ui/ConfigGeneral.qml create mode 100644 com.github.adhec.Menu11/contents/ui/Footer.qml create mode 100644 com.github.adhec.Menu11/contents/ui/ItemGridDelegate.qml create mode 100644 com.github.adhec.Menu11/contents/ui/ItemGridDelegate2.qml create mode 100644 com.github.adhec.Menu11/contents/ui/ItemGridView.qml create mode 100644 com.github.adhec.Menu11/contents/ui/ItemMultiGridView.qml create mode 100644 com.github.adhec.Menu11/contents/ui/MainColumnItem.qml create mode 100644 com.github.adhec.Menu11/contents/ui/MenuRepresentation.qml create mode 100644 com.github.adhec.Menu11/contents/ui/icons/explorer.svg create mode 100644 com.github.adhec.Menu11/contents/ui/icons/explorer_dark.svg create mode 100644 com.github.adhec.Menu11/contents/ui/main.qml create mode 100644 com.github.adhec.Menu11/metadata.json create mode 100644 com.github.adhec.Menu11/translate/README.md create mode 100755 com.github.adhec.Menu11/translate/build create mode 100644 com.github.adhec.Menu11/translate/de.po create mode 100644 com.github.adhec.Menu11/translate/es_ES.po create mode 100644 com.github.adhec.Menu11/translate/fr.po create mode 100644 com.github.adhec.Menu11/translate/he.po create mode 100644 com.github.adhec.Menu11/translate/hi_IN.po create mode 100644 com.github.adhec.Menu11/translate/it.po create mode 100644 com.github.adhec.Menu11/translate/ko.po create mode 100644 com.github.adhec.Menu11/translate/nl.po create mode 100644 com.github.adhec.Menu11/translate/pl.po create mode 100644 com.github.adhec.Menu11/translate/pt_BR.po create mode 100644 com.github.adhec.Menu11/translate/ru.po create mode 100644 com.github.adhec.Menu11/translate/template.pot create mode 100644 com.github.adhec.Menu11/translate/tr.po create mode 100755 make.sh diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100755 index 0000000..77389e0 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,15 @@ +# These are supported funding model platforms + +#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] + +#patreon: # Replace with a single Patreon username +#open_collective: # Replace with a single Open Collective username +#ko_fi: # Replace with a single Ko-fi username +#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +#liberapay: # Replace with a single Liberapay username +#issuehunt: # Replace with a single IssueHunt username +#otechie: # Replace with a single Otechie username +#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] +#github: [Valeria-Fadeeva] +custom: ["https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066", "https://yoomoney.ru/to/4100115921160758", "https://qiwi.com/n/VALERIAFADEEVA", "valeria.fadeeva.me"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + 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 +them 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. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If 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 convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero 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 +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state 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 program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..38446e3 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# melawy-plasma-plasmoid-Menu11 +Menu11 plasmoid + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/com.github.adhec.Menu11/contents/code/tools.js b/com.github.adhec.Menu11/contents/code/tools.js new file mode 100644 index 0000000..1aa2a65 --- /dev/null +++ b/com.github.adhec.Menu11/contents/code/tools.js @@ -0,0 +1,202 @@ +/*************************************************************************** + * Copyright (C) 2013 by Aurélien Gâteau * + * Copyright (C) 2013-2015 by Eike Hein * + * Copyright (C) 2017 by Ivan Cukic * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +.pragma library + +function fillActionMenu(i18n, actionMenu, actionList, favoriteModel, favoriteId) { + // Accessing actionList can be a costly operation, so we don't + // access it until we need the menu. + + var actions = createFavoriteActions(i18n, favoriteModel, favoriteId); + + if (actions) { + if (actionList && actionList.length > 0) { + var separator = { "type": "separator" }; + actionList.push(separator); + // actionList = actions.concat(actionList); // this crashes Qt O.o + actionList.push.apply(actionList, actions); + } else { + actionList = actions; + } + } + + actionMenu.actionList = actionList; +} + +function createFavoriteActions(i18n, favoriteModel, favoriteId) { + if (favoriteModel === null || !favoriteModel.enabled || favoriteId == null) { + return null; + } + + + if (favoriteModel.activities === undefined || + favoriteModel.activities.runningActivities.length <= 1) { + var action = {}; + + if (favoriteModel.isFavorite(favoriteId)) { + action.text = i18n("Remove from Favorites"); + action.icon = "bookmark-remove"; + action.actionId = "_kicker_favorite_remove"; + } else if (favoriteModel.maxFavorites == -1 || favoriteModel.count < favoriteModel.maxFavorites) { + action.text = i18n("Add to Favorites"); + action.icon = "bookmark-new"; + action.actionId = "_kicker_favorite_add"; + } else { + return null; + } + + action.actionArgument = { favoriteModel: favoriteModel, favoriteId: favoriteId }; + + return [action]; + + } else { + var actions = []; + + var linkedActivities = favoriteModel.linkedActivitiesFor(favoriteId); + + var activities = favoriteModel.activities.runningActivities; + + // Adding the item to link/unlink to all activities + + var linkedToAllActivities = + !(linkedActivities.indexOf(":global") === -1); + + actions.push({ + text : i18n("On All Activities"), + checkable : true, + + actionId : linkedToAllActivities ? + "_kicker_favorite_remove_from_activity" : + "_kicker_favorite_set_to_activity", + checked : linkedToAllActivities, + + actionArgument : { + favoriteModel: favoriteModel, + favoriteId: favoriteId, + favoriteActivity: "" + } + }); + + + // Adding items for each activity separately + + var addActivityItem = function(activityId, activityName) { + var linkedToThisActivity = + !(linkedActivities.indexOf(activityId) === -1); + + actions.push({ + text : activityName, + checkable : true, + checked : linkedToThisActivity && !linkedToAllActivities, + + actionId : + // If we are on all activities, and the user clicks just one + // specific activity, unlink from everything else + linkedToAllActivities ? "_kicker_favorite_set_to_activity" : + + // If we are linked to the current activity, just unlink from + // that single one + linkedToThisActivity ? "_kicker_favorite_remove_from_activity" : + + // Otherwise, link to this activity, but do not unlink from + // other ones + "_kicker_favorite_add_to_activity", + + actionArgument : { + favoriteModel : favoriteModel, + favoriteId : favoriteId, + favoriteActivity : activityId + } + }); + }; + + // Adding the item to link/unlink to the current activity + + addActivityItem(favoriteModel.activities.currentActivity, i18n("On the Current Activity")); + + actions.push({ + type: "separator", + actionId: "_kicker_favorite_separator" + }); + + // Adding the items for each activity + + activities.forEach(function(activityId) { + addActivityItem(activityId, favoriteModel.activityNameForId(activityId)); + }); + + return [{ + text : i18n("Show in Favorites"), + icon : "favorite", + subActions : actions + }]; + } +} + +function triggerAction(model, index, actionId, actionArgument) { + function startsWith(txt, needle) { + return txt.substr(0, needle.length) === needle; + } + + if (startsWith(actionId, "_kicker_favorite_")) { + handleFavoriteAction(actionId, actionArgument); + return; + } + + var closeRequested = model.trigger(index, actionId, actionArgument); + + if (closeRequested) { + return true; + } + + return false; +} + +function handleFavoriteAction(actionId, actionArgument) { + var favoriteId = actionArgument.favoriteId; + var favoriteModel = actionArgument.favoriteModel; + + console.log(actionId); + + if (favoriteModel === null || favoriteId == null) { + return null; + } + + if (actionId == "_kicker_favorite_remove") { + console.log("Removing from all activities"); + favoriteModel.removeFavorite(favoriteId); + } else if (actionId == "_kicker_favorite_add") { + console.log("Adding to global activity"); + favoriteModel.addFavorite(favoriteId); + } else if (actionId == "_kicker_favorite_remove_from_activity") { + console.log("Removing from a specific activity"); + favoriteModel.removeFavoriteFrom(favoriteId, actionArgument.favoriteActivity); + + } else if (actionId == "_kicker_favorite_add_to_activity") { + console.log("Adding to another activity"); + favoriteModel.addFavoriteTo(favoriteId, actionArgument.favoriteActivity); + + } else if (actionId == "_kicker_favorite_set_to_activity") { + console.log("Removing the item from the favourites, and re-adding it just to be on a specific activity"); + favoriteModel.setFavoriteOn(favoriteId, actionArgument.favoriteActivity); + + } +} diff --git a/com.github.adhec.Menu11/contents/config/config.qml b/com.github.adhec.Menu11/contents/config/config.qml new file mode 100644 index 0000000..09ac30a --- /dev/null +++ b/com.github.adhec.Menu11/contents/config/config.qml @@ -0,0 +1,30 @@ +/*************************************************************************** + * Copyright (C) 2014 by Eike Hein * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +import QtQuick 2.0 + +import org.kde.plasma.configuration 2.0 + +ConfigModel { + ConfigCategory { + name: i18n("General") + icon: "preferences-desktop-plasma" + source: "ConfigGeneral.qml" + } +} diff --git a/com.github.adhec.Menu11/contents/config/main.xml b/com.github.adhec.Menu11/contents/config/main.xml new file mode 100644 index 0000000..b8f2612 --- /dev/null +++ b/com.github.adhec.Menu11/contents/config/main.xml @@ -0,0 +1,157 @@ + + + + + + + + start-here-kde + + + + false + + + + + + + + + 0 + + + + + 0 + + + + preferred://browser,kontact.desktop,systemsettings.desktop,org.kde.dolphin.desktop,ktp-contactlist.desktop,org.kde.kate.desktop,org.kde.discover + + + + logout,reboot,shutdown + + + + false + + + + + + + + + true + + + + true + + + + true + + + + false + + + false + + + + + true + + + + shell,bookmarks,baloosearch,locations + + + + 0 + + + + 0 + + + 6 + + + 3 + + + + 0 + + + + false + + + + true + + + + true + + + + false + + + + false + + + + false + + + + false + + + + false + + + + true + + + + true + + + + false + + + + true + + + + false + + + true + + + + false + + + true + + + diff --git a/com.github.adhec.Menu11/contents/ui/ActionMenu.qml b/com.github.adhec.Menu11/contents/ui/ActionMenu.qml new file mode 100644 index 0000000..129184c --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/ActionMenu.qml @@ -0,0 +1,138 @@ +/*************************************************************************** + * Copyright (C) 2013 by Aurélien Gâteau * + * Copyright (C) 2014-2015 by Eike Hein * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +import QtQuick 2.0 + +import org.kde.plasma.components 2.0 as PlasmaComponents + +Item { + id: root + + property QtObject menu + property Item visualParent + property variant actionList + property bool opened: menu ? (menu.status != PlasmaComponents.DialogStatus.Closed) : false + + signal actionClicked(string actionId, variant actionArgument) + signal closed + + onActionListChanged: refreshMenu(); + + onOpenedChanged: { + if (!opened) { + closed(); + } + } + + function open(x, y) { + if (!actionList) { + return; + } + + if (x && y) { + menu.open(x, y); + } else { + menu.open(); + } + } + + function refreshMenu() { + if (menu) { + menu.destroy(); + } + + if (!actionList) { + return; + } + + menu = contextMenuComponent.createObject(root); + + fillMenu(menu, actionList); + } + + function fillMenu(menu, items) { + items.forEach(function (actionItem) { + if (actionItem.subActions) { + // This is a menu + var submenuItem = contextSubmenuItemComponent.createObject( + menu, { "actionItem": actionItem }); + + fillMenu(submenuItem.submenu, actionItem.subActions); + + } else { + var item = contextMenuItemComponent.createObject( + menu, + { + "actionItem": actionItem, + } + ); + } + }); + + } + + Component { + id: contextMenuComponent + + PlasmaComponents.ContextMenu { + visualParent: root.visualParent + } + } + + Component { + id: contextSubmenuItemComponent + + PlasmaComponents.MenuItem { + id: submenuItem + + property variant actionItem + + text: actionItem.text ? actionItem.text : "" + icon: actionItem.icon ? actionItem.icon : null + + property variant submenu: submenu_ + + PlasmaComponents.ContextMenu { + id: submenu_ + visualParent: submenuItem.action + } + } + } + + Component { + id: contextMenuItemComponent + + PlasmaComponents.MenuItem { + property variant actionItem + + text: actionItem.text ? actionItem.text : "" + enabled: actionItem.type != "title" && ("enabled" in actionItem ? actionItem.enabled : true) + separator: actionItem.type == "separator" + section: actionItem.type == "title" + icon: actionItem.icon ? actionItem.icon : null + checkable: actionItem.checkable ? actionItem.checkable : false + checked: actionItem.checked ? actionItem.checked : false + + onClicked: { + actionClicked(actionItem.actionId, actionItem.actionArgument); + } + } + } +} diff --git a/com.github.adhec.Menu11/contents/ui/CompactRepresentation.qml b/com.github.adhec.Menu11/contents/ui/CompactRepresentation.qml new file mode 100644 index 0000000..db48e1c --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/CompactRepresentation.qml @@ -0,0 +1,114 @@ +/*************************************************************************** + * Copyright (C) 2013-2014 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, 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.12 + +import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore + +Item { + id: root + + readonly property var screenGeometry: plasmoid.screenGeometry + readonly property bool inPanel: (plasmoid.location == PlasmaCore.Types.TopEdge + || plasmoid.location == PlasmaCore.Types.RightEdge + || plasmoid.location == PlasmaCore.Types.BottomEdge + || plasmoid.location == PlasmaCore.Types.LeftEdge) + readonly property bool vertical: (plasmoid.formFactor == PlasmaCore.Types.Vertical) + readonly property bool useCustomButtonImage: (plasmoid.configuration.useCustomButtonImage + && plasmoid.configuration.customButtonImage.length != 0) + property QtObject dashWindow: null + + Plasmoid.status: dashWindow && dashWindow.visible ? PlasmaCore.Types.RequiresAttentionStatus : PlasmaCore.Types.PassiveStatus + + onWidthChanged: updateSizeHints() + onHeightChanged: updateSizeHints() + + function updateSizeHints() { + if (useCustomButtonImage) { + if (vertical) { + var scaledHeight = Math.floor(parent.width * (buttonIcon.implicitHeight / buttonIcon.implicitWidth)); + root.Layout.minimumHeight = scaledHeight; + root.Layout.maximumHeight = scaledHeight; + root.Layout.minimumWidth = units.iconSizes.small; + root.Layout.maximumWidth = inPanel ? units.iconSizeHints.panel : -1; + } else { + var scaledWidth = Math.floor(parent.height * (buttonIcon.implicitWidth / buttonIcon.implicitHeight)); + root.Layout.minimumWidth = scaledWidth; + root.Layout.maximumWidth = scaledWidth; + root.Layout.minimumHeight = units.iconSizes.small; + root.Layout.maximumHeight = inPanel ? units.iconSizeHints.panel : -1; + } + } else { + root.Layout.minimumWidth = units.iconSizes.small; + root.Layout.maximumWidth = inPanel ? units.iconSizeHints.panel : -1; + root.Layout.minimumHeight = units.iconSizes.small + root.Layout.maximumHeight = inPanel ? units.iconSizeHints.panel : -1; + } + } + + Connections { + target: units.iconSizeHints + + onPanelChanged: updateSizeHints() + } + + PlasmaCore.IconItem { + id: buttonIcon + + anchors.fill: parent + + readonly property double aspectRatio: (vertical ? implicitHeight / implicitWidth + : implicitWidth / implicitHeight) + + source: useCustomButtonImage ? plasmoid.configuration.customButtonImage : plasmoid.configuration.icon + + active: mouseArea.containsMouse + + smooth: true + + // A custom icon could also be rectangular. However, if a square, custom, icon is given, assume it + // to be an icon and round it to the nearest icon size again to avoid scaling artefacts. + roundToIconSize: !useCustomButtonImage || aspectRatio === 1 + + onSourceChanged: updateSizeHints() + } + + MouseArea + { + id: mouseArea + + anchors.fill: parent + + hoverEnabled: true + + onClicked: { + dashWindow.visible = !dashWindow.visible; + } + } + + Component.onCompleted: { + dashWindow = Qt.createQmlObject("MenuRepresentation {}", root); + plasmoid.activated.connect(function() { + dashWindow.visible = !dashWindow.visible; + }); + } +} diff --git a/com.github.adhec.Menu11/contents/ui/ConfigGeneral.qml b/com.github.adhec.Menu11/contents/ui/ConfigGeneral.qml new file mode 100644 index 0000000..d203b6f --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/ConfigGeneral.qml @@ -0,0 +1,358 @@ +/*************************************************************************** + * Copyright (C) 2014 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, 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 org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons +import org.kde.draganddrop 2.0 as DragDrop +import org.kde.kirigami 2.3 as Kirigami + +import org.kde.plasma.private.kicker 0.1 as Kicker + +Kirigami.FormLayout { + id: configGeneral + + anchors.left: parent.left + anchors.right: parent.right + + property bool isDash: (plasmoid.pluginName === "org.kde.plasma.kickerdash") + + property string cfg_icon: plasmoid.configuration.icon + property bool cfg_useCustomButtonImage: plasmoid.configuration.useCustomButtonImage + property string cfg_customButtonImage: plasmoid.configuration.customButtonImage + + property alias cfg_appNameFormat: appNameFormat.currentIndex + + property alias cfg_menuPosition: menuPosition.currentIndex + property alias cfg_favGridModel: favGridModel.currentIndex + property alias cfg_recentGridModel: recentGridModel.currentIndex + + property alias cfg_useExtraRunners: useExtraRunners.checked + property alias cfg_reduceIconSizeFooter: reduceIconSizeFooter.checked + property alias cfg_reduceIconSizeUserProfile: reduceIconSizeUserProfile.checked + property alias cfg_reducePinnedSize: reducePinnedSize.checked + property alias cfg_gridAllowTwoLines: gridAllowTwoLines.checked + property alias cfg_defaultAllApps: defaultAllApps.checked + property alias cfg_showDescription: showDescription.checked + property alias cfg_alwaysShowSearchBar: alwaysShowSearchBar.checked + property alias cfg_preferFullName: preferFullName.checked + property alias cfg_replaceExplorerIcon: replaceExplorerIcon.checked + + property alias cfg_numberColumns: numberColumns.value + property alias cfg_numberRows: numberRows.value + + property alias cfg_downIconsDocuments: downIconsDocuments.checked + property alias cfg_downIconsDownloads: downIconsDownloads.checked + property alias cfg_downIconsPictures: downIconsPictures.checked + property alias cfg_downIconsMusic: downIconsMusic.checked + property alias cfg_downIconsVideos: downIconsVideos.checked + property alias cfg_downIconsFileManager: downIconsFileManager.checked + property alias cfg_downIconsSystemSettings: downIconsSystemSettings.checked + property alias cfg_downIconsLock: downIconsLock.checked + property alias cfg_downIconsPowerOptions: downIconsPowerOptions.checked + + Button { + id: iconButton + + Kirigami.FormData.label: i18n("Icon:") + + implicitWidth: previewFrame.width + units.smallSpacing * 2 + implicitHeight: previewFrame.height + units.smallSpacing * 2 + + // Just to provide some visual feedback when dragging; + // cannot have checked without checkable enabled + checkable: true + checked: dropArea.containsAcceptableDrag + + onPressed: iconMenu.opened ? iconMenu.close() : iconMenu.open() + + DragDrop.DropArea { + id: dropArea + + property bool containsAcceptableDrag: false + + anchors.fill: parent + + onDragEnter: { + // Cannot use string operations (e.g. indexOf()) on "url" basic type. + var urlString = event.mimeData.url.toString(); + + // This list is also hardcoded in KIconDialog. + var extensions = [".png", ".xpm", ".svg", ".svgz"]; + containsAcceptableDrag = urlString.indexOf("file:///") === 0 && extensions.some(function (extension) { + return urlString.indexOf(extension) === urlString.length - extension.length; // "endsWith" + }); + + if (!containsAcceptableDrag) { + event.ignore(); + } + } + onDragLeave: containsAcceptableDrag = false + + onDrop: { + if (containsAcceptableDrag) { + // Strip file:// prefix, we already verified in onDragEnter that we have only local URLs. + iconDialog.setCustomButtonImage(event.mimeData.url.toString().substr("file://".length)); + } + containsAcceptableDrag = false; + } + } + + KQuickAddons.IconDialog { + id: iconDialog + + function setCustomButtonImage(image) { + cfg_customButtonImage = image || cfg_icon || "start-here-kde" + cfg_useCustomButtonImage = true; + } + + onIconNameChanged: setCustomButtonImage(iconName); + } + + PlasmaCore.FrameSvgItem { + id: previewFrame + anchors.centerIn: parent + imagePath: plasmoid.location === PlasmaCore.Types.Vertical || plasmoid.location === PlasmaCore.Types.Horizontal + ? "widgets/panel-background" : "widgets/background" + width: units.iconSizes.large + fixedMargins.left + fixedMargins.right + height: units.iconSizes.large + fixedMargins.top + fixedMargins.bottom + + PlasmaCore.IconItem { + anchors.centerIn: parent + width: units.iconSizes.large + height: width + source: cfg_useCustomButtonImage ? cfg_customButtonImage : cfg_icon + } + } + + Menu { + id: iconMenu + + // Appear below the button + y: +parent.height + + onClosed: iconButton.checked = false; + + MenuItem { + text: i18nc("@item:inmenu Open icon chooser dialog", "Choose...") + icon.name: "document-open-folder" + onClicked: iconDialog.open() + } + MenuItem { + text: i18nc("@item:inmenu Reset icon to default", "Clear Icon") + icon.name: "edit-clear" + onClicked: { + cfg_icon = "start-here-kde" + cfg_useCustomButtonImage = false + } + } + } + } + + + Item { + Kirigami.FormData.isSection: true + } + + ComboBox { + id: menuPosition + + Kirigami.FormData.label: i18n("Menu Position:") + + model: [i18n("Center"), i18n("On Edge"), i18n("Auto")] + } + + Item { + Kirigami.FormData.isSection: true + } + + ComboBox { + id: favGridModel + + Kirigami.FormData.label: i18n("Pinned item:") + + model: [i18n("Favourite apps"), i18n("Recent apps"), i18n("Recent documents")] + } + + Item { + Kirigami.FormData.isSection: true + } + + ComboBox { + id: recentGridModel + + Kirigami.FormData.label: i18n("Recommended item:") + + model: [i18n("Recent documents"), i18n("Recent apps"), i18n("Favourite apps"), i18n("None")] + } + + Item { + Kirigami.FormData.isSection: true + } + + SpinBox{ + id: numberColumns + + Kirigami.FormData.label: i18n("Number of columns in grid:") + + from: 4 + to: 10 + } + + SpinBox{ + id: numberRows + + Kirigami.FormData.label: i18n("Number of rows in grid:") + + from: 1 + to: 10 + } + + Item { + Kirigami.FormData.isSection: true + } + + CheckBox { + id: defaultAllApps + Kirigami.FormData.label: i18n("Panel Properties:") + text: i18n("Show All apps by default") + } + + CheckBox { + id: gridAllowTwoLines + text: i18n("Allow label to have two lines (Pinned)") + } + + CheckBox { + id: showDescription + text: i18n("Show Description for all apps and search item") + } + + CheckBox { + id: alwaysShowSearchBar + text: i18n("Always Show Search Bar") + } + + CheckBox { + id: preferFullName + text: i18n("Prefer showing full name, instead of login name") + } + + Item { + Kirigami.FormData.isSection: true + } + + CheckBox { + id: replaceExplorerIcon + Kirigami.FormData.label: i18n("Icon Properties:") + text: i18n("Replace Explorer icon in footer") + } + + CheckBox { + id: reduceIconSizeUserProfile + text: i18n("Reduce Icon Size for User Profile") + } + + CheckBox { + id: reduceIconSizeFooter + text: i18n("Reduce Icon Size for Footer") + } + + CheckBox { + id: reducePinnedSize + text: i18n("Reduce Icon Size for Pinned item") + } + + Item { + Kirigami.FormData.isSection: true + } + + ComboBox { + id: appNameFormat + + Kirigami.FormData.label: i18n("Show applications as:") + + model: [i18n("Name only"), i18n("Description only"), i18n("Name (Description)"), i18n("Description (Name)")] + } + + Item { + Kirigami.FormData.isSection: true + } + + CheckBox { + id: downIconsDocuments + Kirigami.FormData.label: i18n("Icons on Bottom bar:") + text: i18n("Documents") + } + + CheckBox { + id: downIconsPictures + text: i18n("Pictures") + } + + CheckBox { + id: downIconsMusic + text: i18n("Music") + } + + CheckBox { + id: downIconsDownloads + text: i18n("Downloads") + } + + CheckBox { + id: downIconsVideos + text: i18n("Videos") + } + + CheckBox { + id: downIconsFileManager + text: i18n("File manager") + } + + CheckBox { + id: downIconsSystemSettings + text: i18n("System settings") + } + + CheckBox { + id: downIconsLock + text: i18n("Lock screen") + } + + CheckBox { + id: downIconsPowerOptions + text: i18n("Power options") + } + + Item { + Kirigami.FormData.isSection: true + } + + CheckBox { + id: useExtraRunners + + Kirigami.FormData.label: i18n("Search:") + + text: i18n("Expand search to bookmarks, files and emails") + } +} diff --git a/com.github.adhec.Menu11/contents/ui/Footer.qml b/com.github.adhec.Menu11/contents/ui/Footer.qml new file mode 100644 index 0000000..47aa68c --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/Footer.qml @@ -0,0 +1,233 @@ +/* + * Copyright 2014 Sebastian Kügler + * SPDX-FileCopyrightText: (C) 2020 Carl Schwan + * Copyright (C) 2021 by Mikel Johnson + * Copyright (C) 2021 by Prateek SU + * + * 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 2 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, 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.12 +import QtGraphicalEffects 1.0 +import QtQuick.Layouts 1.12 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 3.0 as PlasmaComponents +import org.kde.plasma.extras 2.0 as PlasmaExtras +import org.kde.kcoreaddons 1.0 as KCoreAddons +import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons +import org.kde.plasma.private.quicklaunch 1.0 + +Control { + id: footer + rightPadding: rightInset + leftPadding: rightPadding + property Item configureButton: configureButton + property Item avatar: avatarButton + property int iconSize: units.iconSizes.smallMedium + property var footerNames: ["Documents", "Pictures", "Music", "Downloads", "Videos", "File manager", "System settings", "Lock screen", "Power options"] + property var footerIcons: ["folder-documents-symbolic", "folder-pictures-symbolic", "folder-music-symbolic", "folder-download-symbolic", "folder-videos-symbolic", plasmoid.configuration.replaceExplorerIcon ? Qt.resolvedUrl((theme.textColor.r * 0.299 + theme.textColor.g * 0.587 + theme.textColor.b * 0.114) > 0.7265625 ? "icons/explorer.svg" : "icons/explorer_dark.svg") : "folder-symbolic", "configure", "system-lock-screen", "system-shutdown"] + + background: Rectangle { + color: Qt.darker(theme.backgroundColor) + opacity: .115 + border.width: 1 + border.color: "#cacbd0" + radius: 5 + } + + + KCoreAddons.KUser { + id: kuser + } + Logic { id: logic } + anchors.bottomMargin: units.largeSpacing * 2 + anchors.topMargin: anchors.bottomMargin + anchors.leftMargin: -12 + anchors.rightMargin: anchors.leftMargin + height: units.iconSizes.medium * 2.4 + + PlasmaCore.DataSource { + id: pmEngine + engine: "powermanagement" + connectedSources: ["PowerDevil", "Sleep States"] + function performOperation(what) { + var service = serviceForSource("PowerDevil") + var operation = service.operationDescription(what) + service.startOperationCall(operation) + } + } + + PlasmaCore.DataSource { + id: executable + engine: "executable" + connectedSources: [] + onNewData: { + var exitCode = data["exit code"] + var exitStatus = data["exit status"] + var stdout = data["stdout"] + var stderr = data["stderr"] + exited(sourceName, exitCode, exitStatus, stdout, stderr) + disconnectSource(sourceName) + } + function exec(cmd) { + if (cmd) { + connectSource(cmd) + } + } + signal exited(string cmd, int exitCode, int exitStatus, string stdout, string stderr) + } + + RowLayout { + id: nameAndIcon + anchors.leftMargin: units.largeSpacing * 3 - footer.rightPadding - footer.anchors.leftMargin + anchors.left: parent.left + x: units.smallSpacing + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + PlasmaComponents.RoundButton { + id: avatarButton + visible: KQuickAddons.KCMShell.authorize("kcm_users.desktop").length > 0 + + flat: true + + Layout.preferredWidth: plasmoid.configuration.reduceIconSizeUserProfile ? units.iconSizes.smallMedium * 1.8 : units.iconSizes.large * 1.2 + Layout.preferredHeight: Layout.preferredWidth + + Accessible.name: nameLabel.text + Accessible.description: i18n("Go to user settings") + + Image { + id: iconUser + source: kuser.faceIconUrl.toString() || "user-identity" + cache: false + visible: source !== "" + fillMode: Image.PreserveAspectFit + anchors { + fill: parent + margins: PlasmaCore.Units.smallSpacing + } + + layer.enabled: true + layer.effect: OpacityMask { + maskSource: Rectangle { + width: iconUser.width + height: iconUser.height + radius: height / 2 + visible: false + } + } + } + + onClicked: { + KQuickAddons.KCMShell.openSystemSettings("kcm_users") + } + + Keys.onPressed: { + // In search on backtab focus on search pane + if (event.key == Qt.Key_Backtab && (root.state == "Search" || mainTabGroup.state == "top")) { + navigationMethod.state = "keyboard" + keyboardNavigation.state = "RightColumn" + root.currentContentView.forceActiveFocus() + event.accepted = true; + return; + } + } + } + + Item { + Layout.fillWidth: true + Layout.preferredHeight: PlasmaCore.Units.gridUnit + Layout.alignment: Layout.AlignVCenter | Qt.AlignLeft + + PlasmaExtras.Heading { + id: nameLabel + anchors.fill: parent + + level: 4 + // font.weight: Font.Bold + Text { + font.capitalization: Font.Capitalize + } + text: plasmoid.configuration.preferFullName ? kuser.fullName : kuser.loginName + elide: Text.ElideRight + horizontalAlignment: Text.AlignLeft + verticalAlignment: Text.AlignVCenter + } + } + } + + RowLayout { + anchors.rightMargin: units.largeSpacing * 3 - footer.rightPadding - footer.anchors.leftMargin + anchors.right: parent.right + x: -units.smallSpacing + anchors.verticalCenter: parent.verticalCenter + + // looks visually balanced that way + spacing: Math.round(PlasmaCore.Units.smallSpacing * 2.5) + + Repeater { + model: 9 + PlasmaComponents.TabButton { + id: newTabButton + visible: [ + plasmoid.configuration.downIconsDocuments, + plasmoid.configuration.downIconsPictures, + plasmoid.configuration.downIconsMusic, + plasmoid.configuration.downIconsDownloads, + plasmoid.configuration.downIconsVideos, + plasmoid.configuration.downIconsFileManager, + plasmoid.configuration.downIconsSystemSettings, + plasmoid.configuration.downIconsLock, + plasmoid.configuration.downIconsPowerOptions + ][index] + // flat: true + NumberAnimation { + id: animateOpacity + target: newTabButton + properties: "opacity" + from: 1 + to: 0.5 + duration: PlasmaCore.Units.longDuration + easing.type: Easing.InOutQuad + } + NumberAnimation { + id: animateOpacityReverse + target: newTabButton + properties: "opacity" + from: 0.5 + to: 1 + duration: PlasmaCore.Units.longDuration + easing.type: Easing.InOutQuad + } + + icon { + name: footerIcons[index] + width: iconSize * (plasmoid.configuration.reduceIconSizeFooter ? 0.97 : 1) + } + onHoveredChanged: hovered ? animateOpacity.start() : animateOpacityReverse.start(); + PlasmaComponents.ToolTip { + text: i18n(footerNames[index]) + } + MouseArea { + onClicked: index < 6 ? executable.exec("xdg-open $(xdg-user-dir" + (index < 5 ? (" " + footerNames[index].toUpperCase()) : "") + ")") : index == 6 ? logic.openUrl("file:///usr/share/applications/systemsettings.desktop") : pmEngine.performOperation(index == 8 ? "requestShutDown" : "lockScreen") + anchors.fill: parent + hoverEnabled: true + cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor + } + } + } + } +} diff --git a/com.github.adhec.Menu11/contents/ui/ItemGridDelegate.qml b/com.github.adhec.Menu11/contents/ui/ItemGridDelegate.qml new file mode 100644 index 0000000..5e9f9df --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/ItemGridDelegate.qml @@ -0,0 +1,132 @@ +/*************************************************************************** + * Copyright (C) 2015 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, 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.12 + +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 3.0 as PlasmaComponents + +import "../code/tools.js" as Tools + +Item { + id: item + width: GridView.view.cellWidth + height: GridView.view.cellHeight + property bool showLabel: true + property bool showDescription: false + property bool increaseLeftSpacing: false + property int itemIndex: model.index + property string favoriteId: model.favoriteId !== undefined ? model.favoriteId : "" + property url url: model.url !== undefined ? model.url : "" + property variant icon: model.decoration !== undefined ? model.decoration : "" + property var m: model + property bool hasActionList: ((model.favoriteId !== null) + || (("hasActionList" in model) && (model.hasActionList === true))) + + Accessible.role: Accessible.MenuItem + Accessible.name: model.display + function openActionMenu(x, y) { + var actionList = hasActionList ? model.actionList : []; + Tools.fillActionMenu(i18n, actionMenu, actionList, GridView.view.model.favoritesModel, model.favoriteId); + actionMenu.visualParent = item; + actionMenu.open(x, y); + } + + function actionTriggered(actionId, actionArgument) { + var close = (Tools.triggerAction(GridView.view.model, model.index, actionId, actionArgument) === true); + + if (close) { + root.toggle(); + } + } + PlasmaCore.IconItem { + id: icon + x: increaseLeftSpacing ? units.smallSpacing : 0 + anchors.verticalCenter: parent.verticalCenter + width: iconSize + height: width + colorGroup: PlasmaCore.Theme.ComplementaryColorGroup + animated: false + usesPlasmaTheme: item.GridView.view.usesPlasmaTheme + source: model.decoration + } + + + ColumnLayout { + width: parent.width * 0.75 + visible: showLabel + anchors { + left: icon.right + leftMargin: PlasmaCore.Units.smallSpacing * 4 + rightMargin: anchors.leftMargin / 2 + verticalCenter: parent.verticalCenter + } + spacing: 0 + + PlasmaComponents.Label { + id: label + Layout.maximumWidth: parent.width + maximumLineCount: 1 + elide: Text.ElideRight + wrapMode: Text.Wrap + font.pointSize: 9 + color: theme.textColor + text: ("name" in model ? model.name : model.display) + } + PlasmaComponents.Label { + Layout.maximumWidth: parent.width + maximumLineCount: 1 + elide: Text.ElideRight + wrapMode: Text.Wrap + color: theme.textColor + text: model.description + font.pointSize: 8 + visible: showDescription + opacity: 0.7 + } + } + + PlasmaCore.ToolTipArea { + id: toolTip + property string text: model.display + anchors.fill: parent + active: label.truncated + mainItem: toolTipDelegate + + onContainsMouseChanged: item.GridView.view.itemContainsMouseChanged(containsMouse) + } + + Keys.onPressed: { + if (event.key === Qt.Key_Menu && hasActionList) { + event.accepted = true; + openActionMenu(item); + } else if ((event.key === Qt.Key_Enter || event.key === Qt.Key_Return)) { + event.accepted = true; + + if ("trigger" in GridView.view.model) { + GridView.view.model.trigger(index, "", null); + root.toggle(); + } + + itemGrid.itemActivated(index, "", null); + } + } +} diff --git a/com.github.adhec.Menu11/contents/ui/ItemGridDelegate2.qml b/com.github.adhec.Menu11/contents/ui/ItemGridDelegate2.qml new file mode 100644 index 0000000..da6051f --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/ItemGridDelegate2.qml @@ -0,0 +1,114 @@ +/*************************************************************************** + * Copyright (C) 2015 by Eike Hein * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +import QtQuick 2.12 + +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 3.0 as PlasmaComponents + +import "../code/tools.js" as Tools + +Item { + id: item + + width: GridView.view.cellWidth + height: GridView.view.cellHeight + property int iconSize: units.iconSizes.large * (plasmoid.configuration.reducePinnedSize ? 0.95 : 1) + + property bool showLabel: true + + property int itemIndex: model.index + property string favoriteId: model.favoriteId !== undefined ? model.favoriteId : "" + property url url: model.url !== undefined ? model.url : "" + property variant icon: model.decoration !== undefined ? model.decoration : "" + property var m: model + property bool hasActionList: ((model.favoriteId !== null) + || (("hasActionList" in model) && (model.hasActionList === true))) + + Accessible.role: Accessible.MenuItem + Accessible.name: model.display + + function openActionMenu(x, y) { + var actionList = hasActionList ? model.actionList : []; + Tools.fillActionMenu(i18n, actionMenu, actionList, GridView.view.model.favoritesModel, model.favoriteId); + actionMenu.visualParent = item; + actionMenu.open(x, y); + } + + function actionTriggered(actionId, actionArgument) { + var close = (Tools.triggerAction(GridView.view.model, model.index, actionId, actionArgument) === true); + if (close) root.toggle(); + } + + PlasmaCore.IconItem { + id: icon + anchors{ + top: parent.top + topMargin: units.smallSpacing * 2 + horizontalCenter: parent.horizontalCenter + } + width: iconSize + height: width + colorGroup: PlasmaCore.Theme.ComplementaryColorGroup + animated: false + usesPlasmaTheme: item.GridView.view.usesPlasmaTheme + source: model.decoration + } + + PlasmaComponents.Label { + id: label + visible: showLabel + anchors { + top: icon.bottom + topMargin: units.smallSpacing * (plasmoid.configuration.gridAllowTwoLines ? 0.8 : 1.4) + horizontalCenter: parent.horizontalCenter + } + maximumLineCount: plasmoid.configuration.gridAllowTwoLines ? 2 : 1 + horizontalAlignment: Text.AlignHCenter + width: parent.width - units.largeSpacing + elide: Text.ElideRight + wrapMode: Text.Wrap + color: theme.textColor + text: ("name" in model ? model.name : model.display) + } + + PlasmaCore.ToolTipArea { + id: toolTip + property string text: model.display + anchors.fill: parent + active: root.visible && label.truncated + mainItem: toolTipDelegate + onContainsMouseChanged: item.GridView.view.itemContainsMouseChanged(containsMouse) + } + + Keys.onPressed: { + if (event.key === Qt.Key_Menu && hasActionList) { + event.accepted = true; + openActionMenu(item); + } else if ((event.key === Qt.Key_Enter || event.key === Qt.Key_Return)) { + event.accepted = true; + if ("trigger" in GridView.view.model) { + GridView.view.model.trigger(index, "", null); + root.toggle(); + } + + itemGrid.itemActivated(index, "", null); + } + } +} diff --git a/com.github.adhec.Menu11/contents/ui/ItemGridView.qml b/com.github.adhec.Menu11/contents/ui/ItemGridView.qml new file mode 100644 index 0000000..8b35902 --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/ItemGridView.qml @@ -0,0 +1,480 @@ +/*************************************************************************** + * Copyright (C) 2015 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +import QtQuick 2.12 + +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 2.0 as PlasmaComponents +import org.kde.plasma.extras 2.0 as PlasmaExtras +import org.kde.kquickcontrolsaddons 2.0 +import org.kde.draganddrop 2.0 + +FocusScope { + id: itemGrid + + signal keyNavLeft + signal keyNavRight + signal keyNavUp + signal keyNavDown + + signal itemActivated(int index, string actionId, string argument) + + property bool dragEnabled: true + property bool dropEnabled: false + property bool showLabels: true + property bool increaseLeftSpacings: false + property alias usesPlasmaTheme: gridView.usesPlasmaTheme + + property alias currentIndex: gridView.currentIndex + property alias currentItem: gridView.currentItem + property alias contentItem: gridView.contentItem + property alias count: gridView.count + property alias model: gridView.model + property alias square: gridView.square + property alias showDescriptions: gridView.showDescriptions + + property alias cellWidth: gridView.cellWidth + property alias cellHeight: gridView.cellHeight + property alias iconSize: gridView.iconSize + + property alias horizontalScrollBarPolicy: scrollArea.horizontalScrollBarPolicy + property alias verticalScrollBarPolicy: scrollArea.verticalScrollBarPolicy + + onDropEnabledChanged: { + if (!dropEnabled && "dropPlaceHolderIndex" in model) { + model.dropPlaceHolderIndex = -1; + } + } + + onFocusChanged: { + if (!focus) { + currentIndex = -1; + } + } + + function currentRow() { + if (currentIndex == -1) { + return -1; + } + + return Math.floor(currentIndex / Math.floor(width / cellWidth)); + } + + function currentCol() { + if (currentIndex == -1) { + return -1; + } + + return currentIndex - (currentRow() * Math.floor(width / cellWidth)); + } + + function lastRow() { + var columns = Math.floor(width / cellWidth); + return Math.ceil(count / columns) - 1; + } + + function tryActivate(row, col) { + if (count) { + var columns = Math.floor(width / cellWidth); + var rows = Math.ceil(count / columns); + row = Math.min(row, rows - 1); + col = Math.min(col, columns - 1); + currentIndex = Math.min(row ? ((Math.max(1, row) * columns) + col) + : col, + count - 1); + + focus = true; + } + } + + function forceLayout() { + gridView.forceLayout(); + } + + ActionMenu { + id: actionMenu + + onActionClicked: { + visualParent.actionTriggered(actionId, actionArgument); + } + } + + DropArea { + id: dropArea + + anchors.fill: parent + + onDragMove: { + if (!dropEnabled || gridView.animating || !kicker.dragSource) { + return; + } + + var x = Math.max(0, event.x - (width % cellWidth)); + var cPos = mapToItem(gridView.contentItem, x, event.y); + var item = gridView.itemAt(cPos.x, cPos.y); + + if (item) { + if (kicker.dragSource.parent === gridView.contentItem) { + if (item !== kicker.dragSource) { + item.GridView.view.model.moveRow(dragSource.itemIndex, item.itemIndex); + } + } else if (kicker.dragSource.GridView.view.model.favoritesModel === model + && !model.isFavorite(kicker.dragSource.favoriteId)) { + var hasPlaceholder = (model.dropPlaceholderIndex !== -1); + + model.dropPlaceholderIndex = item.itemIndex; + + if (!hasPlaceholder) { + gridView.currentIndex = (item.itemIndex - 1); + } + } + } else if (kicker.dragSource.parent !== gridView.contentItem + && kicker.dragSource.GridView.view.model.favoritesModel === model + && !model.isFavorite(kicker.dragSource.favoriteId)) { + var hasPlaceholder = (model.dropPlaceholderIndex !== -1); + + model.dropPlaceholderIndex = hasPlaceholder ? model.count - 1 : model.count; + + if (!hasPlaceholder) { + gridView.currentIndex = (model.count - 1); + } + } else { + model.dropPlaceholderIndex = -1; + gridView.currentIndex = -1; + } + } + + onDragLeave: { + if ("dropPlaceholderIndex" in model) { + model.dropPlaceholderIndex = -1; + gridView.currentIndex = -1; + } + } + + onDrop: { + if (kicker.dragSource && kicker.dragSource.parent !== gridView.contentItem && kicker.dragSource.GridView.view.model.favoritesModel === model) { + model.addFavorite(kicker.dragSource.favoriteId, model.dropPlaceholderIndex); + gridView.currentIndex = -1; + } + } + + Timer { + id: resetAnimationDurationTimer + + interval: 120 + repeat: false + + onTriggered: { + gridView.animationDuration = interval - 20; + } + } + + Component{ + id: aItemGridDelegate2 + ItemGridDelegate2 { + showLabel: showLabels + } + } + Component{ + id: aItemGridDelegate + ItemGridDelegate { + showLabel: showLabels + showDescription: showDescriptions + increaseLeftSpacing: increaseLeftSpacings + } + } + + PlasmaExtras.ScrollArea { + id: scrollArea + + anchors.fill: parent + + focus: true + + horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff + verticalScrollBarPolicy: Qt.ScrollBarAsNeeded + + GridView { + id: gridView + + signal itemContainsMouseChanged(bool containsMouse) + + property bool usesPlasmaTheme: false + + property int iconSize: units.iconSizes.huge + property bool animating: false + property int animationDuration: dropEnabled ? resetAnimationDurationTimer.interval : 0 + property bool square: false + property bool showDescriptions: false + + focus: true + currentIndex: -1 + + move: Transition { + enabled: itemGrid.dropEnabled + + SequentialAnimation { + PropertyAction { target: gridView; property: "animating"; value: true } + + NumberAnimation { + duration: gridView.animationDuration + properties: "x, y" + easing.type: Easing.OutQuad + } + + PropertyAction { target: gridView; property: "animating"; value: false } + } + } + + moveDisplaced: Transition { + enabled: itemGrid.dropEnabled + + SequentialAnimation { + PropertyAction { target: gridView; property: "animating"; value: true } + + NumberAnimation { + duration: gridView.animationDuration + properties: "x, y" + easing.type: Easing.OutQuad + } + + PropertyAction { target: gridView; property: "animating"; value: false } + } + } + + keyNavigationWraps: false + boundsBehavior: Flickable.StopAtBounds + + delegate: square ? aItemGridDelegate2 : aItemGridDelegate + + highlight: Item { + property bool isDropPlaceHolder: "dropPlaceholderIndex" in model && currentIndex === model.dropPlaceholderIndex + + PlasmaComponents.Highlight { + visible: gridView.currentItem && !isDropPlaceHolder + anchors.fill: parent + } + + PlasmaCore.FrameSvgItem { + visible: gridView.currentItem && isDropPlaceHolder + anchors.fill: parent + imagePath: "widgets/viewitem" + prefix: "selected" + opacity: 0.5 + + PlasmaCore.IconItem { + anchors { + right: parent.right + rightMargin: parent.margins.right + bottom: parent.bottom + bottomMargin: parent.margins.bottom + } + + width: units.iconSizes.smallMedium + height: width + source: "list-add" + active: false + } + } + } + + highlightFollowsCurrentItem: true + highlightMoveDuration: 0 + + onCurrentIndexChanged: { + if (currentIndex != -1) { + hoverArea.hoverEnabled = false + focus = true; + } + } + + onCountChanged: { + animationDuration = 0; + resetAnimationDurationTimer.start(); + } + + onModelChanged: { + currentIndex = -1; + } + + Keys.onLeftPressed: { + if (currentCol() !== 0) { + event.accepted = true; + moveCurrentIndexLeft(); + } else { + itemGrid.keyNavLeft(); + } + } + + Keys.onRightPressed: { + var columns = Math.floor(width / cellWidth); + + if (currentCol() !== columns - 1 && currentIndex != count - 1) { + event.accepted = true; + moveCurrentIndexRight(); + } else { + itemGrid.keyNavRight(); + } + } + + Keys.onUpPressed: { + if (currentRow() !== 0) { + event.accepted = true; + moveCurrentIndexUp(); + positionViewAtIndex(currentIndex, GridView.Contain); + } else { + itemGrid.keyNavUp(); + } + } + + Keys.onDownPressed: { + if (currentRow() < itemGrid.lastRow()) { + // Fix moveCurrentIndexDown()'s lack of proper spatial nav down + // into partial columns. + event.accepted = true; + var columns = Math.floor(width / cellWidth); + var newIndex = currentIndex + columns; + currentIndex = Math.min(newIndex, count - 1); + positionViewAtIndex(currentIndex, GridView.Contain); + } else { + itemGrid.keyNavDown(); + } + } + + onItemContainsMouseChanged: { + if (!containsMouse) { + if (!actionMenu.opened) { + gridView.currentIndex = -1; + } + + hoverArea.pressX = -1; + hoverArea.pressY = -1; + hoverArea.lastX = -1; + hoverArea.lastY = -1; + hoverArea.pressedItem = null; + hoverArea.hoverEnabled = true; + } + } + } + } + + MouseArea { + id: hoverArea + + anchors.fill: parent + + property int pressX: -1 + property int pressY: -1 + property int lastX: -1 + property int lastY: -1 + property Item pressedItem: null + + acceptedButtons: Qt.LeftButton | Qt.RightButton + + hoverEnabled: true + + function updatePositionProperties(x, y) { + // Prevent hover event synthesis in QQuickWindow interfering + // with keyboard navigation by ignoring repeated events with + // identical coordinates. As the work done here would be re- + // dundant in any case, these are safe to ignore. + if (lastX === x && lastY === y) { + return; + } + + lastX = x; + lastY = y; + + var cPos = mapToItem(gridView.contentItem, x, y); + var item = gridView.itemAt(cPos.x, cPos.y); + + if (!item) { + gridView.currentIndex = -1; + pressedItem = null; + } else { + gridView.currentIndex = item.itemIndex; + itemGrid.focus = (currentIndex != -1) + } + + return item; + } + + onPressed: { + mouse.accepted = true; + + updatePositionProperties(mouse.x, mouse.y); + + pressX = mouse.x; + pressY = mouse.y; + + if (mouse.button == Qt.RightButton) { + if (gridView.currentItem) { + if (gridView.currentItem.hasActionList) { + var mapped = mapToItem(gridView.currentItem, mouse.x, mouse.y); + gridView.currentItem.openActionMenu(mapped.x, mapped.y); + } + } + } else { + pressedItem = gridView.currentItem; + } + } + + onReleased: { + mouse.accepted = true; + updatePositionProperties(mouse.x, mouse.y); + + if (gridView.currentItem && gridView.currentItem == pressedItem) { + if ("trigger" in gridView.model) { + gridView.model.trigger(pressedItem.itemIndex, "", null); + root.toggle(); + } + + itemGrid.itemActivated(pressedItem.itemIndex, "", null); + } else if (!dragHelper.dragging && !pressedItem && mouse.button == Qt.LeftButton) { + root.toggle(); + } + + pressX = -1; + pressY = -1; + pressedItem = null; + } + + onPositionChanged: { + var item = pressedItem ? pressedItem : updatePositionProperties(mouse.x, mouse.y); + + if (gridView.currentIndex != -1) { + if (dragEnabled && pressX != -1 && dragHelper.isDrag(pressX, pressY, mouse.x, mouse.y)) { + if ("pluginName" in item.m) { + dragHelper.startDrag(kicker, item.url, item.icon, + "text/x-plasmoidservicename", item.m.pluginName); + } else { + dragHelper.startDrag(kicker, item.url, item.icon); + } + + kicker.dragSource = item; + + pressX = -1; + pressY = -1; + } + } + } + } + } +} diff --git a/com.github.adhec.Menu11/contents/ui/ItemMultiGridView.qml b/com.github.adhec.Menu11/contents/ui/ItemMultiGridView.qml new file mode 100644 index 0000000..67ccf73 --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/ItemMultiGridView.qml @@ -0,0 +1,228 @@ +/*************************************************************************** + * Copyright (C) 2015 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + +import QtQuick 2.12 + +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.extras 2.0 as PlasmaExtras + +import org.kde.plasma.private.kicker 0.1 as Kicker +import QtQuick.Controls 2.1 +PlasmaExtras.ScrollArea { + // + id: itemMultiGrid + + anchors { + top: parent.top + } + width: parent.width + implicitHeight: itemColumn.implicitHeight + units.largeSpacing + + signal keyNavLeft(int subGridIndex) + signal keyNavRight(int subGridIndex) + signal keyNavUp() + signal keyNavDown() + + property bool grabFocus: false + property bool showDescriptions: false + property int iconSize: units.iconSizes.medium + + property alias model: repeater.model + property alias count: repeater.count + + //clip: true + verticalScrollBarPolicy: Qt.ScrollBarAsNeeded + + flickableItem.flickableDirection: Flickable.VerticalFlick + + onFocusChanged: { + if (!focus) { + for (var i = 0; i < repeater.count; i++) { + subGridAt(i).focus = false; + } + } + } + + function subGridAt(index) { + return repeater.itemAt(index).itemGrid; + } + + function tryActivate(row, col) { // FIXME TODO: Cleanup messy algo. + if (flickableItem.contentY > 0) { + row = 0; + } + + var target = null; + var rows = 0; + + for (var i = 0; i < repeater.count; i++) { + var grid = subGridAt(i); + + if (rows <= row) { + target = grid; + rows += grid.lastRow() + 2; // Header counts as one. + } else { + break; + } + } + + if (target) { + rows -= (target.lastRow() + 2); + target.tryActivate(row - rows, col); + } + } + + Column { + id: itemColumn + + width: itemMultiGrid.width - units.gridUnit + + Repeater { + id: repeater + + delegate: Item { + width: itemColumn.width + height: headerHeight + gridView.height + (index == repeater.count - 1 ? 0 : footerHeight) + + property int headerHeight: gridViewLabel.height + property int footerHeight: units.smallSpacing * 3 + visible: gridView.count > 0 + property Item itemGrid: gridView + + PlasmaExtras.Heading { + id: gridViewLabel + anchors.top: parent.top + //anchors.topMargin: 8 + x: units.smallSpacing + width: parent.width - x + height: dummyHeading.height + elide: Text.ElideRight + wrapMode: Text.NoWrap + opacity: 1.0 + color: theme.textColor + level: 5 + font.weight: Font.Bold + text: repeater.model.modelForRow(index).description + } + + MouseArea { + width: parent.width + height: parent.height + onClicked: root.toggle() + } + + ItemGridView { + id: gridView + + anchors { + top: gridViewLabel.bottom + topMargin: units.smallSpacing + } + + //TODO > + dragEnabled: false + dropEnabled: false + showDescriptions: itemMultiGrid.showDescriptions + // < + + width: parent.width + height: Math.ceil(count * cellHeight) + cellWidth: parent.width + cellHeight: root.iconSize + (2 * highlightItemSvg.margins.top)//<>cellSize + iconSize: root.iconSize + model: repeater.model.modelForRow(index) + + onFocusChanged: { + if (focus) { + itemMultiGrid.focus = true; + } + } + + onCountChanged: { + if (itemMultiGrid.grabFocus && index == 0 && count > 0) { + currentIndex = 0; + focus = true; + } + } + + onCurrentItemChanged: { + if (!currentItem) { + return; + } + + if (index == 0 && currentRow() === 0) { + itemMultiGrid.flickableItem.contentY = 0; + return; + } + + var y = currentItem.y; + y = contentItem.mapToItem(itemMultiGrid.flickableItem.contentItem, 0, y).y; + + if (y < itemMultiGrid.flickableItem.contentY) { + itemMultiGrid.flickableItem.contentY = y; + } else { + y += cellSize; + y -= itemMultiGrid.flickableItem.contentY; + y -= itemMultiGrid.viewport.height; + + if (y > 0) { + itemMultiGrid.flickableItem.contentY += y; + } + } + } + + onKeyNavLeft: { + itemMultiGrid.keyNavLeft(index); + } + + onKeyNavRight: { + itemMultiGrid.keyNavRight(index); + } + + onKeyNavUp: { + if (index > 0) { + var prevGrid = subGridAt(index - 1); + prevGrid.tryActivate(prevGrid.lastRow(), currentCol()); + } else { + itemMultiGrid.keyNavUp(); + } + } + + onKeyNavDown: { + if (index < repeater.count - 1) { + subGridAt(index + 1).tryActivate(0, currentCol()); + } else { + itemMultiGrid.keyNavDown(); + } + } + } + + // HACK: Steal wheel events from the nested grid view and forward them to + // the ScrollView's internal WheelArea. + Kicker.WheelInterceptor { + anchors.fill: gridView + z: 1 + + destination: findWheelArea(itemMultiGrid.flickableItem) + } + } + } + } +} diff --git a/com.github.adhec.Menu11/contents/ui/MainColumnItem.qml b/com.github.adhec.Menu11/contents/ui/MainColumnItem.qml new file mode 100644 index 0000000..1c2e77b --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/MainColumnItem.qml @@ -0,0 +1,563 @@ +/*************************************************************************** + * Copyright (C) 2013-2015 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * + ***************************************************************************/ + + +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons + +import QtQuick 2.12 +import org.kde.plasma.components 3.0 as PlasmaComponents +import org.kde.plasma.components 2.0 as PlasmaComponents2 + +import org.kde.plasma.extras 2.0 as PlasmaExtras +import org.kde.kwindowsystem 1.0 +import org.kde.plasma.private.kicker 0.1 as Kicker +import org.kde.kcoreaddons 1.0 as KCoreAddons + +import "../code/tools.js" as Tools + +Item { + id: item + + width: cellSize * (plasmoid.configuration.numberColumns + 1.3) + height: root.height + y: units.largeSpacing * 2 + property int iconSize: units.iconSizes.large + property int cellSize: iconSize + theme.mSize(theme.defaultFont).height + + (2 * units.smallSpacing) + + (2 * Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, + highlightItemSvg.margins.left + highlightItemSvg.margins.right)) + property bool searching: (searchField.text != "") + property bool showAllApps: plasmoid.configuration.defaultAllApps + property bool showRecents: false + property int tileSide: cellSize * 1.08 + onSearchingChanged: { + if (!searching) { + reset(); + } else { + if (showRecents) resetPinned.start(); + } + } + signal newTextQuery(string text) + property real mainColumnHeight: tileSide * plasmoid.configuration.numberRows + property real favoritesColumnHeight: tileSide * 0.6 * 3 + property var pinnedModel: [globalFavorites, rootModel.modelForRow(0), rootModel.modelForRow(1)] + property var recommendedModel: [rootModel.modelForRow(1), rootModel.modelForRow(0), globalFavorites, globalFavorites] + property var allAppsModel: [rootModel.modelForRow(2)] + + function updateModels() { + item.pinnedModel = [globalFavorites, rootModel.modelForRow(0), rootModel.modelForRow(1)] + item.recommendedModel = [rootModel.modelForRow(1), rootModel.modelForRow(0), globalFavorites, globalFavorites] + item.allAppsModel = [rootModel.modelForRow(2)] + } + + function reset() { + if (showRecents) resetPinned.start(); + searchField.clear() + searchField.focus = true + showAllApps = plasmoid.configuration.defaultAllApps + showRecents = false + documentsFavoritesGrid.tryActivate(0, 0); + allAppsGrid.tryActivate(0, 0); + globalFavoritesGrid.tryActivate(0, 0); + } + + function reload() { + mainColumn.visible = false + recentItem.visible = false + pinnedModel = null + recommendedModel = null + allAppsModel = null + preloadAllAppsTime.done = false + preloadAllAppsTime.defer() + } + + KWindowSystem { + id: kwindowsystem + } + KCoreAddons.KUser { id: kuser } + + PlasmaExtras.Heading { + id: dummyHeading + + visible: false + width: 0 + level: 1 + } + + + ParallelAnimation { + id: removePinned + running: false + NumberAnimation { target: mainColumn; property: "height"; from: mainColumnHeight; to: 0; duration: 500; easing.type: Easing.InOutQuad } + NumberAnimation { target: mainColumn; property: "opacity"; from: 1; to: 0; duration: 500; easing.type: Easing.InOutQuad } + NumberAnimation { target: documentsFavoritesGrid; property: "height"; from: favoritesColumnHeight; to: parent.height; duration: 500; easing.type: Easing.InOutQuad } + } + + ParallelAnimation { + id: restorePinned + running: false + NumberAnimation { target: mainColumn; property: "height"; from: 0; to: searching || showAllApps ? parent.height : mainColumnHeight; duration: 500; easing.type: Easing.InOutQuad } + NumberAnimation { target: mainColumn; property: "opacity"; from: 0; to: 1; duration: 500; easing.type: Easing.InOutQuad } + NumberAnimation { target: documentsFavoritesGrid; property: "height"; from: parent.height; to: favoritesColumnHeight; duration: 500; easing.type: Easing.InOutQuad } + } + + ParallelAnimation { + id: resetPinned + running: false + NumberAnimation { target: mainColumn; property: "height"; from: 0; to: searching || showAllApps ? parent.height : mainColumnHeight; duration: 0; } + NumberAnimation { target: mainColumn; property: "opacity"; from: 0; to: 1; duration: 0; } + NumberAnimation { target: documentsFavoritesGrid; property: "height"; from: parent.height; to: favoritesColumnHeight; duration: 0; } + } + + TextMetrics { + id: headingMetrics + font: dummyHeading.font + } + + Timer { + id: preloadAllAppsTime + property bool done: false + interval: 100 + repeat: false + onTriggered: { + if (done) { + return; + } + item.updateModels() + mainColumn.tryActivate(0, 0); + done = true; + mainColumn.visible = true + recentItem.visible = true + } + + function defer() { + if (!running && !done) { + restart(); + } + } + } + + Kicker.ContainmentInterface { + id: containmentInterface + } + + PlasmaComponents2.Menu { + id: contextMenu + PlasmaComponents2.MenuItem { + action: plasmoid.action("configure") + } + } + + + PlasmaComponents.TextField { + id: searchField + focus: true + placeholderText: i18n("Type here to search") + opacity: searching || plasmoid.configuration.alwaysShowSearchBar + leftPadding: PlasmaCore.Units.iconSizes.small * 1.9 + height: units.iconSizes.medium + width: parent.width - 2 * x + x: 1.5 * units.largeSpacing + Accessible.editable: true + Accessible.searchEdit: true + onTextChanged: { + runnerModel.query = text; + newTextQuery(text) + } + + PlasmaCore.IconItem { + id: searchIconItem + source: "search" + height: PlasmaCore.Units.iconSizes.small + width: height + x: PlasmaCore.Units.iconSizes.small * 0.45 + anchors { + verticalCenter: searchField.verticalCenter + } + } + + function clear() { + text = ""; + } + function backspace() { + if (searching) { + text = text.slice(0, -1); + } + focus = true; + } + function appendText(newText) { + if (!root.visible) { + return; + } + focus = true; + text = text + newText; + } + Keys.onPressed: { + if (event.key == Qt.Key_Down) { + event.accepted = true; + mainColumn.tryActivate(0, 0) + } else if (event.key == Qt.Key_Tab || event.key == Qt.Key_Up) { + event.accepted = true; + mainColumn.tryActivate(0, 0) + } else if (event.key == Qt.Key_Escape) { + event.accepted = true; + if (searching) { + clear() + } else { + root.toggle() + } + } + } + } + + PlasmaExtras.Heading { + id: mainLabelGrid + anchors.top: plasmoid.configuration.alwaysShowSearchBar ? searchField.bottom : parent.top + anchors.leftMargin: units.largeSpacing * 3 + anchors.topMargin: plasmoid.configuration.alwaysShowSearchBar ? units.largeSpacing : 0 + anchors.left: parent.left + x: units.smallSpacing + elide: Text.ElideRight + wrapMode: Text.NoWrap + color: theme.textColor + level: 5 + font.bold: true + font.weight: Font.Bold + text: i18n(showAllApps ? "All apps" : showRecents ? "Recommended" : "Pinned") + visible: !searching + } + + PlasmaComponents.Button { + MouseArea { + hoverEnabled: true + anchors.fill: parent + cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor + onClicked: { + if (showAllApps || !showRecents) + showAllApps = !showAllApps + else { + showRecents = !showRecents + if (showRecents) + removePinned.start(); + else + restorePinned.start(); + } + mainColumn.visibleGrid.tryActivate(0, 0) + } + } + text: i18n(showAllApps || showRecents ? "Back" : "All apps") + id: mainsecLabelGrid + icon.name: showAllApps || showRecents ? "go-previous" : "go-next" + font.pointSize: 9 + icon.height: 15 + icon.width: icon.height + LayoutMirroring.enabled: true + LayoutMirroring.childrenInherit: !showAllApps && !showRecents + flat: false + background: Rectangle { + color: Qt.lighter(theme.backgroundColor) + border.width: 1 + border.color: Qt.darker(theme.backgroundColor, 1.14) + radius: 5 + } + topPadding: 4 + bottomPadding: topPadding + leftPadding: 8 + rightPadding: 8 + icon{ + width: height + height: visible ? units.iconSizes.small : 0 + name: showAllApps || showRecents ? "go-previous" : "go-next" + } + + anchors { + topMargin: units.smallSpacing + verticalCenter: mainLabelGrid.verticalCenter + rightMargin: units.largeSpacing * 3 + leftMargin: units.largeSpacing * 3 + left: parent.left + } + x: -units.smallSpacing + visible: !searching + } + + Item { + id: mainColumn + anchors { + top: searching ? searchField.bottom : mainLabelGrid.bottom + leftMargin: units.largeSpacing * 1.6 + rightMargin: units.largeSpacing + topMargin: units.largeSpacing * 0.7 + left: parent.left + right: parent.right + bottom: searching ? parent.bottom : showAllApps ? footer.top : undefined + bottomMargin: showAllApps ? 5 : 0 + } + height: searching || showAllApps || plasmoid.configuration.recentGridModel == 3 ? parent.height : mainColumnHeight + property Item visibleGrid: globalFavoritesGrid + function tryActivate(row, col) { + if (visibleGrid) { + visibleGrid.tryActivate(row, col); + } + } + + ItemGridView { + id: globalFavoritesGrid + model: pinnedModel[plasmoid.configuration.favGridModel] + width: parent.width + height: plasmoid.configuration.recentGridModel == 3 ? parent.height : mainColumnHeight + cellWidth: tileSide + cellHeight: tileSide + square: true + dropEnabled: true + usesPlasmaTheme: true + z: (opacity == 1.0) ? 1 : 0 + enabled: (opacity == 1.0) ? 1 : 0 + verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff + opacity: searching || showAllApps ? 0 : 1 + onOpacityChanged: { + if (opacity == 1.0) { + mainColumn.visibleGrid = globalFavoritesGrid; + } + } + onKeyNavDown: documentsFavoritesGrid.tryActivate(0, 0) + + } + + ItemMultiGridView { + id: allAppsGrid + anchors.fill: parent + z: (opacity == 1.0) ? 1 : 0 + enabled: (opacity == 1.0) ? 1 : 0 + height: parent.height + width: parent.width + grabFocus: true + model: allAppsModel[0] + opacity: showAllApps && !searching ? 1.0 : 0.0 + showDescriptions: plasmoid.configuration.showDescription + anchors { + leftMargin: units.largeSpacing * 1.6; + } + onOpacityChanged: { + if (opacity == 1.0) { + mainColumn.visibleGrid = allAppsGrid; + } + } + } + + ItemMultiGridView { + id: runnerGrid + anchors.fill: parent + z: (opacity == 1.0) ? 1 : 0 + enabled: (opacity == 1.0) ? 1 : 0 + width: parent.width + model: runnerModel + showDescriptions: plasmoid.configuration.showDescription + grabFocus: true + opacity: searching ? 1.0 : 0.0 + onOpacityChanged: { + if (opacity == 1.0) { + mainColumn.visibleGrid = runnerGrid; + } + } + } + + Keys.onPressed: { + if (event.key == Qt.Key_Backspace) { + event.accepted = true; + if (searching) + searchField.backspace(); + else + searchField.focus = true + } else if (event.key == Qt.Key_Tab) { + event.accepted = true; + if (!searching && !showAllApps) documentsFavoritesGrid.tryActivate(0, 0); + } else if (event.key == Qt.Key_Escape) { + event.accepted = true; + if (searching) { + searchField.clear() + } else { + root.toggle() + } + } else if (event.text != "") { + event.accepted = true; + searchField.appendText(event.text); + } + } + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton + LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft + LayoutMirroring.childrenInherit: true + onPressed: { + if (mouse.button == Qt.RightButton) { + contextMenu.open(mouse.x, mouse.y); + } + } + + onClicked: { + if (mouse.button == Qt.LeftButton) { + } + } + } + + } + + Item{ + id: recentItem + width: parent.width + anchors.top: mainColumn.bottom + anchors.topMargin: units.largeSpacing * 0.5 + anchors.left: parent.left + anchors.bottom: parent.bottom + anchors.leftMargin: units.largeSpacing * 3 + anchors.rightMargin: units.largeSpacing + visible: plasmoid.configuration.recentGridModel != 3 + + property int iconSize: 22 + + PlasmaExtras.Heading { + id: headLabelDocuments + x: units.smallSpacing + width: parent.width - x + elide: Text.ElideRight + wrapMode: Text.NoWrap + color: theme.textColor + level: 5 + font.bold: true + font.weight: Font.Bold + visible: !searching && !showAllApps && !showRecents + text: i18n("Recommended") + } + + PlasmaComponents.Button { + MouseArea { + hoverEnabled: true + anchors.fill: parent + cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor + onClicked: { + showRecents = !showRecents + if (showRecents) + removePinned.start(); + else + restorePinned.start(); + } + } + text: i18n(showRecents ? "Back" : "More") + id: headsecLabelGrid + icon.name: showRecents ? "go-previous" : "go-next" + font.pointSize: 9 + icon.height: 15 + icon.width: icon.height + LayoutMirroring.enabled: true + LayoutMirroring.childrenInherit: !showRecents + flat: false + background: Rectangle { + color: Qt.lighter(theme.backgroundColor) + border.width: 1 + border.color: Qt.darker(theme.backgroundColor, 1.14) + radius: 5 + } + topPadding: 4 + bottomPadding: topPadding + leftPadding: 8 + rightPadding: 8 + icon{ + width: height + height: visible ? units.iconSizes.small : 0 + name: showRecents ? "go-previous" : "go-next" + } + + anchors { + verticalCenter: headLabelDocuments.verticalCenter + rightMargin: units.largeSpacing * 6 + leftMargin: units.largeSpacing * 6 + left: parent.left + } + x: -units.smallSpacing + visible: documentsFavoritesGrid.model != null && documentsFavoritesGrid.model.count > 6 && !searching && !showAllApps && !showRecents + } + + ItemGridView { + id: documentsFavoritesGrid + visible: !searching && !showAllApps + showDescriptions: true + + anchors{ + top: headLabelDocuments.bottom + left: parent.left + right: parent.right + bottomMargin: 0 + topMargin: units.largeSpacing * 0.7 + } + + increaseLeftSpacings: true + height: showRecents ? parent.height : favoritesColumnHeight + cellWidth: parent.width * 0.4 + cellHeight: tileSide * 0.6 + iconSize: units.iconSizes.medium + model: recommendedModel[plasmoid.configuration.recentGridModel] + usesPlasmaTheme: false + + onKeyNavUp: { + mainColumn.visibleGrid.tryActivate(0, 0); + } + + Keys.onPressed: { + if (event.key == Qt.Key_Tab) { + event.accepted = true; + mainColumn.visibleGrid.tryActivate(0, 0) + } else if (event.key == Qt.Key_Backspace) { + event.accepted = true; + if (searching) + searchField.backspace(); + else + searchField.focus = true + } else if (event.key == Qt.Key_Escape) { + event.accepted = true; + if (searching) { + searchField.clear() + } else { + root.toggle() + } + } else if (event.text != "") { + event.accepted = true; + searchField.appendText(event.text); + } + + } + } + } + + Footer { + id: footer + visible: !searching + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: parent.bottom + } + + Component.onCompleted: { + searchField.focus = true + } +} + diff --git a/com.github.adhec.Menu11/contents/ui/MenuRepresentation.qml b/com.github.adhec.Menu11/contents/ui/MenuRepresentation.qml new file mode 100644 index 0000000..2619576 --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/MenuRepresentation.qml @@ -0,0 +1,160 @@ +/*************************************************************************** + * Copyright (C) 2014 by Weng Xuetian + * Copyright (C) 2013-2017 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, 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.12 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 3.0 as PlasmaComponents + +PlasmaCore.Dialog { + id: root + + objectName: "popupWindow" + flags: Qt.WindowStaysOnTopHint + location: PlasmaCore.Types.Floating + hideOnWindowDeactivate: true + + property int iconSize: units.iconSizes.medium + property int iconSizeSide: units.iconSizes.smallMedium + + property int cellSize: iconSize + theme.mSize(theme.defaultFont).height + + units.largeSpacing + + (2 * Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, + highlightItemSvg.margins.left + highlightItemSvg.margins.right)) + + onVisibleChanged: { + if (!visible) { + reset(); + } else { + var pos = popupPosition(width, height); + x = pos.x; + y = pos.y; + requestActivate(); + } + } + + onHeightChanged: { + var pos = popupPosition(width, height); + x = pos.x; + y = pos.y; + } + + onWidthChanged: { + var pos = popupPosition(width, height); + x = pos.x; + y = pos.y; + } + + function toggle() { + root.visible = false; + } + + function reset() { + mainColumnItem.reset() + } + + function popupPosition(width, height) { + var screenAvail = plasmoid.availableScreenRect; + var screenGeom = plasmoid.screenGeometry; + //QtBug - QTBUG-64115 + var screen = Qt.rect(screenAvail.x + screenGeom.x, + screenAvail.y + screenGeom.y, + screenAvail.width, + screenAvail.height); + + var offset = units.smallSpacing; + + // Fall back to bottom-left of screen area when the applet is on the desktop or floating. + var x = offset; + var y = screen.height - height - offset; + var horizMidPoint = screen.x + (screen.width / 2); + var vertMidPoint = screen.y + (screen.height / 2); + var appletTopLeft = parent.mapToGlobal(0, 0); + var appletBottomLeft = parent.mapToGlobal(0, parent.height); + if (plasmoid.configuration.menuPosition == 0) { + x = plasmoid.location === PlasmaCore.Types.LeftEdge ? parent.width + panelSvg.margins.right + offset + 6 : plasmoid.location === PlasmaCore.Types.RightEdge ? appletTopLeft.x - panelSvg.margins.left - offset - width - 6 : horizMidPoint - width / 2; + y = plasmoid.location === PlasmaCore.Types.TopEdge ? parent.height + panelSvg.margins.bottom + offset + 6 : plasmoid.location === PlasmaCore.Types.BottomEdge ? screen.height - height - offset - panelSvg.margins.top - 6 : vertMidPoint - height / 2; + } else if (plasmoid.location === PlasmaCore.Types.BottomEdge) { + if (plasmoid.configuration.menuPosition == 1) + x = (appletTopLeft.x < horizMidPoint) ? screen.x + offset + 6 : (screen.x + screen.width) - width - offset - 6; + else + x = appletTopLeft.x - width / 2 + y = screen.height - height - offset - panelSvg.margins.top - 6; + } else if (plasmoid.location === PlasmaCore.Types.TopEdge) { + if (plasmoid.configuration.menuPosition == 1) + x = (appletBottomLeft.x < horizMidPoint) ? screen.x + offset + 6 : (screen.x + screen.width) - width - offset - 6; + else + x = appletBottomLeft.x - width / 2 + y = parent.height + panelSvg.margins.bottom + offset + 6; + } else if (plasmoid.location === PlasmaCore.Types.LeftEdge) { + x = parent.width + panelSvg.margins.right + offset + 6; + if (plasmoid.configuration.menuPosition == 1) + y = (appletTopLeft.y < vertMidPoint) ? screen.y + offset + 6 : (screen.y + screen.height) - height - offset - 6; + else + y = appletTopLeft.y - height / 2 + } else if (plasmoid.location === PlasmaCore.Types.RightEdge) { + x = appletTopLeft.x - panelSvg.margins.left - offset - width - 6; + if (plasmoid.configuration.menuPosition == 1) + y = (appletTopLeft.y < vertMidPoint) ? screen.y + offset + 6 : (screen.y + screen.height) - height - offset - 6; + else + y = appletTopLeft.y - height / 2 + } + + return Qt.point(x, y); + } + + + FocusScope { + Layout.minimumWidth: mainColumnItem.width + Layout.minimumHeight: cellSize * (5.1 + plasmoid.configuration.numberRows + (plasmoid.configuration.alwaysShowSearchBar ? 0.6 : 0)) + Layout.maximumWidth: Layout.minimumWidth + Layout.maximumHeight: Layout.minimumHeight + + focus: true + + Row{ + anchors.fill: parent + spacing: units.largeSpacing + + MainColumnItem{ + id: mainColumnItem + } + } + + + Keys.onPressed: { + if (event.key == Qt.Key_Escape) { + root.visible = false; + } + } + } + + function refreshModel() { + mainColumnItem.reload() + console.log("refresh model - menu 11") + } + + Component.onCompleted: { + rootModel.refreshed.connect(refreshModel) + kicker.reset.connect(reset); + reset(); + } +} diff --git a/com.github.adhec.Menu11/contents/ui/icons/explorer.svg b/com.github.adhec.Menu11/contents/ui/icons/explorer.svg new file mode 100644 index 0000000..f0aee68 --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/icons/explorer.svg @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.github.adhec.Menu11/contents/ui/icons/explorer_dark.svg b/com.github.adhec.Menu11/contents/ui/icons/explorer_dark.svg new file mode 100644 index 0000000..48e0412 --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/icons/explorer_dark.svg @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.github.adhec.Menu11/contents/ui/main.qml b/com.github.adhec.Menu11/contents/ui/main.qml new file mode 100644 index 0000000..3e4b6b2 --- /dev/null +++ b/com.github.adhec.Menu11/contents/ui/main.qml @@ -0,0 +1,221 @@ +/*************************************************************************** + * Copyright (C) 2014-2015 by Eike Hein * + * Copyright (C) 2021 by Prateek SU * + * * + * 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 2 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, 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.12 +import org.kde.plasma.plasmoid 2.0 + +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 3.0 as PlasmaComponents + +import org.kde.plasma.private.kicker 0.1 as Kicker + +Item { + id: kicker + + anchors.fill: parent + + signal reset + + property bool isDash: false + + Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation + + Plasmoid.compactRepresentation: null + Plasmoid.fullRepresentation: compactRepresentation + + property Item dragSource: null + + property QtObject globalFavorites: rootModel.favoritesModel + property QtObject systemFavorites: rootModel.systemFavoritesModel + + function action_menuedit() { + processRunner.runMenuEditor(); + } + + Component { + id: compactRepresentation + CompactRepresentation { } + } + + Component { + id: menuRepresentation + MenuRepresentation { } + } + + Kicker.RootModel { + id: rootModel + + autoPopulate: false + + appNameFormat: plasmoid.configuration.appNameFormat + flat: true + sorted: true + showSeparators: false + appletInterface: plasmoid + + showAllApps: true + showAllAppsCategorized: true + showTopLevelItems: !isDash + showRecentApps: plasmoid.configuration.showRecentApps + showRecentDocs: plasmoid.configuration.showRecentDocs + showRecentContacts: plasmoid.configuration.showRecentContacts + recentOrdering: plasmoid.configuration.recentOrdering + + onShowRecentAppsChanged: { + plasmoid.configuration.showRecentApps = showRecentApps; + } + + onShowRecentDocsChanged: { + plasmoid.configuration.showRecentDocs = showRecentDocs; + } + + onShowRecentContactsChanged: { + plasmoid.configuration.showRecentContacts = showRecentContacts; + } + + onRecentOrderingChanged: { + plasmoid.configuration.recentOrdering = recentOrdering; + } + + onFavoritesModelChanged: { + if ("initForClient" in favoritesModel) { + favoritesModel.initForClient("org.kde.plasma.kicker.favorites.instance-" + plasmoid.id) + + if (!plasmoid.configuration.favoritesPortedToKAstats) { + favoritesModel.portOldFavorites(plasmoid.configuration.favoriteApps); + plasmoid.configuration.favoritesPortedToKAstats = true; + } + } else { + favoritesModel.favorites = plasmoid.configuration.favoriteApps; + } + + favoritesModel.maxFavorites = pageSize; + } + + onSystemFavoritesModelChanged: { + systemFavoritesModel.enabled = false; + systemFavoritesModel.favorites = plasmoid.configuration.favoriteSystemActions; + systemFavoritesModel.maxFavorites = 6; + } + + Component.onCompleted: { + if ("initForClient" in favoritesModel) { + favoritesModel.initForClient("org.kde.plasma.kicker.favorites.instance-" + plasmoid.id) + + if (!plasmoid.configuration.favoritesPortedToKAstats) { + favoritesModel.portOldFavorites(plasmoid.configuration.favoriteApps); + plasmoid.configuration.favoritesPortedToKAstats = true; + } + } else { + favoritesModel.favorites = plasmoid.configuration.favoriteApps; + } + + favoritesModel.maxFavorites = pageSize; + rootModel.refresh(); + } + } + + Connections { + target: globalFavorites + + onFavoritesChanged: { + plasmoid.configuration.favoriteApps = target.favorites; + } + } + + Connections { + target: systemFavorites + + onFavoritesChanged: { + plasmoid.configuration.favoriteSystemActions = target.favorites; + } + } + + Connections { + target: plasmoid.configuration + + onFavoriteAppsChanged: { + globalFavorites.favorites = plasmoid.configuration.favoriteApps; + } + + onFavoriteSystemActionsChanged: { + systemFavorites.favorites = plasmoid.configuration.favoriteSystemActions; + } + } + + Kicker.RunnerModel { + id: runnerModel + + favoritesModel: globalFavorites + runners: plasmoid.configuration.useExtraRunners ? new Array("services").concat(plasmoid.configuration.extraRunners) : "services" + appletInterface: plasmoid + + deleteWhenEmpty: false + } + + Kicker.DragHelper { + id: dragHelper + } + + Kicker.ProcessRunner { + id: processRunner; + } + + PlasmaCore.FrameSvgItem { + id: highlightItemSvg + + visible: false + + imagePath: "widgets/viewitem" + prefix: "hover" + } + + PlasmaCore.FrameSvgItem { + id: panelSvg + + visible: false + + imagePath: "widgets/panel-background" + } + + PlasmaComponents.Label { + id: toolTipDelegate + + width: contentWidth + height: contentHeight + + property Item toolTip + + text: (toolTip != null) ? toolTip.text : "" + } + + function resetDragSource() { + dragSource = null; + } + + Component.onCompleted: { + plasmoid.setAction("menuedit", i18n("Edit Applications...")); + + rootModel.refreshed.connect(reset); + + dragHelper.dropped.connect(resetDragSource); + } +} diff --git a/com.github.adhec.Menu11/metadata.json b/com.github.adhec.Menu11/metadata.json new file mode 100644 index 0000000..5d30230 --- /dev/null +++ b/com.github.adhec.Menu11/metadata.json @@ -0,0 +1,28 @@ +{ + "KPlugin": { + "Authors": [ + { + "Email": "pankajsunal123@gmail.com", + "Name": "Prateek SU" + } + ], + "Category": "Application Launchers", + "Dependencies": [ + ], + "Description": "A configurable launcher menu 11", + "EnabledByDefault": true, + "Icon": "start-here-kde", + "Id": "com.github.adhec.Menu11", + "License": "GPL-2.0+", + "Name": "Menu11", + "ServiceTypes": [ + "Plasma/Applet" + ], + "Version": "8.0" + }, + "X-Plasma-API": "declarativeappletscript", + "X-Plasma-MainScript": "ui/main.qml", + "X-Plasma-Provides": [ + "org.kde.plasma.launchermenu" + ] +} diff --git a/com.github.adhec.Menu11/translate/README.md b/com.github.adhec.Menu11/translate/README.md new file mode 100644 index 0000000..693ce5d --- /dev/null +++ b/com.github.adhec.Menu11/translate/README.md @@ -0,0 +1,42 @@ +> Version 7 of Zren's i18n scripts. + +With KDE Frameworks v5.37 and above, translations are bundled with the `*.plasmoid` file downloaded from the store. + +## Install Translations + +Go to `~/.local/share/plasma/plasmoids/menu11/translate/` and run `sh ./build --restartplasma`. + +## New Translations + +1. Fill out [`template.pot`](template.pot) with your translations then open a [new issue](https://github.com/prateekmedia/menu11/issues/new), name the file `spanish.txt`, attach the txt file to the issue (drag and drop). + +Or if you know how to make a pull request + +1. Copy the `template.pot` file and name it your locale's code (Eg: `en`/`de`/`fr`) with the extension `.po`. Then fill out all the `msgstr ""`. + +## Scripts + +* `sh ./merge` will parse the `i18n()` calls in the `*.qml` files and write it to the `template.pot` file. Then it will merge any changes into the `*.po` language files. +* `sh ./build` will convert the `*.po` files to it's binary `*.mo` version and move it to `contents/locale/...` which will bundle the translations in the `*.plasmoid` without needing the user to manually install them. +* `sh ./plasmoidlocaletest` will run `./build` then `plasmoidviewer` (part of `plasma-sdk`). + +## Links + +* https://zren.github.io/kde/docs/widget/#translations-i18n +* https://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_Systems +* https://api.kde.org/frameworks/ki18n/html/prg_guide.html + +## Examples + +* https://l10n.kde.org/stats/gui/trunk-kf5/team/fr/plasma-desktop/ +* https://github.com/psifidotos/nowdock-plasmoid/tree/master/po +* https://github.com/kotelnik/plasma-applet-redshift-control/tree/master/translations + +## Status +| Locale | Lines | % Done| +|----------|---------|-------| +| Template | 51 | 100 | +| Dutch | 48 | 94 | +| Hebrew | 51 | 100 | +| Italian | 48 | 94 | +| Turkish | 51 | 100 | diff --git a/com.github.adhec.Menu11/translate/build b/com.github.adhec.Menu11/translate/build new file mode 100755 index 0000000..6d6f60a --- /dev/null +++ b/com.github.adhec.Menu11/translate/build @@ -0,0 +1,53 @@ +#!/bin/sh +# Version: 5 + +# This script will convert the *.po files to *.mo files, rebuilding the package/contents/locale folder. +# Feature discussion: https://phabricator.kde.org/D5209 +# Eg: contents/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo + +DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd` +plasmoidName=`kreadconfig5 --file="$DIR/../metadata.desktop" --group="Desktop Entry" --key="X-KDE-PluginInfo-Name"` +website=`kreadconfig5 --file="$DIR/../metadata.desktop" --group="Desktop Entry" --key="X-KDE-PluginInfo-Website"` +bugAddress="$website" +packageRoot=".." # Root of translatable sources +projectName="plasma_applet_${plasmoidName}" # project name + +#--- +if [ -z "$plasmoidName" ]; then + echo "[build] Error: Couldn't read plasmoidName." + exit +fi + +if [ -z "$(which msgfmt)" ]; then + echo "[build] Error: msgfmt command not found. Need to install gettext" + echo "[build] Running 'sudo apt install gettext'" + sudo apt install gettext + echo "[build] gettext installation should be finished. Going back to installing translations." +fi + +#--- +echo "[build] Compiling messages" + +catalogs=`find . -name '*.po'` +for cat in $catalogs; do + echo "$cat" + catLocale=`basename ${cat%.*}` + msgfmt -o "${catLocale}.mo" "$cat" + + installPath="$DIR/../contents/locale/${catLocale}/LC_MESSAGES/${projectName}.mo" + + echo "[build] Install to ${installPath}" + mkdir -p "$(dirname "$installPath")" + mv "${catLocale}.mo" "${installPath}" +done + +echo "[build] Done building messages" + +if [ "$1" = "--restartplasma" ]; then + echo "[build] Restarting plasmashell" + killall plasmashell + kstart5 plasmashell + echo "[build] Done restarting plasmashell" +else + echo "[build] (re)install the plasmoid and restart plasmashell to test." +fi diff --git a/com.github.adhec.Menu11/translate/de.po b/com.github.adhec.Menu11/translate/de.po new file mode 100644 index 0000000..340bfd3 --- /dev/null +++ b/com.github.adhec.Menu11/translate/de.po @@ -0,0 +1,221 @@ +# Translation of menu11 in LANGUAGE +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Sunsheep afm@hotmail.de, 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-08-02 22:00-0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Sunsheep afm@hotmail.de\n" +"Language: German\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menü 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Ein hochgradig anpassbarer Launcher, inspiriert vom Windows 11 Menü. Fork von MenuZ." + +#: ../contents/config/config.qml +msgid "General" +msgstr "Allgemein" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Symbol:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Menü Position" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Zentriert" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "Am Rand" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Automatisch" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Angeheftetes Element:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Bevorzugte Apps" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Neueste Anwendungen" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Neueste Dokumente" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Empfohlener Eintrag:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "None" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Anzahl der Spalten im Raster:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Anzahl der Zeilen im Gitter:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Symbol Eigenschaften:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Panel Eigenschaften:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Alle Anwendungen standardmäßig anzeigen" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Ersetzen des Explorer Symbols in der Fußzeile" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Symbolgröße für Benutzerprofil verkleinern" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Symbolgröße in der Fußzeile verringern" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Symbolgröße für angeheftetes Element verringern" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Erlaube mehrzeilige Bezeichnung (angeheftet)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Beschreibung für alle Anwendungen und Suchbegriffe anzeigen" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Suchleiste immer anzeigen" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Vollständiger Namen anstelle des Anmeldenamens" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Anwendungen anzeigen als:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Nur Name" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Nur Beschreibung" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Name (Beschreibung)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Beschreibung (Name)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Symbole in der unteren Leiste" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Dokumente" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Bilder" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Musik" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Downloads" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Videos" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Dateimanager" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Systemeinstellungen" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Sperrbildschirm" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Energieoptionen" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Suche:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Erweitern der Suche auf Lesezeichen, Dateien und E-Mails" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Tippe hier, um zu suchen" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Alle Apps" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Empfohlen" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Angeheftet" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Zurück" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Mehr" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Gehe zu den Benutzereinstellungen" diff --git a/com.github.adhec.Menu11/translate/es_ES.po b/com.github.adhec.Menu11/translate/es_ES.po new file mode 100644 index 0000000..1648265 --- /dev/null +++ b/com.github.adhec.Menu11/translate/es_ES.po @@ -0,0 +1,222 @@ +# Translation of menu11 in Spanish +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Ángel Fernández Sánchez \n" +"Language-Team: LANGUAGE \n" +"Language: Español\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menú 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Launcher con gran capacidad de personalización inspirado en el menú de Windows 11. Fork de MenuZ" + +#: ../contents/config/config.qml +msgid "General" +msgstr "General" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Icono" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Posición del Menú" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Centro" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "En el borde" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Auto" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Elemento anclado" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Aplicaciones favoritas" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Aplicaciones recientes" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Documentos recientes" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Elemento recomendado" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Ninguno" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Número de columnas en la cuadrícula:" + +#: ../contents/ui/config.qml +msgid "Número de filas en la cuadrícula:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Propiedades de los iconos:" + +#: ../contents/ui/config.qml +msgid "Propiedades del panel:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Mostrar todas las aplicaciones por defecto" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Sustituir el icono del Explorador en el pie de página" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Reducir el tamaño de los iconos del perfil de usuario" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Reducir el tamaño del icono para el pie de página" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Reducir el tamaño del icono del elemento anclado" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Permitir que la etiqueta tenga dos líneas (Anclado)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Mostrar la descripción de todas las aplicaciones y el elemento de búsqueda" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Mostrar siempre la barra de búsqueda" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Preferir mostrar el nombre completo, en lugar del nombre de usuario" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Mostrar aplicaciones como:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Sólo el nombre" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Sólo la descripción" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Nombre (Descripción)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Descripción (Nombre)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Iconos en la barra inferior:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Documentos" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Imágenes" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Música" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Descargas" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Vídeos" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Gestor de archivos" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Configuración del sistema" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Pantalla de bloqueo" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Opciones de energía" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Buscar:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Ampliar la búsqueda a marcadores, archivos y correos electrónicos" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Escribe aquí para buscar" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Todas las aplicaciones" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Recomendado" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Anclado" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Volver" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Más" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Ir a la configuración del usuario" diff --git a/com.github.adhec.Menu11/translate/fr.po b/com.github.adhec.Menu11/translate/fr.po new file mode 100644 index 0000000..6372808 --- /dev/null +++ b/com.github.adhec.Menu11/translate/fr.po @@ -0,0 +1,222 @@ +# Translation of menu11 in French +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# GolDNenex , 2021. +# Alan Paris , 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-10-27 HO:MI+ZONE\n" +"Last-Translator: Alan Paris \n" +"Language-Team: \n" +"Language: French\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Un lanceur hautement personnalisable inspiré du menu Windows 11. Fork de MenuZ." + +#: ../contents/config/config.qml +msgid "General" +msgstr "Général" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Icône :" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Position du menu :" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Centrer" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "Au bord" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Automatique" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Élément épinglé :" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Applications préférées" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Applications récentes" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Documents récents" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Élément recommandé :" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Aucun" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Nombre de colonnes dans la grille :" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Nombre de lignes dans la grille :" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Propriétés de l'icône :" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Propriétés du panneau :" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Afficher toutes les applications par défaut" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Remplacer l'icône de l'explorateur en bas de page" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Réduire la taille des icônes pour le profil utilisateur" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Réduire la taille des icônes en bas de page" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Réduire la taille de l'icône pour l'élément épinglé" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Autoriser l'étiquette d'avoir deux lignes (épinglées)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Afficher la description pour toutes les applications et l'élément de recherche" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Toujours afficher la barre de recherche" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Afficher le nom complet en lieu et place du nom d'utilisateur" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Afficher les applications comme :" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Nom uniquement" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Description uniquement" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Nom (Description)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Description (Nom)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Icônes sur la barre du bas :" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Documents" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Images" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Musique" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Téléchargements" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Vidéos" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Gestionnaire de fichiers" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Paramètres système" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Verrouiller l'écran" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Options d'alimentation" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Recherche :" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Étendre la recherche dans les signets, les fichiers et les courriels" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Tapez ici pour effectuer une recherche" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Toutes les applications" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Nos recommandations" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Épinglé" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Retour" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Plus" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Aller aux paramètres de l'utilisateur" diff --git a/com.github.adhec.Menu11/translate/he.po b/com.github.adhec.Menu11/translate/he.po new file mode 100644 index 0000000..d2daae6 --- /dev/null +++ b/com.github.adhec.Menu11/translate/he.po @@ -0,0 +1,223 @@ +# Translation of menu11 in Hebrew +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Omer I.S. , 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-07-26 14:26+0300\n" +"Language-Team: Hebrew \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.2\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n==2 ? 1 : n>10 && n%10==0 ? 2 : 3);\n" +"Language: he\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "מפעיל יישומים גמיש מאוד בהשראת התפריט של Windows 11. פוצל מ־MenuZ." + +#: ../contents/config/config.qml +msgid "General" +msgstr "כללי" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "סמל:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "מיקום התפריט:" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "במרכז" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "בפינה" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "אוטומטי" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "יישום מוצמד:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "יישומים מועדפים" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "יישומים אחרונים" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "מסמכים אחרונים" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "פריט מומלץ:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "ללא" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "מספר טורים ברשת:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "מספר שורות ברשת:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "מאפייני סמל:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "מאפייני לוח:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "הצגת כל היישומים כברירת מחדל" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "החלף את סמל הסייר בכותרת התחתונה" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "הקטנת סמל תמונת המשתמש" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "הקטנת הסמלים בחלק התחתון" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "הקטנת סמלי היישומים המוצמדים" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "לאפשר תווית עם שתי שורות (למוצמדים)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "הצגת תיאור לכל היישומים וליישומים שנמצאים בחיפוש" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "תמיד להציג סרגל חיפוש" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "עדיפה הצגת השם המלא, במקום שם המשתמש" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "הצגת היישומים בתור:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "שם בלבד" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "תיאור בלבד" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "שם (תיאור)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "תיאור (שם)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "סמלים בסרגל התחתון:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "מסמכים" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "תמונות" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "מוזיקה" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "הורדות" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "וידאו" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "מנהל הקבצים" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "הגדרות מערכת" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "נעילת המסך" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "אפשרויות הפעלה" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "חיפוש:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "הרחבת החיפוש לסימניות, קבצים ודואר אלקטרוני" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "יש להקליד כאן כדי לחפש" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "כל היישומים" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "מומלצים" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "מוצמדים" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "חזרה" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "עוד" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "מעבר להגדרות המשתמש" diff --git a/com.github.adhec.Menu11/translate/hi_IN.po b/com.github.adhec.Menu11/translate/hi_IN.po new file mode 100644 index 0000000..49f4efa --- /dev/null +++ b/com.github.adhec.Menu11/translate/hi_IN.po @@ -0,0 +1,222 @@ +# Translation of menu11 in LANGUAGE +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Telegram : @VCARP , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-10-04 16:30+0530\n" +"Last-Translator: Virendra Carpenter \n" +"Language-Team: \n" +"Language: hi_IN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "मेनू 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "विंडोज़ 11 मेनू से प्रेरित एक उच्च अनुकूलन योग्य लांचर। मेनूजेड का फोर्क।" + +#: ../contents/config/config.qml +msgid "General" +msgstr "आम" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "आइकन:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "मेनू स्थिति:" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "केंद्र" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "किनारे पर" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "ऑटो" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "पिन किया गया आइटम" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "पसंदीदा ऐप्स" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "हाल के ऐप्स" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "हाल के कागजात" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "अनुशंसित वस्तु:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "कोई नहीं" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "ग्रिड में स्तंभों की संख्या:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "ग्रिड में पंक्तियों की संख्या:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "चिह्न गुण:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "पैनल गुण:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "डिफ़ॉल्ट रूप से सभी ऐप्स दिखाएं" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "पाद लेख में एक्सप्लोरर आइकन बदलें" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "उपयोगकर्ता प्रोफ़ाइल के लिए चिह्न का आकार कम करें" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "पाद लेख के लिए चिह्न का आकार कम करें" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "पिन किए गए आइटम के लिए आइकन का आकार कम करें" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "लेबल को दो पंक्तियों की अनुमति दें (पिन किया हुआ)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "सभी ऐप्स और खोज आइटम के लिए विवरण दिखाएं" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "हमेशा खोज बार दिखाएँ" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "लॉगिन नाम के बजाय पूरा नाम दिखाना पसंद करें" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "अनुप्रयोगों को इस रूप में दिखाएं:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "केवल नाम" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "केवल विवरण" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "नाम (विवरण)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "विवरण (नाम)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "नीचे पट्टी पर चिह्न:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "दस्तावेज़" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "चित्रों" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "संगीत" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "डाउनलोड" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "वीडियो" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "फ़ाइल प्रबंधक" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "प्रणाली व्यवस्था" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "लॉक स्क्रीन" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "ऊर्जा के विकल्प" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "खोज:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "बुकमार्क, फ़ाइलों और ईमेल में खोज का विस्तार करें" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "खोजने के लिए यहां टाइप करें" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "सभी एप्लीकेशन" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "अनुशंसित" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "पिन की गई" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "वापस" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "अधिक" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "उपयोगकर्ता सेटिंग पर जाएं" diff --git a/com.github.adhec.Menu11/translate/it.po b/com.github.adhec.Menu11/translate/it.po new file mode 100644 index 0000000..7f5f32d --- /dev/null +++ b/com.github.adhec.Menu11/translate/it.po @@ -0,0 +1,222 @@ +# Translation of menu11 in ITALIAN +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Daniele Aliquo' , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-07-24 13:43+LMT\n" +"Last-Translator: Daniele Aliquo' \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Un launcher altamente personalizzabile ispirato al menu' Start di Windows 11. Fork di MenuZ" + +#: ../contents/config/config.qml +msgid "General" +msgstr "Generale" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Icona" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Posizione menu'" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Elementi fissati:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Applicazioni preferite" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Applicazioni recenti" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Documenti recenti" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Articoli consigliati:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Nessuno" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Numero di colonne" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Numero di righe" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Icona' pannello" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Proprieta' pannello" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Mostra sempre tutte le app" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Sostituisci l'icona dell'esploratore nel piè di pagina" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Riduci dimensione icona per l'immagine di profilo" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Riduci dimensione icone in basso" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Riduci dimensione icone per Elementi fissati" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Consenti al testo di andare a capo (Elementi fissati)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Mostra descrizione per tutte le app ed elementi di ricerca" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Mostra sempre la barra di ricerca" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Preferisce mostrare il nome completo invece del nome utente" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Mostra applicazioni come:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Solo nome" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Solo descrizione" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Nome (Descrizione)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Descrizione (Nome)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Icone nella barra inferiore" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Documenti" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Immagini" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Musica" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Scaricati" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Video" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Gestore file" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Impostazioni di sistema" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Schermata di blocco" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Arresta" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Ricerca:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Espandi ricerca a segnalibri, file ed email" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Scrivi qui il testo da cercare." + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Tutte le app" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Articoli consigliati" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Aggiunto" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Indietro" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Altro" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Vai alle impostazioni utente" diff --git a/com.github.adhec.Menu11/translate/ko.po b/com.github.adhec.Menu11/translate/ko.po new file mode 100644 index 0000000..fe9658c --- /dev/null +++ b/com.github.adhec.Menu11/translate/ko.po @@ -0,0 +1,223 @@ +# Translation of menu11 in Korean +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# kuroehanako , 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-08-17 22:06+0900\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.0\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"Language: ko\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "" + +#: ../contents/config/config.qml +msgid "General" +msgstr "일반" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "아이콘:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "메뉴 위치:" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "가운데" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "모서리" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "자동" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "고정된 항목:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "책갈피" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "최근 프로그램" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "최근 문서" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "추천 항목:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "없음" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "아이콘 정보:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "패널 정보:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "사용자 이미지 크기 줄이기" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "이름표에 두 줄 허용 (고정됨)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "프로그램과 검색 항목에 설명 표시" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "항상 검색 창 표시" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "프로그램 표시:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "이름만" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "설명만" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "이름 (설명)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "설명 (이름)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "하단 바 아이콘:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "문서" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "사진" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "음악" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "다운로드" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "비디오" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "파일 관리자" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "시스템 설정" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "잠금" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "전원 옵션" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "검색:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "검색하려면 여기에 입력하십시오." + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "모든 프로그램" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "추천" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "고정됨" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "뒤로" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "더 보기" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "사용자 설정으로" diff --git a/com.github.adhec.Menu11/translate/nl.po b/com.github.adhec.Menu11/translate/nl.po new file mode 100644 index 0000000..66cdac4 --- /dev/null +++ b/com.github.adhec.Menu11/translate/nl.po @@ -0,0 +1,223 @@ +# Translation of menu11 in Dutch +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-07-24 14:40+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.0\n" +"Last-Translator: Heimen Stoffels \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: nl\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Een zeer aanpasbaar programmamenu dat veel wegheeft van het Windows 11-startmenu. Afsplitsing van MenuZ." + +#: ../contents/config/config.qml +msgid "General" +msgstr "Algemeen" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Pictogram" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Menupositie" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Vastgemaakt item:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Favoriete programma's" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Recente programma's" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Recente documenten" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Aanbevolen item:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Geen" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Aantal kolommen op rooster:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Aantal rijen op rooster:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Pictogram Eigenschappen:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Paneel Eigenschappen:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Onderdeel ‘Alle programma's’ tonen na aanklikken" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Vervang Explorer-pictogram in voettekst" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Pictogram van gebruikersafbeelding verkleinen" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Pictogrammen naast voettekst verkleinen" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Pictogrammen van vastgemaakte items verkleinen" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Labeltekst verdelen over twee regels (vastgemaakte items)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Beschrijvingen tonen bij alle programma's en zoekopdrachten" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Zoekbalk altijd tonen" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Liever volledige naam weergeven in plaats van inlognaam" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Programmaweergave:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Alleen naam" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Alleen beschrijving" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Naam (beschrijving)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Beschrijving (naam)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Pictogrammen op onderbalk:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Documenten" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Afbeeldingen" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Muziek" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Downloads" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Video's" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Bestandsbeheerder" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Systeeminstellingen" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Scherm vergrendelen" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Afsluitopties" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Zoeken:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Ook bladwijzers, bestanden en e-mails doorzoeken" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Typ om te zoeken…" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Alle programma's" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Aanbevolen" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Vastgemaakt" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Terug" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Meer" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Ga naar de gebruikersinstellingen" diff --git a/com.github.adhec.Menu11/translate/pl.po b/com.github.adhec.Menu11/translate/pl.po new file mode 100644 index 0000000..4e09a07 --- /dev/null +++ b/com.github.adhec.Menu11/translate/pl.po @@ -0,0 +1,222 @@ +# Translation of menu11 in LANGUAGE +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Marcin Sągol marcin@soee.pl, 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Wysoce konfigurowalny program uruchamiający aplikacje inspirowany menu z systemu Windows 11. Fork MenuZ." + +#: ../contents/config/config.qml +msgid "General" +msgstr "Ogólne" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Ikona:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Pozycja menu:" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Środek" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "Brzeg" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Automatyczna" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Przypięty element:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Ulubione aplikacje" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Bieżące aplikacje" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Bieżące dokumenty" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Polecany element:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Żaden" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Liczba kolumn w siatce:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Liczba wierszy w siatce:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Ustawienia ikon:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Ustawienia panelu:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Pokaż wszystkie aplikacje domyślnie" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Zamień ikonę Eksploratora w stopce" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Zredukuj rozmar ikony dla profilu użytkownika" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Zredukuj rozmar ikony dla stopki" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Zredukuj rozmar ikony dla przypiętego elementu" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Pozwól, aby etykieta miała dwa wiersze (Przypięte)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Pokaż opis dla wszystkich aplikacji i elementu wyszukiwania" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Zawsze pokazuj pasek wyszukiwania" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Preferuj pokazywanie imienia i nazwiska zamiast loginu" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Pokaż aplikacje jako:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Tylko nazwa" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Tylko opis" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Nazwa (opis)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Opis (nazwa)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Ikony na dolnym" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Dokumenty" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Obrazy" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Muzyka" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Pobrane" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Wideo" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Menadżer plików" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Ustawienia systemowe" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Zablokuj ekran" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Zasilanie" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Wyszukiwanie:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Rozszerz wyszukiwanie do zakładek, plików i e-maili" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Wpisz tutaj, aby szukać" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Wszystkie aplikacje" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Polecane" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Przypięte" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Wstecz" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Więcej" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Przejdź do ustawień użytkownika" diff --git a/com.github.adhec.Menu11/translate/pt_BR.po b/com.github.adhec.Menu11/translate/pt_BR.po new file mode 100644 index 0000000..669cc5d --- /dev/null +++ b/com.github.adhec.Menu11/translate/pt_BR.po @@ -0,0 +1,222 @@ +# Translation of menu11 in PORTUGUESE_BRAZILLIAN +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Thiago Corbari Feldhaus' , 2021. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-07-29 11:00-0300\n" +"PO-Revision-Date: 2021-07-29 11:00+LMT\n" +"Last-Translator: Thiago Corbari Feldhaus' \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Um lançador customizado inspirado do menu do windows 11. Fork do MenuZ" + +#: ../contents/config/config.qml +msgid "General" +msgstr "Geral" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Ícone" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Posição do Menu'" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Centralizar" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "Na lateral" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Automático" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Ítem fixo:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Aplicações Favoritas" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Aplicações recentes" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Documentos recentes" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Ítem recomendado:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Nenhum" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Número de colunas no grid" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Número de linhas no grid" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Ícone de Propriedades" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Painel de Propriedades" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Mostrar Todas as aplicações por padrão" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Substituir o ícone do Explorer no rodapé" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Reduzir Tamanho do Ícove do Perfil do Usuário" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Reduzir Tamanho do Ícone do Rodapé" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Reduzir Tamanho do Ícone dos Ítens Fixos" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Permitir label em duas linhas (Fixos)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Mostrar Descrição para todas as aplicações e ítem de busca" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Sempre Mostrar a Barra de Busca" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Mostrar preferencialmente o nome completo, com base no nome de login" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Mostrar aplicações como:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Nome somente" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Descrição somente" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Nome (Descrição)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Descrição (Nome)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Ícones na Barra Inferior" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Documentos" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Imagens" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Música" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Downloads" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Vídeos" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Gerenciador de arquivo" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Configurações do sistema" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Bloquear tela" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Opções de energia" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Buscar:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Expandir a busca por favoritos, arquivos e emails" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Digite a busca aqui" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Todos os aplicativos" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Recomendado" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Fixos" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Voltar" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Mais" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Ir para configurações do usuário" diff --git a/com.github.adhec.Menu11/translate/ru.po b/com.github.adhec.Menu11/translate/ru.po new file mode 100644 index 0000000..9be2437 --- /dev/null +++ b/com.github.adhec.Menu11/translate/ru.po @@ -0,0 +1,223 @@ +# Translation of menu11 in Russian +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Telegram: @CakesTwix , 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-08-30 19:24+0300\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.0\n" +"Last-Translator: CakesTwix\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" +"Language: ru\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Очень кастомизируемое меню, вдохновленная меню из Windows 11. Форк MenuZ." + +#: ../contents/config/config.qml +msgid "General" +msgstr "Общее" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Иконка:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Позиция меню:" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Центр" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "На краю" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Автоматически" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Закрепленный элемент:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Избранные приложения" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Последние приложения" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "Недавние документы" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Рекомендуемый элемент:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Ничего" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Количество столбцов в сетке:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Количество строк в сетке:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Свойства иконок:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Свойства панели:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Показывать все приложения по умолчанию" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Замените значок проводника в нижнем колонтитуле" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Уменьшение размера значка для профиля пользователя" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Уменьшение размера значка для нижнего колонтитула" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Уменьшение размера значка для закрепленного элемента" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Разрешить значку иметь две строки (Закреплен)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Показать описание для всех приложений и элементов поиска" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Всегда показывать панель поиска" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Предпочтение показывать полное имя вместо логина для входа в систему" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Показывать приложения как:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Только название" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Только описание" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Название (Описание)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Описание (Название)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Значки на нижней панели:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Документы" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Изображения" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Музыка" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "Загрузки" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Видео" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Файловый менеджер" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Настройки системы" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Экран блокировки" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Параметры питания" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Поиск:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Расширить поиск на закладки, файлы и электронную почту" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Нажмите здесь для поиска" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Все приложения" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Рекомендуемые" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Закрепленные" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Назад" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Больше" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Переход к настройкам пользователя" diff --git a/com.github.adhec.Menu11/translate/template.pot b/com.github.adhec.Menu11/translate/template.pot new file mode 100644 index 0000000..a275549 --- /dev/null +++ b/com.github.adhec.Menu11/translate/template.pot @@ -0,0 +1,222 @@ +# Translation of menu11 in LANGUAGE +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "" + +#: ../contents/config/config.qml +msgid "General" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "" diff --git a/com.github.adhec.Menu11/translate/tr.po b/com.github.adhec.Menu11/translate/tr.po new file mode 100644 index 0000000..d5f1a17 --- /dev/null +++ b/com.github.adhec.Menu11/translate/tr.po @@ -0,0 +1,222 @@ +# Translation of menu11 in Turkish +# Copyright (C) 2021 +# This file is distributed under the same license as the menu11 package. +# Alper Tiryakioğlu , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: menu11\n" +"Report-Msgid-Bugs-To: https://github.com/prateekmedia/menu11\n" +"POT-Creation-Date: 2021-04-09 22:46-0400\n" +"PO-Revision-Date: 2021-07-25 20:45+0300\n" +"Last-Translator: Alper Tiryakioğlu\n" +"Language-Team:\n" +"Language: Turkish\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../metadata.desktop +msgid "Menu 11" +msgstr "Menu 11" + +#: ../metadata.desktop +msgid "A highly customizable launcher inspired from windows 11 menu. Fork of MenuZ." +msgstr "Windows 11 menüsünden ilham almış, yüksek derecede kişiselleştirilebilir çalıştırıcı. MenuZ çatallaması." + +#: ../contents/config/config.qml +msgid "General" +msgstr "Genel" + +#: ../contents/ui/config.qml +msgid "Icon:" +msgstr "Simge:" + +#: ../contents/ui/config.qml +msgid "Menu Position:" +msgstr "Menü Konumu:" + +#: ../contents/ui/config.qml +msgid "Center" +msgstr "Ortada" + +#: ../contents/ui/config.qml +msgid "On Edge" +msgstr "Köşede" + +#: ../contents/ui/config.qml +msgid "Auto" +msgstr "Otomatik" + +#: ../contents/ui/config.qml +msgid "Pinned item:" +msgstr "Sabitlenen öğeler:" + +#: ../contents/ui/config.qml +msgid "Favourite apps" +msgstr "Sık kullanılan uygulamalar" + +#: ../contents/ui/config.qml +msgid "Recent apps" +msgstr "Son kullanılan uygulamalar" + +#: ../contents/ui/config.qml +msgid "Recent documents" +msgstr "En son belgeler" + +#: ../contents/ui/config.qml +msgid "Recommended item:" +msgstr "Önerilen öğeler:" + +#: ../contents/ui/config.qml +msgid "None" +msgstr "Hiçbiri" + +#: ../contents/ui/config.qml +msgid "Number of columns in grid:" +msgstr "Sütun sayısı:" + +#: ../contents/ui/config.qml +msgid "Number of rows in grid:" +msgstr "Satır sayısı:" + +#: ../contents/ui/config.qml +msgid "Icon Properties:" +msgstr "Simge Özellikleri:" + +#: ../contents/ui/config.qml +msgid "Panel Properties:" +msgstr "Panel Özellikleri:" + +#: ../contents/ui/config.qml +msgid "Show All apps by default" +msgstr "Varsayılan olarak Tüm uygulamaları göster" + +#: ../contents/ui/config.qml +msgid "Replace Explorer icon in footer" +msgstr "Alt Bilgideki dosya gezgini simgesini değiştirin" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for User Profile" +msgstr "Profil resminin simge boyutunu küçült" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Footer" +msgstr "Alt çubuk öğeleri için simge boyutunu küçült" + +#: ../contents/ui/config.qml +msgid "Reduce Icon Size for Pinned item" +msgstr "Sabitlenmiş öğelerin simge boyutunu küçült" + +#: ../contents/ui/config.qml +msgid "Allow label to have two lines (Pinned)" +msgstr "Etiketlerin iki satırı kaplamasına izin ver (Sabitlenmiş öğeler'de)" + +#: ../contents/ui/config.qml +msgid "Show Description for all apps and search item" +msgstr "Tüm uygulamalar ve arama sonuçları için açıklama göster" + +#: ../contents/ui/config.qml +msgid "Always Show Search Bar" +msgstr "Her zaman Arama Çubuğu'nu göster" + +#: ../contents/ui/config.qml +msgid "Prefer showing full name, instead of login name" +msgstr "Kullanıcı adı yerine tam ismi göstermeyi tercih et." + +#: ../contents/ui/config.qml +msgid "Show applications as:" +msgstr "Uygulamaları gösterme şekli:" + +#: ../contents/ui/config.qml +msgid "Name only" +msgstr "Sadece Ad" + +#: ../contents/ui/config.qml +msgid "Description only" +msgstr "Sadece Açıklama" + +#: ../contents/ui/config.qml +msgid "Name (Description)" +msgstr "Ad (Açıklama)" + +#: ../contents/ui/config.qml +msgid "Description (Name)" +msgstr "Açıklama (Ad)" + +#: ../contents/ui/config.qml +msgid "Icons on Bottom bar:" +msgstr "Alt çubuktaki simgeler:" + +#: ../contents/ui/config.qml +msgid "Documents" +msgstr "Belgeler" + +#: ../contents/ui/config.qml +msgid "Pictures" +msgstr "Resimler" + +#: ../contents/ui/config.qml +msgid "Music" +msgstr "Müzik" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Downloads" +msgstr "İndirilenler" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Videos" +msgstr "Videolar" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "File manager" +msgstr "Dosya yöneticisi" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "System settings" +msgstr "Sistem ayarları" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Lock screen" +msgstr "Ekranı kilitle" + +#: ../contents/ui/config.qml ../contents/ui/Footer.qml +msgid "Power options" +msgstr "Güç seçenekleri" + +#: ../contents/ui/config.qml +msgid "Search:" +msgstr "Arama:" + +#: ../contents/ui/config.qml +msgid "Expand search to bookmarks, files and emails" +msgstr "Aramaları yer imlerine, dosyalara ve e-maillere genişlet" + +#: ../contents/ui/MainColumnItem.qml +msgid "Type here to search" +msgstr "Aramak için buraya yazın" + +#: ../contents/ui/MainColumnItem.qml +msgid "All apps" +msgstr "Tüm uygulamalar" + +#: ../contents/ui/MainColumnItem.qml +msgid "Recommended" +msgstr "Önerilenler" + +#: ../contents/ui/MainColumnItem.qml +msgid "Pinned" +msgstr "Sabitlenmiş" + +#: ../contents/ui/MainColumnItem.qml +msgid "Back" +msgstr "Geri" + +#: ../contents/ui/MainColumnItem.qml +msgid "More" +msgstr "Daha fazla" + +#: ../contents/ui/Footer.qml +msgid "Go to user settings" +msgstr "Kullanıcı ayarları'na gidin" diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..f13ae35 --- /dev/null +++ b/make.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo $0 + exit +else + echo "USER IS ROOT" +fi + +PWD=$(dirname $0) + +THEME_PATH="/usr/share/plasma/plasmoids" + +if [[ ! -d "$THEME_PATH" ]];then + mkdir -p "$THEME_PATH" +fi + +THEME_NAME="com.github.adhec.Menu11" + +rm -rf $THEME_PATH/$THEME_NAME + +cp -vrf --remove-destination --no-dereference --preserve=links "$PWD/$THEME_NAME" "$THEME_PATH/"