pax_global_header00006660000000000000000000000064135105631510014512gustar00rootroot0000000000000052 comment=b0531e2330ae53691dce2b86b872e8578bed8f34 dde-calendar-5.0.1/000077500000000000000000000000001351056315100140205ustar00rootroot00000000000000dde-calendar-5.0.1/.clog.toml000066400000000000000000000002401351056315100157130ustar00rootroot00000000000000[clog] repository = "https://github.com/linuxdeepin/dde-calendar" from-latest-tag = true changelog = "CHANGELOG.md" [sections] Others = ["chore", "refactor"] dde-calendar-5.0.1/.gitignore000066400000000000000000000004051351056315100160070ustar00rootroot00000000000000# Compiled Object files *.slo *.lo *.o # Compiled Dynamic libraries *.so *.dylib # Compiled Static libraries *.lai *.la *.a build*/ *.pro.user* *.DS_Store *.core *.autosave # qm file is auto generate from .ts file *.qm # vim tmp file *.swp .vscode/ build/ dde-calendar-5.0.1/.tx/000077500000000000000000000000001351056315100145315ustar00rootroot00000000000000dde-calendar-5.0.1/.tx/config000066400000000000000000000006371351056315100157270ustar00rootroot00000000000000[main] host = https://www.transifex.com minimum_perc = 80 mode = developer [deepin-desktop-environment.dde-calendar] file_filter = translations/dde-calendar_.ts source_file = translations/dde-calendar.ts source_lang = en type = QT [deepin-desktop-environment.dde-calendar_desktop] file_filter = translations/desktop/desktop_.ts source_file = translations/desktop/desktop.ts source_lang = en type = QT dde-calendar-5.0.1/CHANGELOG.md000066400000000000000000000062461351056315100156410ustar00rootroot00000000000000 ### 1.2.10 (2019-06-17) #### Bug Fixes * Crash because m_firstWeekDay is a random value ([86885747](https://github.com/linuxdeepin/dde-calendar/commit/868857477b1c2738aedb3ef6c277568bca5740ef)) ### 1.2.9 (2019-06-14) #### Bug Fixes * first weekday not have default value ([cabefea7](https://github.com/linuxdeepin/dde-calendar/commit/cabefea7f26eddf26b41de99df43674d3baf2668)) ### 1.2.8 (2019-05-27) #### Bug Fixes * version have quotes ([00fc3468](https://github.com/linuxdeepin/dde-calendar/commit/00fc34684245f1dab0aa922aa132b2edf756b257)) ### 1.2.7 (2019-05-10) #### Others * switch qmake to cmake ([9795b85f](https://github.com/linuxdeepin/dde-calendar/commit/9795b85f246d86e81c4ffba67c700a5446c1d0f5)) * use internal variables replace get version in debian/rules ([8b94c105](https://github.com/linuxdeepin/dde-calendar/commit/8b94c105c9fc3e6c9e88d77f6fa9a7601aeefa13)) ### 1.2.6 (2018-11-23) #### Features * add genericName ([3ca6204e](https://github.com/linuxdeepin/dde-calendar/commit/3ca6204e03af1d5e402ec31d3bad8785288bdf3d)) ### 1.2.5 (2018-08-07) ### 1.2.4 (2018-07-31) #### Features * set window title ([e1e7efad](https://github.com/linuxdeepin/dde-calendar/commit/e1e7efadb1b5c0ec9e5ca068236fee43492c260f)) ### 1.2.3 (2018-05-25) #### Bug Fixes * register user scope single instance ([87664c8e](https://github.com/linuxdeepin/dde-calendar/commit/87664c8ef7efce224601bdfa3ca58728b41552a3)) * not refresh day when direct switch month ([20d35339](https://github.com/linuxdeepin/dde-calendar/commit/20d3533960c4818c5123958c619cb656a2b219b5)) ### 1.2.2 (2018-03-22) #### Features * Add acknowledgement link ([f491e7db](https://github.com/linuxdeepin/dde-calendar/commit/f491e7dbd7a007f5df339ca15fe024c5da455ea9)) ### 1.2.1 (2018-03-09) #### Bug Fixes * calendar not update current Lunar ([bab3f2a5](https://github.com/linuxdeepin/dde-calendar/commit/bab3f2a59918dff3c5898f749cb1f096a74f2997)) ## 1.2.0 (2018-03-07) #### Features * **version:** correct version number ([8a30944f](https://github.com/linuxdeepin/dde-calendar/commit/8a30944f01d93ee2946eac65011998fe5c63ab54)) #### Bug Fixes * not update current lunar date with first run ([8046c2c2](https://github.com/linuxdeepin/dde-calendar/commit/8046c2c2518e70b4ac576a2df04d5aec03fdd48d)) * Adapt lintian ([199bdd4d](https://github.com/linuxdeepin/dde-calendar/commit/199bdd4db809e17ab15d55b3736e8afdf2f221b5)) * **debian:** add dde-api depend ([fd2b0bbc](https://github.com/linuxdeepin/dde-calendar/commit/fd2b0bbc1450515e5a1632a7ba1995a36521198a)) * **window:** change buttonrelease to buttonpress event ([0af2c8b2](https://github.com/linuxdeepin/dde-calendar/commit/0af2c8b2c227db6700b0c619ac4a1ebf304562fa)) ### 1.1.1 (2017-11-16) ## 1.1.0 (2017-11-03) #### Features * **hidpi:** support hidpi ([4ac3d23d](https://github.com/linuxdeepin/dde-session-ui/commit/4ac3d23d41bfa32be69b67357b2821df45cdcb69)) dde-calendar-5.0.1/CMakeLists.txt000066400000000000000000000021701351056315100165600ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.7) project(dde-calendar) # set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_CXX_STANDARD 14) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_FLAGS "-g -Wall") # Install settings if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX /usr) endif () if (NOT (${CMAKE_BUILD_TYPE} MATCHES "Debug")) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast") # generate qm execute_process(COMMAND bash "translate_generation.sh" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) # generate desktop execute_process(COMMAND bash "translate_desktop.sh" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) endif () add_subdirectory("src") #qm files file(GLOB QM_FILES "translations/*.qm") install(FILES ${QM_FILES} DESTINATION share/dde-calendar/translations) #desktop install(FILES dde-calendar.desktop DESTINATION share/applications) #service install(FILES com.deepin.Calendar.service DESTINATION share/dbus-1/services) #icon install(FILES src/resources/icon/dde-calendar.svg DESTINATION share/icons/hicolor/scalable/apps/) dde-calendar-5.0.1/LICENSE000066400000000000000000001045051351056315100150320ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 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 General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is 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. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for 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. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. 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 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. Use with the GNU Affero General Public License. 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 Affero 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 special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 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 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 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. {one line to give the program's name and a brief idea of what it does.} Copyright (C) {year} {name of author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: {project} Copyright (C) {year} {fullname} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". 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 GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . dde-calendar-5.0.1/README.md000066400000000000000000000000701351056315100152740ustar00rootroot00000000000000# dde-calendar Calendar for Deepin Desktop Environment. dde-calendar-5.0.1/com.deepin.Calendar.service000066400000000000000000000001041351056315100211260ustar00rootroot00000000000000[D-BUS Service] Name=com.deepin.Calendar Exec=/usr/bin/dde-calendar dde-calendar-5.0.1/com.deepin.Calendar.xml000066400000000000000000000001551351056315100202740ustar00rootroot00000000000000 dde-calendar-5.0.1/dde-calendar.desktop000066400000000000000000000137011351056315100177200ustar00rootroot00000000000000[Desktop Entry] Categories=Application;Utility;Calendar; Comment=Calendar is a date tool. Exec=dde-calendar GenericName=Calendar Icon=dde-calendar Name=Deepin Calendar StartupNotify=false Terminal=false Type=Application X-Deepin-Vendor=deepin X-MultipleArgs=false # Translations: # Do not manually modify! Comment[am_ET]=ቀን መቁጠሪያ Comment[ar]=التقويم هو أداة عرض التاريخ . Comment[ast]=Calendariu ye una ferramienta de dates. Comment[az]=Kalendar tarix alətidir Comment[bg]=Календарът е приложение за показване на датата. Comment[bn]=কেলেণ্ডার একটি সময় টুল Comment[ca]=El calendari és una eina de cites. Comment[cs]=Kalendář je nástroj pro práci s daty. Comment[da]=Kalender er et datoværktøj. Comment[de]=Kalender ist ein Datumswerkzeug. Comment[el]=Εφαρμογή Ημερολογίου Comment[en_GB]=Calendar is a date tool Comment[eo]=Kalendaro estas datilo. Comment[es]=Calendario es una herramienta de gestión de fechas. Comment[es_419]=Calendario es un almanaque. Comment[fa]=تقویم یک ابزار تاریخ است. Comment[fi]=Kalenteri on päivämäärätyökalu. Comment[fr]=Simple calendrier. Comment[gl_ES]=O calendario é unha ferramenta de datas. Comment[hi_IN]=दिनदर्शिका दिनांक हेतु एक साधन है। Comment[hr]=Kalendar je alat za rad sa vremenom. Comment[hu]=Naptár alkalmazás Comment[id]=Kalender adalah sebuah peralatan tanggal. Comment[it]=Calendar è un tool calendario. Localizzazione italiana a cura di Carofano Massimo Antonio. Comment[ja]=カレンダーは日時ツールです。 Comment[kn_IN]=ಕ್ಯಾಲೆಂಡರ್ ಒಂದು ದಿನದರ್ಶಕವಾಗಿದೆ. Comment[ko]=Calendar는 일정 관리도구입니다. Comment[ku_IQ]=ساڵنامە ئامرازێکی بەروارە Comment[lt]=Kalendorius yra datų įrankis. Comment[ml]=കലണ്ടർ ഒരു തീയതി ഉപകരണം ആണ് Comment[ms]=Kalendar merupakan alat tarikh. Comment[nb]=Kalander er et redskap for å organisere hendelser etter dato og klokkeslett. Comment[ne]=क्यालेन्डर एक मिति उपकरण हो। Comment[nl]=Kalender is een hulpmiddel voor het bijhouden van afspraken. Comment[pl]=Kalendarz to narzędzie zarządzania czasem. Comment[pt]=O Calendário é uma ferramenta de agendamento. Comment[pt_BR]=Calendário é uma ferramenta de data. Comment[ro]=Calendarul este un instrument pentru date Comment[ru]=Календарь является приложением для планирования Вашего времени. Comment[sk]=Kalendár je dátumový nástroj. Comment[sl]=Koledar je orodje za urejanje datumov. Comment[sr]=Календар је алат за приказивање датума. Comment[sv]=Kalender är ett datumverktyg. Comment[ta]=அட்டவணை தேதி கருவியாகும் Comment[tr]=Takvim, tarihi görüntüleyen bir araçtır. Comment[ug]=كالىندار ئۇ ۋاقىت قۇرالى Comment[uk]=Календар Comment[vi]=Lịch là một công cụ ngày tháng. Comment[zh_CN]=日历是一款查看日期的小工具。 Comment[zh_TW]=簡易日期顯示工具 GenericName[am_ET]=ቀን መቁጠሪያ GenericName[ar]=التقويم GenericName[ast]=Calendariu GenericName[az]=Kalendar GenericName[bg]=Календар GenericName[ca]=Calendari GenericName[cs]=Kalendář GenericName[da]=Kalender GenericName[de]=Kalender GenericName[el]=Ημερολόγιο GenericName[eo]=Kalendaro GenericName[es]=Calendario GenericName[es_419]=Calendario GenericName[fr]=Calendrier GenericName[gl_ES]=Calendario GenericName[hr]=Kalendar GenericName[hu]=Naptár GenericName[id]=Kalender GenericName[it]=Calendar GenericName[ja]=カレンダー GenericName[ko]=달력 GenericName[ku_IQ]=Salname GenericName[lt]=Kalendorius GenericName[ml]=കലണ്ടർ GenericName[mn]=Календар GenericName[ms]=Kalendar GenericName[ne]=क्यालेन्डर GenericName[nl]=Kalender GenericName[pl]=Kalendarz GenericName[pt]=Calendário GenericName[pt_BR]=Calendário GenericName[ro]=Calendar GenericName[ru]=Календарь GenericName[sk]=Kalendár GenericName[sl]=Koledar GenericName[sr]=Календар GenericName[sv]=Kalender GenericName[tr]=Takvim GenericName[uk]=Календар GenericName[vi]=Lịch GenericName[zh_CN]=日历 GenericName[zh_TW]=日曆 Name[am_ET]=ዲፕኢን ቀን መቁጠሪያ Name[ar]=تقويم ديبين Name[ast]=Deepin Calendar Name[az]=Deepin Kalendarı Name[bg]=Deepin Календар Name[bn]=ডিপিন ক্যালেন্ডার Name[ca]=Calendari del Deepin Name[cs]=Kalendář Name[da]=Deepin kalender Name[de]=Deepin Kalender Name[el]=Ημερολόγιο Deepin Name[en_GB]=Deepin Calendar Name[eo]=Deepin kalendaro Name[es]=Calendario Deepin Name[es_419]=Calendario Deepin Name[fa]=تقویم Deepin Name[fi]=Deepin-kalenteri Name[fr]=Deepin Calendrier Name[gl_ES]=Calendario do Deepin Name[hi_IN]=डीपिन दिनदर्शिका Name[hr]=Deepin kalendar Name[hu]=Deepin Naptár Name[id]=Kalender Deepin Name[it]=Deepin Calendar Name[ja]=Deepin カレンダー Name[kn_IN]=ಡೀಪಿನ್ ಕ್ಯಾಲೆಂಡರ್ Name[ko]=Deepin Calendar Name[ku_IQ]=ساڵنامەی Deepin Name[lt]=Deepin kalendorius Name[ml]=ഡീപിൻ കലണ്ടർ Name[ms]=Kalendar Deepin Name[nb]=Deepin Kalender Name[ne]=डिपिन क्यालेन्डर Name[nl]=Deepin Kalender Name[pl]=Kalendarz Deepin Name[pt]=Deepin Calendar Name[pt_BR]=Calendário Name[ro]=Calendarul Deepin Name[ru]=Календарь Deepin Name[sk]=Deepin Kalendár Name[sl]=Koledar Deepin Name[sr]=Дипин Календар Name[sv]=Deepin kalender Name[ta]=டீபின் நாள்காட்டி Name[tr]=Deepin Takvim Name[ug]=Deepin كالىندارى Name[uk]=Календар Deepin Name[vi]=Lịch Deepin Name[zh_CN]=深度日历 Name[zh_TW]=Deepin 日曆 dde-calendar-5.0.1/debian/000077500000000000000000000000001351056315100152425ustar00rootroot00000000000000dde-calendar-5.0.1/debian/changelog000066400000000000000000000004531351056315100171160ustar00rootroot00000000000000dde-calendar (1.0.0-1) stable; urgency=low * Autobuild Tag 1.0.0 -- TagBuilder Fri, 12 Aug 2016 17:34:34 +0000 dde-calendar (1.0-1) unstable; urgency=medium * Initial release -- Deepin Packages Builder Fri, 18 Mar 2016 17:01:43 +0800 dde-calendar-5.0.1/debian/compat000066400000000000000000000000021351056315100164400ustar00rootroot000000000000009 dde-calendar-5.0.1/debian/control000066400000000000000000000010311351056315100166400ustar00rootroot00000000000000Source: dde-calendar Section: utils Priority: optional Maintainer: Deepin Packages Builder Build-Depends: debhelper (>=9), pkg-config, qtbase5-dev, libdtkwidget-dev, qttools5-dev-tools, deepin-gettext-tools, cmake Standards-Version: 3.9.6 Homepage: http://www.deepin.org Vcs-Git: https://github.com/linuxdeepin/dde-calendar Package: dde-calendar Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, dde-api Description: Calendar software for Deepin OS Calendar for Deepin Desktop Environment. dde-calendar-5.0.1/debian/copyright000066400000000000000000000017261351056315100172030ustar00rootroot00000000000000Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dde-calendar Source: https://github.com/linuxdeepin/dde-calendar Files: * Copyright: Deepin Technology Co., Ltd. License: GPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". dde-calendar-5.0.1/debian/rules000077500000000000000000000004701351056315100163230ustar00rootroot00000000000000#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #export DH_VERBOSE = 1 include /usr/share/dpkg/default.mk export QT_SELECT=5 %: dh $@ --parallel override_dh_auto_configure: dh_auto_configure -- -DVERSION="$(DEB_VERSION_UPSTREAM)" dde-calendar-5.0.1/debian/source/000077500000000000000000000000001351056315100165425ustar00rootroot00000000000000dde-calendar-5.0.1/debian/source/format000066400000000000000000000000151351056315100177510ustar00rootroot000000000000003.0 (native) dde-calendar-5.0.1/src/000077500000000000000000000000001351056315100146075ustar00rootroot00000000000000dde-calendar-5.0.1/src/CMakeLists.txt000066400000000000000000000020141351056315100173440ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.7) set(BIN_NAME dde-calendar) configure_file(environments.h.in environments.h @ONLY) set(SRCS ./environments.h ./weekindicator.h ./spinner.h ./calendarwindow.h ./infoview.h ./calendardbus.h ./dbuscalendar_adaptor.h ./calendarview.h ./constants.h ./weekindicator.cpp ./spinner.cpp ./infoview.cpp ./calendardbus.cpp ./calendarview.cpp ./main.cpp ./dbuscalendar_adaptor.cpp ./calendarwindow.cpp ) set(QRC ./resources.qrc ) # Find the library find_package(PkgConfig REQUIRED) find_package(Qt5Widgets REQUIRED) find_package(Qt5Concurrent REQUIRED) find_package(Qt5DBus REQUIRED) find_package(DtkWidget REQUIRED) add_executable(${BIN_NAME} ${SRCS} ${QRC}) target_include_directories(${BIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS} ${Qt5Gui_PRIVATE_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ) target_link_libraries(${BIN_NAME} PRIVATE ${DtkWidget_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Concurrent_LIBRARIES} ${Qt5DBus_LIBRARIES} ) # bin install(TARGETS ${BIN_NAME} DESTINATION bin) dde-calendar-5.0.1/src/calendardbus.cpp000066400000000000000000000133121351056315100177420ustar00rootroot00000000000000/* * Copyright (C) 2015 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* * This file was generated by qdbusxml2cpp version 0.8 * Command line was: qdbusxml2cpp -c DCalendarDBus -p dcalendardbus com.deepin.api.LunarCalendar.xml * * qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies). * * This is an auto-generated file. * This file may have been hand-edited. Look for HAND-EDIT comments * before re-generating it. */ #include "calendardbus.h" /* * Implementation of interface class DCalendarDBus */ CalendarDBus::CalendarDBus(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) { QDBusConnection::sessionBus().connect(this->service(), this->path(), "org.freedesktop.DBus.Properties", "PropertiesChanged","sa{sv}as", this, SLOT(__propertyChanged__(QDBusMessage))); CaYearInfo::registerMetaType(); CaLunarDayInfo::registerMetaType(); CaLunarMonthInfo::registerMetaType(); CaSolarMonthInfo::registerMetaType(); } CalendarDBus::~CalendarDBus() { QDBusConnection::sessionBus().disconnect(service(), path(), "org.freedesktop.DBus.Properties", "PropertiesChanged", "sa{sv}as", this, SLOT(propertyChanged(QDBusMessage))); } void CaYearInfo::registerMetaType() { qRegisterMetaType(); qDBusRegisterMetaType(); } QDebug operator<<(QDebug argument, const CaYearInfo &what) { argument << what.mYear << what.mMonth << what.mDay; return argument; } QDBusArgument &operator<<(QDBusArgument &argument, const CaYearInfo &what) { argument.beginStructure(); argument << what.mYear << what.mMonth << what.mDay; argument.endStructure(); return argument; } const QDBusArgument &operator>>(const QDBusArgument &argument, CaYearInfo &what) { argument.beginStructure(); argument >> what.mYear >> what.mMonth >> what.mDay; argument.endStructure(); return argument; } void CaLunarDayInfo::registerMetaType() { qRegisterMetaType(); qDBusRegisterMetaType(); } QDebug operator<<(QDebug argument, const CaLunarDayInfo &what) { argument << what.mGanZhiYear << what.mGanZhiMonth << what.mGanZhiDay; argument << what.mLunarMonthName << what.mLunarDayName; argument << what.mLunarLeapMonth; argument << what.mZodiac << what.mTerm; argument << what.mSolarFestival << what.mLunarFestival; argument << what.mWorktime; return argument; } QDBusArgument &operator<<(QDBusArgument &argument, const CaLunarDayInfo &what) { argument.beginStructure(); argument << what.mGanZhiYear << what.mGanZhiMonth << what.mGanZhiDay; argument << what.mLunarMonthName << what.mLunarDayName; argument << what.mLunarLeapMonth; argument << what.mZodiac << what.mTerm; argument << what.mSolarFestival << what.mLunarFestival; argument << what.mWorktime; argument.endStructure(); return argument; } const QDBusArgument &operator>>(const QDBusArgument &argument, CaLunarDayInfo &what) { argument.beginStructure(); argument >> what.mGanZhiYear >> what.mGanZhiMonth >> what.mGanZhiDay; argument >> what.mLunarMonthName >> what.mLunarDayName; argument >> what.mLunarLeapMonth; argument >> what.mZodiac >> what.mTerm; argument >> what.mSolarFestival >> what.mLunarFestival; argument >> what.mWorktime; argument.endStructure(); return argument; } void CaLunarMonthInfo::registerMetaType() { qRegisterMetaType(); qDBusRegisterMetaType(); } QDebug operator<<(QDebug argument, const CaLunarMonthInfo &what) { argument << what.mFirstDayWeek << what.mDays; argument << what.mCaLunarDayInfo; return argument; } QDBusArgument &operator<<(QDBusArgument &argument, const CaLunarMonthInfo &what) { argument.beginStructure(); argument << what.mFirstDayWeek << what.mDays; argument << what.mCaLunarDayInfo; argument.endStructure(); return argument; } const QDBusArgument &operator>>(const QDBusArgument &argument, CaLunarMonthInfo &what) { argument.beginStructure(); argument >> what.mFirstDayWeek >> what.mDays; argument >> what.mCaLunarDayInfo; argument.endStructure(); return argument; } void CaSolarMonthInfo::registerMetaType() { qRegisterMetaType(); qDBusRegisterMetaType(); } QDebug operator<<(QDebug argument, const CaSolarMonthInfo &what) { argument << what.mFirstDayWeek << what.mDays; argument << what.mCaYearInfo; return argument; } QDBusArgument &operator<<(QDBusArgument &argument, const CaSolarMonthInfo &what) { argument.beginStructure(); argument << what.mFirstDayWeek << what.mDays; argument.endStructure(); argument << what.mCaYearInfo; return argument; } const QDBusArgument &operator>>(const QDBusArgument &argument, CaSolarMonthInfo &what) { argument.beginStructure(); argument >> what.mFirstDayWeek >> what.mDays; argument.endStructure(); argument >> what.mCaYearInfo; return argument; } dde-calendar-5.0.1/src/calendardbus.h000066400000000000000000000226451351056315100174200ustar00rootroot00000000000000/* * Copyright (C) 2015 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* * This file was generated by qdbusxml2cpp version 0.8 * Command line was: qdbusxml2cpp -c DCalendarDBus -p dcalendardbus com.deepin.api.LunarCalendar.xml * * qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies). * * This is an auto-generated file. * Do not edit! All changes made to it will be lost. */ #ifndef CALENDARDBUS_H #define CALENDARDBUS_H #include #include #include #include #include #include #include #include #include class CaYearInfo { public: CaYearInfo() {} inline static void registerMetaType(); friend QDebug operator<<(QDebug argument, const CaYearInfo & what); friend QDBusArgument &operator<<(QDBusArgument & argument, const CaYearInfo & what); friend const QDBusArgument &operator>>(const QDBusArgument & argument, CaYearInfo & what); public: qint32 mYear; qint32 mMonth; qint32 mDay; }; class CaLunarDayInfo { public: CaLunarDayInfo() {} inline static void registerMetaType(); friend QDebug operator<<(QDebug argument, const CaLunarDayInfo & what); friend QDBusArgument &operator<<(QDBusArgument & argument, const CaLunarDayInfo & what); friend const QDBusArgument &operator>>(const QDBusArgument & argument, CaLunarDayInfo & what); public: QString mGanZhiYear; QString mGanZhiMonth; QString mGanZhiDay; QString mLunarMonthName; QString mLunarDayName; qint32 mLunarLeapMonth; QString mZodiac; QString mTerm; QString mSolarFestival; QString mLunarFestival; qint32 mWorktime; }; class CaLunarMonthInfo { public: CaLunarMonthInfo() {} inline static void registerMetaType(); friend QDebug operator<<(QDebug argument, const CaLunarMonthInfo & what); friend QDBusArgument &operator<<(QDBusArgument & argument, const CaLunarMonthInfo & what); friend const QDBusArgument &operator>>(const QDBusArgument & argument, CaLunarMonthInfo & what); public: qint32 mFirstDayWeek; qint32 mDays; QList mCaLunarDayInfo; }; class CaSolarMonthInfo { public: CaSolarMonthInfo() {} inline static void registerMetaType(); friend QDebug operator<<(QDebug argument, const CaSolarMonthInfo & what); friend QDBusArgument &operator<<(QDBusArgument & argument, const CaSolarMonthInfo & what); friend const QDBusArgument &operator>>(const QDBusArgument & argument, CaSolarMonthInfo & what); public: qint32 mFirstDayWeek; qint32 mDays; QList mCaYearInfo; }; /* * Proxy class for interface com.deepin.api.LunarCalendar */ class CalendarDBus: public QDBusAbstractInterface { Q_OBJECT Q_SLOT void __propertyChanged__(const QDBusMessage& msg) { QList arguments = msg.arguments(); if (3 != arguments.count()) return; QString interfaceName = msg.arguments().at(0).toString(); if (interfaceName !="com.deepin.api.LunarCalendar") return; QVariantMap changedProps = qdbus_cast(arguments.at(1).value()); foreach(const QString &prop, changedProps.keys()) { const QMetaObject* self = metaObject(); for (int i=self->propertyOffset(); i < self->propertyCount(); ++i) { QMetaProperty p = self->property(i); if (p.name() == prop) { Q_EMIT p.notifySignal().invoke(this); } } } } public: static inline const char *staticInterfaceName() { return "com.deepin.api.LunarCalendar"; } public: CalendarDBus(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); ~CalendarDBus(); public Q_SLOTS: // METHODS inline QDBusPendingReply GetLunarDateBySolar(int in0, int in1, int in2) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); return asyncCallWithArgumentList(QStringLiteral("GetLunarDateBySolar"), argumentList); } inline QDBusReply GetLunarDateBySolar(int in0, int in1, int in2, bool &out1, bool &out2) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetLunarDateBySolar"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 3) { out1 = qdbus_cast(reply.arguments().at(1)); out2 = qdbus_cast(reply.arguments().at(2)); } return reply; } inline QDBusPendingReply GetLunarInfoBySolar(int in0, int in1, int in2) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); return asyncCallWithArgumentList(QStringLiteral("GetLunarInfoBySolar"), argumentList); } inline QDBusReply GetLunarInfoBySolar(qint32 in0, qint32 in1, qint32 in2, bool &out1) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetLunarInfoBySolar"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { out1 = qdbus_cast(reply.arguments().at(1)); } return reply; } inline QDBusPendingReply GetLunarMonthCalendar(int in0, int in1, bool in2) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); return asyncCallWithArgumentList(QStringLiteral("GetLunarMonthCalendar"), argumentList); } inline QDBusReply GetLunarMonthCalendar(int in0, int in1, bool in2, bool &out1) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetLunarMonthCalendar"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { out1 = qdbus_cast(reply.arguments().at(1)); } return reply; } inline QDBusPendingReply GetSolarDateByLunar(int in0, int in1, int in2, bool in3) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3); return asyncCallWithArgumentList(QStringLiteral("GetSolarDateByLunar"), argumentList); } inline QDBusReply GetSolarDateByLunar(int in0, int in1, int in2, bool in3, bool &out1) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3); QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetSolarDateByLunar"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { out1 = qdbus_cast(reply.arguments().at(1)); } return reply; } inline QDBusPendingReply GetSolarMonthCalendar(int in0, int in1, bool in2) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); return asyncCallWithArgumentList(QStringLiteral("GetSolarMonthCalendar"), argumentList); } inline QDBusReply GetSolarMonthCalendar(int in0, int in1, bool in2, bool &out1) { QList argumentList; argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2); QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetSolarMonthCalendar"), argumentList); if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) { out1 = qdbus_cast(reply.arguments().at(1)); } return reply; } Q_SIGNALS: // SIGNALS // begin property changed signals }; namespace com { namespace deepin { namespace api { typedef ::CalendarDBus LunarCalendar; } } } Q_DECLARE_METATYPE(CaYearInfo) Q_DECLARE_METATYPE(CaLunarDayInfo) Q_DECLARE_METATYPE(CaLunarMonthInfo) Q_DECLARE_METATYPE(CaSolarMonthInfo) #endif dde-calendar-5.0.1/src/calendarview.cpp000066400000000000000000000300751351056315100177640ustar00rootroot00000000000000/* * Copyright (C) 2015 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "calendarview.h" #include "calendardbus.h" #include #include #include #include #include #include #include #include QQueue *CalendarView::queue = nullptr; QMap *CalendarView::lunarCache = nullptr; CaLunarDayInfo *CalendarView::emptyCaLunarDayInfo = nullptr; CalendarView::CalendarView(QWidget *parent) : QWidget(parent) { m_DBusInter = new CalendarDBus("com.deepin.api.LunarCalendar", "/com/deepin/api/LunarCalendar", QDBusConnection::sessionBus(), this); if (!queue) queue = new QQueue; if (!lunarCache) lunarCache = new QMap; if (!emptyCaLunarDayInfo) emptyCaLunarDayInfo = new CaLunarDayInfo; m_dayNumFont.setPixelSize(22); m_dayNumFont.setWeight(QFont::Light); m_dayLunarFont.setPixelSize(12); setStyleSheet("QWidget { background: rgba(0, 0, 0, 0) }"); m_weekIndicator = new WeekIndicator; //add separator line QLabel* separatorLine = new QLabel(this); separatorLine->setFixedHeight(1); separatorLine->setFixedWidth(720); separatorLine->setStyleSheet("border: 1px solid rgba(0, 0, 0, 0.05);"); QHBoxLayout* separatorLineLayout = new QHBoxLayout; separatorLineLayout->setMargin(0); separatorLineLayout->setSpacing(0); separatorLineLayout->addStretch(1); separatorLineLayout->addWidget(separatorLine); separatorLineLayout->addStretch(1); // cells grid QGridLayout *gridLayout = new QGridLayout; gridLayout->setMargin(0); gridLayout->setSpacing(0); for (int r = 0; r != 6; ++r) { for (int c = 0; c != 7; ++c) { QWidget *cell = new QWidget; cell->setFixedSize(DDECalendar::CellWidth, DDECalendar::CellHeight); cell->installEventFilter(this); cell->setFocusPolicy(Qt::ClickFocus); gridLayout->addWidget(cell, r, c); m_cellList.append(cell); } } QWidget *gridWidget = new QWidget; gridWidget->setLayout(gridLayout); QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addLayout(separatorLineLayout); mainLayout->addWidget(m_weekIndicator, 0, Qt::AlignHCenter); mainLayout->addWidget(gridWidget, 0, Qt::AlignHCenter); mainLayout->setMargin(0); mainLayout->setSpacing(0); setLayout(mainLayout); connect(this, &CalendarView::dateSelected, this, &CalendarView::handleCurrentDateChanged); } void CalendarView::handleCurrentDateChanged(const QDate date, const CaLunarDayInfo &detail) { Q_UNUSED(detail); if (date != m_currentDate) { setCurrentDate(date); } } void CalendarView::setFirstWeekday(int weekday) { m_firstWeekDay = weekday; m_weekIndicator->setList(weekday); updateDate(); } int CalendarView::getDateType(const QDate &date) { const int currentIndex = getDateIndex(date); const CaLunarDayInfo info = getCaLunarDayInfo(currentIndex); const int dayOfWeek = date.dayOfWeek(); bool weekends = dayOfWeek == 6 || dayOfWeek == 7; bool isCurrentMonth = m_currentDate.month() == date.month(); bool isFestival = !info.mSolarFestival.isEmpty() || !info.mLunarFestival.isEmpty(); int resultFlag = 0; if (!isCurrentMonth) resultFlag |= SO_NotCurrentMonth; if (isFestival) resultFlag |= SO_Festival; if (weekends) resultFlag |= SO_Weekends; return resultFlag; } void CalendarView::setCurrentDate(const QDate date) { qDebug() << "set current date " << date; if (date == m_currentDate) { return; } m_currentDate = date; // to refresh lunar calendar updateCurrentLunar(getCaLunarDayInfo(getDateIndex(m_currentDate))); emit currentDateChanged(date.year(), date.month()); } void CalendarView::setLunarVisible(bool visible) { int state = int(m_showState); if (visible) state |= ShowLunar; else state &= ~ShowLunar; m_showState = ShowState(state); update(); } void CalendarView::setLunarFestivalHighlight(bool highlight) { highlight = true; int state = int(m_showState); // if (highlight) state |= ShowLunarFestivalHighlight; else state &= ~ShowLunarFestivalHighlight; m_showState = ShowState(state); update(); } void CalendarView::setCellSelectable(bool selectable) { if (selectable == m_cellSelectable) return; m_cellSelectable = selectable; emit cellSelectableChanged(m_cellSelectable); } int CalendarView::getDateIndex(const QDate &date) const { for (int i = 0; i != 42; ++i) if (m_days[i] == date) return i; return 0; } bool CalendarView::eventFilter(QObject *o, QEvent *e) { QWidget *cell = qobject_cast(o); if (cell && m_cellList.contains(cell)) { if (e->type() == QEvent::Paint) { paintCell(cell); } else if (e->type() == QEvent::MouseButtonPress) { cellClicked(cell); } } return false; } void CalendarView::updateDate() { const QDate firstDay(m_currentDate.year(), m_currentDate.month(), 1); const int day = (firstDay.dayOfWeek() + m_firstWeekDay) % 7; const int currentIndex = day + m_currentDate.day() - 1; if (currentIndex < 0) { return; } for (int i(0); i != 42; ++i) { m_days[i] = firstDay.addDays(i - day); } setSelectedCell(currentIndex); update(); } void CalendarView::updateCurrentLunar(const CaLunarDayInfo &info) { if (!info.mLunarFestival.isEmpty()) { emit currentFestivalChanged(info.mLunarFestival); } else if (!info.mTerm.isEmpty()) { emit currentFestivalChanged(info.mTerm); } else if (!info.mSolarFestival.isEmpty()) { QStringList tmpFestival = info.mSolarFestival.split(" "); if (tmpFestival.length()>=3) { emit currentFestivalChanged(QString("%1 %2").arg(tmpFestival[0]).arg(tmpFestival[1])); } else { emit currentFestivalChanged(info.mSolarFestival); } } else { emit currentFestivalChanged(""); } updateDate(); } const QString CalendarView::getCellDayNum(int pos) { return QString::number(m_days[pos].day()); } const QDate CalendarView::getCellDate(int pos) { return m_days[pos]; } const QString CalendarView::getLunar(int pos) { CaLunarDayInfo info = getCaLunarDayInfo(pos); if (info.mLunarDayName == "初一") { info.mLunarDayName = info.mLunarMonthName; } if (info.mTerm.isEmpty()) return info.mLunarDayName; return info.mTerm; } const CaLunarDayInfo CalendarView::getCaLunarDayInfo(int pos) { const QDate date = m_days[pos]; if (lunarCache->contains(date)) { return lunarCache->value(date); } if (lunarCache->size() > 300) lunarCache->clear(); // QTimer::singleShot(500, [this, pos] {getDbusData(pos);}); queue->push_back(pos); QTimer::singleShot(300, this, SLOT(getDbusData())); return *emptyCaLunarDayInfo; } void CalendarView::getDbusData() { if (queue->isEmpty()) return; const int pos = queue->head(); queue->pop_front(); const QDate date = m_days[pos]; if (!date.isValid()) { return; } CaLunarDayInfo currentDayInfo; if (!lunarCache->contains(date)) { bool o1 = true; QDBusReply reply = m_DBusInter->GetLunarMonthCalendar(date.year(), date.month(), false, o1); QDate cacheDate; cacheDate.setDate(date.year(), date.month(), 1); foreach(const CaLunarDayInfo & dayInfo, reply.value().mCaLunarDayInfo) { lunarCache->insert(cacheDate, dayInfo); if (date == m_currentDate) { currentDayInfo = dayInfo; } cacheDate = cacheDate.addDays(1); } } else { currentDayInfo = lunarCache->value(date); } m_cellList.at(pos)->update(); // refresh lunar info if (date == m_currentDate) { updateCurrentLunar(currentDayInfo); } } void CalendarView::paintCell(QWidget *cell) { const QRect rect((cell->width() - DDECalendar::CellHighlightWidth) /2, (cell->height() - DDECalendar::CellHighlightHeight) /2, DDECalendar::CellHighlightWidth, DDECalendar::CellHighlightHeight); const int pos = m_cellList.indexOf(cell); const int type = getDateType(m_days[pos]); const bool isSelectedCell = pos == m_selectedCell; const bool isCurrentDay = getCellDate(pos) == QDate::currentDate(); QPainter painter(cell); // painter.drawRoundedRect(cell->rect(), 4, 4); // draw selected cell background circle if (isSelectedCell) { QRect fillRect = rect; painter.setRenderHints(QPainter::HighQualityAntialiasing); painter.setBrush(QBrush(m_backgroundCircleColor)); painter.setPen(Qt::NoPen); painter.drawRoundedRect(fillRect, 4, 4); } painter.setPen(Qt::SolidLine); const QString dayNum = getCellDayNum(pos); const QString dayLunar = getLunar(pos); // draw text of day if (isSelectedCell) { painter.setPen(m_selectedTextColor); } else if (isCurrentDay) { painter.setPen(m_currentDayTextColor); } else { const int tType = type & 0xff; if (tType & SO_NotCurrentMonth) painter.setPen(m_notCurrentTextColor); else if (type == SO_Weekends) painter.setPen(m_weekendsTextColor); else painter.setPen(m_defaultTextColor); } // painter.drawRect(rect); QRect test; painter.setFont(m_dayNumFont); if (m_showState & ShowLunar) { painter.drawText(rect.adjusted(0, 0, 0, -cell->height() / 2 + 6), Qt::AlignCenter, dayNum); } else { painter.drawText(rect, Qt::AlignCenter, dayNum, &test); } // draw text of day type if (m_showState & ShowLunar) { if (isSelectedCell) { painter.setPen(m_selectedLunarColor); } else if (isCurrentDay) { painter.setPen(m_currentDayLunarColor); } else if (m_showState & ShowLunarFestivalHighlight) { const int tType = type & 0xff; if (tType & SO_NotCurrentMonth) painter.setPen(m_notCurrentLunarColor); else if (tType & SO_Festival) painter.setPen(m_festivalLunarColor); else if (tType & SO_Weekends) painter.setPen(m_weekendsLunarColor); else painter.setPen(m_defaultLunarColor); } painter.setFont(m_dayLunarFont); painter.drawText(rect.adjusted(0, cell->height() / 4 + 6, 0, 0), Qt::AlignCenter, dayLunar); } painter.end(); } void CalendarView::cellClicked(QWidget *cell) { if (!m_cellSelectable) return; const int pos = m_cellList.indexOf(cell); if (pos == -1) return; setSelectedCell(pos); // my gift eggs static int gift = 0; if (m_days[pos] == QDate(1993, 7, 28)) if (++gift == 10) QMessageBox::about(this, "LinuxDeepin", "by shibowen :P"); } void CalendarView::setSelectedCell(int index) { if (m_selectedCell == index) return; const int prevPos = m_selectedCell; m_selectedCell = index; m_cellList.at(prevPos)->update(); m_cellList.at(index)->update(); emit dateSelected(m_days[index], getCaLunarDayInfo(index)); } dde-calendar-5.0.1/src/calendarview.h000066400000000000000000000111771351056315100174330ustar00rootroot00000000000000/* * Copyright (C) 2015 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef MYCALENDARWIDGET_H #define MYCALENDARWIDGET_H #include "weekindicator.h" #include "constants.h" #include #include #include #include #include class CalendarDBus; class CaLunarDayInfo; enum CalendarDayType { SO_Festival = QStyleOption::SO_CustomBase + 0x01, SO_Weekends = QStyleOption::SO_CustomBase + 0x02, SO_WeekendsAndFestival = SO_Festival | SO_Weekends, SO_NotCurrentMonth = 0x04, SO_NotCurrentMonthFestival = SO_NotCurrentMonth | SO_Festival, SO_Default, }; class CalendarView : public QWidget { Q_OBJECT Q_PROPERTY(QColor backgroundCircleColor MEMBER m_backgroundCircleColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(QColor defaultTextColor MEMBER m_defaultTextColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(QColor defaultLunarColor MEMBER m_defaultLunarColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(QColor festivalLunarColor MEMBER m_festivalLunarColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(QColor weekendsTextColor MEMBER m_weekendsTextColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(QColor weekendsLunarColor MEMBER m_weekendsLunarColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(QColor topBorderColor MEMBER m_topBorderColor DESIGNABLE true SCRIPTABLE true) Q_PROPERTY(bool cellSelectable READ cellSelectable WRITE setCellSelectable NOTIFY cellSelectableChanged) public: enum ShowState { ShowLunar = 0x01, ShowLunarFestivalHighlight = 0x02, Normal = ShowLunar | ShowLunarFestivalHighlight, }; public: explicit CalendarView(QWidget *parent = 0); void setFirstWeekday(int weekday); int getDateType(const QDate &date); inline bool cellSelectable() const {return m_cellSelectable;} signals: void dateSelected(const QDate date, const CaLunarDayInfo &detail) const; void currentDateChanged(const int year, const int month); void currentFestivalChanged(const QString &festival); void cellSelectableChanged(bool cellSelectable) const; public slots: void setCurrentDate(const QDate date); void setLunarVisible(bool visible); void setLunarFestivalHighlight(bool highlight); void setCellSelectable(bool selectable); void handleCurrentDateChanged(const QDate date, const CaLunarDayInfo &detail); private: int getDateIndex(const QDate &date) const; const QString getCellDayNum(int pos); const QDate getCellDate(int pos); const QString getLunar(int pos); const CaLunarDayInfo getCaLunarDayInfo(int pos); void paintCell(QWidget *cell); bool eventFilter(QObject *o, QEvent *e); void updateDate(); void updateCurrentLunar(const CaLunarDayInfo &info); private slots: void cellClicked(QWidget *cell); void setSelectedCell(int index); void getDbusData(); private: QList m_cellList; CalendarDBus *m_DBusInter; QDate m_days[42]; QDate m_currentDate; ShowState m_showState = Normal; int m_selectedCell = 0; bool m_cellSelectable = true; QFont m_dayNumFont; QFont m_dayLunarFont; QColor m_topBorderColor = Qt::red; QColor m_backgroundCircleColor = "#2ca7f8"; QColor m_defaultTextColor = Qt::black; QColor m_currentDayTextColor = "#2ca7f8"; QColor m_weekendsTextColor = Qt::black; QColor m_selectedTextColor = Qt::white; QColor m_festivalTextColor = Qt::black; QColor m_notCurrentTextColor = "#b2b2b2"; QColor m_defaultLunarColor = "#929292"; QColor m_currentDayLunarColor = m_currentDayTextColor; QColor m_weekendsLunarColor = m_defaultLunarColor; QColor m_selectedLunarColor = Qt::white; QColor m_festivalLunarColor = m_defaultLunarColor; QColor m_notCurrentLunarColor = "#dfdfdf"; static QQueue *queue; static QMap *lunarCache; static CaLunarDayInfo *emptyCaLunarDayInfo; WeekIndicator *m_weekIndicator; int m_firstWeekDay; }; #endif // MYCALENDARWIDGET_H dde-calendar-5.0.1/src/calendarwindow.cpp000066400000000000000000000252751351056315100203270ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "calendarwindow.h" #include "dbuscalendar_adaptor.h" #include "constants.h" #include "infoview.h" #include #include #include #include #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE static const int CalendarHeaderHeight = 60; static const int CalendarWidth = 760; static const int CalendarHeight = 500; static const int InfoViewWidth = CalendarWidth - 86; static const int InfoViewHeight = 90; static const int ContentLeftRightPadding = 80; static const int MinYearValue = 1900; CalendarWindow::CalendarWindow() : DMainWindow(nullptr) { setContentsMargins(QMargins(0, 0, 0, 0)); m_settings = new QSettings; m_dateSettings = new QSettings("deepin", "dde-dock-datetime", this); initUI(); initAnimation(); initDateChangeMonitor(); initLunar(); setWindowTitle(tr("Deepin Calendar")); new CalendarAdaptor(this); } void CalendarWindow::handleTodayButtonClicked() { m_calendarView->setCurrentDate(QDate::currentDate()); } void CalendarWindow::handleCurrentYearMonthChanged(int year, int month) { QDate changedDate; changedDate.setDate(year, month, 1); const uint daysInMonth = changedDate.daysInMonth(); const uint currentDay = QDate::currentDate().day(); if (currentDay > daysInMonth) { changedDate = changedDate.addDays(daysInMonth - 1); } else { changedDate = changedDate.addDays(currentDay - 1); } m_calendarView->setCurrentDate(changedDate); } void CalendarWindow::previousMonth() { slideMonth(false); } void CalendarWindow::nextMonth() { slideMonth(true); } void CalendarWindow::wheelEvent(QWheelEvent * e) { if (e->delta() < 0) { nextMonth(); } else { if (m_infoView->year() > MinYearValue || m_infoView->month() != 1) { previousMonth(); } } } void CalendarWindow::initUI() { m_contentBackground = new QFrame; m_contentBackground->setObjectName("CalendarBackground"); m_contentBackground->setStyleSheet("QFrame#CalendarBackground { " "background:white;" "}"); m_contentBackground->setFixedSize(CalendarWidth + ContentLeftRightPadding * 2, InfoViewHeight + CalendarHeight); DTitlebar *titlebar = this->titlebar(); const int titlebarHeight = titlebar ? titlebar->height() : 0; setFixedSize(m_contentBackground->width(), m_contentBackground->height() + titlebarHeight); m_icon = new QLabel(this); m_icon->setFixedSize(24, 24); m_icon->setPixmap(DHiDPIHelper::loadNxPixmap(":/resources/icon/dde-calendar.svg") .scaled(m_icon->size() * devicePixelRatioF())); m_icon->move(12, 8); m_infoView = new InfoView; m_infoView->setStyleSheet("QFrame { background: rgba(0, 0, 0, 0) }"); m_infoView->setFixedSize(InfoViewWidth, InfoViewHeight); m_infoView->setYearRange(MinYearValue, INT_MAX); m_infoView->setYear(QDate::currentDate().year()); m_infoView->setMonth(QDate::currentDate().month()); m_calendarView = new CalendarView; m_calendarView->setFixedSize(CalendarWidth, CalendarHeight); m_calendarView->setFirstWeekday(m_settings->value("weekday", Sunday).toInt()); m_calendarView->setCurrentDate(QDate::currentDate()); m_animationContainer = new QFrame(m_contentBackground); m_animationContainer->setStyleSheet("QFrame { background: rgba(0, 0, 0, 0) }"); m_animationContainer->setFixedSize(m_calendarView->width(), m_calendarView->height() - CalendarHeaderHeight); m_animationContainer->move(ContentLeftRightPadding, CalendarHeaderHeight + InfoViewHeight); m_animationContainer->hide(); m_fakeContent = new QLabel(m_animationContainer); m_fakeContent->setStyleSheet("QLabel { background: rgba(0, 0, 0, 0) }"); m_fakeContent->setFixedSize(m_animationContainer->width(), m_animationContainer->height() * 2); QVBoxLayout * contentLayout = new QVBoxLayout; contentLayout->setMargin(0); contentLayout->setSpacing(0); contentLayout->addWidget(m_infoView, 0, Qt::AlignHCenter); contentLayout->addWidget(m_calendarView, 0, Qt::AlignHCenter); m_contentBackground->setLayout(contentLayout); setCentralWidget(m_contentBackground); connect(m_calendarView, &CalendarView::currentDateChanged, [this](int year, int month){ qDebug() << "current date changed" << year << month; m_infoView->blockSignals(true); m_infoView->setYear(year); m_infoView->setMonth(month); m_infoView->blockSignals(false); }); connect(m_calendarView, &CalendarView::currentFestivalChanged, m_infoView, &InfoView::setFestival); connect(m_infoView, &InfoView::todayButtonClicked, this, &CalendarWindow::handleTodayButtonClicked); connect(m_infoView, &InfoView::yearChanged, [this](int year) { const int month = m_infoView->month(); handleCurrentYearMonthChanged(year, month); }); connect(m_infoView, &InfoView::monthChanged, [this](int month) { const int year = m_infoView->year(); handleCurrentYearMonthChanged(year, month); }); setupMenu(); } void CalendarWindow::initAnimation() { m_scrollAnimation = new QPropertyAnimation(m_fakeContent, "pos"); m_scrollAnimation->setDuration(300); connect(m_scrollAnimation, &QPropertyAnimation::finished, [this]{ m_animationContainer->hide(); }); } void CalendarWindow::initDateChangeMonitor() { static QDate LastCurrentDate = QDate::currentDate(); updateDate(); updateTime(); QTimer * timer = new QTimer(this); timer->setInterval(1000); connect(timer, &QTimer::timeout, [this] { QDate currentDate = QDate::currentDate(); if (LastCurrentDate != currentDate) { LastCurrentDate = currentDate; updateDate(); } updateTime(); }); timer->start(); } void CalendarWindow::setupMenu() { DTitlebar *titlebar = this->titlebar(); if (titlebar) { titlebar->setWindowFlags(titlebar->windowFlags() & ~Qt::WindowMaximizeButtonHint); titlebar->setMenu(new QMenu(titlebar)); titlebar->setSeparatorVisible(true); QMenu *firstWeekday = titlebar->menu()->addMenu(tr("First Day of Week")); QLocale locale; m_monAction = firstWeekday->addAction(locale.dayName(1, QLocale::ShortFormat)); m_tueAction = firstWeekday->addAction(locale.dayName(2, QLocale::ShortFormat)); m_wedAction = firstWeekday->addAction(locale.dayName(3, QLocale::ShortFormat)); m_thuAction = firstWeekday->addAction(locale.dayName(4, QLocale::ShortFormat)); m_friAction = firstWeekday->addAction(locale.dayName(5, QLocale::ShortFormat)); m_satAction = firstWeekday->addAction(locale.dayName(6, QLocale::ShortFormat)); m_sunAction = firstWeekday->addAction(locale.dayName(7, QLocale::ShortFormat)); connect(titlebar->menu(), &QMenu::triggered, this, &CalendarWindow::menuItemInvoked); } } void CalendarWindow::menuItemInvoked(QAction *action) { if (action == m_monAction) { m_calendarView->setFirstWeekday(Monday); m_settings->setValue("weekday", Monday); return; } if (action == m_tueAction) { m_calendarView->setFirstWeekday(Tuesday); m_settings->setValue("weekday", Tuesday); return; } if (action == m_wedAction) { m_calendarView->setFirstWeekday(Wednesday); m_settings->setValue("weekday", Wednesday); return; } if (action == m_thuAction) { m_calendarView->setFirstWeekday(Thursday); m_settings->setValue("weekday", Thursday); return; } if (action == m_friAction) { m_calendarView->setFirstWeekday(Friday); m_settings->setValue("weekday", Friday); return; } if (action == m_satAction) { m_calendarView->setFirstWeekday(Saturday); m_settings->setValue("weekday", Saturday); return; } if (action == m_sunAction) { m_calendarView->setFirstWeekday(Sunday); m_settings->setValue("weekday", Sunday); return; } } void CalendarWindow::initLunar() { const bool enable_Lunar = m_settings->value("EnableLunar", false).toBool(); m_calendarView->setLunarVisible(enable_Lunar ? true : QLocale::system().name().contains("zh")); } void CalendarWindow::slideMonth(bool next) { m_animationContainer->show(); m_animationContainer->raise(); QPixmap one = getCalendarSnapshot(); m_infoView->increaseMonth(next); QPixmap two = getCalendarSnapshot(); QPixmap target = next ? joint(one, two) : joint(two, one); m_fakeContent->setPixmap(target); m_scrollAnimation->setStartValue(QPoint(0, next ? 0 : -one.height())); m_scrollAnimation->setEndValue(QPoint(0, next ? -one.height() : 0)); m_scrollAnimation->start(); } QPixmap CalendarWindow::getCalendarSnapshot() const { return m_calendarView->grab(m_calendarView->rect().adjusted(0, CalendarHeaderHeight, 0, 0)); } QPixmap CalendarWindow::joint(QPixmap &top, QPixmap &bottom) const { QPixmap target(qMax(top.width(), bottom.width()), top.height() + bottom.height()); target.fill(Qt::white); QPainter painter; painter.begin(&target); painter.drawPixmap(0, 0, top); painter.drawPixmap(0, top.height(), bottom); painter.end(); return target; } void CalendarWindow::updateTime() const { m_infoView->setTime(QDateTime::currentDateTime().toString(m_dateSettings->value("24HourFormat", true).toBool() ? "hh:mm" : "hh:mm A")); } void CalendarWindow::updateDate() const { QDate currentDate = QDate::currentDate(); m_calendarView->setCurrentDate(currentDate); DTitlebar *titlebar = this->titlebar(); if (titlebar) { titlebar->setTitle(currentDate.toString(Qt::SystemLocaleLongDate)); } } dde-calendar-5.0.1/src/calendarwindow.h000066400000000000000000000042331351056315100177630ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CALENDARWINDOW_H #define CALENDARWINDOW_H #include #include #include #include "calendarview.h" DWIDGET_USE_NAMESPACE class InfoView; class QPropertyAnimation; class CalendarWindow : public DMainWindow { Q_OBJECT public: CalendarWindow(); public slots: void handleTodayButtonClicked(); void handleCurrentYearMonthChanged(int year, int month); void previousMonth(); void nextMonth(); protected: void wheelEvent(QWheelEvent *); protected slots: void menuItemInvoked(QAction *action); private: void initLunar(); private: InfoView * m_infoView = nullptr; CalendarView * m_calendarView = nullptr; QFrame * m_contentBackground = nullptr; QFrame * m_animationContainer = nullptr; QLabel * m_fakeContent = nullptr; QLabel * m_icon; QPropertyAnimation * m_scrollAnimation = nullptr; void initUI(); void initAnimation(); void initDateChangeMonitor(); void setupMenu(); void slideMonth(bool next); QPixmap getCalendarSnapshot() const; QPixmap joint(QPixmap & top, QPixmap & bottom) const; void updateTime() const; void updateDate() const; QAction *m_monAction; QAction *m_tueAction; QAction *m_wedAction; QAction *m_thuAction; QAction *m_friAction; QAction *m_satAction; QAction *m_sunAction; QSettings *m_settings; QSettings *m_dateSettings; }; #endif // CALENDARWINDOW_H dde-calendar-5.0.1/src/constants.h000066400000000000000000000023321351056315100167740ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CONSTANTS_H #define CONSTANTS_H namespace DDECalendar { static const int HeaderItemWidth = 80; static const int HeaderItemHeight = 40; static const int CellWidth = 106; static const int CellHeight = 70; static const int CellHighlightWidth = 80; static const int CellHighlightHeight = 70; } enum Week { Monday = 6, Tuesday = 5, Wednesday = 4, Thursday = 3, Friday = 2, Saturday = 1, Sunday = 0, }; #endif // CONSTANTS_H dde-calendar-5.0.1/src/dbuscalendar_adaptor.cpp000066400000000000000000000017641351056315100214640ustar00rootroot00000000000000/* * This file was generated by qdbusxml2cpp version 0.8 * Command line was: qdbusxml2cpp -a dbuscalendar_adaptor -c CalendarAdaptor com.deepin.Calendar.xml * * qdbusxml2cpp is Copyright (C) 2015 The Qt Company Ltd. * * This is an auto-generated file. * Do not edit! All changes made to it will be lost. */ #include "dbuscalendar_adaptor.h" #include #include #include #include #include #include #include #include /* * Implementation of adaptor class CalendarAdaptor */ CalendarAdaptor::CalendarAdaptor(QObject *parent) : QDBusAbstractAdaptor(parent) { // constructor setAutoRelaySignals(true); } CalendarAdaptor::~CalendarAdaptor() { // destructor } void CalendarAdaptor::RaiseWindow() { // handle method call com.deepin.Calendar.RaiseWindow QWidget * pp = qobject_cast(parent()); pp->activateWindow(); pp->raise(); } dde-calendar-5.0.1/src/dbuscalendar_adaptor.h000066400000000000000000000022341351056315100211220ustar00rootroot00000000000000/* * This file was generated by qdbusxml2cpp version 0.8 * Command line was: qdbusxml2cpp -a dbuscalendar_adaptor -c CalendarAdaptor com.deepin.Calendar.xml * * qdbusxml2cpp is Copyright (C) 2015 The Qt Company Ltd. * * This is an auto-generated file. * This file may have been hand-edited. Look for HAND-EDIT comments * before re-generating it. */ #ifndef DBUSCALENDAR_ADAPTOR_H #define DBUSCALENDAR_ADAPTOR_H #include #include QT_BEGIN_NAMESPACE class QByteArray; template class QList; template class QMap; class QString; class QStringList; class QVariant; QT_END_NAMESPACE /* * Adaptor class for interface com.deepin.Calendar */ class CalendarAdaptor: public QDBusAbstractAdaptor { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "com.deepin.Calendar") Q_CLASSINFO("D-Bus Introspection", "" " \n" " \n" " \n" "") public: CalendarAdaptor(QObject *parent); virtual ~CalendarAdaptor(); public: // PROPERTIES public Q_SLOTS: // METHODS void RaiseWindow(); Q_SIGNALS: // SIGNALS }; #endif dde-calendar-5.0.1/src/environments.h.in000066400000000000000000000001271351056315100201140ustar00rootroot00000000000000#ifndef __ENVIRONMENTS_H_ #define __ENVIRONMENTS_H_ #define VERSION @VERSION@ #endif dde-calendar-5.0.1/src/infoview.cpp000066400000000000000000000126701351056315100171470ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "infoview.h" #include "spinner.h" #include #include #include #include InfoView::InfoView(QFrame *parent) : QFrame(parent), m_timeLabel(new QLabel), m_festivalLabel(new QLabel), m_todayButton(new DLinkButton), m_yearSpinner(new Spinner), m_monthSpinner(new Spinner) { QFont font = m_timeLabel->font(); font.setWeight(QFont::Light); font.setPixelSize(30); m_timeLabel->setFont(font); m_festivalLabel->setStyleSheet("font-size: 14px; color: #303030"); m_todayButton->setText(tr("Today")); m_todayButton->setStyleSheet("Dtk--Widget--DLinkButton {" "background-color:transparent;" "border:none;" "color:#0082fa;" "}" "Dtk--Widget--DLinkButton:hover {" "color:#16b8ff;" "}" "Dtk--Widget--DLinkButton:pressed {" "color:#0060b9;" "}"); QHBoxLayout * mainLayout = new QHBoxLayout(this); mainLayout->setMargin(0); mainLayout->setSpacing(0); QHBoxLayout * spinnerLayout = new QHBoxLayout; spinnerLayout->setMargin(0); spinnerLayout->setSpacing(0); spinnerLayout->addWidget(m_yearSpinner); spinnerLayout->addWidget(m_monthSpinner); QVBoxLayout * leftLayout = new QVBoxLayout; leftLayout->setMargin(0); leftLayout->setSpacing(0); leftLayout->addStretch(); leftLayout->addWidget(m_timeLabel, 0, Qt::AlignVCenter | Qt::AlignLeft); leftLayout->addWidget(m_festivalLabel, 0, Qt::AlignVCenter | Qt::AlignLeft); leftLayout->addSpacing(6); QVBoxLayout * rightLayout = new QVBoxLayout; rightLayout->setMargin(0); rightLayout->setSpacing(0); rightLayout->addStretch(); rightLayout->addWidget(m_todayButton, 0, Qt::AlignVCenter | Qt::AlignRight); rightLayout->addSpacing(14); rightLayout->addLayout(spinnerLayout); rightLayout->addSpacing(10); mainLayout->addLayout(leftLayout); mainLayout->addStretch(); mainLayout->addLayout(rightLayout); connect(m_yearSpinner, &Spinner::valueChanged, [this](int value){ emit yearChanged(value); }); connect(m_monthSpinner, &Spinner::valueChanged, [this](int value){ if (1 <= value && value <= 12) { emit monthChanged(value); } else { int month = value; int year = m_yearSpinner->value(); if (value < 1) { year--; month = 12; } else if (value > 12) { year++; month = 1; } m_yearSpinner->blockSignals(true); m_yearSpinner->setValue(year); m_yearSpinner->blockSignals(false); m_monthSpinner->blockSignals(true); m_monthSpinner->setValue(month); m_monthSpinner->blockSignals(false); emit yearChanged(year); emit monthChanged(month); } }); connect(m_todayButton, &DLinkButton::clicked, this, &InfoView::todayButtonClicked); } void InfoView::setTime(const QString &time) const { m_timeLabel->setText(time); } void InfoView::setFestival(const QString &festival) const { if (QLocale::system().name().contains("zh")) { // NOTE(hualet): the extra space before festival is a trick here, // it ensures that the festival label is always inflated. m_festivalLabel->setText(" " + festival); } else { m_festivalLabel->setText(" "); } } int InfoView::year() const { return m_yearSpinner->value(); } int InfoView::month() const { return m_monthSpinner->value(); } void InfoView::setYear(int year) const { m_yearSpinner->setValue(year); } void InfoView::setMonth(int month) const { m_monthSpinner->setValue(month); } void InfoView::setYearRange(int min, int max) const { m_yearSpinner->setRange(min, max); } void InfoView::increaseMonth(bool increase) { int year = m_yearSpinner->value(); int month = m_monthSpinner->value(); if (increase) { if (month < 12) { month += 1; } else { month = 1; year += 1; } } else { if (month == 1) { month = 12; year -= 1; } else { month -= 1; } } if (year != m_yearSpinner->value()) { m_yearSpinner->setValue(year); } if (month != m_monthSpinner->value()) { m_monthSpinner->setValue(month); } } void InfoView::setTodayButtonVisible(bool visible) const { m_todayButton->setVisible(visible); } dde-calendar-5.0.1/src/infoview.h000066400000000000000000000031461351056315100166120ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef INFOVIEW_H #define INFOVIEW_H #include #include DWIDGET_USE_NAMESPACE class QLabel; class Spinner; class InfoView : public QFrame { Q_OBJECT public: explicit InfoView(QFrame *parent = 0); signals: void yearChanged(int year); void monthChanged(int month); void todayButtonClicked(); public slots: void setTime(const QString &time) const; void setFestival(const QString &festival) const; int year() const; int month() const; void setYear(int year) const; void setMonth(int month) const; void setYearRange(int min, int max) const; void increaseMonth(bool increase); void setTodayButtonVisible(bool visible) const; private: QLabel * m_timeLabel; QLabel * m_festivalLabel; DLinkButton * m_todayButton; Spinner * m_yearSpinner; Spinner * m_monthSpinner; }; #endif // INFOVIEW_H dde-calendar-5.0.1/src/main.cpp000066400000000000000000000055421351056315100162450ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "calendarwindow.h" #include "environments.h" #include #include #include #include #include #include #include DWIDGET_USE_NAMESPACE DCORE_USE_NAMESPACE QString GetStyleSheetContent() { QFile file(":/resources/dde-calendar.qss"); bool result = file.open(QFile::ReadOnly); if (result) { QString content(file.readAll()); file.close(); return content; } else { return ""; } } QRect PrimaryRect() { QDesktopWidget *w = QApplication::desktop(); return w->screenGeometry(w->primaryScreen()); } int main(int argc, char *argv[]) { DApplication::loadDXcbPlugin(); DApplication a(argc, argv); a.setOrganizationName("deepin"); a.setApplicationName("dde-calendar"); a.setApplicationVersion(DApplication::buildVersion("1.1")); a.loadTranslator(); // meta information that necessary to create the about dialog. a.setProductName(QApplication::translate("CalendarWindow", "Deepin Calendar")); a.setProductIcon(DHiDPIHelper::loadNxPixmap(":/resources/icon/dde-calendar.svg")); a.setApplicationDescription(QApplication::translate("CalendarWindow", "Calendar is a date tool.")); a.setApplicationAcknowledgementPage("https://www.deepin.org/acknowledgments/dde-calendar"); if (!a.setSingleInstance("dde-calendar", DApplication::UserScope)) { qDebug() << "there's an dde-calendar instance running."; QProcess::execute("dbus-send --print-reply --dest=com.deepin.Calendar " "/com/deepin/Calendar com.deepin.Calendar.RaiseWindow"); return 0; } DLogManager::registerConsoleAppender(); DLogManager::registerFileAppender(); a.setTheme("light"); a.setStyleSheet(GetStyleSheetContent()); a.loadTranslator(); CalendarWindow cw; cw.move(PrimaryRect().center() - cw.geometry().center()); cw.show(); QDBusConnection dbus = QDBusConnection::sessionBus(); if (dbus.registerService("com.deepin.Calendar")) { dbus.registerObject("/com/deepin/Calendar", &cw); } return a.exec(); } dde-calendar-5.0.1/src/resources.qrc000066400000000000000000000015331351056315100173320ustar00rootroot00000000000000 resources/dde-calendar.qss resources/icon/dde-calendar.svg resources/icon/dde-calendar_96.png resources/icon/dde-calendar_48.png resources/icon/next_disabled.svg resources/icon/next_hover.svg resources/icon/next_normal.svg resources/icon/next_press.svg resources/icon/previous_disabled.svg resources/icon/previous_hover.svg resources/icon/previous_normal.svg resources/icon/previous_press.svg resources/icon/today_hover.svg resources/icon/today_normal.svg resources/icon/today_press.svg dde-calendar-5.0.1/src/resources/000077500000000000000000000000001351056315100166215ustar00rootroot00000000000000dde-calendar-5.0.1/src/resources/dde-calendar.qss000066400000000000000000000003441351056315100216550ustar00rootroot00000000000000QFrame#CalendarBackground { background-color: rgba(220, 220, 220, 200) } QLabel#CalendarHeaderWeekday { font-size: 14px; color: #696969; } QLabel#CalendarHeaderWeekend { font-size: 14px; color: #ff5b38; } dde-calendar-5.0.1/src/resources/deepin-calendar.qss000066400000000000000000000003441351056315100223650ustar00rootroot00000000000000QFrame#CalendarBackground { background-color: rgba(220, 220, 220, 200) } QLabel#CalendarHeaderWeekday { font-size: 14px; color: #696969; } QLabel#CalendarHeaderWeekend { font-size: 14px; color: #ff5b38; } dde-calendar-5.0.1/src/resources/icon/000077500000000000000000000000001351056315100175515ustar00rootroot00000000000000dde-calendar-5.0.1/src/resources/icon/dde-calendar.svg000066400000000000000000000071741351056315100226060ustar00rootroot00000000000000 日历-48px Created with Sketch. dde-calendar-5.0.1/src/resources/icon/dde-calendar_48.png000066400000000000000000000024531351056315100231010ustar00rootroot00000000000000PNG  IHDR00WsBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org<IDATh[lUs S\RTA+Q%`!-&> A!@ixiA$ >1>(`JjkI4h[msaڅnwwfR?33眙176#ץyv@D" B BNQwaoB9iF$y@ꪨCуcFDL$^:=Tr .3J´Fv$ήy \  t}7 Zam\ ܼ)gW[ޑ.eF?=)$3sK >Gm`>="sM8eW[z7% !@yn-7n;L΋ېo@;crI`4y]gp߻x/s-x-E7F8nFIwFƃ(b yޔ(}v(C,-tߚJfz;5?}t ߿Dt=}yضj5҂0My/ E%ԣ!SgC_D <`\ZYJ\Zmri1f4J 1m0|+@3!(.n^e0M>1zuuR?+5(7 `E+o?:T0Ob~M%hm6~,HoVAAկdcQߪ9 &wfMwgfD~V@?ۉ\T\Th&Ҋ3N %vxK븦 YٵQPFZK'4|Z8BB09`rYi5:nY$@骨  \"p|0٘0ٸ"okXᖼXy /ȑHv m}V {0u0%`2|a$%B&7RT':cbpkuL5 ^R&&{fuCZb2.E S߀AUlyQZp8,׈" K-Bk: ˷#;+:[BXj?5p Z >Šx{wf: K}PӸpTR}U#bd;|4GD̸eme á@{\rG"B&v\rCYG&TRܚ0 0 0 0΍p HԾOEG PTتJnYjɣH> m?p%Y$u`?E !뢌IO0܍݈ j2obx~VT>;O7-%?+ j%B{Lh %t[&\ГM&M(ؗn*B[|iMMm8o[5t|4g ; |}7,# [7eBgm+UTI63 .tMO ysb>D=߃obK w@z7вz'Jxok%;߃*^=\F3߻p֏۸ak%~KsM>[ :1xIC3luѨ(ln2z;[8olp53+ϋ1M M'|Zl{uMgWM}=mK<5ktFcP#yT")/#, mȯBǃGIb )Ez%l1=dG &ĩ1 FcT3'd8ekVvEA 4OqAj121}`oO/R֭6S?rhy! o"8b/Q[U-nj11&OD 5C0&+FYF;A0Of$k/[2Z!Dw!B~f=ϘWD?W0SKFIBOŰp5>1ޮGzDTc; |jpD\j 5|kށx@/·=޲j+] sQn59_Cl@gﵥ  6.[2Q4qUx s2G:~m![6E9_틙ϘG6k>_|rg^J;P"/lJC7 z O>@M$2/@. &tr[f|#oL&m|xg\m 9 Q2cP2x&"s;^rM3 5@dF–QǞ"?{Ѩljr,lu<ӦvuJ3-]ߵް#%sxt}J  ƎNpL;TNx瑿?G:|,54qomWX ϜAmgꝰ02Ht?3qG;1oJ{yjfWDr(b[6UL@:!"&wD.i`v#;Pƿ V6$L'79PdIƃ$w?lFg *4.)ZJCddxzⰾ.h4 0 0 0 0 0 0cU.XY&WϐJٞqhTxZ?l86V f d}%I"$  5~c\z_\DhђIɈUk}m'"U)Dk&>_KqmmGlb͐e]:'V26TwZSm@:kkf*i檔:ZmKpSFWoW.jF EMz%̉|G"9CA#QyIKقϥJNmPؕR+5 , IENDB`dde-calendar-5.0.1/src/resources/icon/next_disabled.svg000066400000000000000000000015271351056315100231040ustar00rootroot00000000000000 next_disabled Created with Sketch. dde-calendar-5.0.1/src/resources/icon/next_hover.svg000066400000000000000000000014751351056315100224620ustar00rootroot00000000000000 next_hover Created with Sketch. dde-calendar-5.0.1/src/resources/icon/next_normal.svg000066400000000000000000000014771351056315100226310ustar00rootroot00000000000000 next_normal Created with Sketch. dde-calendar-5.0.1/src/resources/icon/next_press.svg000066400000000000000000000014751351056315100224730ustar00rootroot00000000000000 next_press Created with Sketch. dde-calendar-5.0.1/src/resources/icon/previous_disabled.svg000066400000000000000000000015251351056315100240000ustar00rootroot00000000000000 previous_disabled Created with Sketch. dde-calendar-5.0.1/src/resources/icon/previous_hover.svg000066400000000000000000000014731351056315100233560ustar00rootroot00000000000000 previous_hover Created with Sketch. dde-calendar-5.0.1/src/resources/icon/previous_normal.svg000066400000000000000000000014751351056315100235250ustar00rootroot00000000000000 previous_normal Created with Sketch. dde-calendar-5.0.1/src/resources/icon/previous_press.svg000066400000000000000000000014731351056315100233670ustar00rootroot00000000000000 previous_press Created with Sketch. dde-calendar-5.0.1/src/resources/icon/today_hover.svg000066400000000000000000000017551351056315100226250ustar00rootroot00000000000000 today_hover Created with Sketch. dde-calendar-5.0.1/src/resources/icon/today_normal.svg000066400000000000000000000017571351056315100227740ustar00rootroot00000000000000 today_normal Created with Sketch. dde-calendar-5.0.1/src/resources/icon/today_press.svg000066400000000000000000000017551351056315100226360ustar00rootroot00000000000000 today_press Created with Sketch. dde-calendar-5.0.1/src/spinner.cpp000066400000000000000000000061741351056315100170010ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "spinner.h" #include #include Spinner::Spinner(QWidget *parent) : QWidget(parent), m_prevButton(new DImageButton), m_nextButton(new DImageButton), m_label(new QLabel) { setFixedHeight(23); setPrevButtonDisabled(false); setNextButtonDisabled(false); m_label->setFixedWidth(40); m_label->setAlignment(Qt::AlignCenter); m_label->setText(QString::number(m_value)); QHBoxLayout * layout = new QHBoxLayout(this); layout->setMargin(0); layout->setSpacing(0); layout->addWidget(m_prevButton); layout->addWidget(m_label); layout->addWidget(m_nextButton); setLayout(layout); connect(m_prevButton, &DImageButton::clicked, [this]{ setValue(m_value - 1); }); connect(m_nextButton, &DImageButton::clicked, [this]{ setValue(m_value + 1); }); } void Spinner::setRange(int min, int max) { m_min = min; m_max = max; } int Spinner::value() const { return m_value; } void Spinner::setValue(int value) { if (value != m_value) { m_value = value; m_label->setText(QString::number(m_value)); setPrevButtonDisabled(value <= m_min); setNextButtonDisabled(value >= m_max); emit valueChanged(value); } } void Spinner::setPrevButtonDisabled(bool disabled) const { m_prevButton->setDisabled(disabled); if (disabled) { m_prevButton->setHoverPic(":/resources/icon/previous_disabled.svg"); m_prevButton->setNormalPic(":/resources/icon/previous_disabled.svg"); m_prevButton->setPressPic(":/resources/icon/previous_disabled.svg"); } else { m_prevButton->setHoverPic(":/resources/icon/previous_hover.svg"); m_prevButton->setNormalPic(":/resources/icon/previous_normal.svg"); m_prevButton->setPressPic(":/resources/icon/previous_press.svg"); } } void Spinner::setNextButtonDisabled(bool disabled) const { m_nextButton->setDisabled(disabled); if (disabled) { m_nextButton->setHoverPic(":/resources/icon/next_disabled.svg"); m_nextButton->setNormalPic(":/resources/icon/next_disabled.svg"); m_nextButton->setPressPic(":/resources/icon/next_disabled.svg"); } else { m_nextButton->setHoverPic(":/resources/icon/next_hover.svg"); m_nextButton->setNormalPic(":/resources/icon/next_normal.svg"); m_nextButton->setPressPic(":/resources/icon/next_press.svg"); } } dde-calendar-5.0.1/src/spinner.h000066400000000000000000000026041351056315100164400ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef SPINNER_H #define SPINNER_H #include #include DWIDGET_USE_NAMESPACE class QLabel; class Spinner : public QWidget { Q_OBJECT public: explicit Spinner(QWidget *parent = 0); void setRange(int min, int max); int value() const; signals: void valueChanged(int value); public slots: void setValue(int value); private: DImageButton *m_prevButton; DImageButton *m_nextButton; QLabel *m_label; int m_value = 0; int m_min = INT_MIN; int m_max = INT_MAX; void setPrevButtonDisabled(bool disabled) const; void setNextButtonDisabled(bool disabled) const; }; #endif // SPINNER_H dde-calendar-5.0.1/src/weekindicator.cpp000066400000000000000000000041001351056315100201360ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "weekindicator.h" #include #include #include WeekIndicator::WeekIndicator(QWidget *parent) : QWidget(parent) { m_mainLayout = new QHBoxLayout; m_mainLayout->setMargin(0); m_mainLayout->setSpacing(0); setLayout(m_mainLayout); } void WeekIndicator::setList(int weekday) { QLayoutItem* child; while((child = m_mainLayout->takeAt(0)) != 0) { if(child->widget() != 0) { delete child->widget(); } delete child; } QLocale locale; for (int i = 0; i != 7; ++i) { int d = checkDay(i - weekday); QLabel *label = new QLabel(locale.dayName(d ? d : 7, QLocale::ShortFormat)); if ((i == weekday - 1 && weekday != 0) || i == weekday || (weekday == 0 && i == 6)) { label->setObjectName("CalendarHeaderWeekend"); } else { label->setObjectName("CalendarHeaderWeekday"); } label->setAlignment(Qt::AlignCenter); label->setFixedSize(DDECalendar::CellWidth, DDECalendar::HeaderItemHeight); m_mainLayout->addWidget(label, 0, Qt::AlignCenter); } } int WeekIndicator::checkDay(int weekday) { // check the week, calculate the correct order in the custom. if (weekday <= 0) return weekday += 7; if (weekday > 7) return weekday -= 7; return weekday; } dde-calendar-5.0.1/src/weekindicator.h000066400000000000000000000021301351056315100176040ustar00rootroot00000000000000/* * Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd. * * Author: kirigaya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef WEEKINDICATOR_H #define WEEKINDICATOR_H #include "constants.h" #include #include class WeekIndicator : public QWidget { Q_OBJECT public: explicit WeekIndicator(QWidget *parent = 0); void setList(int weekday); private: int checkDay(int weekday); private: QHBoxLayout *m_mainLayout; }; #endif // WEEKINDICATOR_H dde-calendar-5.0.1/translate_desktop.sh000077500000000000000000000004751351056315100201130ustar00rootroot00000000000000#!/bin/bash DESKTOP_TEMP_FILE=dde-calendar.desktop.tmp DESKTOP_SOURCE_FILE=dde-calendar.desktop DESKTOP_DEST_FILE=dde-calendar.desktop DESKTOP_TS_DIR=translations/desktop/ /usr/bin/deepin-desktop-ts-convert ts2desktop $DESKTOP_SOURCE_FILE $DESKTOP_TS_DIR $DESKTOP_TEMP_FILE mv $DESKTOP_TEMP_FILE $DESKTOP_DEST_FILE dde-calendar-5.0.1/translate_desktop2ts.sh000077500000000000000000000002571351056315100205420ustar00rootroot00000000000000#!/bin/bash DESKTOP_SOURCE_FILE=dde-calendar.desktop DESKTOP_TS_DIR=translations/desktop/ /usr/bin/deepin-desktop-ts-convert desktop2ts $DESKTOP_SOURCE_FILE $DESKTOP_TS_DIR dde-calendar-5.0.1/translate_generation.sh000077500000000000000000000003501351056315100205650ustar00rootroot00000000000000#!/bin/bash # this file is used to auto-generate .qm file from .ts file. # author: shibowen at linuxdeepin.com ts_list=(`ls translations/*.ts`) for ts in "${ts_list[@]}" do printf "\nprocess ${ts}\n" lrelease "${ts}" done dde-calendar-5.0.1/translations/000077500000000000000000000000001351056315100165415ustar00rootroot00000000000000dde-calendar-5.0.1/translations/dde-calendar.ts000066400000000000000000000016061351056315100214170ustar00rootroot00000000000000 CalendarWindow First Day of Week Deepin Calendar Calendar is a date tool. InfoView Today dde-calendar-5.0.1/translations/dde-calendar_am_ET.ts000066400000000000000000000016421351056315100224640ustar00rootroot00000000000000 CalendarWindow First Day of Week የ ሳምንቱ መጀመሪያ ቀን Deepin Calendar ዲፕኢን ቀን መቁጠሪያ Calendar is a date tool. ቀን መቁጠሪያ InfoView Today ዛሬ dde-calendar-5.0.1/translations/dde-calendar_ar.ts000066400000000000000000000016721351056315100221040ustar00rootroot00000000000000 CalendarWindow First Day of Week أول يوم في الأسبوع Deepin Calendar تقويم ديبين Calendar is a date tool. برنانج التقويم هو أداة عرض التاريخ . InfoView Today اليوم dde-calendar-5.0.1/translations/dde-calendar_ast.ts000066400000000000000000000016161351056315100222670ustar00rootroot00000000000000 CalendarWindow First Day of Week Primer día de la selmana Deepin Calendar Deepin Calendar Calendar is a date tool. Calendariu ye una ferramienta de dates. InfoView Today Güei dde-calendar-5.0.1/translations/dde-calendar_az.ts000066400000000000000000000015771351056315100221200ustar00rootroot00000000000000 CalendarWindow First Day of Week Həftənin ilk günü Deepin Calendar Deepin Kalendarı Calendar is a date tool. Kalendar tarix alətidir. InfoView Today Bu gün dde-calendar-5.0.1/translations/dde-calendar_bg.ts000066400000000000000000000017301351056315100220650ustar00rootroot00000000000000 CalendarWindow First Day of Week Първи ден от седмицата Deepin Calendar Deepin Календар Calendar is a date tool. Календарът е приложение за показване на датата. InfoView Today Днес dde-calendar-5.0.1/translations/dde-calendar_bn.ts000066400000000000000000000017441351056315100221010ustar00rootroot00000000000000 CalendarWindow First Day of Week সপ্তাহের প্রথম দিন Deepin Calendar ডিপিন ক্যালেন্ডার Calendar is a date tool. কেলেণ্ডার একটি সময় টুল InfoView Today আজকে dde-calendar-5.0.1/translations/dde-calendar_ca.ts000066400000000000000000000016141351056315100220610ustar00rootroot00000000000000 CalendarWindow First Day of Week Primer dia de la setmana Deepin Calendar Calendari del Deepin Calendar is a date tool. El calendari és una eina de cites. InfoView Today Avui dde-calendar-5.0.1/translations/dde-calendar_cs.ts000066400000000000000000000016111351056315100221000ustar00rootroot00000000000000 CalendarWindow First Day of Week První den týdne Deepin Calendar Deepin Kalendář Calendar is a date tool. Kalendář je nástroj pro práci s datem. InfoView Today Dnes dde-calendar-5.0.1/translations/dde-calendar_da.ts000066400000000000000000000015731351056315100220660ustar00rootroot00000000000000 CalendarWindow First Day of Week Ugens første dag Deepin Calendar Deepin kalender Calendar is a date tool. Kalender er et datoværktøj. InfoView Today I dag dde-calendar-5.0.1/translations/dde-calendar_de.ts000066400000000000000000000016011351056315100220620ustar00rootroot00000000000000 CalendarWindow First Day of Week Erster Tag der Woche Deepin Calendar Deepin Kalender Calendar is a date tool. Kalender ist ein Datumswerkzeug. InfoView Today Heute dde-calendar-5.0.1/translations/dde-calendar_el.ts000066400000000000000000000016671351056315100221060ustar00rootroot00000000000000 CalendarWindow First Day of Week Πρώτη ημέρα της εβδομάδας Deepin Calendar Ημερολόγιο Deepin Calendar is a date tool. Εφαρμογή Ημερολογίου InfoView Today Σήμερα dde-calendar-5.0.1/translations/dde-calendar_en_AU.ts000066400000000000000000000015401351056315100224630ustar00rootroot00000000000000 CalendarWindow First Day of Week First Day of the Week Deepin Calendar Calendar is a date tool. InfoView Today dde-calendar-5.0.1/translations/dde-calendar_en_GB.ts000066400000000000000000000015741351056315100224550ustar00rootroot00000000000000 CalendarWindow First Day of Week First day of the week Deepin Calendar Deepin Calendar Calendar is a date tool. Calendar is a date tool InfoView Today Today dde-calendar-5.0.1/translations/dde-calendar_eo.ts000066400000000000000000000015761351056315100221100ustar00rootroot00000000000000 CalendarWindow First Day of Week Unua tago de la semajno Deepin Calendar Deepin Kalendaro Calendar is a date tool. Kalendaro estas datilo. InfoView Today Hodiaŭ dde-calendar-5.0.1/translations/dde-calendar_es.ts000066400000000000000000000016311351056315100221040ustar00rootroot00000000000000 CalendarWindow First Day of Week Primer día de la semana Deepin Calendar Calendario Deepin Calendar is a date tool. Calendario es una herramienta de gestión de fechas. InfoView Today Hoy dde-calendar-5.0.1/translations/dde-calendar_es_419.ts000066400000000000000000000016071351056315100225040ustar00rootroot00000000000000 CalendarWindow First Day of Week Primer Día de la Semana Deepin Calendar Calendario de Deepin Calendar is a date tool. Calendario es un almanaque. InfoView Today Hoy dde-calendar-5.0.1/translations/dde-calendar_et.ts000066400000000000000000000016021351056315100221030ustar00rootroot00000000000000 CalendarWindow First Day of Week Esimene nädalapäev Deepin Calendar Deepin Kalender Calendar is a date tool. Kalender on kuupäeva tööriist. InfoView Today Täna dde-calendar-5.0.1/translations/dde-calendar_fa.ts000066400000000000000000000016331351056315100220650ustar00rootroot00000000000000 CalendarWindow First Day of Week اولین روز هفته Deepin Calendar تقویم Deepin Calendar is a date tool. تقویم یک ابزار تاریخ است. InfoView Today امروز dde-calendar-5.0.1/translations/dde-calendar_fi.ts000066400000000000000000000016231351056315100220740ustar00rootroot00000000000000 CalendarWindow First Day of Week Viikon ensimmäinen päivä Deepin Calendar Deepin kalenteri Calendar is a date tool. Kalenteri on päivämäärä työkalu. InfoView Today Tänään dde-calendar-5.0.1/translations/dde-calendar_fil.ts000066400000000000000000000015171351056315100222520ustar00rootroot00000000000000 CalendarWindow First Day of Week Deepin Calendar Calendar is a date tool. InfoView Today Ngayon dde-calendar-5.0.1/translations/dde-calendar_fr.ts000066400000000000000000000016071351056315100221070ustar00rootroot00000000000000 CalendarWindow First Day of Week Premier jour de la semaine Deepin Calendar Deepin Calendrier Calendar is a date tool. Simple calendrier. InfoView Today Aujourd'hui dde-calendar-5.0.1/translations/dde-calendar_gl_ES.ts000066400000000000000000000016241351056315100224700ustar00rootroot00000000000000 CalendarWindow First Day of Week Primeiro día da semana Deepin Calendar Calendario do Deepin Calendar is a date tool. O calendario é unha ferramenta de datas. InfoView Today Hoxe dde-calendar-5.0.1/translations/dde-calendar_he.ts000066400000000000000000000015201351056315100220660ustar00rootroot00000000000000 CalendarWindow First Day of Week Deepin Calendar Calendar is a date tool. InfoView Today היום dde-calendar-5.0.1/translations/dde-calendar_hi_IN.ts000066400000000000000000000017751351056315100224740ustar00rootroot00000000000000 CalendarWindow First Day of Week सप्ताह का पहला दिन Deepin Calendar डीपिन दिनदर्शिका Calendar is a date tool. दिनदर्शिका दिनांक हेतु एक साधन है। InfoView Today आज dde-calendar-5.0.1/translations/dde-calendar_hr.ts000066400000000000000000000016021351056315100221040ustar00rootroot00000000000000 CalendarWindow First Day of Week Prvi dan u tjednu Deepin Calendar Deepin kalendar Calendar is a date tool. Kalendar je alat za rad sa vremenom. InfoView Today Danas dde-calendar-5.0.1/translations/dde-calendar_hu.ts000066400000000000000000000015561351056315100221170ustar00rootroot00000000000000 CalendarWindow First Day of Week A hét első napja Deepin Calendar Deepin Naptár Calendar is a date tool. Naptár alkalmazás InfoView Today Ma dde-calendar-5.0.1/translations/dde-calendar_hy.ts000066400000000000000000000030621351056315100221150ustar00rootroot00000000000000 CalendarWindow About Տեղեկություն First Day of Week Exit Deepin Calendar Version: %1 Calendar is a date tool. Deepin Calendar is released under GPL v3 InfoView Today dde-calendar-5.0.1/translations/dde-calendar_id.ts000066400000000000000000000016221351056315100220710ustar00rootroot00000000000000 CalendarWindow First Day of Week Hari Pertama dalam Minggu Deepin Calendar Kalender Deepin Calendar is a date tool. Kalender adalah sebuah peralatan tanggal. InfoView Today Hari ini dde-calendar-5.0.1/translations/dde-calendar_it.ts000066400000000000000000000017171351056315100221160ustar00rootroot00000000000000 CalendarWindow First Day of Week Primo giorno della settimana Deepin Calendar Deepin Calendar Calendar is a date tool. Calendar è un'app per il calendario. Localizzazione italiana a cura di Carofano Massimo Antonio. InfoView Today Oggi dde-calendar-5.0.1/translations/dde-calendar_ja.ts000066400000000000000000000016131351056315100220670ustar00rootroot00000000000000 CalendarWindow First Day of Week 週はじめ Deepin Calendar Deepin カレンダー Calendar is a date tool. カレンダーは日時ツールです。 InfoView Today 今日 dde-calendar-5.0.1/translations/dde-calendar_kn_IN.ts000066400000000000000000000017631351056315100225010ustar00rootroot00000000000000 CalendarWindow First Day of Week ವಾರದ ಮೊದಲ ದಿನ Deepin Calendar ಡೀಪಿನ್ ಕ್ಯಾಲೆಂಡರ್ Calendar is a date tool. ಕ್ಯಾಲೆಂಡರ್ ಒಂದು ದಿನದರ್ಶಕವಾಗಿದೆ. InfoView Today ಇಂದು dde-calendar-5.0.1/translations/dde-calendar_ko.ts000066400000000000000000000016031351056315100221050ustar00rootroot00000000000000 CalendarWindow First Day of Week 시작 요일 Deepin Calendar Deepin Calendar Calendar is a date tool. 달력은 일정 관리도구입니다. InfoView Today 오늘 dde-calendar-5.0.1/translations/dde-calendar_ku.ts000066400000000000000000000016011351056315100221110ustar00rootroot00000000000000 CalendarWindow First Day of Week Roja Yekem a Hefteyê Deepin Calendar Salnameya Deepin Calendar is a date tool. Salname navgîneke tarîxê ye. InfoView Today Îro dde-calendar-5.0.1/translations/dde-calendar_ku_IQ.ts000066400000000000000000000016421351056315100225070ustar00rootroot00000000000000 CalendarWindow First Day of Week Roja Yekem a Hefteyê Deepin Calendar ساڵنامەی Deepin Calendar is a date tool. ساڵنامە ئامرازێکی بەروارە InfoView Today ئەمڕۆ dde-calendar-5.0.1/translations/dde-calendar_lt.ts000066400000000000000000000016121351056315100221130ustar00rootroot00000000000000 CalendarWindow First Day of Week Pirmoji savaitės diena Deepin Calendar Deepin kalendorius Calendar is a date tool. Kalendorius yra datų įrankis. InfoView Today Šiandien dde-calendar-5.0.1/translations/dde-calendar_lv.ts000066400000000000000000000016031351056315100221150ustar00rootroot00000000000000 CalendarWindow First Day of Week Pirmā nedēļas diena Deepin Calendar Deepin kalendārs Calendar is a date tool. Kalendārs ir datumu rīks. InfoView Today Šodiena dde-calendar-5.0.1/translations/dde-calendar_ml.ts000066400000000000000000000016711351056315100221110ustar00rootroot00000000000000 CalendarWindow First Day of Week Deepin Calendar ഡീപിൻ കലണ്ടർ Calendar is a date tool. കലണ്ടർ ഒരു തീയതി ഉപകരണം ആണ് InfoView Today ഇന്ന് dde-calendar-5.0.1/translations/dde-calendar_mn.ts000066400000000000000000000017231351056315100221110ustar00rootroot00000000000000 CalendarWindow First Day of Week Долоо хоногийн эхний өдөр Deepin Calendar Деепин Хуанли Calendar is a date tool. Хуанли нь огноо, цагалбарын хэрэгсэл. InfoView Today Өнөөдөр dde-calendar-5.0.1/translations/dde-calendar_ms.ts000066400000000000000000000016121351056315100221130ustar00rootroot00000000000000 CalendarWindow First Day of Week Hari Pertama dalam Seminggu Deepin Calendar Kalendar Deepin Calendar is a date tool. Kalendar merupakan alat tarikh. InfoView Today Hari ini dde-calendar-5.0.1/translations/dde-calendar_nb.ts000066400000000000000000000016561351056315100221030ustar00rootroot00000000000000 CalendarWindow First Day of Week Første dag i uken Deepin Calendar Deepin Kalender Calendar is a date tool. Kalanderen er et redskap for å organisere hendelser etter dato og klokkeslett. InfoView Today I dag dde-calendar-5.0.1/translations/dde-calendar_ne.ts000066400000000000000000000017501351056315100221010ustar00rootroot00000000000000 CalendarWindow First Day of Week हप्ताको पहिलो दिन Deepin Calendar डिपिन क्यालेन्डर Calendar is a date tool. क्यालेन्डर एक मिति उपकरण हो। InfoView Today आज dde-calendar-5.0.1/translations/dde-calendar_nl.ts000066400000000000000000000016411351056315100221070ustar00rootroot00000000000000 CalendarWindow First Day of Week Eerste dag van de week Deepin Calendar Deepin Kalender Calendar is a date tool. Kalender is een hulpmiddel voor het bijhouden van afspraken. InfoView Today Vandaag dde-calendar-5.0.1/translations/dde-calendar_pa.ts000066400000000000000000000017201351056315100220740ustar00rootroot00000000000000 CalendarWindow First Day of Week ਹਫ਼ਤੇ ਦਾ ਪਹਿਲਾਂ ਦਿਨ Deepin Calendar ਡੀਪਿਨ ਕੈਲੰਡਰ Calendar is a date tool. ਕੈਲੰਡਰ ਤਾਰੀਖ ਸਾਧਨ ਹੈ। InfoView Today ਅੱਜ dde-calendar-5.0.1/translations/dde-calendar_pl.ts000066400000000000000000000016241351056315100221120ustar00rootroot00000000000000 CalendarWindow First Day of Week Pierwszy dzień tygodnia Deepin Calendar Kalendarz Deepin Calendar is a date tool. Kalendarz to narzędzie zarządzania czasem. InfoView Today Dzisiaj dde-calendar-5.0.1/translations/dde-calendar_pt.ts000066400000000000000000000016211351056315100221170ustar00rootroot00000000000000 CalendarWindow First Day of Week Primeiro Dia da Semana Deepin Calendar Deepin Calendar Calendar is a date tool. O Calendário é uma ferramenta de agendamento. InfoView Today Hoje dde-calendar-5.0.1/translations/dde-calendar_pt_BR.ts000066400000000000000000000016071351056315100225060ustar00rootroot00000000000000 CalendarWindow First Day of Week Primeiro dia da semana Deepin Calendar Calendário Calendar is a date tool. Calendário é uma ferramenta de data. InfoView Today Hoje dde-calendar-5.0.1/translations/dde-calendar_ro.ts000066400000000000000000000016221351056315100221150ustar00rootroot00000000000000 CalendarWindow First Day of Week Prima zi a săptămânii Deepin Calendar Calendarul Deepin Calendar is a date tool. Calendarul este un instrument pentru date InfoView Today Astăzi dde-calendar-5.0.1/translations/dde-calendar_ru.ts000066400000000000000000000017711351056315100221300ustar00rootroot00000000000000 CalendarWindow First Day of Week Первый День Недели Deepin Calendar Календарь Deepin Calendar is a date tool. Календарь является приложением для планирования Вашего времени. InfoView Today Сегодня dde-calendar-5.0.1/translations/dde-calendar_sk.ts000066400000000000000000000016031351056315100221110ustar00rootroot00000000000000 CalendarWindow First Day of Week Prvý deň v týždni Deepin Calendar Deepin Kalendár Calendar is a date tool. Kalendár je dátumový nástroj. InfoView Today Dnes dde-calendar-5.0.1/translations/dde-calendar_sl.ts000066400000000000000000000016021351056315100221110ustar00rootroot00000000000000 CalendarWindow First Day of Week Prvi dan v tednu Deepin Calendar Koledar Deepin Calendar is a date tool. Koledar je orodje za urejanje datumov. InfoView Today Danes dde-calendar-5.0.1/translations/dde-calendar_sr.ts000066400000000000000000000017041351056315100221220ustar00rootroot00000000000000 CalendarWindow First Day of Week Први дан седмице Deepin Calendar Дипин Календар Calendar is a date tool. Календар је алат за приказивање датума. InfoView Today Данас dde-calendar-5.0.1/translations/dde-calendar_sv.ts000066400000000000000000000016001351056315100221210ustar00rootroot00000000000000 CalendarWindow First Day of Week Första dagen av veckan Deepin Calendar Deepin kalender Calendar is a date tool. Kalender är ett datumverktyg InfoView Today Idag dde-calendar-5.0.1/translations/dde-calendar_sw.ts000066400000000000000000000015731351056315100221330ustar00rootroot00000000000000 CalendarWindow First Day of Week Siku mwanza wa juma Deepin Calendar Kalenda ya Deepin Calendar is a date tool. Kalenda ni chombo ya tarehe InfoView Today Leo dde-calendar-5.0.1/translations/dde-calendar_ta.ts000066400000000000000000000017651351056315100221110ustar00rootroot00000000000000 CalendarWindow First Day of Week வாரத்தின் முதல் நாள் Deepin Calendar டீபின் நாள்காட்டி Calendar is a date tool. அட்டவணை தேதி கருவியாகும் InfoView Today இன்று dde-calendar-5.0.1/translations/dde-calendar_tr.ts000066400000000000000000000016161351056315100221250ustar00rootroot00000000000000 CalendarWindow First Day of Week Haftanın İlk Günü Deepin Calendar Deepin Takvim Calendar is a date tool. Takvim, tarihi görüntüleyen bir araçtır. InfoView Today Bugün dde-calendar-5.0.1/translations/dde-calendar_ug.ts000066400000000000000000000016611351056315100221130ustar00rootroot00000000000000 CalendarWindow First Day of Week ھەپتىنىڭ بىرىنچى كۈنى Deepin Calendar Deepin كالىندارى Calendar is a date tool. كالىندار ئۇ ۋاقىت قۇرالى InfoView Today بۈگۈن dde-calendar-5.0.1/translations/dde-calendar_uk.ts000066400000000000000000000016201351056315100221120ustar00rootroot00000000000000 CalendarWindow First Day of Week Перший день Тижня Deepin Calendar Календар Deepin Calendar is a date tool. Календар InfoView Today Сьогодні dde-calendar-5.0.1/translations/dde-calendar_vi.ts000066400000000000000000000016261351056315100221170ustar00rootroot00000000000000 CalendarWindow First Day of Week Ngày Đầu tiên trong Tuần Deepin Calendar Lịch Deepin Calendar is a date tool. Lịch là một công cụ ngày tháng. InfoView Today Hôm nay dde-calendar-5.0.1/translations/dde-calendar_zh_CN.ts000066400000000000000000000016121351056315100224750ustar00rootroot00000000000000 CalendarWindow First Day of Week 一周首日 Deepin Calendar 深度日历 Calendar is a date tool. 日历是一款查看日期的小工具。 InfoView Today 返回今天 dde-calendar-5.0.1/translations/dde-calendar_zh_HK.ts000066400000000000000000000015211351056315100224760ustar00rootroot00000000000000 CalendarWindow First Day of Week Deepin Calendar Calendar is a date tool. InfoView Today 今天 dde-calendar-5.0.1/translations/dde-calendar_zh_TW.ts000066400000000000000000000016111351056315100225260ustar00rootroot00000000000000 CalendarWindow First Day of Week 一週起始日 Deepin Calendar Deepin 日曆 Calendar is a date tool. Deepin 日曆是個顯示日期的工具。 InfoView Today 今天 dde-calendar-5.0.1/translations/desktop/000077500000000000000000000000001351056315100202125ustar00rootroot00000000000000dde-calendar-5.0.1/translations/desktop/desktop.ts000066400000000000000000000010171351056315100222320ustar00rootroot00000000000000 desktopCalendarCalendar is a date tool.Deepin Calendar dde-calendar-5.0.1/translations/desktop/desktop_am_ET.ts000066400000000000000000000011151351056315100232760ustar00rootroot00000000000000desktopCalendarቀን መቁጠሪያCalendar is a date tool.ቀን መቁጠሪያDeepin Calendarዲፕኢን ቀን መቁጠሪያdde-calendar-5.0.1/translations/desktop/desktop_ar.ts000066400000000000000000000011221351056315100227110ustar00rootroot00000000000000desktopCalendarالتقويمCalendar is a date tool.التقويم هو أداة عرض التاريخ .Deepin Calendarتقويم ديبينdde-calendar-5.0.1/translations/desktop/desktop_ast.ts000066400000000000000000000010741351056315100231040ustar00rootroot00000000000000desktopCalendarCalendariuCalendar is a date tool.Calendariu ye una ferramienta de dates.Deepin CalendarDeepin Calendardde-calendar-5.0.1/translations/desktop/desktop_az.ts000066400000000000000000000010541351056315100227250ustar00rootroot00000000000000desktopCalendarKalendarCalendar is a date tool.Kalendar tarix alətidirDeepin CalendarDeepin Kalendarıdde-calendar-5.0.1/translations/desktop/desktop_bg.ts000066400000000000000000000011711351056315100227030ustar00rootroot00000000000000desktopCalendarКалендарCalendar is a date tool.Календарът е приложение за показване на датата.Deepin CalendarDeepin Календарdde-calendar-5.0.1/translations/desktop/desktop_bn.ts000066400000000000000000000012251351056315100227120ustar00rootroot00000000000000desktopCalendarক্যালেন্ডারCalendar is a date tool.ক্যালেন্ডার একটি তারিখ টুলDeepin Calendarডিপিন ক্যালেন্ডারdde-calendar-5.0.1/translations/desktop/desktop_ca.ts000066400000000000000000000010731351056315100226770ustar00rootroot00000000000000desktopCalendarCalendariCalendar is a date tool.El calendari és una eina de cites.Deepin CalendarCalendari del Deepindde-calendar-5.0.1/translations/desktop/desktop_cs.ts000066400000000000000000000010701351056315100227160ustar00rootroot00000000000000desktopCalendarKalendářCalendar is a date tool.Kalendář je nástroj pro práci s daty.Deepin CalendarKalendářdde-calendar-5.0.1/translations/desktop/desktop_da.ts000066400000000000000000000010571351056315100227020ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalender er et datoværktøj.Deepin CalendarDeepin kalenderdde-calendar-5.0.1/translations/desktop/desktop_de.ts000066400000000000000000000010621351056315100227020ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalender ist ein Datumswerkzeug.Deepin CalendarDeepin Kalenderdde-calendar-5.0.1/translations/desktop/desktop_el.ts000066400000000000000000000011221351056315100227070ustar00rootroot00000000000000desktopCalendarΗμερολόγιοCalendar is a date tool.Εφαρμογή Ημερολογίου Deepin CalendarΗμερολόγιο Deepindde-calendar-5.0.1/translations/desktop/desktop_en_GB.ts000066400000000000000000000010511351056315100232620ustar00rootroot00000000000000desktopCalendarCalendar is a date tool.Calendar is a date toolDeepin CalendarDeepin Calendardde-calendar-5.0.1/translations/desktop/desktop_eo.ts000066400000000000000000000010531351056315100227150ustar00rootroot00000000000000desktopCalendarKalendaroCalendar is a date tool.Kalendaro estas datilo.Deepin CalendarDeepin kalendarodde-calendar-5.0.1/translations/desktop/desktop_es.ts000066400000000000000000000011121351056315100227150ustar00rootroot00000000000000desktopCalendarCalendarioCalendar is a date tool.Calendario es una herramienta de gestión de fechas.Deepin CalendarCalendario Deepindde-calendar-5.0.1/translations/desktop/desktop_es_419.ts000066400000000000000000000010651351056315100233210ustar00rootroot00000000000000desktopCalendarCalendarioCalendar is a date tool.Calendario es un almanaque.Deepin CalendarCalendario Deepindde-calendar-5.0.1/translations/desktop/desktop_et.ts000066400000000000000000000010631351056315100227230ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalender on kuupäeva tööriist.Deepin CalendarDeepin Kalenderdde-calendar-5.0.1/translations/desktop/desktop_fa.ts000066400000000000000000000010761351056315100227050ustar00rootroot00000000000000desktopCalendarCalendar is a date tool.تقویم یک ابزار تاریخ است.Deepin Calendarتقویم Deepindde-calendar-5.0.1/translations/desktop/desktop_fi.ts000066400000000000000000000010721351056315100227110ustar00rootroot00000000000000desktopCalendarKalenteriCalendar is a date tool.Kalenteri on päivämäärätyökalu. Deepin CalendarDeepin kalenteridde-calendar-5.0.1/translations/desktop/desktop_fr.ts000066400000000000000000000010501351056315100227160ustar00rootroot00000000000000desktopCalendarCalendrierCalendar is a date tool.Simple calendrier.Deepin CalendarDeepin Calendrierdde-calendar-5.0.1/translations/desktop/desktop_gl_ES.ts000066400000000000000000000011051351056315100233010ustar00rootroot00000000000000desktopCalendarCalendarioCalendar is a date tool.O calendario é unha ferramenta de datas.Deepin CalendarCalendario do Deepindde-calendar-5.0.1/translations/desktop/desktop_hi_IN.ts000066400000000000000000000012321351056315100232770ustar00rootroot00000000000000desktopCalendarकलेंडरCalendar is a date tool.दिनदर्शिका दिनांक हेतु एक साधन है।Deepin Calendarडीपिन दिनदर्शिकाdde-calendar-5.0.1/translations/desktop/desktop_hr.ts000066400000000000000000000010661351056315100227270ustar00rootroot00000000000000desktopCalendarKalendarCalendar is a date tool.Kalendar je alat za rad sa vremenom.Deepin CalendarDeepin kalendardde-calendar-5.0.1/translations/desktop/desktop_hu.ts000066400000000000000000000010431351056315100227250ustar00rootroot00000000000000desktopCalendarNaptárCalendar is a date tool.Naptár alkalmazásDeepin CalendarDeepin Naptárdde-calendar-5.0.1/translations/desktop/desktop_id.ts000066400000000000000000000010771351056315100227140ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalender adalah sebuah peralatan penanggalan.Deepin CalendarKalender Deepindde-calendar-5.0.1/translations/desktop/desktop_it.ts000066400000000000000000000011561351056315100227320ustar00rootroot00000000000000desktopCalendarCalendarCalendar is a date tool.Calendar è un tool calendario. Localizzazione italiana a cura di Carofano Massimo Antonio.Deepin CalendarDeepin Calendardde-calendar-5.0.1/translations/desktop/desktop_ja.ts000066400000000000000000000011121351056315100227000ustar00rootroot00000000000000desktopCalendarカレンダーCalendar is a date tool.カレンダーは日時ツールです。Deepin CalendarDeepin カレンダーdde-calendar-5.0.1/translations/desktop/desktop_kn_IN.ts000066400000000000000000000012131351056315100233060ustar00rootroot00000000000000desktopCalendarCalendar is a date tool.ಕ್ಯಾಲೆಂಡರ್ ಒಂದು ದಿನದರ್ಶಕವಾಗಿದೆ.Deepin Calendarಡೀಪಿನ್ ಕ್ಯಾಲೆಂಡರ್dde-calendar-5.0.1/translations/desktop/desktop_ko.ts000066400000000000000000000010711351056315100227230ustar00rootroot00000000000000desktopCalendar달력Calendar is a date tool.Calendar는 일정 관리도구입니다.Deepin CalendarDeepin Calendardde-calendar-5.0.1/translations/desktop/desktop_ku.ts000066400000000000000000000010611351056315100227300ustar00rootroot00000000000000desktopCalendarSalnameCalendar is a date tool.Salname navgîneke tarîxê ye.Deepin CalendarSalnameya Deepindde-calendar-5.0.1/translations/desktop/desktop_ku_IQ.ts000066400000000000000000000011141351056315100233200ustar00rootroot00000000000000desktopCalendarSalnameCalendar is a date tool.ساڵنامە ئامرازێکی بەروارەDeepin Calendarساڵنامەی Deepindde-calendar-5.0.1/translations/desktop/desktop_lt.ts000066400000000000000000000010671351056315100227360ustar00rootroot00000000000000desktopCalendarKalendoriusCalendar is a date tool.Kalendorius yra datų įrankis.Deepin CalendarDeepin kalendoriusdde-calendar-5.0.1/translations/desktop/desktop_lv.ts000066400000000000000000000010611351056315100227320ustar00rootroot00000000000000desktopCalendarKalendārsCalendar is a date tool.Kalendārs ir datumu rīks.Deepin CalendarDeepin kalendārsdde-calendar-5.0.1/translations/desktop/desktop_ml.ts000066400000000000000000000011711351056315100227230ustar00rootroot00000000000000desktopCalendarകലണ്ടർCalendar is a date tool.കലണ്ടർ ഒരു തീയതി ഉപകരണം ആണ് Deepin Calendarഡീപിൻ കലണ്ടർdde-calendar-5.0.1/translations/desktop/desktop_mn.ts000066400000000000000000000011441351056315100227250ustar00rootroot00000000000000desktopCalendarХуанлиCalendar is a date tool.Хуанли нь огноо, цагалбарын хэрэгсэл.Deepin CalendarДеепин Хуанлиdde-calendar-5.0.1/translations/desktop/desktop_ms.ts000066400000000000000000000010611351056315100227300ustar00rootroot00000000000000desktopCalendarKalendarCalendar is a date tool.Kalendar merupakan alat tarikh.Deepin CalendarKalendar Deepindde-calendar-5.0.1/translations/desktop/desktop_nb.ts000066400000000000000000000011371351056315100227140ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalander er et redskap for å organisere hendelser etter dato og klokkeslett.Deepin CalendarDeepin Kalenderdde-calendar-5.0.1/translations/desktop/desktop_ne.ts000066400000000000000000000012231351056315100227130ustar00rootroot00000000000000desktopCalendarक्यालेन्डरCalendar is a date tool.क्यालेन्डर एक मिति उपकरण हो।Deepin Calendarडिपिन क्यालेन्डरdde-calendar-5.0.1/translations/desktop/desktop_nl.ts000066400000000000000000000011161351056315100227230ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalender is een hulpmiddel voor het bijhouden van afspraken.Deepin CalendarDeepin Kalenderdde-calendar-5.0.1/translations/desktop/desktop_pa.ts000066400000000000000000000011501351056315100227100ustar00rootroot00000000000000desktopCalendarਕੈਲੰਡਰCalendar is a date tool.ਕੈਲੰਡਰ ਤਾਰੀਖ ਸਾਧਨ ਹੈ।Deepin Calendarਡੀਪਿਨ ਕੈਲੰਡਰdde-calendar-5.0.1/translations/desktop/desktop_pl.ts000066400000000000000000000011001351056315100227160ustar00rootroot00000000000000desktopCalendarKalendarzCalendar is a date tool.Kalendarz to narzędzie zarządzania czasem.Deepin CalendarKalendarz Deepindde-calendar-5.0.1/translations/desktop/desktop_pt.ts000066400000000000000000000011041351056315100227320ustar00rootroot00000000000000desktopCalendarCalendárioCalendar is a date tool.O Calendário é uma ferramenta de agendamento.Deepin CalendarDeepin Calendardde-calendar-5.0.1/translations/desktop/desktop_pt_BR.ts000066400000000000000000000010721351056315100233210ustar00rootroot00000000000000desktopCalendarCalendárioCalendar is a date tool.Calendário é uma ferramenta de data.Deepin CalendarCalendáriodde-calendar-5.0.1/translations/desktop/desktop_ro.ts000066400000000000000000000010751351056315100227360ustar00rootroot00000000000000desktopCalendarCalendarCalendar is a date tool.Calendarul este un instrument pentru dateDeepin CalendarCalendarul Deepindde-calendar-5.0.1/translations/desktop/desktop_ru.ts000066400000000000000000000012351351056315100227420ustar00rootroot00000000000000desktopCalendarКалендарьCalendar is a date tool.Календарь является приложением для планирования Вашего времени.Deepin CalendarКалендарь Deepindde-calendar-5.0.1/translations/desktop/desktop_sk.ts000066400000000000000000000010651351056315100227320ustar00rootroot00000000000000desktopCalendarKalendárCalendar is a date tool.Kalendár je dátumový nástroj.Deepin CalendarDeepin Kalendárdde-calendar-5.0.1/translations/desktop/desktop_sl.ts000066400000000000000000000010661351056315100227340ustar00rootroot00000000000000desktopCalendarKoledarCalendar is a date tool.Koledar je orodje za urejanje datumov.Deepin CalendarKoledar Deepindde-calendar-5.0.1/translations/desktop/desktop_sr.ts000066400000000000000000000011561351056315100227420ustar00rootroot00000000000000desktopCalendarКалендарCalendar is a date tool.Календар је алат за приказивање датума.Deepin CalendarДипин Календарdde-calendar-5.0.1/translations/desktop/desktop_sv.ts000066400000000000000000000010601351056315100227400ustar00rootroot00000000000000desktopCalendarKalenderCalendar is a date tool.Kalender är ett datumverktyg.Deepin CalendarDeepin kalenderdde-calendar-5.0.1/translations/desktop/desktop_sw.ts000066400000000000000000000010561351056315100227460ustar00rootroot00000000000000desktopCalendarKalendaCalendar is a date tool.Kalenda ni chombo ya tareheDeepin CalendarKalenda ya Deepindde-calendar-5.0.1/translations/desktop/desktop_ta.ts000066400000000000000000000011651351056315100227220ustar00rootroot00000000000000desktopCalendarCalendar is a date tool.அட்டவணை தேதி கருவியாகும்Deepin Calendarடீபின் நாள்காட்டிdde-calendar-5.0.1/translations/desktop/desktop_tr.ts000066400000000000000000000010731351056315100227410ustar00rootroot00000000000000desktopCalendarTakvimCalendar is a date tool.Takvim, tarihi görüntüleyen bir araçtır.Deepin CalendarDeepin Takvimdde-calendar-5.0.1/translations/desktop/desktop_ug.ts000066400000000000000000000011061351056315100227240ustar00rootroot00000000000000desktopCalendarCalendar is a date tool.كالىندار ئۇ ۋاقىت قۇرالىDeepin CalendarDeepin كالىندارىdde-calendar-5.0.1/translations/desktop/desktop_uk.ts000066400000000000000000000010621351056315100227310ustar00rootroot00000000000000desktopCalendarКалендарCalendar is a date tool.КалендарDeepin CalendarКалендар Deepindde-calendar-5.0.1/translations/desktop/desktop_vi.ts000066400000000000000000000010671351056315100227350ustar00rootroot00000000000000desktopCalendarLịchCalendar is a date tool.Lịch là một công cụ ngày tháng.Deepin CalendarLịch Deepindde-calendar-5.0.1/translations/desktop/desktop_zh_CN.ts000066400000000000000000000010721351056315100233140ustar00rootroot00000000000000desktopCalendar日历Calendar is a date tool.日历是一款查看日期的小工具。Deepin Calendar深度日历dde-calendar-5.0.1/translations/desktop/desktop_zh_TW.ts000066400000000000000000000010511351056315100233430ustar00rootroot00000000000000desktopCalendar日曆Calendar is a date tool.簡易日期顯示工具Deepin CalendarDeepin 日曆