Update upstream source from tag 'upstream/5.2.1'
Update to upstream version '5.2.1'
with Debian dir b0b6484d7d2aa74afa9c3d24f3022805eb92e2c1
Boyuan Yang
3 years ago
0 | { | |
1 | "Type": "homebrew", | |
2 | "3rdparty": [], | |
3 | "ignore": ["src/translations","src/widgets/assets","doc","examples",".tx","debian"], | |
4 | "license": ["GPLv3"] | |
5 | } |
0 | GNU GENERAL PUBLIC LICENSE | |
0 | GNU LESSER GENERAL PUBLIC LICENSE | |
1 | 1 | Version 3, 29 June 2007 |
2 | 2 | |
3 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
3 | Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> | |
4 | 4 | Everyone is permitted to copy and distribute verbatim copies |
5 | 5 | of this license document, but changing it is not allowed. |
6 | 6 | |
7 | Preamble | |
8 | 7 | |
9 | The GNU General Public License is a free, copyleft license for | |
10 | software and other kinds of works. | |
8 | This version of the GNU Lesser General Public License incorporates | |
9 | the terms and conditions of version 3 of the GNU General Public | |
10 | License, supplemented by the additional permissions listed below. | |
11 | 11 | |
12 | The licenses for most software and other practical works are designed | |
13 | to take away your freedom to share and change the works. By contrast, | |
14 | the GNU General Public License is intended to guarantee your freedom to | |
15 | share and change all versions of a program--to make sure it remains free | |
16 | software for all its users. We, the Free Software Foundation, use the | |
17 | GNU General Public License for most of our software; it applies also to | |
18 | any other work released this way by its authors. You can apply it to | |
19 | your programs, too. | |
12 | 0. Additional Definitions. | |
20 | 13 | |
21 | When we speak of free software, we are referring to freedom, not | |
22 | price. Our General Public Licenses are designed to make sure that you | |
23 | have the freedom to distribute copies of free software (and charge for | |
24 | them if you wish), that you receive source code or can get it if you | |
25 | want it, that you can change the software or use pieces of it in new | |
26 | free programs, and that you know you can do these things. | |
14 | As used herein, "this License" refers to version 3 of the GNU Lesser | |
15 | General Public License, and the "GNU GPL" refers to version 3 of the GNU | |
16 | General Public License. | |
27 | 17 | |
28 | To protect your rights, we need to prevent others from denying you | |
29 | these rights or asking you to surrender the rights. Therefore, you have | |
30 | certain responsibilities if you distribute copies of the software, or if | |
31 | you modify it: responsibilities to respect the freedom of others. | |
18 | "The Library" refers to a covered work governed by this License, | |
19 | other than an Application or a Combined Work as defined below. | |
32 | 20 | |
33 | For example, if you distribute copies of such a program, whether | |
34 | gratis or for a fee, you must pass on to the recipients the same | |
35 | freedoms that you received. You must make sure that they, too, receive | |
36 | or can get the source code. And you must show them these terms so they | |
37 | know their rights. | |
21 | An "Application" is any work that makes use of an interface provided | |
22 | by the Library, but which is not otherwise based on the Library. | |
23 | Defining a subclass of a class defined by the Library is deemed a mode | |
24 | of using an interface provided by the Library. | |
38 | 25 | |
39 | Developers that use the GNU GPL protect your rights with two steps: | |
40 | (1) assert copyright on the software, and (2) offer you this License | |
41 | giving you legal permission to copy, distribute and/or modify it. | |
26 | A "Combined Work" is a work produced by combining or linking an | |
27 | Application with the Library. The particular version of the Library | |
28 | with which the Combined Work was made is also called the "Linked | |
29 | Version". | |
42 | 30 | |
43 | For the developers' and authors' protection, the GPL clearly explains | |
44 | that there is no warranty for this free software. For both users' and | |
45 | authors' sake, the GPL requires that modified versions be marked as | |
46 | changed, so that their problems will not be attributed erroneously to | |
47 | authors of previous versions. | |
31 | The "Minimal Corresponding Source" for a Combined Work means the | |
32 | Corresponding Source for the Combined Work, excluding any source code | |
33 | for portions of the Combined Work that, considered in isolation, are | |
34 | based on the Application, and not on the Linked Version. | |
48 | 35 | |
49 | Some devices are designed to deny users access to install or run | |
50 | modified versions of the software inside them, although the manufacturer | |
51 | can do so. This is fundamentally incompatible with the aim of | |
52 | protecting users' freedom to change the software. The systematic | |
53 | pattern of such abuse occurs in the area of products for individuals to | |
54 | use, which is precisely where it is most unacceptable. Therefore, we | |
55 | have designed this version of the GPL to prohibit the practice for those | |
56 | products. If such problems arise substantially in other domains, we | |
57 | stand ready to extend this provision to those domains in future versions | |
58 | of the GPL, as needed to protect the freedom of users. | |
36 | The "Corresponding Application Code" for a Combined Work means the | |
37 | object code and/or source code for the Application, including any data | |
38 | and utility programs needed for reproducing the Combined Work from the | |
39 | Application, but excluding the System Libraries of the Combined Work. | |
59 | 40 | |
60 | Finally, every program is threatened constantly by software patents. | |
61 | States should not allow patents to restrict development and use of | |
62 | software on general-purpose computers, but in those that do, we wish to | |
63 | avoid the special danger that patents applied to a free program could | |
64 | make it effectively proprietary. To prevent this, the GPL assures that | |
65 | patents cannot be used to render the program non-free. | |
41 | 1. Exception to Section 3 of the GNU GPL. | |
66 | 42 | |
67 | The precise terms and conditions for copying, distribution and | |
68 | modification follow. | |
43 | You may convey a covered work under sections 3 and 4 of this License | |
44 | without being bound by section 3 of the GNU GPL. | |
69 | 45 | |
70 | TERMS AND CONDITIONS | |
46 | 2. Conveying Modified Versions. | |
71 | 47 | |
72 | 0. Definitions. | |
48 | If you modify a copy of the Library, and, in your modifications, a | |
49 | facility refers to a function or data to be supplied by an Application | |
50 | that uses the facility (other than as an argument passed when the | |
51 | facility is invoked), then you may convey a copy of the modified | |
52 | version: | |
73 | 53 | |
74 | "This License" refers to version 3 of the GNU General Public License. | |
54 | a) under this License, provided that you make a good faith effort to | |
55 | ensure that, in the event an Application does not supply the | |
56 | function or data, the facility still operates, and performs | |
57 | whatever part of its purpose remains meaningful, or | |
75 | 58 | |
76 | "Copyright" also means copyright-like laws that apply to other kinds of | |
77 | works, such as semiconductor masks. | |
59 | b) under the GNU GPL, with none of the additional permissions of | |
60 | this License applicable to that copy. | |
78 | 61 | |
79 | "The Program" refers to any copyrightable work licensed under this | |
80 | License. Each licensee is addressed as "you". "Licensees" and | |
81 | "recipients" may be individuals or organizations. | |
62 | 3. Object Code Incorporating Material from Library Header Files. | |
82 | 63 | |
83 | To "modify" a work means to copy from or adapt all or part of the work | |
84 | in a fashion requiring copyright permission, other than the making of an | |
85 | exact copy. The resulting work is called a "modified version" of the | |
86 | earlier work or a work "based on" the earlier work. | |
64 | The object code form of an Application may incorporate material from | |
65 | a header file that is part of the Library. You may convey such object | |
66 | code under terms of your choice, provided that, if the incorporated | |
67 | material is not limited to numerical parameters, data structure | |
68 | layouts and accessors, or small macros, inline functions and templates | |
69 | (ten or fewer lines in length), you do both of the following: | |
87 | 70 | |
88 | A "covered work" means either the unmodified Program or a work based | |
89 | on the Program. | |
71 | a) Give prominent notice with each copy of the object code that the | |
72 | Library is used in it and that the Library and its use are | |
73 | covered by this License. | |
90 | 74 | |
91 | To "propagate" a work means to do anything with it that, without | |
92 | permission, would make you directly or secondarily liable for | |
93 | infringement under applicable copyright law, except executing it on a | |
94 | computer or modifying a private copy. Propagation includes copying, | |
95 | distribution (with or without modification), making available to the | |
96 | public, and in some countries other activities as well. | |
75 | b) Accompany the object code with a copy of the GNU GPL and this license | |
76 | document. | |
97 | 77 | |
98 | To "convey" a work means any kind of propagation that enables other | |
99 | parties to make or receive copies. Mere interaction with a user through | |
100 | a computer network, with no transfer of a copy, is not conveying. | |
78 | 4. Combined Works. | |
101 | 79 | |
102 | An interactive user interface displays "Appropriate Legal Notices" | |
103 | to the extent that it includes a convenient and prominently visible | |
104 | feature that (1) displays an appropriate copyright notice, and (2) | |
105 | tells the user that there is no warranty for the work (except to the | |
106 | extent that warranties are provided), that licensees may convey the | |
107 | work under this License, and how to view a copy of this License. If | |
108 | the interface presents a list of user commands or options, such as a | |
109 | menu, a prominent item in the list meets this criterion. | |
80 | You may convey a Combined Work under terms of your choice that, | |
81 | taken together, effectively do not restrict modification of the | |
82 | portions of the Library contained in the Combined Work and reverse | |
83 | engineering for debugging such modifications, if you also do each of | |
84 | the following: | |
110 | 85 | |
111 | 1. Source Code. | |
86 | a) Give prominent notice with each copy of the Combined Work that | |
87 | the Library is used in it and that the Library and its use are | |
88 | covered by this License. | |
112 | 89 | |
113 | The "source code" for a work means the preferred form of the work | |
114 | for making modifications to it. "Object code" means any non-source | |
115 | form of a work. | |
90 | b) Accompany the Combined Work with a copy of the GNU GPL and this license | |
91 | document. | |
116 | 92 | |
117 | A "Standard Interface" means an interface that either is an official | |
118 | standard defined by a recognized standards body, or, in the case of | |
119 | interfaces specified for a particular programming language, one that | |
120 | is widely used among developers working in that language. | |
93 | c) For a Combined Work that displays copyright notices during | |
94 | execution, include the copyright notice for the Library among | |
95 | these notices, as well as a reference directing the user to the | |
96 | copies of the GNU GPL and this license document. | |
121 | 97 | |
122 | The "System Libraries" of an executable work include anything, other | |
123 | than the work as a whole, that (a) is included in the normal form of | |
124 | packaging a Major Component, but which is not part of that Major | |
125 | Component, and (b) serves only to enable use of the work with that | |
126 | Major Component, or to implement a Standard Interface for which an | |
127 | implementation is available to the public in source code form. A | |
128 | "Major Component", in this context, means a major essential component | |
129 | (kernel, window system, and so on) of the specific operating system | |
130 | (if any) on which the executable work runs, or a compiler used to | |
131 | produce the work, or an object code interpreter used to run it. | |
98 | d) Do one of the following: | |
132 | 99 | |
133 | The "Corresponding Source" for a work in object code form means all | |
134 | the source code needed to generate, install, and (for an executable | |
135 | work) run the object code and to modify the work, including scripts to | |
136 | control those activities. However, it does not include the work's | |
137 | System Libraries, or general-purpose tools or generally available free | |
138 | programs which are used unmodified in performing those activities but | |
139 | which are not part of the work. For example, Corresponding Source | |
140 | includes interface definition files associated with source files for | |
141 | the work, and the source code for shared libraries and dynamically | |
142 | linked subprograms that the work is specifically designed to require, | |
143 | such as by intimate data communication or control flow between those | |
144 | subprograms and other parts of the work. | |
100 | 0) Convey the Minimal Corresponding Source under the terms of this | |
101 | License, and the Corresponding Application Code in a form | |
102 | suitable for, and under terms that permit, the user to | |
103 | recombine or relink the Application with a modified version of | |
104 | the Linked Version to produce a modified Combined Work, in the | |
105 | manner specified by section 6 of the GNU GPL for conveying | |
106 | Corresponding Source. | |
145 | 107 | |
146 | The Corresponding Source need not include anything that users | |
147 | can regenerate automatically from other parts of the Corresponding | |
148 | Source. | |
108 | 1) Use a suitable shared library mechanism for linking with the | |
109 | Library. A suitable mechanism is one that (a) uses at run time | |
110 | a copy of the Library already present on the user's computer | |
111 | system, and (b) will operate properly with a modified version | |
112 | of the Library that is interface-compatible with the Linked | |
113 | Version. | |
149 | 114 | |
150 | The Corresponding Source for a work in source code form is that | |
151 | same work. | |
115 | e) Provide Installation Information, but only if you would otherwise | |
116 | be required to provide such information under section 6 of the | |
117 | GNU GPL, and only to the extent that such information is | |
118 | necessary to install and execute a modified version of the | |
119 | Combined Work produced by recombining or relinking the | |
120 | Application with a modified version of the Linked Version. (If | |
121 | you use option 4d0, the Installation Information must accompany | |
122 | the Minimal Corresponding Source and Corresponding Application | |
123 | Code. If you use option 4d1, you must provide the Installation | |
124 | Information in the manner specified by section 6 of the GNU GPL | |
125 | for conveying Corresponding Source.) | |
152 | 126 | |
153 | 2. Basic Permissions. | |
127 | 5. Combined Libraries. | |
154 | 128 | |
155 | All rights granted under this License are granted for the term of | |
156 | copyright on the Program, and are irrevocable provided the stated | |
157 | conditions are met. This License explicitly affirms your unlimited | |
158 | permission to run the unmodified Program. The output from running a | |
159 | covered work is covered by this License only if the output, given its | |
160 | content, constitutes a covered work. This License acknowledges your | |
161 | rights of fair use or other equivalent, as provided by copyright law. | |
129 | You may place library facilities that are a work based on the | |
130 | Library side by side in a single library together with other library | |
131 | facilities that are not Applications and are not covered by this | |
132 | License, and convey such a combined library under terms of your | |
133 | choice, if you do both of the following: | |
162 | 134 | |
163 | You may make, run and propagate covered works that you do not | |
164 | convey, without conditions so long as your license otherwise remains | |
165 | in force. You may convey covered works to others for the sole purpose | |
166 | of having them make modifications exclusively for you, or provide you | |
167 | with facilities for running those works, provided that you comply with | |
168 | the terms of this License in conveying all material for which you do | |
169 | not control copyright. Those thus making or running the covered works | |
170 | for you must do so exclusively on your behalf, under your direction | |
171 | and control, on terms that prohibit them from making any copies of | |
172 | your copyrighted material outside their relationship with you. | |
135 | a) Accompany the combined library with a copy of the same work based | |
136 | on the Library, uncombined with any other library facilities, | |
137 | conveyed under the terms of this License. | |
173 | 138 | |
174 | Conveying under any other circumstances is permitted solely under | |
175 | the conditions stated below. Sublicensing is not allowed; section 10 | |
176 | makes it unnecessary. | |
139 | b) Give prominent notice with the combined library that part of it | |
140 | is a work based on the Library, and explaining where to find the | |
141 | accompanying uncombined form of the same work. | |
177 | 142 | |
178 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | |
143 | 6. Revised Versions of the GNU Lesser General Public License. | |
179 | 144 | |
180 | No covered work shall be deemed part of an effective technological | |
181 | measure under any applicable law fulfilling obligations under article | |
182 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or | |
183 | similar laws prohibiting or restricting circumvention of such | |
184 | measures. | |
145 | The Free Software Foundation may publish revised and/or new versions | |
146 | of the GNU Lesser General Public License from time to time. Such new | |
147 | versions will be similar in spirit to the present version, but may | |
148 | differ in detail to address new problems or concerns. | |
185 | 149 | |
186 | When you convey a covered work, you waive any legal power to forbid | |
187 | circumvention of technological measures to the extent such circumvention | |
188 | is effected by exercising rights under this License with respect to | |
189 | the covered work, and you disclaim any intention to limit operation or | |
190 | modification of the work as a means of enforcing, against the work's | |
191 | users, your or third parties' legal rights to forbid circumvention of | |
192 | technological measures. | |
150 | Each version is given a distinguishing version number. If the | |
151 | Library as you received it specifies that a certain numbered version | |
152 | of the GNU Lesser General Public License "or any later version" | |
153 | applies to it, you have the option of following the terms and | |
154 | conditions either of that published version or of any later version | |
155 | published by the Free Software Foundation. If the Library as you | |
156 | received it does not specify a version number of the GNU Lesser | |
157 | General Public License, you may choose any version of the GNU Lesser | |
158 | General Public License ever published by the Free Software Foundation. | |
193 | 159 | |
194 | 4. Conveying Verbatim Copies. | |
195 | ||
196 | You may convey verbatim copies of the Program's source code as you | |
197 | receive it, in any medium, provided that you conspicuously and | |
198 | appropriately publish on each copy an appropriate copyright notice; | |
199 | keep intact all notices stating that this License and any | |
200 | non-permissive terms added in accord with section 7 apply to the code; | |
201 | keep intact all notices of the absence of any warranty; and give all | |
202 | recipients a copy of this License along with the Program. | |
203 | ||
204 | You may charge any price or no price for each copy that you convey, | |
205 | and you may offer support or warranty protection for a fee. | |
206 | ||
207 | 5. Conveying Modified Source Versions. | |
208 | ||
209 | You may convey a work based on the Program, or the modifications to | |
210 | produce it from the Program, in the form of source code under the | |
211 | terms of section 4, provided that you also meet all of these conditions: | |
212 | ||
213 | a) The work must carry prominent notices stating that you modified | |
214 | it, and giving a relevant date. | |
215 | ||
216 | b) The work must carry prominent notices stating that it is | |
217 | released under this License and any conditions added under section | |
218 | 7. This requirement modifies the requirement in section 4 to | |
219 | "keep intact all notices". | |
220 | ||
221 | c) You must license the entire work, as a whole, under this | |
222 | License to anyone who comes into possession of a copy. This | |
223 | License will therefore apply, along with any applicable section 7 | |
224 | additional terms, to the whole of the work, and all its parts, | |
225 | regardless of how they are packaged. This License gives no | |
226 | permission to license the work in any other way, but it does not | |
227 | invalidate such permission if you have separately received it. | |
228 | ||
229 | d) If the work has interactive user interfaces, each must display | |
230 | Appropriate Legal Notices; however, if the Program has interactive | |
231 | interfaces that do not display Appropriate Legal Notices, your | |
232 | work need not make them do so. | |
233 | ||
234 | A compilation of a covered work with other separate and independent | |
235 | works, which are not by their nature extensions of the covered work, | |
236 | and which are not combined with it such as to form a larger program, | |
237 | in or on a volume of a storage or distribution medium, is called an | |
238 | "aggregate" if the compilation and its resulting copyright are not | |
239 | used to limit the access or legal rights of the compilation's users | |
240 | beyond what the individual works permit. Inclusion of a covered work | |
241 | in an aggregate does not cause this License to apply to the other | |
242 | parts of the aggregate. | |
243 | ||
244 | 6. Conveying Non-Source Forms. | |
245 | ||
246 | You may convey a covered work in object code form under the terms | |
247 | of sections 4 and 5, provided that you also convey the | |
248 | machine-readable Corresponding Source under the terms of this License, | |
249 | in one of these ways: | |
250 | ||
251 | a) Convey the object code in, or embodied in, a physical product | |
252 | (including a physical distribution medium), accompanied by the | |
253 | Corresponding Source fixed on a durable physical medium | |
254 | customarily used for software interchange. | |
255 | ||
256 | b) Convey the object code in, or embodied in, a physical product | |
257 | (including a physical distribution medium), accompanied by a | |
258 | written offer, valid for at least three years and valid for as | |
259 | long as you offer spare parts or customer support for that product | |
260 | model, to give anyone who possesses the object code either (1) a | |
261 | copy of the Corresponding Source for all the software in the | |
262 | product that is covered by this License, on a durable physical | |
263 | medium customarily used for software interchange, for a price no | |
264 | more than your reasonable cost of physically performing this | |
265 | conveying of source, or (2) access to copy the | |
266 | Corresponding Source from a network server at no charge. | |
267 | ||
268 | c) Convey individual copies of the object code with a copy of the | |
269 | written offer to provide the Corresponding Source. This | |
270 | alternative is allowed only occasionally and noncommercially, and | |
271 | only if you received the object code with such an offer, in accord | |
272 | with subsection 6b. | |
273 | ||
274 | d) Convey the object code by offering access from a designated | |
275 | place (gratis or for a charge), and offer equivalent access to the | |
276 | Corresponding Source in the same way through the same place at no | |
277 | further charge. You need not require recipients to copy the | |
278 | Corresponding Source along with the object code. If the place to | |
279 | copy the object code is a network server, the Corresponding Source | |
280 | may be on a different server (operated by you or a third party) | |
281 | that supports equivalent copying facilities, provided you maintain | |
282 | clear directions next to the object code saying where to find the | |
283 | Corresponding Source. Regardless of what server hosts the | |
284 | Corresponding Source, you remain obligated to ensure that it is | |
285 | available for as long as needed to satisfy these requirements. | |
286 | ||
287 | e) Convey the object code using peer-to-peer transmission, provided | |
288 | you inform other peers where the object code and Corresponding | |
289 | Source of the work are being offered to the general public at no | |
290 | charge under subsection 6d. | |
291 | ||
292 | A separable portion of the object code, whose source code is excluded | |
293 | from the Corresponding Source as a System Library, need not be | |
294 | included in conveying the object code work. | |
295 | ||
296 | A "User Product" is either (1) a "consumer product", which means any | |
297 | tangible personal property which is normally used for personal, family, | |
298 | or household purposes, or (2) anything designed or sold for incorporation | |
299 | into a dwelling. In determining whether a product is a consumer product, | |
300 | doubtful cases shall be resolved in favor of coverage. For a particular | |
301 | product received by a particular user, "normally used" refers to a | |
302 | typical or common use of that class of product, regardless of the status | |
303 | of the particular user or of the way in which the particular user | |
304 | actually uses, or expects or is expected to use, the product. A product | |
305 | is a consumer product regardless of whether the product has substantial | |
306 | commercial, industrial or non-consumer uses, unless such uses represent | |
307 | the only significant mode of use of the product. | |
308 | ||
309 | "Installation Information" for a User Product means any methods, | |
310 | procedures, authorization keys, or other information required to install | |
311 | and execute modified versions of a covered work in that User Product from | |
312 | a modified version of its Corresponding Source. The information must | |
313 | suffice to ensure that the continued functioning of the modified object | |
314 | code is in no case prevented or interfered with solely because | |
315 | modification has been made. | |
316 | ||
317 | If you convey an object code work under this section in, or with, or | |
318 | specifically for use in, a User Product, and the conveying occurs as | |
319 | part of a transaction in which the right of possession and use of the | |
320 | User Product is transferred to the recipient in perpetuity or for a | |
321 | fixed term (regardless of how the transaction is characterized), the | |
322 | Corresponding Source conveyed under this section must be accompanied | |
323 | by the Installation Information. But this requirement does not apply | |
324 | if neither you nor any third party retains the ability to install | |
325 | modified object code on the User Product (for example, the work has | |
326 | been installed in ROM). | |
327 | ||
328 | The requirement to provide Installation Information does not include a | |
329 | requirement to continue to provide support service, warranty, or updates | |
330 | for a work that has been modified or installed by the recipient, or for | |
331 | the User Product in which it has been modified or installed. Access to a | |
332 | network may be denied when the modification itself materially and | |
333 | adversely affects the operation of the network or violates the rules and | |
334 | protocols for communication across the network. | |
335 | ||
336 | Corresponding Source conveyed, and Installation Information provided, | |
337 | in accord with this section must be in a format that is publicly | |
338 | documented (and with an implementation available to the public in | |
339 | source code form), and must require no special password or key for | |
340 | unpacking, reading or copying. | |
341 | ||
342 | 7. Additional Terms. | |
343 | ||
344 | "Additional permissions" are terms that supplement the terms of this | |
345 | License by making exceptions from one or more of its conditions. | |
346 | Additional permissions that are applicable to the entire Program shall | |
347 | be treated as though they were included in this License, to the extent | |
348 | that they are valid under applicable law. If additional permissions | |
349 | apply only to part of the Program, that part may be used separately | |
350 | under those permissions, but the entire Program remains governed by | |
351 | this License without regard to the additional permissions. | |
352 | ||
353 | When you convey a copy of a covered work, you may at your option | |
354 | remove any additional permissions from that copy, or from any part of | |
355 | it. (Additional permissions may be written to require their own | |
356 | removal in certain cases when you modify the work.) You may place | |
357 | additional permissions on material, added by you to a covered work, | |
358 | for which you have or can give appropriate copyright permission. | |
359 | ||
360 | Notwithstanding any other provision of this License, for material you | |
361 | add to a covered work, you may (if authorized by the copyright holders of | |
362 | that material) supplement the terms of this License with terms: | |
363 | ||
364 | a) Disclaiming warranty or limiting liability differently from the | |
365 | terms of sections 15 and 16 of this License; or | |
366 | ||
367 | b) Requiring preservation of specified reasonable legal notices or | |
368 | author attributions in that material or in the Appropriate Legal | |
369 | Notices displayed by works containing it; or | |
370 | ||
371 | c) Prohibiting misrepresentation of the origin of that material, or | |
372 | requiring that modified versions of such material be marked in | |
373 | reasonable ways as different from the original version; or | |
374 | ||
375 | d) Limiting the use for publicity purposes of names of licensors or | |
376 | authors of the material; or | |
377 | ||
378 | e) Declining to grant rights under trademark law for use of some | |
379 | trade names, trademarks, or service marks; or | |
380 | ||
381 | f) Requiring indemnification of licensors and authors of that | |
382 | material by anyone who conveys the material (or modified versions of | |
383 | it) with contractual assumptions of liability to the recipient, for | |
384 | any liability that these contractual assumptions directly impose on | |
385 | those licensors and authors. | |
386 | ||
387 | All other non-permissive additional terms are considered "further | |
388 | restrictions" within the meaning of section 10. If the Program as you | |
389 | received it, or any part of it, contains a notice stating that it is | |
390 | governed by this License along with a term that is a further | |
391 | restriction, you may remove that term. If a license document contains | |
392 | a further restriction but permits relicensing or conveying under this | |
393 | License, you may add to a covered work material governed by the terms | |
394 | of that license document, provided that the further restriction does | |
395 | not survive such relicensing or conveying. | |
396 | ||
397 | If you add terms to a covered work in accord with this section, you | |
398 | must place, in the relevant source files, a statement of the | |
399 | additional terms that apply to those files, or a notice indicating | |
400 | where to find the applicable terms. | |
401 | ||
402 | Additional terms, permissive or non-permissive, may be stated in the | |
403 | form of a separately written license, or stated as exceptions; | |
404 | the above requirements apply either way. | |
405 | ||
406 | 8. Termination. | |
407 | ||
408 | You may not propagate or modify a covered work except as expressly | |
409 | provided under this License. Any attempt otherwise to propagate or | |
410 | modify it is void, and will automatically terminate your rights under | |
411 | this License (including any patent licenses granted under the third | |
412 | paragraph of section 11). | |
413 | ||
414 | However, if you cease all violation of this License, then your | |
415 | license from a particular copyright holder is reinstated (a) | |
416 | provisionally, unless and until the copyright holder explicitly and | |
417 | finally terminates your license, and (b) permanently, if the copyright | |
418 | holder fails to notify you of the violation by some reasonable means | |
419 | prior to 60 days after the cessation. | |
420 | ||
421 | Moreover, your license from a particular copyright holder is | |
422 | reinstated permanently if the copyright holder notifies you of the | |
423 | violation by some reasonable means, this is the first time you have | |
424 | received notice of violation of this License (for any work) from that | |
425 | copyright holder, and you cure the violation prior to 30 days after | |
426 | your receipt of the notice. | |
427 | ||
428 | Termination of your rights under this section does not terminate the | |
429 | licenses of parties who have received copies or rights from you under | |
430 | this License. If your rights have been terminated and not permanently | |
431 | reinstated, you do not qualify to receive new licenses for the same | |
432 | material under section 10. | |
433 | ||
434 | 9. Acceptance Not Required for Having Copies. | |
435 | ||
436 | You are not required to accept this License in order to receive or | |
437 | run a copy of the Program. Ancillary propagation of a covered work | |
438 | occurring solely as a consequence of using peer-to-peer transmission | |
439 | to receive a copy likewise does not require acceptance. However, | |
440 | nothing other than this License grants you permission to propagate or | |
441 | modify any covered work. These actions infringe copyright if you do | |
442 | not accept this License. Therefore, by modifying or propagating a | |
443 | covered work, you indicate your acceptance of this License to do so. | |
444 | ||
445 | 10. Automatic Licensing of Downstream Recipients. | |
446 | ||
447 | Each time you convey a covered work, the recipient automatically | |
448 | receives a license from the original licensors, to run, modify and | |
449 | propagate that work, subject to this License. You are not responsible | |
450 | for enforcing compliance by third parties with this License. | |
451 | ||
452 | An "entity transaction" is a transaction transferring control of an | |
453 | organization, or substantially all assets of one, or subdividing an | |
454 | organization, or merging organizations. If propagation of a covered | |
455 | work results from an entity transaction, each party to that | |
456 | transaction who receives a copy of the work also receives whatever | |
457 | licenses to the work the party's predecessor in interest had or could | |
458 | give under the previous paragraph, plus a right to possession of the | |
459 | Corresponding Source of the work from the predecessor in interest, if | |
460 | the predecessor has it or can get it with reasonable efforts. | |
461 | ||
462 | You may not impose any further restrictions on the exercise of the | |
463 | rights granted or affirmed under this License. For example, you may | |
464 | not impose a license fee, royalty, or other charge for exercise of | |
465 | rights granted under this License, and you may not initiate litigation | |
466 | (including a cross-claim or counterclaim in a lawsuit) alleging that | |
467 | any patent claim is infringed by making, using, selling, offering for | |
468 | sale, or importing the Program or any portion of it. | |
469 | ||
470 | 11. Patents. | |
471 | ||
472 | A "contributor" is a copyright holder who authorizes use under this | |
473 | License of the Program or a work on which the Program is based. The | |
474 | work thus licensed is called the contributor's "contributor version". | |
475 | ||
476 | A contributor's "essential patent claims" are all patent claims | |
477 | owned or controlled by the contributor, whether already acquired or | |
478 | hereafter acquired, that would be infringed by some manner, permitted | |
479 | by this License, of making, using, or selling its contributor version, | |
480 | but do not include claims that would be infringed only as a | |
481 | consequence of further modification of the contributor version. For | |
482 | purposes of this definition, "control" includes the right to grant | |
483 | patent sublicenses in a manner consistent with the requirements of | |
484 | this License. | |
485 | ||
486 | Each contributor grants you a non-exclusive, worldwide, royalty-free | |
487 | patent license under the contributor's essential patent claims, to | |
488 | make, use, sell, offer for sale, import and otherwise run, modify and | |
489 | propagate the contents of its contributor version. | |
490 | ||
491 | In the following three paragraphs, a "patent license" is any express | |
492 | agreement or commitment, however denominated, not to enforce a patent | |
493 | (such as an express permission to practice a patent or covenant not to | |
494 | sue for patent infringement). To "grant" such a patent license to a | |
495 | party means to make such an agreement or commitment not to enforce a | |
496 | patent against the party. | |
497 | ||
498 | If you convey a covered work, knowingly relying on a patent license, | |
499 | and the Corresponding Source of the work is not available for anyone | |
500 | to copy, free of charge and under the terms of this License, through a | |
501 | publicly available network server or other readily accessible means, | |
502 | then you must either (1) cause the Corresponding Source to be so | |
503 | available, or (2) arrange to deprive yourself of the benefit of the | |
504 | patent license for this particular work, or (3) arrange, in a manner | |
505 | consistent with the requirements of this License, to extend the patent | |
506 | license to downstream recipients. "Knowingly relying" means you have | |
507 | actual knowledge that, but for the patent license, your conveying the | |
508 | covered work in a country, or your recipient's use of the covered work | |
509 | in a country, would infringe one or more identifiable patents in that | |
510 | country that you have reason to believe are valid. | |
511 | ||
512 | If, pursuant to or in connection with a single transaction or | |
513 | arrangement, you convey, or propagate by procuring conveyance of, a | |
514 | covered work, and grant a patent license to some of the parties | |
515 | receiving the covered work authorizing them to use, propagate, modify | |
516 | or convey a specific copy of the covered work, then the patent license | |
517 | you grant is automatically extended to all recipients of the covered | |
518 | work and works based on it. | |
519 | ||
520 | A patent license is "discriminatory" if it does not include within | |
521 | the scope of its coverage, prohibits the exercise of, or is | |
522 | conditioned on the non-exercise of one or more of the rights that are | |
523 | specifically granted under this License. You may not convey a covered | |
524 | work if you are a party to an arrangement with a third party that is | |
525 | in the business of distributing software, under which you make payment | |
526 | to the third party based on the extent of your activity of conveying | |
527 | the work, and under which the third party grants, to any of the | |
528 | parties who would receive the covered work from you, a discriminatory | |
529 | patent license (a) in connection with copies of the covered work | |
530 | conveyed by you (or copies made from those copies), or (b) primarily | |
531 | for and in connection with specific products or compilations that | |
532 | contain the covered work, unless you entered into that arrangement, | |
533 | or that patent license was granted, prior to 28 March 2007. | |
534 | ||
535 | Nothing in this License shall be construed as excluding or limiting | |
536 | any implied license or other defenses to infringement that may | |
537 | otherwise be available to you under applicable patent law. | |
538 | ||
539 | 12. No Surrender of Others' Freedom. | |
540 | ||
541 | If conditions are imposed on you (whether by court order, agreement or | |
542 | otherwise) that contradict the conditions of this License, they do not | |
543 | excuse you from the conditions of this License. If you cannot convey a | |
544 | covered work so as to satisfy simultaneously your obligations under this | |
545 | License and any other pertinent obligations, then as a consequence you may | |
546 | not convey it at all. For example, if you agree to terms that obligate you | |
547 | to collect a royalty for further conveying from those to whom you convey | |
548 | the Program, the only way you could satisfy both those terms and this | |
549 | License would be to refrain entirely from conveying the Program. | |
550 | ||
551 | 13. Use with the GNU Affero General Public License. | |
552 | ||
553 | Notwithstanding any other provision of this License, you have | |
554 | permission to link or combine any covered work with a work licensed | |
555 | under version 3 of the GNU Affero General Public License into a single | |
556 | combined work, and to convey the resulting work. The terms of this | |
557 | License will continue to apply to the part which is the covered work, | |
558 | but the special requirements of the GNU Affero General Public License, | |
559 | section 13, concerning interaction through a network will apply to the | |
560 | combination as such. | |
561 | ||
562 | 14. Revised Versions of this License. | |
563 | ||
564 | The Free Software Foundation may publish revised and/or new versions of | |
565 | the GNU General Public License from time to time. Such new versions will | |
566 | be similar in spirit to the present version, but may differ in detail to | |
567 | address new problems or concerns. | |
568 | ||
569 | Each version is given a distinguishing version number. If the | |
570 | Program specifies that a certain numbered version of the GNU General | |
571 | Public License "or any later version" applies to it, you have the | |
572 | option of following the terms and conditions either of that numbered | |
573 | version or of any later version published by the Free Software | |
574 | Foundation. If the Program does not specify a version number of the | |
575 | GNU General Public License, you may choose any version ever published | |
576 | by the Free Software Foundation. | |
577 | ||
578 | If the Program specifies that a proxy can decide which future | |
579 | versions of the GNU General Public License can be used, that proxy's | |
580 | public statement of acceptance of a version permanently authorizes you | |
581 | to choose that version for the Program. | |
582 | ||
583 | Later license versions may give you additional or different | |
584 | permissions. However, no additional obligations are imposed on any | |
585 | author or copyright holder as a result of your choosing to follow a | |
586 | later version. | |
587 | ||
588 | 15. Disclaimer of Warranty. | |
589 | ||
590 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | |
591 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | |
592 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | |
593 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | |
594 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
595 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | |
596 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | |
597 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | |
598 | ||
599 | 16. Limitation of Liability. | |
600 | ||
601 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
602 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | |
603 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | |
604 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | |
605 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | |
606 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | |
607 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | |
608 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | |
609 | SUCH DAMAGES. | |
610 | ||
611 | 17. Interpretation of Sections 15 and 16. | |
612 | ||
613 | If the disclaimer of warranty and limitation of liability provided | |
614 | above cannot be given local legal effect according to their terms, | |
615 | reviewing courts shall apply local law that most closely approximates | |
616 | an absolute waiver of all civil liability in connection with the | |
617 | Program, unless a warranty or assumption of liability accompanies a | |
618 | copy of the Program in return for a fee. | |
619 | ||
620 | END OF TERMS AND CONDITIONS | |
621 | ||
622 | How to Apply These Terms to Your New Programs | |
623 | ||
624 | If you develop a new program, and you want it to be of the greatest | |
625 | possible use to the public, the best way to achieve this is to make it | |
626 | free software which everyone can redistribute and change under these terms. | |
627 | ||
628 | To do so, attach the following notices to the program. It is safest | |
629 | to attach them to the start of each source file to most effectively | |
630 | state the exclusion of warranty; and each file should have at least | |
631 | the "copyright" line and a pointer to where the full notice is found. | |
632 | ||
633 | <one line to give the program's name and a brief idea of what it does.> | |
634 | Copyright (C) <year> <name of author> | |
635 | ||
636 | This program is free software: you can redistribute it and/or modify | |
637 | it under the terms of the GNU General Public License as published by | |
638 | the Free Software Foundation, either version 3 of the License, or | |
639 | (at your option) any later version. | |
640 | ||
641 | This program is distributed in the hope that it will be useful, | |
642 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
643 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
644 | GNU General Public License for more details. | |
645 | ||
646 | You should have received a copy of the GNU General Public License | |
647 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
648 | ||
649 | Also add information on how to contact you by electronic and paper mail. | |
650 | ||
651 | If the program does terminal interaction, make it output a short | |
652 | notice like this when it starts in an interactive mode: | |
653 | ||
654 | <program> Copyright (C) <year> <name of author> | |
655 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
656 | This is free software, and you are welcome to redistribute it | |
657 | under certain conditions; type `show c' for details. | |
658 | ||
659 | The hypothetical commands `show w' and `show c' should show the appropriate | |
660 | parts of the General Public License. Of course, your program's commands | |
661 | might be different; for a GUI interface, you would use an "about box". | |
662 | ||
663 | You should also get your employer (if you work as a programmer) or school, | |
664 | if any, to sign a "copyright disclaimer" for the program, if necessary. | |
665 | For more information on this, and how to apply and follow the GNU GPL, see | |
666 | <http://www.gnu.org/licenses/>. | |
667 | ||
668 | The GNU General Public License does not permit incorporating your program | |
669 | into proprietary programs. If your program is a subroutine library, you | |
670 | may consider it more useful to permit linking proprietary applications with | |
671 | the library. If this is what you want to do, use the GNU Lesser General | |
672 | Public License instead of this License. But first, please read | |
673 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. | |
674 | ||
160 | If the Library as you received it specifies that a proxy can decide | |
161 | whether future versions of the GNU Lesser General Public License shall | |
162 | apply, that proxy's public statement of acceptance of any version is | |
163 | permanent authorization for you to choose that version for the | |
164 | Library. |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | ||
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dapplicationsettings.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DAPPLICATIONSETTINGS_H |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#0031A7" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#0172FF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="4" height="20" viewBox="0 0 4 20"> | |
1 | <defs> | |
2 | <linearGradient id="shadow_dark-a" x1="50%" x2="50%" y1="0%" y2="100%"> | |
3 | <stop offset="0%" stop-opacity=".1"/> | |
4 | <stop offset="100%" stop-opacity="0"/> | |
5 | </linearGradient> | |
6 | </defs> | |
7 | <rect width="4" height="20" fill="url(#shadow_dark-a)" fill-rule="evenodd"/> | |
8 | </svg> |
0 | <RCC> | |
1 | <qresource prefix="/icons/deepin/builtin"> | |
2 | <file>dark/texts/titlebar_shadow_20px.svg</file> | |
3 | <file>light/texts/titlebar_shadow_20px.svg</file> | |
4 | <file>dark/icons/water_front_383px.svg</file> | |
5 | <file>dark/icons/water_back_383px.svg</file> | |
6 | <file>light/icons/water_back_383px.svg</file> | |
7 | <file>light/icons/water_front_383px.svg</file> | |
8 | </qresource> | |
9 | </RCC> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#007DFF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#01C4FF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="4" height="20" viewBox="0 0 4 20"> | |
1 | <defs> | |
2 | <linearGradient id="shadow_light-a" x1="50%" x2="50%" y1="0%" y2="100%"> | |
3 | <stop offset="0%" stop-opacity=".03"/> | |
4 | <stop offset="100%" stop-opacity="0"/> | |
5 | </linearGradient> | |
6 | </defs> | |
7 | <rect width="4" height="20" x="945" y="3465" fill="url(#shadow_light-a)" fill-rule="evenodd" transform="translate(-945 -3465)"/> | |
8 | </svg> |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | <?xml version="1.0" encoding="UTF-8"?> | |
1 | <svg width="84px" height="22px" viewBox="0 0 84 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
2 | <!-- Generator: Sketch 47 (45396) - http://www.bohemiancoding.com/sketch --> | |
3 | <title>logo</title> | |
4 | <desc>Created with Sketch.</desc> | |
5 | <defs> | |
6 | <path d="M33,17.5 C33,18.0522847 32.5522847,18.5 32,18.5 L20,18.5 C18.3431458,18.5 17,17.1568542 17,15.5 L17,8.5 C17,6.84314575 18.3431458,5.5 20,5.5 L30,5.5 C31.6568542,5.5 33,6.84314575 33,8.5 L33,11.5 C33,12.6045695 32.1045695,13.5 31,13.5 L20,13.5 L20,14.5 C20,15.0522847 20.4477153,15.5 21,15.5 L32,15.5 C32.5522847,15.5 33,15.9477153 33,16.5 L33,17.5 Z M20,10.5 L30,10.5 L30,9.5 C30,8.94771525 29.5522847,8.5 29,8.5 L21,8.5 C20.4477153,8.5 20,8.94771525 20,9.5 L20,10.5 Z M50,17.5 C50,18.0522847 49.5522847,18.5 49,18.5 L37,18.5 C35.3431458,18.5 34,17.1568542 34,15.5 L34,8.5 C34,6.84314575 35.3431458,5.5 37,5.5 L47,5.5 C48.6568542,5.5 50,6.84314575 50,8.5 L50,11.5 C50,12.6045695 49.1045695,13.5 48,13.5 L37,13.5 L37,14.5 C37,15.0522847 37.4477153,15.5 38,15.5 L49,15.5 C49.5522847,15.5 50,15.9477153 50,16.5 L50,17.5 Z M37,10.5 L47,10.5 L47,9.5 C47,8.94771525 46.5522847,8.5 46,8.5 L38,8.5 C37.4477153,8.5 37,8.94771525 37,9.5 L37,10.5 Z M13,1.5 C13,0.94771525 13.4477153,0.5 14,0.5 L15,0.5 C15.5522847,0.5 16,0.94771525 16,1.5 L16,15.4954909 L15.9999991,15.4977945 C15.9987269,17.154649 14.6545496,18.4967637 12.997695,18.4954916 C10.9745434,18.4939366 8.97531169,18.4954399 7,18.5 C1.8507234,18.4990282 0.949838892,14 0.98925278,11.6230863 C1.02866667,9.2461725 1.82860104,5.87172012 7,5.5 L13,5.5 L13,1.5 L13,1.5 Z M8,15.5 C9.28806802,15.5025835 11.9548972,15.4974343 13,15.5 C12.9999856,14.6980339 12.9999856,8.50472002 13,8.5 C12.9999856,8.50472002 9.0195314,8.5 8,8.5 C6.23196093,8.5 3.94002055,9.36853572 3.9415228,12.0003738 C3.94252556,14.6862866 6.01051842,15.4944307 8,15.5 Z M67,2.5 L67,1.5 C67,0.94771525 67.4477153,0.5 68,0.5 L69,0.5 C69.5522847,0.5 70,0.94771525 70,1.5 L70,2.5 C70,3.05228475 69.5522847,3.5 69,3.5 L68,3.5 C67.4477153,3.5 67,3.05228475 67,2.5 Z M67,17.5 L67,6.5 C67,5.94771525 67.4477153,5.5 68,5.5 L69,5.5 C69.5522847,5.5 70,5.94771525 70,6.5 L70,17.5 C70,18.0522847 69.5522847,18.5 69,18.5 L68,18.5 C67.4477153,18.5 67,18.0522847 67,17.5 Z M71,5.5 C71,5.50104434 73.6667062,5.50126942 79.0001185,5.50067544 L79.0006754,5.50067541 C81.7617261,5.50067541 84,7.73894927 84,10.5 L84,17.5 C84,18.0522847 83.5522847,18.5 83,18.5 L82,18.5 C81.4477153,18.5 81,18.0522847 81,17.5 L81,10.5 C81,9.3954305 80.1045695,8.5 79,8.5 L74,8.5 L74,17.5 C74.014,17.9746328 74.034,18.5771509 73,18.5 C72.856,18.480728 72.0875,18.483226 72,18.5 C71.145,18.543178 71,18.2089454 71,17.5 L71,5.5 Z M54,21.5 C54,22.0522847 53.5522847,22.5 53,22.5 L52,22.5 C51.4477153,22.5 51,22.0522847 51,21.5 L51,7.5 C51,6.3954305 51.8954305,5.5 53,5.5 L60,5.5 C63.3137085,5.5 66,8.1862915 66,11.5 L66,12.5 C66,15.8137085 63.3137085,18.5 60,18.5 L54,18.5 L54,21.5 L54,21.5 Z M63,11.5 C63,9.84314575 61.6568542,8.5 60,8.5 L54,8.5 L54,15.5 L60,15.5 C61.6568542,15.5 63,14.1568542 63,12.5 L63,11.5 L63,11.5 Z" id="path-1"></path> | |
7 | </defs> | |
8 | <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | |
9 | <g id="logo"> | |
10 | <g id="Imported-Layers" transform="translate(0.000000, -0.500000)"> | |
11 | <mask id="mask-2" fill="white"> | |
12 | <use xlink:href="#path-1"></use> | |
13 | </mask> | |
14 | <use id="Mask" fill="#3EA9FD" xlink:href="#path-1"></use> | |
15 | <path d="M7.65749136,15.5 C9.58466555,15.4945 13,15.5 13,15.5 C12.9768237,17.1997386 12.7975455,18.49 11.1687333,18.49 C10.2265576,18.487 10.0293563,18.4875 7.11278663,18.49 C4.73496239,18.4925 2.78960434,17.5449405 2.12962858,15.7269405 C0.334500518,8.82637351 7.57598403,8.49983387 7.57598403,8.49983387 C6.1760507,8.49983387 4.0684202,9.53245185 3.98202423,11.7291884 C3.86026384,14.8251141 6.2938413,15.485 7.65749136,15.5 Z M59.511242,15.5 C60.874892,15.485 63.1336046,14.9737305 63.02421,11.7291884 C62.9501319,9.53210178 60.9926826,8.49983387 59.5927493,8.49983387 C59.5927493,8.49983387 66.8342328,8.82637351 65.0391047,15.7269405 C64.379129,17.5449405 62.4337709,18.4925 60.0559467,18.49 C57.139377,18.4875 54,18.49 54,18.49 C54,18.49 54.0231763,17.1997386 54,15.5 C54,15.5 57.5840678,15.4945 59.511242,15.5 Z M20,14.5 C20,15.0522847 20.4477153,15.5 21,15.5 L32,15.5 C32.5522847,15.5 33,15.9477153 33,16.5 L33,17.4995 C33,18.0517847 32.5522847,18.4995 32,18.4995 L22.9341333,18.4995 C20.9005495,18.4995 19.9225051,16.833 20,13.5 L20,14.5 Z M37,14.5 C37,15.0522847 37.4477153,15.5 38,15.5 L49,15.5 C49.5522847,15.5 50,15.9477153 50,16.5 L50,17.4995 C50,18.0517847 49.5522847,18.4995 49,18.4995 L39.9341333,18.4995 C37.9005495,18.4995 36.9225051,16.833 37,13.5 L37,14.5 Z M66.8969697,5.5 L70,5.5 L70,12.0126196 C70,7.61561959 66.8969697,5.5 66.8969697,5.5 Z M69.8068862,3.5 L67.5613772,3.5 C67.251497,3.5 67,3.22430769 67,2.88461538 L67,0.5 C67,0.5 67.3755614,3.10061538 70,3.45692308 C69.9393713,3.48153846 69.8753743,3.5 69.8068862,3.5 Z M81,11.5 C81,9.4845 79.5181212,8.575 79,8.5 C79,8.5 84,8.4455 84,11.69 L84,17.5 C84,18.0522847 83.5522847,18.5 83,18.5 L82,18.5 C81.4477153,18.5 81,18.0522847 81,17.5 L81,11.5 Z" id="Combined-Shape" fill="#2659B8" mask="url(#mask-2)"></path> | |
16 | </g> | |
17 | </g> | |
18 | </g> | |
19 | </svg>⏎ |
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M13,1.21455591 C13,0.112089413 13.7703795,-0.318305698 14.7206907,0.25188105 L14.7206907,0.25188105 L26.2793093,7.18705218 C27.2355257,7.76078205 27.2296205,8.6816943 26.2793093,9.25188105 L26.2793093,9.25188105 L14.7206907,16.1870522 C13.7644743,16.7607821 13,16.3262347 13,15.2243773 L13,15.2243773 L13,9.418 L1.72069073,16.1870522 C0.804316625,16.7368766 0.0640390751,16.3606965 0.00394020656,15.3586093 L8.1428837e-15,15.2243773 L1.01504972e-15,1.21455591 C4.54143342e-16,0.112089413 0.770379479,-0.318305698 1.72069073,0.25188105 L1.72069073,0.25188105 L13,7.02 Z" transform="translate(11 16)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M4.99408095,0 C6.10191945,0 7,0.897026226 7,2.00494659 L7,21.9950534 C7,23.1023548 6.11344516,24 4.99408095,24 L2.00591905,24 C0.898080551,24 3.88578059e-16,23.1029738 3.88578059e-16,21.9950534 L3.88578059e-16,2.00494659 C3.88578059e-16,0.897645164 0.886554837,0 2.00591905,0 L4.99408095,0 Z M17.9940809,0 C19.1019194,0 20,0.897026226 20,2.00494659 L20,21.9950534 C20,23.1023548 19.1134452,24 17.9940809,24 L15.0059191,24 C13.8980806,24 13,23.1029738 13,21.9950534 L13,2.00494659 C13,0.897645164 13.8865548,0 15.0059191,0 L17.9940809,0 Z" transform="translate(14 12)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M24,17.2145559 C24,16.1120894 24.7703795,15.6816943 25.7206907,16.2518811 L25.7206907,16.2518811 L37.2793093,23.1870522 C38.2355257,23.7607821 38.2296205,24.6816943 37.2793093,25.2518811 L37.2793093,25.2518811 L25.7206907,32.1870522 C24.7644743,32.7607821 24,32.3262347 24,31.2243773 L24,31.2243773 L24,25.418 L12.7206907,32.1870522 C11.8043166,32.7368766 11.0640391,32.3606965 11.0039402,31.3586093 L11,31.2243773 L11,17.2145559 C11,16.1120894 11.7703795,15.6816943 12.7206907,16.2518811 L12.7206907,16.2518811 L24,23.02 Z" transform="matrix(-1 0 0 1 48.994 0)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M11.6768872,5.57982651 L20.9915151,19.9100233 C21.5934927,20.8361425 21.3307239,22.0749097 20.4046046,22.6768872 C20.0801841,22.8877606 19.7015597,23 19.3146279,23 L0.685372088,23 C-0.419197411,23 -1.31462791,22.1045695 -1.31462791,21 C-1.31462791,20.6130682 -1.20238848,20.2344438 -0.991515144,19.9100233 L8.32311277,5.57982651 C8.92509028,4.65370727 10.1638575,4.39093847 11.0899767,4.99291598 C11.3245031,5.14535817 11.524445,5.34530007 11.6768872,5.57982651 Z" transform="rotate(90 12.5 26.5)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="78" height="23" viewBox="0 0 78 23"> | |
1 | <defs> | |
2 | <linearGradient id="关于-a" x1="0%" x2="100%" y1="45.653%" y2="54.347%"> | |
3 | <stop offset="0%" stop-color="#0071FF"/> | |
4 | <stop offset="21.078%" stop-color="#00FBFF" stop-opacity=".755"/> | |
5 | <stop offset="45.882%" stop-color="#006CFF" stop-opacity=".918"/> | |
6 | <stop offset="71.851%" stop-color="#00FCA7"/> | |
7 | <stop offset="100%" stop-color="#00A2FF"/> | |
8 | </linearGradient> | |
9 | </defs> | |
10 | <path fill="url(#关于-a)" d="M21.5,0 C22.3284271,0 23,0.671572875 23,1.5 L23,1.5 L23,11.5 C23,17.8512746 17.8512746,23 11.5,23 C5.14872538,23 0,17.8512746 0,11.5 L0,11.5 L0,1.5 C0,0.671572875 0.671572875,0 1.5,0 C2.32842712,0 3,0.671572875 3,1.5 L3,1.5 L3,11.5 C3,16.1944204 6.80557963,20 11.5,20 C16.1944204,20 20,16.1944204 20,11.5 L20,11.5 L20,1.5 C20,0.671572875 20.6715729,0 21.5,0 Z M42,0 C47.2467051,0 51.5,4.25329488 51.5,9.5 L51.5,13.5 C51.5,18.7467051 47.2467051,23 42,23 L38,23 C32.7532949,23 28.5,18.7467051 28.5,13.5 L28.5,9.5 C28.5,4.25329488 32.7532949,0 38,0 L42,0 Z M75.5,0 C76.3284271,0 77,0.671572875 77,1.5 C77,2.32842712 76.3284271,3 75.5,3 L75.5,3 L62.5,3 C60.5670034,3 59,4.56700338 59,6.5 C59,8.43299662 60.5670034,10 62.5,10 L62.5,10 L71.5,10 C75.0898509,10 78,12.9101491 78,16.5 C78,20.0898509 75.0898509,23 71.5,23 L71.5,23 L58.5,23 C57.6715729,23 57,22.3284271 57,21.5 C57,20.6715729 57.6715729,20 58.5,20 L58.5,20 L71.5,20 C73.4329966,20 75,18.4329966 75,16.5 C75,14.5670034 73.4329966,13 71.5,13 L71.5,13 L62.5,13 C58.9101491,13 56,10.0898509 56,6.5 C56,2.91014913 58.9101491,0 62.5,0 L62.5,0 Z M42,3 L38,3 C34.4101491,3 31.5,5.91014913 31.5,9.5 L31.5,13.5 C31.5,17.0898509 34.4101491,20 38,20 L42,20 C45.5898509,20 48.5,17.0898509 48.5,13.5 L48.5,9.5 C48.5,5.91014913 45.5898509,3 42,3 Z"/> | |
11 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#007DFF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#01C4FF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
162 | 162 | |
163 | 163 | void DAboutDialogPrivate::loadDistributionInfo() |
164 | 164 | { |
165 | logoPath = DSysInfo::distributionOrgLogo(DSysInfo::Distribution, DSysInfo::Light, ":/images/deepin-logo.svg"); | |
165 | logoPath = DSysInfo::distributionOrgLogo(DSysInfo::Distribution, DSysInfo::Light, ":/assets/images/deepin-logo.svg"); | |
166 | 166 | auto websiteInfo = DSysInfo::distributionOrgWebsite(DSysInfo::Distribution); // will always return a valid result. |
167 | 167 | websiteName = websiteInfo.first; |
168 | 168 | websiteLink = websiteInfo.second; |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: ck <chenke@uniontech.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | |
32 | 32 | : DObjectPrivate(q) |
33 | 33 | { |
34 | 34 | alertColor = q->defaultAlertColor(); |
35 | QObject::connect(&timer, &QTimer::timeout, q, &DAlertControl::hideAlertMessage); | |
35 | 36 | } |
36 | 37 | |
37 | 38 | void DAlertControlPrivate::updateTooltipPos() |
231 | 232 | if (duration < 0) |
232 | 233 | return; |
233 | 234 | |
234 | QTimer::singleShot(duration, this, &DAlertControl::hideAlertMessage); | |
235 | d->timer.start(duration); | |
235 | 236 | } |
236 | 237 | |
237 | 238 | /*! |
5 | 5 | * Maintainer: ck <chenke@uniontech.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
2 | 2 | * |
3 | 3 | * Author: kirigaya <kirigaya@mkacg.com> |
4 | 4 | * This program is free software: you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | |
5 | * it under the terms of the GNU Lesser General Public License as published by | |
6 | 6 | * the Free Software Foundation, either version 3 of the License, or |
7 | 7 | * any later version. |
8 | 8 | * |
11 | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | * GNU General Public License for more details. |
13 | 13 | * |
14 | * You should have received a copy of the GNU General Public License | |
14 | * You should have received a copy of the GNU Lesser General Public License | |
15 | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | */ |
17 | 17 |
2 | 2 | * |
3 | 3 | * Author: kirigaya <kirigaya@mkacg.com> |
4 | 4 | * This program is free software: you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | |
5 | * it under the terms of the GNU Lesser General Public License as published by | |
6 | 6 | * the Free Software Foundation, either version 3 of the License, or |
7 | 7 | * any later version. |
8 | 8 | * |
11 | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | * GNU General Public License for more details. |
13 | 13 | * |
14 | * You should have received a copy of the GNU General Public License | |
14 | * You should have received a copy of the GNU Lesser General Public License | |
15 | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | */ |
17 | 17 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
91 | 91 | }; |
92 | 92 | QObject::connect(monitor, &StartupNotificationMonitor::appStartup, |
93 | 93 | q, [this, q, cancelNotification](const QString id) { |
94 | // FIX bug start app quikly cursor will not restore... | |
95 | // Every setOverrideCursor() must eventually be followed by a corresponding restoreOverrideCursor(), | |
96 | // otherwise the stack will never be emptied. | |
97 | if (m_monitoredStartupApps.isEmpty()) { | |
98 | q->setOverrideCursor(Qt::WaitCursor); | |
99 | } | |
94 | 100 | m_monitoredStartupApps.append(id); |
95 | q->setOverrideCursor(Qt::WaitCursor); | |
96 | // Set a timeout of 15s in case that some apps like pamac-tray started | |
101 | // Set a timeout of 5s in case that some apps like pamac-tray started | |
97 | 102 | // with StartupNotify but don't show a window after startup finished. |
98 | QTimer::singleShot(15 * 1000, q, [id, cancelNotification](){ | |
103 | QTimer::singleShot(5 * 1000, q, [id, cancelNotification](){ | |
99 | 104 | cancelNotification(id); |
100 | 105 | }); |
101 | 106 | }); |
111 | 116 | if (m_localServer) { |
112 | 117 | m_localServer->close(); |
113 | 118 | } |
119 | ||
120 | while (q_func()->overrideCursor()) { | |
121 | q_func()->restoreOverrideCursor(); | |
122 | } | |
123 | ||
114 | 124 | } |
115 | 125 | |
116 | 126 | QString DApplicationPrivate::theme() const |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dapplicationhelper.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DAPPLICATIONHELPER_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "darrowlinedrawer.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DARROWLINEDRAWER_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
1087 | 1087 | } |
1088 | 1088 | |
1089 | 1089 | if (DApplication::isDXcbPlatform() && (DArrowRectangle::FloatWindow == floatMode)) { |
1090 | m_handle = new DPlatformWindowHandle(q); | |
1090 | m_handle = new DPlatformWindowHandle(q, q); | |
1091 | 1091 | m_handle->setTranslucentBackground(true); |
1092 | 1092 | |
1093 | 1093 | m_blurBackground = new DBlurEffectWidget(q); |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
146 | 146 | |
147 | 147 | int maskAlpha = this->getMaskColorAlpha(); |
148 | 148 | |
149 | if (!isBehindWindowBlendMode()) { | |
149 | if (!isBehindWindowBlendMode() || DWindowManagerHelper::instance()->hasComposite()) { | |
150 | 150 | color.setAlpha(maskAlpha); |
151 | } else if (DWindowManagerHelper::instance()->hasComposite()) { | |
152 | color.setAlpha(DWindowManagerHelper::instance()->hasBlurWindow() ? maskAlpha : MASK_COLOR_ALPHA_DEFAULT); | |
153 | 151 | } else { |
154 | 152 | return ct == DGuiApplicationHelper::DarkType ? "#202020" : "#D2D2D2"; |
155 | 153 | } |
172 | 170 | maskColor = color; |
173 | 171 | |
174 | 172 | if (isBehindWindowBlendMode()) { |
175 | maskColor.setAlpha(DWindowManagerHelper::instance()->hasBlurWindow() ? getMaskColorAlpha() : MASK_COLOR_ALPHA_DEFAULT); | |
173 | maskColor.setAlpha(DWindowManagerHelper::instance()->hasComposite() ? getMaskColorAlpha() : MASK_COLOR_ALPHA_DEFAULT); | |
176 | 174 | } |
177 | 175 | |
178 | 176 | D_Q(DBlurEffectWidget); |
1188 | 1186 | return; |
1189 | 1187 | } |
1190 | 1188 | |
1191 | QImage tmp(image.size(), image.format()); | |
1192 | QPainter pa(&tmp); | |
1193 | qt_blurImage(&pa, image, blurRadius, false, false); | |
1194 | pa.end(); | |
1195 | ||
1196 | d->blurPixmap = QPixmap::fromImage(tmp); | |
1189 | ||
1190 | if (blurRadius > 0) { | |
1191 | QImage tmp(image.size(), image.format()); | |
1192 | QPainter pa(&tmp); | |
1193 | qt_blurImage(&pa, image, blurRadius, false, false); | |
1194 | pa.end(); | |
1195 | d->blurPixmap = QPixmap::fromImage(tmp); | |
1196 | } else { | |
1197 | d->blurPixmap = QPixmap::fromImage(image); | |
1198 | } | |
1199 | ||
1197 | 1200 | d->blurPixmap.setDevicePixelRatio(image.devicePixelRatio()); |
1198 | 1201 | |
1199 | 1202 | // 重绘制模糊控件 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dbuttonbox.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DBUTTONBOX_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: Chris Xiong <chirs241097@gmail.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: Chris Xiong <chirs241097@gmail.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dcrumbedit.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DCRUMBEDIT_H |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
948 | 948 | |
949 | 949 | /*! |
950 | 950 | * \~chinese \brief 设置对话框图标 |
951 | * | |
952 | * \~chinese 注意:该接口将会在未来版本中废弃, | |
953 | * 请使用 setIcon(const QIcon &icon, const QSize &expectedSize) 这个重载。 | |
954 | 951 | */ |
955 | 952 | void DDialog::setIcon(const QIcon &icon) |
956 | 953 | { |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "ddialogclosebutton.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DDIALOGCLOSEBUTTON_H |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "ddrawer.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DDRAWER_H |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "ddrawergroup.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DDRAWERGROUP_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dfloatingbutton.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DFLOATINGBUTTON_H |
5 | 5 | * Maintainer: zhangwengeng <zhangwengeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: zhangwengeng <zhangwengeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: zhangwengeng <zhangwengeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: zhangwengeng <zhangwengeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dframe.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DFRAME_H |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "diconbutton.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DICONBUTTON_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
20 | 20 | #include <QKeyEvent> |
21 | 21 | #include <QDebug> |
22 | 22 | #include <QLabel> |
23 | #include <DFrame> | |
24 | #include <DStyle> | |
23 | 25 | |
24 | 26 | #include "dthememanager.h" |
25 | 27 | #include "dipv4lineedit.h" |
39 | 41 | { |
40 | 42 | D_Q(DIpv4LineEdit); |
41 | 43 | |
42 | editMainWidget = new QWidget(q); | |
44 | // 和子edit保持一致不显示菜单 | |
45 | q->setContextMenuPolicy(Qt::NoContextMenu); | |
46 | // 带圆角的自绘制背景的frame,挡住背后的edit文字 | |
47 | DFrame *frame = new DFrame(q); | |
48 | frame->setFrameRounded(true); | |
49 | frame->setFrameShape(QFrame::NoFrame); | |
50 | editMainWidget = frame; | |
51 | ||
52 | editMainWidget->setBackgroundRole(QPalette::Button); | |
53 | editMainWidget->setAutoFillBackground(true); | |
43 | 54 | |
44 | 55 | QHBoxLayout *hbox_layout = new QHBoxLayout; |
45 | 56 | |
84 | 95 | edit->setAttribute(Qt::WA_InputMethodEnabled, false); |
85 | 96 | edit->setContextMenuPolicy(Qt::NoContextMenu); |
86 | 97 | edit->installEventFilter(q); |
98 | // 禁止绘制子edit的焦点框 | |
99 | edit->setProperty("_d_dtk_noFocusRect", true); | |
87 | 100 | |
88 | 101 | editList << edit; |
89 | 102 | |
101 | 114 | |
102 | 115 | this->focus = focus; |
103 | 116 | |
117 | // 焦点改变时边框重绘一下 | |
118 | q->update(); | |
104 | 119 | Q_EMIT q->focusChanged(focus); |
105 | 120 | } |
106 | 121 | |
406 | 421 | QKeyEvent *event = static_cast<QKeyEvent *>(e); |
407 | 422 | |
408 | 423 | if (event) { |
424 | // 按住shlft+left/right 时选中当前的edit文字,而非移动光标 | |
425 | if (event->modifiers() == Qt::ShiftModifier && | |
426 | (event->key() == Qt::Key_Left || | |
427 | event->key() == Qt::Key_Right)) { | |
428 | return QLineEdit::eventFilter(obj, e); | |
429 | } | |
430 | ||
409 | 431 | D_D(DIpv4LineEdit); |
410 | ||
411 | 432 | if (event->key() <= Qt::Key_9 && event->key() >= Qt::Key_0) { |
412 | 433 | if (edit->cursorPosition() == edit->text().count()) { |
413 | 434 | QRegularExpression rx(RX_PATTERN_IP); |
489 | 510 | return true; |
490 | 511 | } else if (event->key() == Qt::Key_A) { |
491 | 512 | selectAll(); |
492 | } else if (event->key() == Qt::Key_X) { | |
513 | } else if (!selectedText().isEmpty() && event->matches(QKeySequence::Cut)) { | |
493 | 514 | cut(); |
515 | } else if (!selectedText().isEmpty() && event->matches(QKeySequence::Copy)) { | |
516 | copy(); | |
494 | 517 | } else { |
495 | QLineEdit::keyPressEvent(event); | |
518 | return QLineEdit::eventFilter(obj, e); | |
496 | 519 | } |
497 | 520 | |
498 | 521 | return true; |
504 | 527 | QLineEdit *edit = qobject_cast<QLineEdit *>(obj); |
505 | 528 | |
506 | 529 | if (edit) { |
507 | QLineEdit::setCursorPosition(cursorPosition()); | |
530 | // focusProxy 只能设置一个, 所以每次focusIn时设置当前这个edit为FocusProxy吧 | |
531 | setFocusProxy(edit); | |
532 | QLineEdit::setCursorPosition(cursorPosition()); | |
508 | 533 | } |
509 | 534 | |
510 | 535 | d_func()->setFocus(true); |
536 | ||
511 | 537 | } else if (e->type() == QEvent::FocusOut || e->type() == QEvent::MouseButtonPress) { |
512 | 538 | D_D(DIpv4LineEdit); |
513 | 539 | |
536 | 562 | void DIpv4LineEdit::resizeEvent(QResizeEvent *event) |
537 | 563 | { |
538 | 564 | D_D(DIpv4LineEdit); |
539 | d->editMainWidget->resize(event->size()); | |
565 | QSize s = event->size(); | |
566 | QStyleOptionFrame opt; | |
567 | initStyleOption(&opt); | |
568 | int radius = DStyle::pixelMetric(style(), DStyle::PM_FrameRadius, &opt, this); | |
569 | s -= {radius, radius}; | |
570 | d->editMainWidget->resize(s); | |
571 | d->editMainWidget->move(radius / 2, radius / 2); | |
540 | 572 | } |
541 | 573 | |
542 | 574 | DWIDGET_END_NAMESPACE |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
19 | 19 | DKeyLabel(QString text, QWidget *parent = nullptr) |
20 | 20 | : DFrame(parent) |
21 | 21 | { |
22 | label = new DTipLabel(text); | |
22 | label = new DLabel(text); | |
23 | 23 | QVBoxLayout *layout = new QVBoxLayout(this); |
24 | 24 | layout->setContentsMargins(layout->contentsMargins().left(), 0, layout->contentsMargins().right(), 0); |
25 | 25 | layout->setSpacing(0); |
26 | label->setForegroundRole(DPalette::LightLively); | |
26 | label->setForegroundRole(QPalette::Highlight); | |
27 | 27 | layout->addWidget(label); |
28 | 28 | } |
29 | 29 | private: |
30 | DTipLabel *label; | |
30 | DLabel *label; | |
31 | 31 | }; |
32 | 32 | |
33 | 33 | class DKeyWidget : public QWidget |
38 | 38 | { |
39 | 39 | QHBoxLayout *layout = new QHBoxLayout(this); |
40 | 40 | label = new DTipLabel(qApp->translate("DKeySequenceEdit", "Enter a new shortcut")); |
41 | layout->setContentsMargins(layout->contentsMargins().left(), 0, layout->contentsMargins().right(), 0); | |
42 | layout->setAlignment(Qt::AlignVCenter); | |
41 | 43 | |
42 | 44 | layout->addWidget(label); |
43 | 45 | } |
180 | 182 | D_D(DKeySequenceEdit); |
181 | 183 | |
182 | 184 | if (d->rightWidget->isFastMode()) { |
183 | return; | |
185 | return QLineEdit::keyPressEvent(e); | |
184 | 186 | } |
185 | 187 | |
186 | 188 | int nextKey = e->key(); |
252 | 254 | |
253 | 255 | for (QString key : keyList) { |
254 | 256 | DKeyLabel *label = new DKeyLabel(key); |
257 | label->setMinimumHeight(24); | |
255 | 258 | layout()->addWidget(label); |
256 | 259 | labelList.append(label); |
257 | 260 | } |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dlabel.h" |
59 | 59 | |
60 | 60 | } |
61 | 61 | |
62 | /*! | |
63 | * \~chinese \brief DLabel::setForegroundRole 显示的字体颜色 | |
64 | * \~chinese \param role 字体颜色(QPalette::ColorRole) | |
65 | */ | |
62 | 66 | void DLabel::setForegroundRole(QPalette::ColorRole role) |
63 | 67 | { |
64 | 68 | D_D(DLabel); |
77 | 81 | d->color = color; |
78 | 82 | } |
79 | 83 | |
84 | /*! | |
85 | * \~chinese \brief DLabel::setElideMode 设置省略号显示的模式 | |
86 | * \~chinese \param elideMode 省略模式枚举 | |
87 | */ | |
80 | 88 | void DLabel::setElideMode(Qt::TextElideMode elideMode) |
81 | 89 | { |
82 | 90 | D_D(DLabel); |
87 | 95 | update(); |
88 | 96 | } |
89 | 97 | |
98 | /*! | |
99 | * \~chinese \brief DLabel::elideMode 获取省略号的模式 | |
100 | * \~chinese \return 返回省略号的模式 | |
101 | */ | |
90 | 102 | Qt::TextElideMode DLabel::elideMode() const |
91 | 103 | { |
92 | 104 | D_DC(DLabel); |
93 | 105 | return d->elideMode; |
94 | 106 | } |
95 | 107 | |
108 | /*! | |
109 | * \~chinese \brief DLabel::DLabel 构造函数 | |
110 | * \~chinese \param dd 私有类成员变量 | |
111 | * \~chinese \param parent 父控件 | |
112 | */ | |
96 | 113 | DLabel::DLabel(DLabelPrivate &dd, QWidget *parent) |
97 | 114 | : QLabel(parent) |
98 | 115 | , DObject(dd) |
100 | 117 | dd.init(); |
101 | 118 | } |
102 | 119 | |
120 | /*! | |
121 | * \~chinese \brief DLabel::initPainter 初始化 painter | |
122 | * \~chinese \param painter painter 形参 | |
123 | */ | |
103 | 124 | void DLabel::initPainter(QPainter *painter) const |
104 | 125 | { |
105 | 126 | D_DC(DLabel); |
110 | 131 | } |
111 | 132 | } |
112 | 133 | |
134 | /*! | |
135 | * \~chinese \brief DLabel::paintEvent | |
136 | * \~chinese \param event 消息事件 | |
137 | * \~chinese \see 参考 QLabel::paintEvent() | |
138 | */ | |
113 | 139 | void DLabel::paintEvent(QPaintEvent *event) |
114 | 140 | { |
115 | 141 | Q_UNUSED(event) |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DLABEL_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
343 | 343 | d->bSpeechToText = enable; |
344 | 344 | } |
345 | 345 | |
346 | ||
347 | /*! | |
348 | * \~chinese \brief DLineEdit::textToSpeechIsEnabled | |
349 | * \~chinese \return true 显示语音朗读菜单项 false不显示 | |
350 | */ | |
351 | bool DLineEdit::textToSpeechIsEnabled() const | |
352 | { | |
353 | D_D(const DLineEdit); | |
354 | return d->bTextToSpeech; | |
355 | } | |
356 | ||
357 | /*! | |
358 | * \~chinese \brief DLineEdit::setTextToSpeechEnabled 设置是否显示语音朗读菜单项 | |
359 | * \~chinese \param enable true显示 flase不显示 | |
360 | */ | |
361 | void DLineEdit::setTextToSpeechEnabled(bool enable) | |
362 | { | |
363 | D_D(DLineEdit); | |
364 | d->bTextToSpeech = enable; | |
365 | } | |
366 | ||
367 | /*! | |
368 | * \~chinese \brief DLineEdit::textToTranslateIsEnabled | |
369 | * \~chinese \return true 显示文本翻译菜单项 false不显示 | |
370 | */ | |
371 | bool DLineEdit::textToTranslateIsEnabled() const | |
372 | { | |
373 | D_D(const DLineEdit); | |
374 | return d->bTextToTranslate; | |
375 | } | |
376 | ||
377 | /*! | |
378 | * \~chinese \brief DLineEdit::setTextToTranslateEnabled 设置是否显示文本翻译菜单项 | |
379 | * \~chinese \param enable true显示 flase不显示 | |
380 | */ | |
381 | void DLineEdit::setTextToTranslateEnabled(bool enable) | |
382 | { | |
383 | D_D(DLineEdit); | |
384 | d->bTextToTranslate = enable; | |
385 | } | |
346 | 386 | /*! |
347 | 387 | * \~chinese \brief DLineEdit::eventFilter |
348 | 388 | * \~chinese \row 该过滤器不做任何过滤动作,但会监控输入框的焦点状态,并发送信号 focusChanged()。 |
356 | 396 | } else if (event->type() == QEvent::FocusOut) { |
357 | 397 | Q_EMIT focusChanged(false); |
358 | 398 | } else if (watched == lineEdit() && event->type() == QEvent::ContextMenu) { |
359 | if (static_cast<QLineEdit*>(watched)->echoMode() == QLineEdit::Password) { | |
399 | QLineEdit *le = static_cast<QLineEdit *>(watched); | |
400 | if (!le->isEnabled() || le->echoMode() == QLineEdit::Password || | |
401 | (!textToSpeechIsEnabled() && !textToTranslateIsEnabled() && !speechToTextIsEnabled())) { | |
360 | 402 | return QWidget::eventFilter(watched, event); |
361 | 403 | } |
362 | 404 | |
400 | 442 | |
401 | 443 | menu->addSeparator(); |
402 | 444 | |
403 | if (speechReply.value()) { | |
445 | if (speechReply.value() && textToSpeechIsEnabled()) { | |
404 | 446 | QAction *pAction_1 = nullptr; |
405 | 447 | if (readingReply.value()) { |
406 | 448 | pAction_1 = menu->addAction(QCoreApplication::translate("DLineEdit", "Stop reading")); |
427 | 469 | }); |
428 | 470 | } |
429 | 471 | |
430 | if (translateReply.value()) { | |
472 | if (translateReply.value() && textToTranslateIsEnabled()) { | |
431 | 473 | QAction *pAction_2 = menu->addAction(QCoreApplication::translate("DLineEdit", "Translate")); |
432 | 474 | |
433 | 475 | //没有选中文本,则菜单置灰色 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
71 | 71 | bool speechToTextIsEnabled() const; |
72 | 72 | void setSpeechToTextEnabled(bool enable); |
73 | 73 | |
74 | bool textToSpeechIsEnabled() const; | |
75 | void setTextToSpeechEnabled(bool enable); | |
76 | ||
77 | bool textToTranslateIsEnabled() const; | |
78 | void setTextToTranslateEnabled(bool enable); | |
79 | ||
74 | 80 | Q_SIGNALS: |
75 | 81 | void alertChanged(bool alert) const; |
76 | 82 | void focusChanged(bool onFocus) const; |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
103 | 103 | |
104 | 104 | if (!help && DApplicationPrivate::isUserManualExists()) { |
105 | 105 | help = new QShortcut(QKeySequence(Qt::Key_F1), q); |
106 | help->setContext(Qt::ApplicationShortcut); | |
107 | 106 | QObject::connect(help, &QShortcut::activated, |
108 | 107 | q, [ = ]() { |
109 | 108 | DApplication *dapp = qobject_cast<DApplication *>(qApp); |
112 | 111 | } |
113 | 112 | }); |
114 | 113 | } |
115 | ||
116 | ||
117 | 114 | } |
118 | 115 | |
119 | 116 | void DMainWindowPrivate::updateTitleShadowGeometry() |
671 | 668 | { |
672 | 669 | QWidget *compoment = childAt(event->pos()); |
673 | 670 | if (qobject_cast<QComboBox *>(compoment)) { |
674 | return; | |
671 | return; | |
675 | 672 | } |
676 | 673 | return QMainWindow::mouseMoveEvent(event); |
677 | 674 | } |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
9 | 9 | { |
10 | 10 | } |
11 | 11 | |
12 | /*! | |
13 | * \~chinese \brief DMessageManager::instance 构造一个单例对象 | |
14 | * \~chinese \return 返回对象引用 | |
15 | */ | |
12 | 16 | DMessageManager *DMessageManager::instance() //公有静态函数 |
13 | 17 | { |
14 | 18 | static DMessageManager instance; //局部静态变量 |
15 | 19 | return &instance; |
16 | 20 | } |
17 | 21 | |
22 | /*! | |
23 | * \~chinese \brief DMessageManager::sendMessage 发送弹窗消息 | |
24 | * \~chinese \param par 父控件 | |
25 | * \~chinese \param floMsg 弹窗浮动消息(控件) | |
26 | */ | |
18 | 27 | void DMessageManager::sendMessage(QWidget *par, DFloatingMessage *floMsg) |
19 | 28 | { |
20 | 29 | QWidget *content = par->findChild<QWidget *>(D_MESSAGE_MANAGER_CONTENT); |
42 | 51 | static_cast<QBoxLayout*>(content->layout())->addWidget(floMsg, 0, Qt::AlignHCenter); |
43 | 52 | } |
44 | 53 | |
54 | /*! | |
55 | * \~chinese \brief DMessageManager::sendMessage 发送弹窗消息 | |
56 | * \~chinese \param par 父控件 | |
57 | * \~chinese \param icon 消息图标 | |
58 | * \~chinese \param message 消息文字 | |
59 | */ | |
45 | 60 | void DMessageManager::sendMessage(QWidget *par, const QIcon &icon, const QString &message) |
46 | 61 | { |
47 | 62 | QWidget *content = par->findChild<QWidget *>(D_MESSAGE_MANAGER_CONTENT); |
64 | 79 | sendMessage(par, floMsg); |
65 | 80 | } |
66 | 81 | |
82 | /*! | |
83 | * \~chinese \brief DMessageManager::setContentMargens 设置中间间隔值 | |
84 | * \~chinese \param par 父控件 | |
85 | * \~chinese \param margins四周的间隔值 | |
86 | * \~chinese \return 是否设置成功 | |
87 | */ | |
67 | 88 | bool DMessageManager::setContentMargens(QWidget *par, const QMargins &margins) |
68 | 89 | { |
69 | 90 | QWidget *content = par->findChild<QWidget *>(D_MESSAGE_MANAGER_CONTENT); |
76 | 97 | } |
77 | 98 | } |
78 | 99 | |
100 | /*! | |
101 | * \~chinese \brief DMessageManager::eventFilter 消息过滤 | |
102 | * \~chinese \param watched 查看对象 | |
103 | * \~chinese \param event 消息事件 | |
104 | * \~chinese \return 成功与否 | |
105 | */ | |
79 | 106 | bool DMessageManager::eventFilter(QObject *watched, QEvent *event) |
80 | 107 | { |
81 | 108 | if (event->type() == QEvent::LayoutRequest || event->type() == QEvent::Resize) { |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
111 | 111 | m_nextBtn = new DFloatingButton(m_controlWidget); |
112 | 112 | m_tickEffect = new DTickEffect(m_title, m_title); |
113 | 113 | |
114 | m_prevBtn->setIcon(QIcon::fromTheme(":/images/play_previous.svg")); | |
115 | m_playBtn->setIcon(QIcon::fromTheme(":/images/play_start.svg")); | |
116 | m_nextBtn->setIcon(QIcon::fromTheme(":/images/play_next.svg")); | |
117 | m_pauseBtn->setIcon(QIcon::fromTheme(":/images/play_pause.svg")); | |
114 | m_prevBtn->setIcon(QIcon::fromTheme(":/assets/images/play_previous.svg")); | |
115 | m_playBtn->setIcon(QIcon::fromTheme(":/assets/images/play_start.svg")); | |
116 | m_nextBtn->setIcon(QIcon::fromTheme(":/assets/images/play_next.svg")); | |
117 | m_pauseBtn->setIcon(QIcon::fromTheme(":/assets/images/play_pause.svg")); | |
118 | 118 | m_prevBtn->setBackgroundRole(DPalette::Button); |
119 | 119 | m_playBtn->setBackgroundRole(DPalette::Button); |
120 | 120 | m_nextBtn->setBackgroundRole(DPalette::Button); |
147 | 147 | |
148 | 148 | #ifdef QT_DEBUG |
149 | 149 | m_title->setText("MPRIS Title"); |
150 | m_nextBtn->setIcon(QIcon::fromTheme("://images/arrow_right_normal.png")); | |
151 | m_pauseBtn->setIcon(QIcon::fromTheme("://images/arrow_left_white.png")); | |
152 | m_playBtn->setIcon(QIcon::fromTheme("://images/arrow_right_white.png")); | |
153 | m_prevBtn->setIcon(QIcon::fromTheme("://images/arrow_left_normal.png")); | |
150 | ||
151 | m_nextBtn->setIcon(QIcon::fromTheme(":/assets/images/arrow_right_normal.png")); | |
152 | m_pauseBtn->setIcon(QIcon::fromTheme(":/assets/images/arrow_left_white.png")); | |
153 | m_playBtn->setIcon(QIcon::fromTheme(":/assets/images/arrow_right_white.png")); | |
154 | m_prevBtn->setIcon(QIcon::fromTheme(":/assets/images/arrow_left_normal.png")); | |
154 | 155 | #endif |
155 | 156 | |
156 | 157 | QHBoxLayout *controlLayout = new QHBoxLayout; |
190 | 191 | return; |
191 | 192 | |
192 | 193 | m_mprisInter->Previous(); |
194 | m_prevBtn->setFocus(); | |
193 | 195 | } |
194 | 196 | |
195 | 197 | void DMPRISControlPrivate::_q_onPlayClicked() |
198 | 200 | return; |
199 | 201 | |
200 | 202 | m_mprisInter->Play(); |
203 | m_pauseBtn->setFocus(); | |
201 | 204 | } |
202 | 205 | |
203 | 206 | void DMPRISControlPrivate::_q_onPauseClicked() |
206 | 209 | return; |
207 | 210 | |
208 | 211 | m_mprisInter->Pause(); |
212 | m_playBtn->setFocus(); | |
209 | 213 | } |
210 | 214 | |
211 | 215 | void DMPRISControlPrivate::_q_onNextClicked() |
214 | 218 | return; |
215 | 219 | |
216 | 220 | m_mprisInter->Next(); |
221 | m_nextBtn->setFocus(); | |
217 | 222 | } |
218 | 223 | |
219 | 224 | void DMPRISControlPrivate::_q_onMetaDataChanged() |
253 | 258 | |
254 | 259 | if (stat == "Playing") { |
255 | 260 | m_pauseBtn->setVisible(true); |
256 | m_pauseBtn->setFocus(); | |
257 | 261 | m_playBtn->setVisible(false); |
258 | 262 | } else { |
259 | 263 | m_pauseBtn->setVisible(false); |
260 | 264 | m_playBtn->setVisible(true); |
261 | m_playBtn->setFocus(); | |
262 | 265 | } |
263 | 266 | } |
264 | 267 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dprogressbar.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DPROGRESSBAR_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
198 | 198 | void DSearchEdit::setPlaceHolder(QString placeHolder) |
199 | 199 | { |
200 | 200 | Q_D(DSearchEdit); |
201 | ||
201 | if (d->placeHolder == placeHolder) | |
202 | return; | |
202 | 203 | d->placeHolder = placeHolder; |
204 | d->label->setText(placeHolder); | |
203 | 205 | } |
204 | 206 | |
205 | 207 | /*! |
257 | 259 | : DLineEditPrivate(q) |
258 | 260 | , action(nullptr) |
259 | 261 | , iconWidget(nullptr) |
262 | , label(nullptr) | |
260 | 263 | { |
261 | 264 | } |
262 | 265 | |
268 | 271 | void DSearchEditPrivate::init() |
269 | 272 | { |
270 | 273 | D_Q(DSearchEdit); |
271 | QLabel *label = new QLabel; | |
274 | label = new QLabel; | |
272 | 275 | DIconButton *iconbtn = new DIconButton(DStyle::SP_IndicatorSearch); |
273 | 276 | |
274 | 277 | iconbtn->setFlat(true); |
303 | 306 | QHBoxLayout *layout = new QHBoxLayout(q->lineEdit()); |
304 | 307 | |
305 | 308 | iconWidget = new QWidget; |
309 | iconWidget->setObjectName("iconWidget"); | |
306 | 310 | QHBoxLayout *center_layout = new QHBoxLayout(iconWidget); |
307 | 311 | center_layout->setMargin(0); |
308 | 312 | center_layout->setSpacing(0); |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
159 | 159 | } |
160 | 160 | |
161 | 161 | /*! |
162 | * /~chinese \brief DSettingsDialog::scrollToGroup 使对话框跳转到指定的 group 项目 | |
163 | * /~chinese \param groupKey DSettings中 groupKeys 以及其子项 childGroups | |
164 | * /~chinese \note 请在对话框 show 以后调用 | |
165 | */ | |
166 | void DSettingsDialog::scrollToGroup(const QString &groupKey) | |
167 | { | |
168 | D_D(DSettingsDialog); | |
169 | ||
170 | d->leftFrame->onSelectGroup(groupKey); | |
171 | d->content->onScrollToGroup(groupKey); | |
172 | } | |
173 | ||
174 | /*! | |
162 | 175 | * \~english \brief Create all widget for settings options. |
163 | 176 | * Warnning that you can only call the once. |
164 | 177 | * \param settings Dtk::Core::DSettings object from json |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
37 | 37 | DSettingsWidgetFactory* widgetFactory() const; |
38 | 38 | bool groupIsVisible(const QString &groupKey) const; |
39 | 39 | void setResetVisible(bool visible); |
40 | void scrollToGroup(const QString &groupKey); //需要在对话框 show 以后使用 | |
40 | 41 | |
41 | 42 | public Q_SLOTS: |
42 | 43 | void updateSettings(DTK_CORE_NAMESPACE::DSettings *settings); |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
399 | 399 | btnList.at(option->value().toInt())->setChecked(true); |
400 | 400 | |
401 | 401 | auto translateContext = opt->property(PRIVATE_PROPERTY_translateContext).toByteArray(); |
402 | option->connect(rightWidget, &DButtonBox::buttonToggled, option, [option, rightWidget ] (QAbstractButton * toggleBtn, bool) { | |
403 | int index = rightWidget->buttonList().indexOf(toggleBtn); | |
402 | option->connect(rightWidget, &DButtonBox::buttonClicked, option, [option, rightWidget ] (QAbstractButton * btn) { | |
403 | int index = rightWidget->buttonList().indexOf(btn); | |
404 | 404 | option->setValue(index); |
405 | 405 | }); |
406 | 406 | option->connect(option, &DTK_CORE_NAMESPACE::DSettingsOption::valueChanged, |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dshadowline.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DSHADOWLINE_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
7 | 7 | * Maintainer: Wang Yong <wangyong@deepin.com> |
8 | 8 | * |
9 | 9 | * This program is free software: you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by | |
10 | * it under the terms of the GNU Lesser General Public License as published by | |
11 | 11 | * the Free Software Foundation, either version 3 of the License, or |
12 | 12 | * any later version. |
13 | 13 | * |
16 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | 17 | * GNU General Public License for more details. |
18 | 18 | * |
19 | * You should have received a copy of the GNU General Public License | |
19 | * You should have received a copy of the GNU Lesser General Public License | |
20 | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
21 | 21 | */ |
22 | 22 |
7 | 7 | * Maintainer: Wang Yong <wangyong@deepin.com> |
8 | 8 | * |
9 | 9 | * This program is free software: you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by | |
10 | * it under the terms of the GNU Lesser General Public License as published by | |
11 | 11 | * the Free Software Foundation, either version 3 of the License, or |
12 | 12 | * any later version. |
13 | 13 | * |
16 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | 17 | * GNU General Public License for more details. |
18 | 18 | * |
19 | * You should have received a copy of the GNU General Public License | |
19 | * You should have received a copy of the GNU Lesser General Public License | |
20 | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
21 | 21 | */ |
22 | 22 |
7 | 7 | * Maintainer: Wang Yong <wangyong@deepin.com> |
8 | 8 | * |
9 | 9 | * This program is free software: you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by | |
10 | * it under the terms of the GNU Lesser General Public License as published by | |
11 | 11 | * the Free Software Foundation, either version 3 of the License, or |
12 | 12 | * any later version. |
13 | 13 | * |
16 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | 17 | * GNU General Public License for more details. |
18 | 18 | * |
19 | * You should have received a copy of the GNU General Public License | |
19 | * You should have received a copy of the GNU Lesser General Public License | |
20 | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
21 | 21 | */ |
22 | 22 |
7 | 7 | * Maintainer: Wang Yong <wangyong@deepin.com> |
8 | 8 | * |
9 | 9 | * This program is free software: you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by | |
10 | * it under the terms of the GNU Lesser General Public License as published by | |
11 | 11 | * the Free Software Foundation, either version 3 of the License, or |
12 | 12 | * any later version. |
13 | 13 | * |
16 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | 17 | * GNU General Public License for more details. |
18 | 18 | * |
19 | * You should have received a copy of the GNU General Public License | |
19 | * You should have received a copy of the GNU Lesser General Public License | |
20 | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
21 | 21 | */ |
22 | 22 |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | |
540 | 540 | return QSlider::NoTicks; |
541 | 541 | } |
542 | 542 | |
543 | /*! | |
544 | * \~chinese \brief DSlider::sizeHint | |
545 | * \~chinese \sa QSlider::sizeHint | |
546 | */ | |
543 | 547 | QSize DSlider::sizeHint() const |
544 | 548 | { |
545 | 549 | D_DC(DSlider); |
549 | 553 | return size; |
550 | 554 | } |
551 | 555 | |
556 | /*! | |
557 | * \~chinese \brief DSlider::setHandleVisible 设置滑块时候显示 | |
558 | * \~chinese \param b 显示滑块的 bool 值 | |
559 | */ | |
552 | 560 | void DSlider::setHandleVisible(bool b) |
553 | 561 | { |
554 | 562 | D_D(DSlider); |
560 | 568 | update(); |
561 | 569 | } |
562 | 570 | |
571 | /*! | |
572 | * \~chinese \brief DSlider::handleVisible 获取滑块是否显示的状态 | |
573 | * \~chinese \return 返回滑块是否显示的状态 | |
574 | */ | |
563 | 575 | bool DSlider::handleVisible() const |
564 | 576 | { |
565 | 577 | D_DC(DSlider); |
566 | 578 | return d->handleVisible; |
579 | } | |
580 | ||
581 | /*! | |
582 | * \~chinese \brief DSlider::setEnabledAcrossStyle 启用滑块划过位置无活动色 | |
583 | * \~chinese \param replace true 启用,false 关闭 | |
584 | */ | |
585 | void DSlider::setEnabledAcrossStyle(bool enabled) | |
586 | { | |
587 | slider()->setProperty("_d_dtk_sldier_across", enabled); | |
567 | 588 | } |
568 | 589 | |
569 | 590 | DSliderPrivate::DSliderPrivate(DSlider *q) |
667 | 688 | return this->scaleInfo; |
668 | 689 | } |
669 | 690 | |
691 | /*! | |
692 | * \~chines \brief SliderStrip::paintEvent | |
693 | * \~chines \sa QWidget::paintEvent() | |
694 | */ | |
670 | 695 | void SliderStrip::paintEvent(QPaintEvent *event) |
671 | 696 | { |
672 | 697 | Q_UNUSED(event) |
771 | 796 | } |
772 | 797 | } |
773 | 798 | |
799 | /*! | |
800 | * \~chines \brief SliderStrip::event | |
801 | * \~chines \sa QWidget::event() | |
802 | */ | |
774 | 803 | bool SliderStrip::event(QEvent *e) |
775 | 804 | { |
776 | 805 | if (e->type() == QEvent::FontChange || e->type() == QEvent::ApplicationFontChange) { |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | |
79 | 79 | void setHandleVisible(bool b); |
80 | 80 | bool handleVisible() const; |
81 | 81 | |
82 | void setEnabledAcrossStyle(bool enabled); | |
83 | ||
82 | 84 | Q_SIGNALS: |
83 | 85 | void valueChanged(int value); |
84 | 86 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
33 | 33 | D_Q(DSpinBox); |
34 | 34 | |
35 | 35 | lineEdit = new DLineEdit(q); |
36 | lineEdit->setClearButtonEnabled(false); | |
36 | 37 | q->setLineEdit(lineEdit->lineEdit()); |
37 | 38 | q->connect(lineEdit, &DLineEdit::alertChanged, q, &DSpinBox::alertChanged); |
38 | 39 | } |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dstyle.h" |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DSTYLE_H |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dstyleditemdelegate.h" |
334 | 334 | return bounding; |
335 | 335 | } |
336 | 336 | |
337 | DStyledItemDelegate::BackgroundType backgroundType; | |
337 | DStyledItemDelegate::BackgroundType backgroundType = DStyledItemDelegate::NoBackground; | |
338 | 338 | QMargins margins; |
339 | 339 | QSize itemSize; |
340 | 340 | int itemSpacing = 0; |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DSTYLEDITEMDELEGATE_H |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DSTYLEOPTION_H |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
37 | 37 | d->init(); |
38 | 38 | } |
39 | 39 | |
40 | /*! | |
41 | * \~chinese \brief DSwitchButton::sizeHint 初始化控件矩形大小(在绘画之前) | |
42 | * \~chinese \return 控件举行大小 | |
43 | */ | |
40 | 44 | QSize DSwitchButton::sizeHint() const |
41 | 45 | { |
42 | 46 | QSize size(0, 0); |
46 | 50 | return size; |
47 | 51 | } |
48 | 52 | |
53 | /*! | |
54 | * \~chinese \brief DSwitchButton::paintEvent 绘画处理 | |
55 | * \~chinese \param e 绘画事件 | |
56 | * \~chinese \see QWidget::paintEvent() | |
57 | */ | |
49 | 58 | void DSwitchButton::paintEvent(QPaintEvent *e) |
50 | 59 | { |
51 | 60 | Q_UNUSED(e); |
56 | 65 | painter.drawControl(DStyle::CE_SwitchButton, opt); |
57 | 66 | } |
58 | 67 | |
68 | /*! | |
69 | * \~chinese \brief DSwitchButton::initStyleOption 初始化(用于继承的)抽象按钮对象,后面用于 DStylePainter 绘画 DStyle::CE_SwitchButton 枚举 | |
70 | * \~chinese \param option 初始化了的的抽象风格按钮对象 | |
71 | */ | |
59 | 72 | void DSwitchButton::initStyleOption(DStyleOptionButton *option) const |
60 | 73 | { |
61 | 74 | if (!option) |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dtabbar.h" |
29 | 29 | #include <QMimeData> |
30 | 30 | #include <QDragMoveEvent> |
31 | 31 | #include <QTimer> |
32 | #include <QToolTip> | |
32 | 33 | |
33 | 34 | #include <private/qtabbar_p.h> |
34 | 35 | #define private public |
139 | 140 | connect(rightScrollButton, &DIconButton::clicked, d->rightB, &QToolButton::click); |
140 | 141 | |
141 | 142 | layout = new QHBoxLayout(qq); |
143 | layout->setMargin(0); | |
144 | layout->setSpacing(0); | |
142 | 145 | stretch = new QSpacerItem(1, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); |
146 | leftBtnR = new QSpacerItem(0, 0); | |
147 | leftBtnL = new QSpacerItem(0, 0); | |
148 | rightBtnL = new QSpacerItem(0, 0); | |
149 | addBtnL = new QSpacerItem(DStyle::pixelMetric(style(), DStyle::PM_ContentsSpacing), 0); | |
150 | addBtnR = new QSpacerItem(DStyle::pixelMetric(style(), DStyle::PM_ContentsSpacing), 0); | |
151 | ||
152 | layout->addSpacerItem(leftBtnL); | |
143 | 153 | layout->setContentsMargins(0, 0, 0, 0); |
144 | layout->setSpacing(0); | |
145 | 154 | layout->addWidget(leftScrollButton); |
155 | ||
156 | layout->addSpacerItem(leftBtnR); | |
146 | 157 | layout->addWidget(this); |
158 | layout->addSpacerItem(rightBtnL); | |
159 | ||
147 | 160 | layout->addWidget(rightScrollButton); |
148 | layout->addSpacing(DStyle::pixelMetric(style(), DStyle::PM_ContentsSpacing)); | |
149 | layout->addWidget(addButton); | |
161 | layout->addSpacerItem(addBtnL); | |
162 | layout->addWidget(addButton, Qt::AlignCenter); | |
163 | ||
164 | layout->addSpacerItem(addBtnR); | |
150 | 165 | layout->addSpacerItem(stretch); |
151 | 166 | d->expanding = false; |
152 | 167 | |
195 | 210 | }; |
196 | 211 | |
197 | 212 | bool eventFilter(QObject *watched, QEvent *event) override; |
213 | bool event(QEvent *e) override; | |
198 | 214 | |
199 | 215 | QSize minimumSizeHint() const override; |
200 | 216 | |
237 | 253 | void setDragingFromOther(bool v); |
238 | 254 | int tabInsertIndexFromMouse(QPoint pos); |
239 | 255 | |
240 | void startMove(int index); | |
256 | Q_INVOKABLE void startMove(int index); | |
241 | 257 | void stopMove(); |
242 | 258 | |
243 | 259 | void onCurrentChanged(int current); |
257 | 273 | // 为true忽略drag move事件 |
258 | 274 | bool ignoreDragEvent = false; |
259 | 275 | |
276 | bool mousePress = false; | |
277 | ||
260 | 278 | QColor maskColor; |
261 | 279 | QColor flashColor; |
262 | 280 | // 要闪动绘制的Tab |
267 | 285 | DIconButton *rightScrollButton; |
268 | 286 | QHBoxLayout *layout; |
269 | 287 | QSpacerItem *stretch; |
288 | QSpacerItem *leftBtnL; | |
289 | QSpacerItem *leftBtnR; | |
290 | QSpacerItem *rightBtnL; | |
291 | QSpacerItem *addBtnL; | |
292 | QSpacerItem *addBtnR; | |
270 | 293 | |
271 | 294 | class FullWidget : public QWidget { |
272 | 295 | public: |
822 | 845 | mouse_animation->setStartValue(QCursor::pos()); |
823 | 846 | mouse_animation->setEndValue(mapToGlobal(index_rect.center())); |
824 | 847 | |
825 | connect(mouse_animation, &QVariantAnimation::valueChanged, this, [] (const QVariant &value) { | |
826 | const QPoint pos = value.toPoint(); | |
827 | ||
828 | QCursor::setPos(pos.x(), pos.y()); | |
829 | }); | |
848 | // 不要改变鼠标位置。会导致光标不受控的体验,bug-18362 | |
849 | // connect(mouse_animation, &QVariantAnimation::valueChanged, this, [=] (const QVariant &value) { | |
850 | // const QPoint pos = value.toPoint(); | |
851 | // QCursor::setPos(pos.x(), pos.y()); | |
852 | // }); | |
830 | 853 | |
831 | 854 | connect(mouse_animation, &QVariantAnimation::finished, this, [this, mouse_animation] { |
832 | 855 | mouse_animation->deleteLater(); |
896 | 919 | |
897 | 920 | bool DTabBarPrivate::eventFilter(QObject *watched, QEvent *event) |
898 | 921 | { |
922 | D_Q(DTabBar); | |
899 | 923 | QTabBarPrivate *d = reinterpret_cast<QTabBarPrivate *>(qGetPtrHelper(d_ptr)); |
924 | bool enabled = q->property("_d_dtk_tabbartab_type").toBool(); | |
900 | 925 | |
901 | 926 | if (watched == d->leftB) { |
902 | 927 | switch (event->type()) { |
903 | 928 | case QEvent::Show: |
929 | if (enabled) { | |
930 | leftBtnL->changeSize(10, 0); | |
931 | leftBtnR->changeSize(10, 0); | |
932 | rightBtnL->changeSize(10, 0); | |
933 | if (!q->visibleAddButton()) | |
934 | addBtnL->changeSize(10, 0); | |
935 | } | |
904 | 936 | leftScrollButton->show(); |
905 | 937 | break; |
906 | 938 | case QEvent::Hide: |
939 | if (enabled) { | |
940 | leftBtnR->changeSize(0, 0); | |
941 | leftBtnL->changeSize(0, 0); | |
942 | rightBtnL->changeSize(0, 0); | |
943 | if (!q->visibleAddButton()) | |
944 | addBtnL->changeSize(0, 0); | |
945 | } | |
907 | 946 | leftScrollButton->hide(); |
908 | 947 | break; |
909 | 948 | case QEvent::EnabledChange: |
940 | 979 | } |
941 | 980 | |
942 | 981 | return QTabBar::eventFilter(watched, event); |
982 | } | |
983 | ||
984 | bool DTabBarPrivate::event(QEvent *e) | |
985 | { | |
986 | QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(e); | |
987 | ||
988 | if (e->type() == QEvent::ToolTip) { | |
989 | if (const QTabBarPrivate::Tab *tab = dd()->at(currentIndex())) { | |
990 | if (!tab->toolTip.isEmpty()) { | |
991 | if(mousePress) | |
992 | return true; | |
993 | } | |
994 | } | |
995 | } if (e->type() == QEvent::MouseButtonPress && mouseEvent->button() == Qt::LeftButton) { | |
996 | mousePress = true; | |
997 | } if (e->type() == QEvent::MouseButtonRelease && mouseEvent->button() == Qt::LeftButton) { | |
998 | mousePress = false; | |
999 | } | |
1000 | return QTabBar::event(e); | |
943 | 1001 | } |
944 | 1002 | |
945 | 1003 | QSize DTabBarPrivate::minimumSizeHint() const |
1782 | 1840 | */ |
1783 | 1841 | void DTabBar::setEnabledEmbedStyle(bool enable) |
1784 | 1842 | { |
1843 | D_D(DTabBar); | |
1844 | ||
1845 | int radius; | |
1785 | 1846 | setProperty("_d_dtk_tabbartab_type", enable); |
1847 | ||
1848 | if (enable) { | |
1849 | radius = DStyle::pixelMetric(style(), DStyle::PM_FloatingWidgetRadius); | |
1850 | d->addButton->setMaximumSize(QSize(24, 24)); | |
1851 | d->rightScrollButton->setMaximumSize(QSize(24, 24)); | |
1852 | d->leftScrollButton->setMaximumSize(QSize(24, 24)); | |
1853 | } else { | |
1854 | radius = DStyle::pixelMetric(style(), DStyle::PM_FrameRadius); | |
1855 | QSize size = d->addButton->sizeHint(); | |
1856 | d->addButton->setMaximumSize(size); | |
1857 | d->rightScrollButton->setMaximumSize(size); | |
1858 | d->leftScrollButton->setMaximumSize(size); | |
1859 | } | |
1860 | ||
1861 | DStyle::setFrameRadius(d->rightScrollButton, radius); | |
1862 | DStyle::setFrameRadius(d->leftScrollButton, radius); | |
1863 | DStyle::setFrameRadius(d->addButton, radius); | |
1786 | 1864 | } |
1787 | 1865 | |
1788 | 1866 | /*! |
1802 | 1880 | |
1803 | 1881 | d->visibleAddButton = visibleAddButton; |
1804 | 1882 | d->addButton->setVisible(visibleAddButton); |
1883 | ||
1884 | if (visibleAddButton) { | |
1885 | d->addBtnL->changeSize(10, 0); | |
1886 | d->addBtnR->changeSize(10, 0); | |
1887 | } else { | |
1888 | d->addBtnL->changeSize(0, 0); | |
1889 | d->addBtnR->changeSize(0, 0); | |
1890 | } | |
1805 | 1891 | } |
1806 | 1892 | |
1807 | 1893 | /*! |
1862 | 1948 | d->ghostTabIndex = index; |
1863 | 1949 | insertFromMimeDataOnDragEnter(index, e->mimeData()); |
1864 | 1950 | // 延时启动startMove, 此时tabbar的大小还没有更新 |
1865 | QTimer::singleShot(10, [d, index] { | |
1866 | d->startMove(index); | |
1867 | }); | |
1951 | QMetaObject::invokeMethod(d, "startMove", Qt::QueuedConnection, Q_ARG(int, index)); | |
1868 | 1952 | } |
1869 | 1953 | } |
1870 | 1954 | } |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DTABBAR_H |
26 | 26 | QWidget* widgetLeft; |
27 | 27 | QWidget* widgetRight; |
28 | 28 | |
29 | bool bSpeechToText = true; | |
30 | bool bTextToSpeech = true; | |
31 | bool bTextToTranslate = true; | |
32 | ||
29 | 33 | public: |
30 | 34 | D_DECLARE_PUBLIC(DTextEdit) |
31 | 35 | }; |
118 | 122 | QDBusReply<bool> speechToTextReply = testSpeechToText.call(QDBus::AutoDetect, "getIatEnable"); |
119 | 123 | |
120 | 124 | //测试服务是否存在 |
121 | if (!speechReply.value() && !translateReply.value() && !speechToTextReply.value()) { | |
125 | if ((!speechReply.value() && !translateReply.value() && !speechToTextReply.value()) | |
126 | || (!textToSpeechIsEnabled() && !textToTranslateIsEnabled() && !speechToTextIsEnabled())) { | |
122 | 127 | QTextEdit::contextMenuEvent(e); |
123 | 128 | return; |
124 | 129 | } |
126 | 131 | QMenu *menu = createStandardContextMenu(); |
127 | 132 | menu->addSeparator(); |
128 | 133 | |
129 | if (speechReply.value()) { | |
134 | if (speechReply.value() && textToSpeechIsEnabled()) { | |
130 | 135 | QAction *pAction = nullptr; |
131 | 136 | if (readingReply.value()) { |
132 | 137 | pAction = menu->addAction(QCoreApplication::translate("DTextEdit", "Stop reading")); |
153 | 158 | }); |
154 | 159 | } |
155 | 160 | |
156 | if (translateReply.value()) { | |
161 | if (translateReply.value() && textToTranslateIsEnabled()) { | |
157 | 162 | QAction *pAction_2 = menu->addAction(QCoreApplication::translate("DTextEdit", "Translate")); |
158 | 163 | |
159 | 164 | //没有选中文本,则菜单置灰色 |
175 | 180 | }); |
176 | 181 | } |
177 | 182 | |
178 | if (speechToTextReply.value()) { | |
183 | if (speechToTextReply.value() && speechToTextIsEnabled()) { | |
179 | 184 | QAction *pAction_3 = menu->addAction(QCoreApplication::translate("DTextEdit", "Speech To Text")); |
180 | 185 | connect(pAction_3, &QAction::triggered, this, [] { |
181 | 186 | QDBusInterface speechToTextInterface("com.iflytek.aiassistant", |
205 | 210 | menu->popup(e->globalPos()); |
206 | 211 | } |
207 | 212 | |
213 | ||
214 | /*! | |
215 | * \~chinese \brief DLineEdit::speechToTextIsEnabled | |
216 | * \~chinese \return true 显示语音听写菜单项 false不显示 | |
217 | */ | |
218 | bool DTextEdit::speechToTextIsEnabled() const | |
219 | { | |
220 | D_D(const DTextEdit); | |
221 | return d->bSpeechToText; | |
222 | } | |
223 | ||
224 | /*! | |
225 | * \~chinese \brief DLineEdit::setSpeechToTextEnabled 设置是否显示语音听写菜单项 | |
226 | * \~chinese \param enable true显示 flase不显示 | |
227 | */ | |
228 | void DTextEdit::setSpeechToTextEnabled(bool enable) | |
229 | { | |
230 | D_D(DTextEdit); | |
231 | d->bSpeechToText = enable; | |
232 | } | |
233 | ||
234 | /*! | |
235 | * \~chinese \brief DTextEdit::textToSpeechIsEnabled | |
236 | * \~chinese \return true 显示语音朗读菜单项 false不显示 | |
237 | */ | |
238 | bool DTextEdit::textToSpeechIsEnabled() const | |
239 | { | |
240 | D_D(const DTextEdit); | |
241 | return d->bTextToSpeech; | |
242 | } | |
243 | ||
244 | /*! | |
245 | * \~chinese \brief DTextEdit::setTextToSpeechEnabled 设置是否显示语音朗读菜单项 | |
246 | * \~chinese \param enable true显示 flase不显示 | |
247 | */ | |
248 | void DTextEdit::setTextToSpeechEnabled(bool enable) | |
249 | { | |
250 | D_D(DTextEdit); | |
251 | d->bTextToSpeech = enable; | |
252 | } | |
253 | ||
254 | /*! | |
255 | * \~chinese \brief DTextEdit::textToTranslateIsEnabled | |
256 | * \~chinese \return true 显示文本翻译菜单项 false不显示 | |
257 | */ | |
258 | bool DTextEdit::textToTranslateIsEnabled() const | |
259 | { | |
260 | D_D(const DTextEdit); | |
261 | return d->bTextToTranslate; | |
262 | } | |
263 | ||
264 | /*! | |
265 | * \~chinese \brief DTextEdit::setTextToTranslateEnabled 设置是否显示文本翻译菜单项 | |
266 | * \~chinese \param enable true显示 flase不显示 | |
267 | */ | |
268 | void DTextEdit::setTextToTranslateEnabled(bool enable) | |
269 | { | |
270 | D_D(DTextEdit); | |
271 | d->bTextToTranslate = enable; | |
272 | } | |
273 | ||
208 | 274 | DTextEditPrivate::DTextEditPrivate(DTextEdit *qq) |
209 | 275 | : DObjectPrivate(qq) |
210 | 276 | { |
17 | 17 | explicit DTextEdit(QWidget *parent = nullptr); |
18 | 18 | explicit DTextEdit(const QString& text, QWidget* parent = nullptr); |
19 | 19 | |
20 | public: | |
21 | bool speechToTextIsEnabled() const; | |
22 | void setSpeechToTextEnabled(bool enable); | |
23 | ||
24 | bool textToSpeechIsEnabled() const; | |
25 | void setTextToSpeechEnabled(bool enable); | |
26 | ||
27 | bool textToTranslateIsEnabled() const; | |
28 | void setTextToTranslateEnabled(bool enable); | |
29 | ||
20 | 30 | protected: |
21 | 31 | bool event(QEvent *e) override; |
22 | 32 | void contextMenuEvent(QContextMenuEvent *e) override; |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
155 | 155 | titleLabel = centerArea; |
156 | 156 | titleLabel->setElideMode(Qt::ElideMiddle); |
157 | 157 | |
158 | minButton->installEventFilter(q); | |
159 | maxButton->installEventFilter(q); | |
160 | closeButton->installEventFilter(q); | |
161 | optionButton->installEventFilter(q); | |
162 | quitFullButton->installEventFilter(q); | |
163 | ||
158 | 164 | optionButton->setObjectName("DTitlebarDWindowOptionButton"); |
159 | 165 | optionButton->setIconSize(QSize(DefaultTitlebarHeight, DefaultTitlebarHeight)); |
160 | 166 | minButton->setObjectName("DTitlebarDWindowMinButton"); |
346 | 352 | |
347 | 353 | void DTitlebarPrivate::updateButtonsFunc() |
348 | 354 | { |
349 | if (!targetWindowHandle) { | |
355 | // TASK-18145 (bug-17474) do not setMotifFunctions on wayland | |
356 | if (!targetWindowHandle || !qgetenv("WAYLAND_DISPLAY").isEmpty()) { | |
350 | 357 | return; |
351 | 358 | } |
352 | 359 | |
755 | 762 | } |
756 | 763 | |
757 | 764 | d->menu->exec(d->optionButton->mapToGlobal(d->optionButton->rect().bottomLeft())); |
765 | d->optionButton->update(); // FIX: bug-25253 sometimes optionButton not udpate after menu exec(but why?) | |
758 | 766 | } |
759 | 767 | } |
760 | 768 | #endif |
761 | ||
762 | ||
763 | 769 | |
764 | 770 | void DTitlebar::showEvent(QShowEvent *event) |
765 | 771 | { |
787 | 793 | void DTitlebar::mousePressEvent(QMouseEvent *event) |
788 | 794 | { |
789 | 795 | D_D(DTitlebar); |
790 | d->mousePressed = (event->buttons() == Qt::LeftButton); | |
796 | d->mousePressed = (event->button() == Qt::LeftButton); | |
791 | 797 | |
792 | 798 | if (event->button() == Qt::RightButton) { |
793 | 799 | DWindowManagerHelper::popupSystemWindowMenu(window()->windowHandle()); |
803 | 809 | void DTitlebar::mouseReleaseEvent(QMouseEvent *event) |
804 | 810 | { |
805 | 811 | D_D(DTitlebar); |
806 | if (event->buttons() == Qt::LeftButton) { | |
812 | if (event->button() == Qt::LeftButton) { | |
807 | 813 | d->mousePressed = false; |
808 | 814 | } |
809 | 815 | } |
811 | 817 | bool DTitlebar::eventFilter(QObject *obj, QEvent *event) |
812 | 818 | { |
813 | 819 | D_D(DTitlebar); |
820 | ||
821 | if (event->type() == QEvent::MouseButtonPress && | |
822 | static_cast<QMouseEvent *>(event)->button() == Qt::RightButton && | |
823 | (obj ==d->minButton || obj == d->maxButton || | |
824 | obj == d->closeButton || obj == d->optionButton || | |
825 | obj == d->quitFullButton)) | |
826 | { | |
827 | event->accept(); // button on titlebar should not show kwin menu | |
828 | return true; | |
829 | } | |
814 | 830 | |
815 | 831 | if (obj == d->targetWindow()) { |
816 | 832 | switch (event->type()) { |
1351 | 1367 | |
1352 | 1368 | void DTitlebar::mouseMoveEvent(QMouseEvent *event) |
1353 | 1369 | { |
1370 | D_D(DTitlebar); | |
1371 | ||
1354 | 1372 | Qt::MouseButton button = event->buttons() & Qt::LeftButton ? Qt::LeftButton : Qt::NoButton; |
1355 | 1373 | if (event->buttons() == Qt::LeftButton /*&& d->mousePressed*/) { |
1374 | if (!d->mousePressed) { | |
1375 | return; | |
1376 | } | |
1356 | 1377 | Q_EMIT mouseMoving(button); |
1357 | 1378 | } |
1358 | 1379 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: Iceyer <me@iceyer.net> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #include "dtoast.h" |
5 | 5 | * Maintainer: Iceyer <me@iceyer.net> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#0031A7" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#0172FF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="4" height="20" viewBox="0 0 4 20"> | |
1 | <defs> | |
2 | <linearGradient id="shadow_dark-a" x1="50%" x2="50%" y1="0%" y2="100%"> | |
3 | <stop offset="0%" stop-opacity=".1"/> | |
4 | <stop offset="100%" stop-opacity="0"/> | |
5 | </linearGradient> | |
6 | </defs> | |
7 | <rect width="4" height="20" fill="url(#shadow_dark-a)" fill-rule="evenodd"/> | |
8 | </svg> |
0 | <RCC> | |
1 | <qresource prefix="/icons/deepin/builtin"> | |
2 | <file>dark/texts/titlebar_shadow_20px.svg</file> | |
3 | <file>light/texts/titlebar_shadow_20px.svg</file> | |
4 | <file>dark/icons/water_front_383px.svg</file> | |
5 | <file>dark/icons/water_back_383px.svg</file> | |
6 | <file>light/icons/water_back_383px.svg</file> | |
7 | <file>light/icons/water_front_383px.svg</file> | |
8 | </qresource> | |
9 | </RCC> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#007DFF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#01C4FF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="4" height="20" viewBox="0 0 4 20"> | |
1 | <defs> | |
2 | <linearGradient id="shadow_light-a" x1="50%" x2="50%" y1="0%" y2="100%"> | |
3 | <stop offset="0%" stop-opacity=".03"/> | |
4 | <stop offset="100%" stop-opacity="0"/> | |
5 | </linearGradient> | |
6 | </defs> | |
7 | <rect width="4" height="20" x="945" y="3465" fill="url(#shadow_light-a)" fill-rule="evenodd" transform="translate(-945 -3465)"/> | |
8 | </svg> |
0 | 0 | <RCC> |
1 | 1 | <qresource prefix="/"> |
2 | <file>images/arrow_right_white.png</file> | |
3 | <file>images/arrow_right_press.png</file> | |
4 | <file>images/arrow_right_normal.png</file> | |
5 | <file>images/arrow_right_hover.png</file> | |
6 | <file>images/arrow_left_white.png</file> | |
7 | <file>images/arrow_left_press.png</file> | |
8 | <file>images/arrow_left_normal.png</file> | |
9 | <file>images/arrow_left_hover.png</file> | |
10 | <file>images/deepin-logo.svg</file> | |
11 | <file>images/dialog_close_round_hover@2x.png</file> | |
12 | <file>images/dialog_close_round_hover.png</file> | |
13 | <file>images/dialog_close_round_press@2x.png</file> | |
14 | <file>images/dialog_close_round_normal@2x.png</file> | |
15 | <file>images/dialog_close_round_normal.png</file> | |
16 | <file>images/dialog_close_round_press.png</file> | |
17 | <file>images/play_pause.svg</file> | |
18 | <file>images/play_start.svg</file> | |
19 | <file>images/play_previous.svg</file> | |
20 | <file>images/play_next.svg</file> | |
21 | <file>images/water_back.svg</file> | |
22 | <file>images/water_front.svg</file> | |
23 | <file>images/uos.svg</file> | |
2 | <file>assets/images/arrow_right_white.png</file> | |
3 | <file>assets/images/arrow_right_press.png</file> | |
4 | <file>assets/images/arrow_right_normal.png</file> | |
5 | <file>assets/images/arrow_right_hover.png</file> | |
6 | <file>assets/images/arrow_left_white.png</file> | |
7 | <file>assets/images/arrow_left_press.png</file> | |
8 | <file>assets/images/arrow_left_normal.png</file> | |
9 | <file>assets/images/arrow_left_hover.png</file> | |
10 | <file>assets/images/deepin-logo.svg</file> | |
11 | <file>assets/images/dialog_close_round_hover@2x.png</file> | |
12 | <file>assets/images/dialog_close_round_hover.png</file> | |
13 | <file>assets/images/dialog_close_round_press@2x.png</file> | |
14 | <file>assets/images/dialog_close_round_normal@2x.png</file> | |
15 | <file>assets/images/dialog_close_round_normal.png</file> | |
16 | <file>assets/images/dialog_close_round_press.png</file> | |
17 | <file>assets/images/play_pause.svg</file> | |
18 | <file>assets/images/play_start.svg</file> | |
19 | <file>assets/images/play_previous.svg</file> | |
20 | <file>assets/images/play_next.svg</file> | |
21 | <file>assets/images/water_back.svg</file> | |
22 | <file>assets/images/water_front.svg</file> | |
23 | <file>assets/images/uos.svg</file> | |
24 | ||
24 | 25 | </qresource> |
25 | 26 | </RCC> |
0 | <?xml version="1.0" encoding="UTF-8"?> | |
1 | <svg width="84px" height="22px" viewBox="0 0 84 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
2 | <!-- Generator: Sketch 47 (45396) - http://www.bohemiancoding.com/sketch --> | |
3 | <title>logo</title> | |
4 | <desc>Created with Sketch.</desc> | |
5 | <defs> | |
6 | <path d="M33,17.5 C33,18.0522847 32.5522847,18.5 32,18.5 L20,18.5 C18.3431458,18.5 17,17.1568542 17,15.5 L17,8.5 C17,6.84314575 18.3431458,5.5 20,5.5 L30,5.5 C31.6568542,5.5 33,6.84314575 33,8.5 L33,11.5 C33,12.6045695 32.1045695,13.5 31,13.5 L20,13.5 L20,14.5 C20,15.0522847 20.4477153,15.5 21,15.5 L32,15.5 C32.5522847,15.5 33,15.9477153 33,16.5 L33,17.5 Z M20,10.5 L30,10.5 L30,9.5 C30,8.94771525 29.5522847,8.5 29,8.5 L21,8.5 C20.4477153,8.5 20,8.94771525 20,9.5 L20,10.5 Z M50,17.5 C50,18.0522847 49.5522847,18.5 49,18.5 L37,18.5 C35.3431458,18.5 34,17.1568542 34,15.5 L34,8.5 C34,6.84314575 35.3431458,5.5 37,5.5 L47,5.5 C48.6568542,5.5 50,6.84314575 50,8.5 L50,11.5 C50,12.6045695 49.1045695,13.5 48,13.5 L37,13.5 L37,14.5 C37,15.0522847 37.4477153,15.5 38,15.5 L49,15.5 C49.5522847,15.5 50,15.9477153 50,16.5 L50,17.5 Z M37,10.5 L47,10.5 L47,9.5 C47,8.94771525 46.5522847,8.5 46,8.5 L38,8.5 C37.4477153,8.5 37,8.94771525 37,9.5 L37,10.5 Z M13,1.5 C13,0.94771525 13.4477153,0.5 14,0.5 L15,0.5 C15.5522847,0.5 16,0.94771525 16,1.5 L16,15.4954909 L15.9999991,15.4977945 C15.9987269,17.154649 14.6545496,18.4967637 12.997695,18.4954916 C10.9745434,18.4939366 8.97531169,18.4954399 7,18.5 C1.8507234,18.4990282 0.949838892,14 0.98925278,11.6230863 C1.02866667,9.2461725 1.82860104,5.87172012 7,5.5 L13,5.5 L13,1.5 L13,1.5 Z M8,15.5 C9.28806802,15.5025835 11.9548972,15.4974343 13,15.5 C12.9999856,14.6980339 12.9999856,8.50472002 13,8.5 C12.9999856,8.50472002 9.0195314,8.5 8,8.5 C6.23196093,8.5 3.94002055,9.36853572 3.9415228,12.0003738 C3.94252556,14.6862866 6.01051842,15.4944307 8,15.5 Z M67,2.5 L67,1.5 C67,0.94771525 67.4477153,0.5 68,0.5 L69,0.5 C69.5522847,0.5 70,0.94771525 70,1.5 L70,2.5 C70,3.05228475 69.5522847,3.5 69,3.5 L68,3.5 C67.4477153,3.5 67,3.05228475 67,2.5 Z M67,17.5 L67,6.5 C67,5.94771525 67.4477153,5.5 68,5.5 L69,5.5 C69.5522847,5.5 70,5.94771525 70,6.5 L70,17.5 C70,18.0522847 69.5522847,18.5 69,18.5 L68,18.5 C67.4477153,18.5 67,18.0522847 67,17.5 Z M71,5.5 C71,5.50104434 73.6667062,5.50126942 79.0001185,5.50067544 L79.0006754,5.50067541 C81.7617261,5.50067541 84,7.73894927 84,10.5 L84,17.5 C84,18.0522847 83.5522847,18.5 83,18.5 L82,18.5 C81.4477153,18.5 81,18.0522847 81,17.5 L81,10.5 C81,9.3954305 80.1045695,8.5 79,8.5 L74,8.5 L74,17.5 C74.014,17.9746328 74.034,18.5771509 73,18.5 C72.856,18.480728 72.0875,18.483226 72,18.5 C71.145,18.543178 71,18.2089454 71,17.5 L71,5.5 Z M54,21.5 C54,22.0522847 53.5522847,22.5 53,22.5 L52,22.5 C51.4477153,22.5 51,22.0522847 51,21.5 L51,7.5 C51,6.3954305 51.8954305,5.5 53,5.5 L60,5.5 C63.3137085,5.5 66,8.1862915 66,11.5 L66,12.5 C66,15.8137085 63.3137085,18.5 60,18.5 L54,18.5 L54,21.5 L54,21.5 Z M63,11.5 C63,9.84314575 61.6568542,8.5 60,8.5 L54,8.5 L54,15.5 L60,15.5 C61.6568542,15.5 63,14.1568542 63,12.5 L63,11.5 L63,11.5 Z" id="path-1"></path> | |
7 | </defs> | |
8 | <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | |
9 | <g id="logo"> | |
10 | <g id="Imported-Layers" transform="translate(0.000000, -0.500000)"> | |
11 | <mask id="mask-2" fill="white"> | |
12 | <use xlink:href="#path-1"></use> | |
13 | </mask> | |
14 | <use id="Mask" fill="#3EA9FD" xlink:href="#path-1"></use> | |
15 | <path d="M7.65749136,15.5 C9.58466555,15.4945 13,15.5 13,15.5 C12.9768237,17.1997386 12.7975455,18.49 11.1687333,18.49 C10.2265576,18.487 10.0293563,18.4875 7.11278663,18.49 C4.73496239,18.4925 2.78960434,17.5449405 2.12962858,15.7269405 C0.334500518,8.82637351 7.57598403,8.49983387 7.57598403,8.49983387 C6.1760507,8.49983387 4.0684202,9.53245185 3.98202423,11.7291884 C3.86026384,14.8251141 6.2938413,15.485 7.65749136,15.5 Z M59.511242,15.5 C60.874892,15.485 63.1336046,14.9737305 63.02421,11.7291884 C62.9501319,9.53210178 60.9926826,8.49983387 59.5927493,8.49983387 C59.5927493,8.49983387 66.8342328,8.82637351 65.0391047,15.7269405 C64.379129,17.5449405 62.4337709,18.4925 60.0559467,18.49 C57.139377,18.4875 54,18.49 54,18.49 C54,18.49 54.0231763,17.1997386 54,15.5 C54,15.5 57.5840678,15.4945 59.511242,15.5 Z M20,14.5 C20,15.0522847 20.4477153,15.5 21,15.5 L32,15.5 C32.5522847,15.5 33,15.9477153 33,16.5 L33,17.4995 C33,18.0517847 32.5522847,18.4995 32,18.4995 L22.9341333,18.4995 C20.9005495,18.4995 19.9225051,16.833 20,13.5 L20,14.5 Z M37,14.5 C37,15.0522847 37.4477153,15.5 38,15.5 L49,15.5 C49.5522847,15.5 50,15.9477153 50,16.5 L50,17.4995 C50,18.0517847 49.5522847,18.4995 49,18.4995 L39.9341333,18.4995 C37.9005495,18.4995 36.9225051,16.833 37,13.5 L37,14.5 Z M66.8969697,5.5 L70,5.5 L70,12.0126196 C70,7.61561959 66.8969697,5.5 66.8969697,5.5 Z M69.8068862,3.5 L67.5613772,3.5 C67.251497,3.5 67,3.22430769 67,2.88461538 L67,0.5 C67,0.5 67.3755614,3.10061538 70,3.45692308 C69.9393713,3.48153846 69.8753743,3.5 69.8068862,3.5 Z M81,11.5 C81,9.4845 79.5181212,8.575 79,8.5 C79,8.5 84,8.4455 84,11.69 L84,17.5 C84,18.0522847 83.5522847,18.5 83,18.5 L82,18.5 C81.4477153,18.5 81,18.0522847 81,17.5 L81,11.5 Z" id="Combined-Shape" fill="#2659B8" mask="url(#mask-2)"></path> | |
16 | </g> | |
17 | </g> | |
18 | </g> | |
19 | </svg>⏎ |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M13,1.21455591 C13,0.112089413 13.7703795,-0.318305698 14.7206907,0.25188105 L14.7206907,0.25188105 L26.2793093,7.18705218 C27.2355257,7.76078205 27.2296205,8.6816943 26.2793093,9.25188105 L26.2793093,9.25188105 L14.7206907,16.1870522 C13.7644743,16.7607821 13,16.3262347 13,15.2243773 L13,15.2243773 L13,9.418 L1.72069073,16.1870522 C0.804316625,16.7368766 0.0640390751,16.3606965 0.00394020656,15.3586093 L8.1428837e-15,15.2243773 L1.01504972e-15,1.21455591 C4.54143342e-16,0.112089413 0.770379479,-0.318305698 1.72069073,0.25188105 L1.72069073,0.25188105 L13,7.02 Z" transform="translate(11 16)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M4.99408095,0 C6.10191945,0 7,0.897026226 7,2.00494659 L7,21.9950534 C7,23.1023548 6.11344516,24 4.99408095,24 L2.00591905,24 C0.898080551,24 3.88578059e-16,23.1029738 3.88578059e-16,21.9950534 L3.88578059e-16,2.00494659 C3.88578059e-16,0.897645164 0.886554837,0 2.00591905,0 L4.99408095,0 Z M17.9940809,0 C19.1019194,0 20,0.897026226 20,2.00494659 L20,21.9950534 C20,23.1023548 19.1134452,24 17.9940809,24 L15.0059191,24 C13.8980806,24 13,23.1029738 13,21.9950534 L13,2.00494659 C13,0.897645164 13.8865548,0 15.0059191,0 L17.9940809,0 Z" transform="translate(14 12)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M24,17.2145559 C24,16.1120894 24.7703795,15.6816943 25.7206907,16.2518811 L25.7206907,16.2518811 L37.2793093,23.1870522 C38.2355257,23.7607821 38.2296205,24.6816943 37.2793093,25.2518811 L37.2793093,25.2518811 L25.7206907,32.1870522 C24.7644743,32.7607821 24,32.3262347 24,31.2243773 L24,31.2243773 L24,25.418 L12.7206907,32.1870522 C11.8043166,32.7368766 11.0640391,32.3606965 11.0039402,31.3586093 L11,31.2243773 L11,17.2145559 C11,16.1120894 11.7703795,15.6816943 12.7206907,16.2518811 L12.7206907,16.2518811 L24,23.02 Z" transform="matrix(-1 0 0 1 48.994 0)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"> | |
1 | <path fill="#FFF" fill-rule="evenodd" d="M11.6768872,5.57982651 L20.9915151,19.9100233 C21.5934927,20.8361425 21.3307239,22.0749097 20.4046046,22.6768872 C20.0801841,22.8877606 19.7015597,23 19.3146279,23 L0.685372088,23 C-0.419197411,23 -1.31462791,22.1045695 -1.31462791,21 C-1.31462791,20.6130682 -1.20238848,20.2344438 -0.991515144,19.9100233 L8.32311277,5.57982651 C8.92509028,4.65370727 10.1638575,4.39093847 11.0899767,4.99291598 C11.3245031,5.14535817 11.524445,5.34530007 11.6768872,5.57982651 Z" transform="rotate(90 12.5 26.5)"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="78" height="23" viewBox="0 0 78 23"> | |
1 | <defs> | |
2 | <linearGradient id="关于-a" x1="0%" x2="100%" y1="45.653%" y2="54.347%"> | |
3 | <stop offset="0%" stop-color="#0071FF"/> | |
4 | <stop offset="21.078%" stop-color="#00FBFF" stop-opacity=".755"/> | |
5 | <stop offset="45.882%" stop-color="#006CFF" stop-opacity=".918"/> | |
6 | <stop offset="71.851%" stop-color="#00FCA7"/> | |
7 | <stop offset="100%" stop-color="#00A2FF"/> | |
8 | </linearGradient> | |
9 | </defs> | |
10 | <path fill="url(#关于-a)" d="M21.5,0 C22.3284271,0 23,0.671572875 23,1.5 L23,1.5 L23,11.5 C23,17.8512746 17.8512746,23 11.5,23 C5.14872538,23 0,17.8512746 0,11.5 L0,11.5 L0,1.5 C0,0.671572875 0.671572875,0 1.5,0 C2.32842712,0 3,0.671572875 3,1.5 L3,1.5 L3,11.5 C3,16.1944204 6.80557963,20 11.5,20 C16.1944204,20 20,16.1944204 20,11.5 L20,11.5 L20,1.5 C20,0.671572875 20.6715729,0 21.5,0 Z M42,0 C47.2467051,0 51.5,4.25329488 51.5,9.5 L51.5,13.5 C51.5,18.7467051 47.2467051,23 42,23 L38,23 C32.7532949,23 28.5,18.7467051 28.5,13.5 L28.5,9.5 C28.5,4.25329488 32.7532949,0 38,0 L42,0 Z M75.5,0 C76.3284271,0 77,0.671572875 77,1.5 C77,2.32842712 76.3284271,3 75.5,3 L75.5,3 L62.5,3 C60.5670034,3 59,4.56700338 59,6.5 C59,8.43299662 60.5670034,10 62.5,10 L62.5,10 L71.5,10 C75.0898509,10 78,12.9101491 78,16.5 C78,20.0898509 75.0898509,23 71.5,23 L71.5,23 L58.5,23 C57.6715729,23 57,22.3284271 57,21.5 C57,20.6715729 57.6715729,20 58.5,20 L58.5,20 L71.5,20 C73.4329966,20 75,18.4329966 75,16.5 C75,14.5670034 73.4329966,13 71.5,13 L71.5,13 L62.5,13 C58.9101491,13 56,10.0898509 56,6.5 C56,2.91014913 58.9101491,0 62.5,0 L62.5,0 Z M42,3 L38,3 C34.4101491,3 31.5,5.91014913 31.5,9.5 L31.5,13.5 C31.5,17.0898509 34.4101491,20 38,20 L42,20 C45.5898509,20 48.5,17.0898509 48.5,13.5 L48.5,9.5 C48.5,5.91014913 45.5898509,3 42,3 Z"/> | |
11 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#007DFF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
0 | <svg xmlns="http://www.w3.org/2000/svg" width="383" height="115" viewBox="0 0 383 115"> | |
1 | <path fill="#01C4FF" fill-rule="evenodd" d="M383,115 L383,14.1688789 C380.269872,14.0716143 377.092672,13.5814974 373.063461,12.4722672 C368.696509,11.2699114 362.241136,10.1727531 357.649256,10.1227411 C347.007291,10.0071963 342.744795,10.6014761 332.930121,12.0276784 C326.157898,13.0120512 317.51313,12.4953762 311.375303,10.33762 C305.58601,8.30230681 299.587109,8.09191178 293.164466,8.16675723 C284.09108,8.27264456 276.303198,11.8021073 267.219716,11.3406179 C260.695053,11.0091595 256.565913,8.56512814 248.546835,8.86450991 C241.871757,9.11387975 235.569934,13.1896798 228.881972,13.3297132 C219.538394,13.525622 215.498041,10.7384053 208.282229,8.42337018 C201.688974,6.30769299 190.725982,6.45048568 185.454442,8.65549452 C170.142255,15.0597811 162.05946,9.31703167 150.536236,5.36712375 C147.826999,4.43862637 144.672431,3.20971247 141.663406,2.90998579 C135.153716,2.26155522 129.812539,3.9788615 123.613779,5.46231888 C115.747555,7.3451819 106.643181,6.73503633 99.4869089,3.84572629 C96.4124243,2.60474055 93.6255416,0.951587506 90.1882469,0.261077932 C79.652131,-1.85528907 69.7970674,9.59778831 58.8051757,9.35186757 C49.4744806,9.14319709 42.6942497,2.4740197 33.3934986,1.93078665 C20.5224457,1.17888312 19.3845731,15.343297 0,13.8463882 L0,115 L383,115 Z"/> | |
2 | </svg> |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: ck <chenke@uniontech.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | |
23 | 23 | #include "dalertcontrol.h" |
24 | 24 | #include <DObjectPrivate> |
25 | 25 | #include <QPointer> |
26 | #include <QTimer> | |
26 | 27 | |
27 | 28 | DWIDGET_BEGIN_NAMESPACE |
28 | 29 | |
42 | 43 | QWidget *target{nullptr}; |
43 | 44 | QColor alertColor; |
44 | 45 | Qt::Alignment alignment{Qt::AlignLeft}; |
46 | QTimer timer; | |
45 | 47 | }; |
46 | 48 | |
47 | 49 | DWIDGET_END_NAMESPACE |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DBUTTONBOX_P_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DDRAWER_P_H |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: sunkang <sunkang_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
5 | 5 | * Maintainer: zccrs <zhangjide@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | #ifndef DICONBUTTON_P_H |
2 | 2 | * |
3 | 3 | * Author: kirigaya <kirigaya@mkacg.com> |
4 | 4 | * This program is free software: you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | |
5 | * it under the terms of the GNU Lesser General Public License as published by | |
6 | 6 | * the Free Software Foundation, either version 3 of the License, or |
7 | 7 | * any later version. |
8 | 8 | * |
11 | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | * GNU General Public License for more details. |
13 | 13 | * |
14 | * You should have received a copy of the GNU General Public License | |
14 | * You should have received a copy of the GNU Lesser General Public License | |
15 | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | */ |
17 | 17 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
46 | 46 | QHBoxLayout *hLayout; |
47 | 47 | |
48 | 48 | bool bSpeechToText = true; |
49 | bool bTextToSpeech = true; | |
50 | bool bTextToTranslate = true; | |
49 | 51 | }; |
50 | 52 | |
51 | 53 | DWIDGET_END_NAMESPACE |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 | |
52 | 52 | QString placeholderText; |
53 | 53 | |
54 | 54 | QWidget *iconWidget; |
55 | QLabel *label; | |
55 | 56 | |
56 | 57 | #ifdef ENABLE_AI |
57 | 58 | QAction *voiceAction = nullptr; |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
2 | 2 | * |
3 | 3 | * Author: kirigaya <kirigaya@mkacg.com> |
4 | 4 | * This program is free software: you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | |
5 | * it under the terms of the GNU Lesser General Public License as published by | |
6 | 6 | * the Free Software Foundation, either version 3 of the License, or |
7 | 7 | * any later version. |
8 | 8 | * |
11 | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | * GNU General Public License for more details. |
13 | 13 | * |
14 | * You should have received a copy of the GNU General Public License | |
14 | * You should have received a copy of the GNU Lesser General Public License | |
15 | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | */ |
17 | 17 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
5 | 5 | * Maintainer: wp <wangpeng_cm@deepin.com> |
6 | 6 | * |
7 | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | |
8 | * it under the terms of the GNU Lesser General Public License as published by | |
9 | 9 | * the Free Software Foundation, either version 3 of the License, or |
10 | 10 | * any later version. |
11 | 11 | * |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | 16 | * |
17 | * You should have received a copy of the GNU General Public License | |
17 | * You should have received a copy of the GNU Lesser General Public License | |
18 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | */ |
20 | 20 |
9 | 9 | * Hualet <mr.asianwang@gmail.com> |
10 | 10 | * |
11 | 11 | * This program is free software: you can redistribute it and/or modify |
12 | * it under the terms of the GNU General Public License as published by | |
12 | * it under the terms of the GNU Lesser General Public License as published by | |
13 | 13 | * the Free Software Foundation, either version 3 of the License, or |
14 | 14 | * any later version. |
15 | 15 | * |
18 | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | 19 | * GNU General Public License for more details. |
20 | 20 | * |
21 | * You should have received a copy of the GNU General Public License | |
21 | * You should have received a copy of the GNU Lesser General Public License | |
22 | 22 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
23 | 23 | */ |
24 | 24 |
9 | 9 | * Hualet <mr.asianwang@gmail.com> |
10 | 10 | * |
11 | 11 | * This program is free software: you can redistribute it and/or modify |
12 | * it under the terms of the GNU General Public License as published by | |
12 | * it under the terms of the GNU Lesser General Public License as published by | |
13 | 13 | * the Free Software Foundation, either version 3 of the License, or |
14 | 14 | * any later version. |
15 | 15 | * |
18 | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | 19 | * GNU General Public License for more details. |
20 | 20 | * |
21 | * You should have received a copy of the GNU General Public License | |
21 | * You should have received a copy of the GNU Lesser General Public License | |
22 | 22 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
23 | 23 | */ |
24 | 24 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
44 | 44 | public: |
45 | 45 | ContentPrivate(Content *parent) : q_ptr(parent) |
46 | 46 | { |
47 | widgetFactory = new DSettingsWidgetFactory; | |
47 | widgetFactory = new DSettingsWidgetFactory(parent); | |
48 | 48 | } |
49 | 49 | |
50 | 50 | |
70 | 70 | setObjectName("RightFrame"); |
71 | 71 | |
72 | 72 | auto layout = new QVBoxLayout(this); |
73 | auto margins = layout->contentsMargins(); | |
74 | margins.setRight(0); | |
75 | layout->setContentsMargins(margins); | |
73 | 76 | |
74 | 77 | d->contentArea = new QScrollArea; |
75 | 78 | d->contentArea->setContentsMargins(0, 0, 0, 0); |
271 | 274 | |
272 | 275 | if (widget) { |
273 | 276 | widget->setProperty("_d_dtk_group_key", current_subGroupKey); |
274 | d->contentLayout->setWidget(d->contentLayout->rowCount(), QFormLayout::SpanningRole, widget); | |
277 | d->contentLayout->addRow(widget); | |
275 | 278 | } |
276 | 279 | } |
277 | 280 | } |
284 | 287 | auto resetBt = new DPushButton(QObject::tr("Restore Defaults"), box); |
285 | 288 | resetBt->setObjectName("SettingsContentReset"); |
286 | 289 | resetBt->setMaximumWidth(300); |
290 | resetBt->setAutoDefault(false); | |
287 | 291 | box_layout->addWidget(resetBt); |
288 | 292 | box->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
289 | 293 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 | |
77 | 77 | d->navbar->setSelectionMode(QListView::SingleSelection); |
78 | 78 | d->navbar->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
79 | 79 | |
80 | d->navbarModel = new QStandardItemModel; | |
80 | d->navbarModel = new QStandardItemModel(this); | |
81 | 81 | |
82 | 82 | d->navbar->setModel(d->navbarModel); |
83 | 83 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2016 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |
1 | 1 | * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd. |
2 | 2 | * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | |
4 | * it under the terms of the GNU Lesser General Public License as published by | |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
6 | 6 | * any later version. |
7 | 7 | * |
10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | 11 | * GNU General Public License for more details. |
12 | 12 | * |
13 | * You should have received a copy of the GNU General Public License | |
13 | * You should have received a copy of the GNU Lesser General Public License | |
14 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | */ |
16 | 16 |