Browse Source

Initial import of kde-style-domino 0.4

Slávek Banko 3 years ago
commit
0fa8770a55

+ 3
- 0
AUTHORS View File

@@ -0,0 +1,3 @@
1
+Michael Lentner <michaell@gmx.net>
2
+based on the KDE style Plastik:
3
+Sandro Giessl <sandro@giessl.com>

+ 339
- 0
COPYING View File

@@ -0,0 +1,339 @@
1
+		    GNU GENERAL PUBLIC LICENSE
2
+		       Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
+               59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+			    Preamble
10
+
11
+  The licenses for most software are designed to take away your
12
+freedom to share and change it.  By contrast, the GNU General Public
13
+License is intended to guarantee your freedom to share and change free
14
+software--to make sure the software is free for all its users.  This
15
+General Public License applies to most of the Free Software
16
+Foundation's software and to any other program whose authors commit to
17
+using it.  (Some other Free Software Foundation software is covered by
18
+the GNU Library General Public License instead.)  You can apply it to
19
+your programs, too.
20
+
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
+this service if you wish), that you receive source code or can get it
25
+if you want it, that you can change the software or use pieces of it
26
+in new free programs; and that you know you can do these things.
27
+
28
+  To protect your rights, we need to make restrictions that forbid
29
+anyone to deny you these rights or to ask you to surrender the rights.
30
+These restrictions translate to certain responsibilities for you if you
31
+distribute copies of the software, or if you modify it.
32
+
33
+  For example, if you distribute copies of such a program, whether
34
+gratis or for a fee, you must give the recipients all the rights that
35
+you have.  You must make sure that they, too, receive or can get the
36
+source code.  And you must show them these terms so they know their
37
+rights.
38
+
39
+  We protect your rights with two steps: (1) copyright the software, and
40
+(2) offer you this license which gives you legal permission to copy,
41
+distribute and/or modify the software.
42
+
43
+  Also, for each author's protection and ours, we want to make certain
44
+that everyone understands that there is no warranty for this free
45
+software.  If the software is modified by someone else and passed on, we
46
+want its recipients to know that what they have is not the original, so
47
+that any problems introduced by others will not reflect on the original
48
+authors' reputations.
49
+
50
+  Finally, any free program is threatened constantly by software
51
+patents.  We wish to avoid the danger that redistributors of a free
52
+program will individually obtain patent licenses, in effect making the
53
+program proprietary.  To prevent this, we have made it clear that any
54
+patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+  The precise terms and conditions for copying, distribution and
57
+modification follow.
58
+
59
+		    GNU GENERAL PUBLIC LICENSE
60
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+  0. This License applies to any program or other work which contains
63
+a notice placed by the copyright holder saying it may be distributed
64
+under the terms of this General Public License.  The "Program", below,
65
+refers to any such program or work, and a "work based on the Program"
66
+means either the Program or any derivative work under copyright law:
67
+that is to say, a work containing the Program or a portion of it,
68
+either verbatim or with modifications and/or translated into another
69
+language.  (Hereinafter, translation is included without limitation in
70
+the term "modification".)  Each licensee is addressed as "you".
71
+
72
+Activities other than copying, distribution and modification are not
73
+covered by this License; they are outside its scope.  The act of
74
+running the Program is not restricted, and the output from the Program
75
+is covered only if its contents constitute a work based on the
76
+Program (independent of having been made by running the Program).
77
+Whether that is true depends on what the Program does.
78
+
79
+  1. You may copy and distribute verbatim copies of the Program's
80
+source code as you receive it, in any medium, provided that you
81
+conspicuously and appropriately publish on each copy an appropriate
82
+copyright notice and disclaimer of warranty; keep intact all the
83
+notices that refer to this License and to the absence of any warranty;
84
+and give any other recipients of the Program a copy of this License
85
+along with the Program.
86
+
87
+You may charge a fee for the physical act of transferring a copy, and
88
+you may at your option offer warranty protection in exchange for a fee.
89
+
90
+  2. You may modify your copy or copies of the Program or any portion
91
+of it, thus forming a work based on the Program, and copy and
92
+distribute such modifications or work under the terms of Section 1
93
+above, provided that you also meet all of these conditions:
94
+
95
+    a) You must cause the modified files to carry prominent notices
96
+    stating that you changed the files and the date of any change.
97
+
98
+    b) You must cause any work that you distribute or publish, that in
99
+    whole or in part contains or is derived from the Program or any
100
+    part thereof, to be licensed as a whole at no charge to all third
101
+    parties under the terms of this License.
102
+
103
+    c) If the modified program normally reads commands interactively
104
+    when run, you must cause it, when started running for such
105
+    interactive use in the most ordinary way, to print or display an
106
+    announcement including an appropriate copyright notice and a
107
+    notice that there is no warranty (or else, saying that you provide
108
+    a warranty) and that users may redistribute the program under
109
+    these conditions, and telling the user how to view a copy of this
110
+    License.  (Exception: if the Program itself is interactive but
111
+    does not normally print such an announcement, your work based on
112
+    the Program is not required to print an announcement.)
113
+
114
+These requirements apply to the modified work as a whole.  If
115
+identifiable sections of that work are not derived from the Program,
116
+and can be reasonably considered independent and separate works in
117
+themselves, then this License, and its terms, do not apply to those
118
+sections when you distribute them as separate works.  But when you
119
+distribute the same sections as part of a whole which is a work based
120
+on the Program, the distribution of the whole must be on the terms of
121
+this License, whose permissions for other licensees extend to the
122
+entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+Thus, it is not the intent of this section to claim rights or contest
125
+your rights to work written entirely by you; rather, the intent is to
126
+exercise the right to control the distribution of derivative or
127
+collective works based on the Program.
128
+
129
+In addition, mere aggregation of another work not based on the Program
130
+with the Program (or with a work based on the Program) on a volume of
131
+a storage or distribution medium does not bring the other work under
132
+the scope of this License.
133
+
134
+  3. You may copy and distribute the Program (or a work based on it,
135
+under Section 2) in object code or executable form under the terms of
136
+Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+    a) Accompany it with the complete corresponding machine-readable
139
+    source code, which must be distributed under the terms of Sections
140
+    1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+    b) Accompany it with a written offer, valid for at least three
143
+    years, to give any third party, for a charge no more than your
144
+    cost of physically performing source distribution, a complete
145
+    machine-readable copy of the corresponding source code, to be
146
+    distributed under the terms of Sections 1 and 2 above on a medium
147
+    customarily used for software interchange; or,
148
+
149
+    c) Accompany it with the information you received as to the offer
150
+    to distribute corresponding source code.  (This alternative is
151
+    allowed only for noncommercial distribution and only if you
152
+    received the program in object code or executable form with such
153
+    an offer, in accord with Subsection b above.)
154
+
155
+The source code for a work means the preferred form of the work for
156
+making modifications to it.  For an executable work, complete source
157
+code means all the source code for all modules it contains, plus any
158
+associated interface definition files, plus the scripts used to
159
+control compilation and installation of the executable.  However, as a
160
+special exception, the source code distributed need not include
161
+anything that is normally distributed (in either source or binary
162
+form) with the major components (compiler, kernel, and so on) of the
163
+operating system on which the executable runs, unless that component
164
+itself accompanies the executable.
165
+
166
+If distribution of executable or object code is made by offering
167
+access to copy from a designated place, then offering equivalent
168
+access to copy the source code from the same place counts as
169
+distribution of the source code, even though third parties are not
170
+compelled to copy the source along with the object code.
171
+
172
+  4. You may not copy, modify, sublicense, or distribute the Program
173
+except as expressly provided under this License.  Any attempt
174
+otherwise to copy, modify, sublicense or distribute the Program is
175
+void, and will automatically terminate your rights under this License.
176
+However, parties who have received copies, or rights, from you under
177
+this License will not have their licenses terminated so long as such
178
+parties remain in full compliance.
179
+
180
+  5. You are not required to accept this License, since you have not
181
+signed it.  However, nothing else grants you permission to modify or
182
+distribute the Program or its derivative works.  These actions are
183
+prohibited by law if you do not accept this License.  Therefore, by
184
+modifying or distributing the Program (or any work based on the
185
+Program), you indicate your acceptance of this License to do so, and
186
+all its terms and conditions for copying, distributing or modifying
187
+the Program or works based on it.
188
+
189
+  6. Each time you redistribute the Program (or any work based on the
190
+Program), the recipient automatically receives a license from the
191
+original licensor to copy, distribute or modify the Program subject to
192
+these terms and conditions.  You may not impose any further
193
+restrictions on the recipients' exercise of the rights granted herein.
194
+You are not responsible for enforcing compliance by third parties to
195
+this License.
196
+
197
+  7. If, as a consequence of a court judgment or allegation of patent
198
+infringement or for any other reason (not limited to patent issues),
199
+conditions are imposed on you (whether by court order, agreement or
200
+otherwise) that contradict the conditions of this License, they do not
201
+excuse you from the conditions of this License.  If you cannot
202
+distribute so as to satisfy simultaneously your obligations under this
203
+License and any other pertinent obligations, then as a consequence you
204
+may not distribute the Program at all.  For example, if a patent
205
+license would not permit royalty-free redistribution of the Program by
206
+all those who receive copies directly or indirectly through you, then
207
+the only way you could satisfy both it and this License would be to
208
+refrain entirely from distribution of the Program.
209
+
210
+If any portion of this section is held invalid or unenforceable under
211
+any particular circumstance, the balance of the section is intended to
212
+apply and the section as a whole is intended to apply in other
213
+circumstances.
214
+
215
+It is not the purpose of this section to induce you to infringe any
216
+patents or other property right claims or to contest validity of any
217
+such claims; this section has the sole purpose of protecting the
218
+integrity of the free software distribution system, which is
219
+implemented by public license practices.  Many people have made
220
+generous contributions to the wide range of software distributed
221
+through that system in reliance on consistent application of that
222
+system; it is up to the author/donor to decide if he or she is willing
223
+to distribute software through any other system and a licensee cannot
224
+impose that choice.
225
+
226
+This section is intended to make thoroughly clear what is believed to
227
+be a consequence of the rest of this License.
228
+
229
+  8. If the distribution and/or use of the Program is restricted in
230
+certain countries either by patents or by copyrighted interfaces, the
231
+original copyright holder who places the Program under this License
232
+may add an explicit geographical distribution limitation excluding
233
+those countries, so that distribution is permitted only in or among
234
+countries not thus excluded.  In such case, this License incorporates
235
+the limitation as if written in the body of this License.
236
+
237
+  9. The Free Software Foundation may publish revised and/or new versions
238
+of the General Public License from time to time.  Such new versions will
239
+be similar in spirit to the present version, but may differ in detail to
240
+address new problems or concerns.
241
+
242
+Each version is given a distinguishing version number.  If the Program
243
+specifies a version number of this License which applies to it and "any
244
+later version", you have the option of following the terms and conditions
245
+either of that version or of any later version published by the Free
246
+Software Foundation.  If the Program does not specify a version number of
247
+this License, you may choose any version ever published by the Free Software
248
+Foundation.
249
+
250
+  10. If you wish to incorporate parts of the Program into other free
251
+programs whose distribution conditions are different, write to the author
252
+to ask for permission.  For software which is copyrighted by the Free
253
+Software Foundation, write to the Free Software Foundation; we sometimes
254
+make exceptions for this.  Our decision will be guided by the two goals
255
+of preserving the free status of all derivatives of our free software and
256
+of promoting the sharing and reuse of software generally.
257
+
258
+			    NO WARRANTY
259
+
260
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+REPAIR OR CORRECTION.
269
+
270
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+POSSIBILITY OF SUCH DAMAGES.
279
+
280
+		     END OF TERMS AND CONDITIONS
281
+
282
+	Appendix: How to Apply These Terms to Your New Programs
283
+
284
+  If you develop a new program, and you want it to be of the greatest
285
+possible use to the public, the best way to achieve this is to make it
286
+free software which everyone can redistribute and change under these terms.
287
+
288
+  To do so, attach the following notices to the program.  It is safest
289
+to attach them to the start of each source file to most effectively
290
+convey the exclusion of warranty; and each file should have at least
291
+the "copyright" line and a pointer to where the full notice is found.
292
+
293
+    <one line to give the program's name and a brief idea of what it does.>
294
+    Copyright (C) 19yy  <name of author>
295
+
296
+    This program is free software; you can redistribute it and/or modify
297
+    it under the terms of the GNU General Public License as published by
298
+    the Free Software Foundation; either version 2 of the License, or
299
+    (at your option) any later version.
300
+
301
+    This program is distributed in the hope that it will be useful,
302
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304
+    GNU General Public License for more details.
305
+
306
+    You should have received a copy of the GNU General Public License
307
+    along with this program; if not, write to the Free Software
308
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
309
+
310
+Also add information on how to contact you by electronic and paper mail.
311
+
312
+If the program is interactive, make it output a short notice like this
313
+when it starts in an interactive mode:
314
+
315
+    Gnomovision version 69, Copyright (C) 19yy name of author
316
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+    This is free software, and you are welcome to redistribute it
318
+    under certain conditions; type `show c' for details.
319
+
320
+The hypothetical commands `show w' and `show c' should show the appropriate
321
+parts of the General Public License.  Of course, the commands you use may
322
+be called something other than `show w' and `show c'; they could even be
323
+mouse-clicks or menu items--whatever suits your program.
324
+
325
+You should also get your employer (if you work as a programmer) or your
326
+school, if any, to sign a "copyright disclaimer" for the program, if
327
+necessary.  Here is a sample; alter the names:
328
+
329
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+  <signature of Ty Coon>, 1 April 1989
333
+  Ty Coon, President of Vice
334
+
335
+This General Public License does not permit incorporating your program into
336
+proprietary programs.  If your program is a subroutine library, you may
337
+consider it more useful to permit linking proprietary applications with the
338
+library.  If this is what you want to do, use the GNU Library General
339
+Public License instead of this License.

+ 481
- 0
COPYING.LIB View File

@@ -0,0 +1,481 @@
1
+		  GNU LIBRARY GENERAL PUBLIC LICENSE
2
+		       Version 2, June 1991
3
+
4
+ Copyright (C) 1991 Free Software Foundation, Inc.
5
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+[This is the first released version of the library GPL.  It is
10
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
11
+
12
+			    Preamble
13
+
14
+  The licenses for most software are designed to take away your
15
+freedom to share and change it.  By contrast, the GNU General Public
16
+Licenses are intended to guarantee your freedom to share and change
17
+free software--to make sure the software is free for all its users.
18
+
19
+  This license, the Library General Public License, applies to some
20
+specially designated Free Software Foundation software, and to any
21
+other libraries whose authors decide to use it.  You can use it for
22
+your libraries, too.
23
+
24
+  When we speak of free software, we are referring to freedom, not
25
+price.  Our General Public Licenses are designed to make sure that you
26
+have the freedom to distribute copies of free software (and charge for
27
+this service if you wish), that you receive source code or can get it
28
+if you want it, that you can change the software or use pieces of it
29
+in new free programs; and that you know you can do these things.
30
+
31
+  To protect your rights, we need to make restrictions that forbid
32
+anyone to deny you these rights or to ask you to surrender the rights.
33
+These restrictions translate to certain responsibilities for you if
34
+you distribute copies of the library, or if you modify it.
35
+
36
+  For example, if you distribute copies of the library, whether gratis
37
+or for a fee, you must give the recipients all the rights that we gave
38
+you.  You must make sure that they, too, receive or can get the source
39
+code.  If you link a program with the library, you must provide
40
+complete object files to the recipients so that they can relink them
41
+with the library, after making changes to the library and recompiling
42
+it.  And you must show them these terms so they know their rights.
43
+
44
+  Our method of protecting your rights has two steps: (1) copyright
45
+the library, and (2) offer you this license which gives you legal
46
+permission to copy, distribute and/or modify the library.
47
+
48
+  Also, for each distributor's protection, we want to make certain
49
+that everyone understands that there is no warranty for this free
50
+library.  If the library is modified by someone else and passed on, we
51
+want its recipients to know that what they have is not the original
52
+version, so that any problems introduced by others will not reflect on
53
+the original authors' reputations.
54
+
55
+  Finally, any free program is threatened constantly by software
56
+patents.  We wish to avoid the danger that companies distributing free
57
+software will individually obtain patent licenses, thus in effect
58
+transforming the program into proprietary software.  To prevent this,
59
+we have made it clear that any patent must be licensed for everyone's
60
+free use or not licensed at all.
61
+
62
+  Most GNU software, including some libraries, is covered by the ordinary
63
+GNU General Public License, which was designed for utility programs.  This
64
+license, the GNU Library General Public License, applies to certain
65
+designated libraries.  This license is quite different from the ordinary
66
+one; be sure to read it in full, and don't assume that anything in it is
67
+the same as in the ordinary license.
68
+
69
+  The reason we have a separate public license for some libraries is that
70
+they blur the distinction we usually make between modifying or adding to a
71
+program and simply using it.  Linking a program with a library, without
72
+changing the library, is in some sense simply using the library, and is
73
+analogous to running a utility program or application program.  However, in
74
+a textual and legal sense, the linked executable is a combined work, a
75
+derivative of the original library, and the ordinary General Public License
76
+treats it as such.
77
+
78
+  Because of this blurred distinction, using the ordinary General
79
+Public License for libraries did not effectively promote software
80
+sharing, because most developers did not use the libraries.  We
81
+concluded that weaker conditions might promote sharing better.
82
+
83
+  However, unrestricted linking of non-free programs would deprive the
84
+users of those programs of all benefit from the free status of the
85
+libraries themselves.  This Library General Public License is intended to
86
+permit developers of non-free programs to use free libraries, while
87
+preserving your freedom as a user of such programs to change the free
88
+libraries that are incorporated in them.  (We have not seen how to achieve
89
+this as regards changes in header files, but we have achieved it as regards
90
+changes in the actual functions of the Library.)  The hope is that this
91
+will lead to faster development of free libraries.
92
+
93
+  The precise terms and conditions for copying, distribution and
94
+modification follow.  Pay close attention to the difference between a
95
+"work based on the library" and a "work that uses the library".  The
96
+former contains code derived from the library, while the latter only
97
+works together with the library.
98
+
99
+  Note that it is possible for a library to be covered by the ordinary
100
+General Public License rather than by this special one.
101
+
102
+		  GNU LIBRARY GENERAL PUBLIC LICENSE
103
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
104
+
105
+  0. This License Agreement applies to any software library which
106
+contains a notice placed by the copyright holder or other authorized
107
+party saying it may be distributed under the terms of this Library
108
+General Public License (also called "this License").  Each licensee is
109
+addressed as "you".
110
+
111
+  A "library" means a collection of software functions and/or data
112
+prepared so as to be conveniently linked with application programs
113
+(which use some of those functions and data) to form executables.
114
+
115
+  The "Library", below, refers to any such software library or work
116
+which has been distributed under these terms.  A "work based on the
117
+Library" means either the Library or any derivative work under
118
+copyright law: that is to say, a work containing the Library or a
119
+portion of it, either verbatim or with modifications and/or translated
120
+straightforwardly into another language.  (Hereinafter, translation is
121
+included without limitation in the term "modification".)
122
+
123
+  "Source code" for a work means the preferred form of the work for
124
+making modifications to it.  For a library, complete source code means
125
+all the source code for all modules it contains, plus any associated
126
+interface definition files, plus the scripts used to control compilation
127
+and installation of the library.
128
+
129
+  Activities other than copying, distribution and modification are not
130
+covered by this License; they are outside its scope.  The act of
131
+running a program using the Library is not restricted, and output from
132
+such a program is covered only if its contents constitute a work based
133
+on the Library (independent of the use of the Library in a tool for
134
+writing it).  Whether that is true depends on what the Library does
135
+and what the program that uses the Library does.
136
+  
137
+  1. You may copy and distribute verbatim copies of the Library's
138
+complete source code as you receive it, in any medium, provided that
139
+you conspicuously and appropriately publish on each copy an
140
+appropriate copyright notice and disclaimer of warranty; keep intact
141
+all the notices that refer to this License and to the absence of any
142
+warranty; and distribute a copy of this License along with the
143
+Library.
144
+
145
+  You may charge a fee for the physical act of transferring a copy,
146
+and you may at your option offer warranty protection in exchange for a
147
+fee.
148
+
149
+  2. You may modify your copy or copies of the Library or any portion
150
+of it, thus forming a work based on the Library, and copy and
151
+distribute such modifications or work under the terms of Section 1
152
+above, provided that you also meet all of these conditions:
153
+
154
+    a) The modified work must itself be a software library.
155
+
156
+    b) You must cause the files modified to carry prominent notices
157
+    stating that you changed the files and the date of any change.
158
+
159
+    c) You must cause the whole of the work to be licensed at no
160
+    charge to all third parties under the terms of this License.
161
+
162
+    d) If a facility in the modified Library refers to a function or a
163
+    table of data to be supplied by an application program that uses
164
+    the facility, other than as an argument passed when the facility
165
+    is invoked, then you must make a good faith effort to ensure that,
166
+    in the event an application does not supply such function or
167
+    table, the facility still operates, and performs whatever part of
168
+    its purpose remains meaningful.
169
+
170
+    (For example, a function in a library to compute square roots has
171
+    a purpose that is entirely well-defined independent of the
172
+    application.  Therefore, Subsection 2d requires that any
173
+    application-supplied function or table used by this function must
174
+    be optional: if the application does not supply it, the square
175
+    root function must still compute square roots.)
176
+
177
+These requirements apply to the modified work as a whole.  If
178
+identifiable sections of that work are not derived from the Library,
179
+and can be reasonably considered independent and separate works in
180
+themselves, then this License, and its terms, do not apply to those
181
+sections when you distribute them as separate works.  But when you
182
+distribute the same sections as part of a whole which is a work based
183
+on the Library, the distribution of the whole must be on the terms of
184
+this License, whose permissions for other licensees extend to the
185
+entire whole, and thus to each and every part regardless of who wrote
186
+it.
187
+
188
+Thus, it is not the intent of this section to claim rights or contest
189
+your rights to work written entirely by you; rather, the intent is to
190
+exercise the right to control the distribution of derivative or
191
+collective works based on the Library.
192
+
193
+In addition, mere aggregation of another work not based on the Library
194
+with the Library (or with a work based on the Library) on a volume of
195
+a storage or distribution medium does not bring the other work under
196
+the scope of this License.
197
+
198
+  3. You may opt to apply the terms of the ordinary GNU General Public
199
+License instead of this License to a given copy of the Library.  To do
200
+this, you must alter all the notices that refer to this License, so
201
+that they refer to the ordinary GNU General Public License, version 2,
202
+instead of to this License.  (If a newer version than version 2 of the
203
+ordinary GNU General Public License has appeared, then you can specify
204
+that version instead if you wish.)  Do not make any other change in
205
+these notices.
206
+
207
+  Once this change is made in a given copy, it is irreversible for
208
+that copy, so the ordinary GNU General Public License applies to all
209
+subsequent copies and derivative works made from that copy.
210
+
211
+  This option is useful when you wish to copy part of the code of
212
+the Library into a program that is not a library.
213
+
214
+  4. You may copy and distribute the Library (or a portion or
215
+derivative of it, under Section 2) in object code or executable form
216
+under the terms of Sections 1 and 2 above provided that you accompany
217
+it with the complete corresponding machine-readable source code, which
218
+must be distributed under the terms of Sections 1 and 2 above on a
219
+medium customarily used for software interchange.
220
+
221
+  If distribution of object code is made by offering access to copy
222
+from a designated place, then offering equivalent access to copy the
223
+source code from the same place satisfies the requirement to
224
+distribute the source code, even though third parties are not
225
+compelled to copy the source along with the object code.
226
+
227
+  5. A program that contains no derivative of any portion of the
228
+Library, but is designed to work with the Library by being compiled or
229
+linked with it, is called a "work that uses the Library".  Such a
230
+work, in isolation, is not a derivative work of the Library, and
231
+therefore falls outside the scope of this License.
232
+
233
+  However, linking a "work that uses the Library" with the Library
234
+creates an executable that is a derivative of the Library (because it
235
+contains portions of the Library), rather than a "work that uses the
236
+library".  The executable is therefore covered by this License.
237
+Section 6 states terms for distribution of such executables.
238
+
239
+  When a "work that uses the Library" uses material from a header file
240
+that is part of the Library, the object code for the work may be a
241
+derivative work of the Library even though the source code is not.
242
+Whether this is true is especially significant if the work can be
243
+linked without the Library, or if the work is itself a library.  The
244
+threshold for this to be true is not precisely defined by law.
245
+
246
+  If such an object file uses only numerical parameters, data
247
+structure layouts and accessors, and small macros and small inline
248
+functions (ten lines or less in length), then the use of the object
249
+file is unrestricted, regardless of whether it is legally a derivative
250
+work.  (Executables containing this object code plus portions of the
251
+Library will still fall under Section 6.)
252
+
253
+  Otherwise, if the work is a derivative of the Library, you may
254
+distribute the object code for the work under the terms of Section 6.
255
+Any executables containing that work also fall under Section 6,
256
+whether or not they are linked directly with the Library itself.
257
+
258
+  6. As an exception to the Sections above, you may also compile or
259
+link a "work that uses the Library" with the Library to produce a
260
+work containing portions of the Library, and distribute that work
261
+under terms of your choice, provided that the terms permit
262
+modification of the work for the customer's own use and reverse
263
+engineering for debugging such modifications.
264
+
265
+  You must give prominent notice with each copy of the work that the
266
+Library is used in it and that the Library and its use are covered by
267
+this License.  You must supply a copy of this License.  If the work
268
+during execution displays copyright notices, you must include the
269
+copyright notice for the Library among them, as well as a reference
270
+directing the user to the copy of this License.  Also, you must do one
271
+of these things:
272
+
273
+    a) Accompany the work with the complete corresponding
274
+    machine-readable source code for the Library including whatever
275
+    changes were used in the work (which must be distributed under
276
+    Sections 1 and 2 above); and, if the work is an executable linked
277
+    with the Library, with the complete machine-readable "work that
278
+    uses the Library", as object code and/or source code, so that the
279
+    user can modify the Library and then relink to produce a modified
280
+    executable containing the modified Library.  (It is understood
281
+    that the user who changes the contents of definitions files in the
282
+    Library will not necessarily be able to recompile the application
283
+    to use the modified definitions.)
284
+
285
+    b) Accompany the work with a written offer, valid for at
286
+    least three years, to give the same user the materials
287
+    specified in Subsection 6a, above, for a charge no more
288
+    than the cost of performing this distribution.
289
+
290
+    c) If distribution of the work is made by offering access to copy
291
+    from a designated place, offer equivalent access to copy the above
292
+    specified materials from the same place.
293
+
294
+    d) Verify that the user has already received a copy of these
295
+    materials or that you have already sent this user a copy.
296
+
297
+  For an executable, the required form of the "work that uses the
298
+Library" must include any data and utility programs needed for
299
+reproducing the executable from it.  However, as a special exception,
300
+the source code distributed need not include anything that is normally
301
+distributed (in either source or binary form) with the major
302
+components (compiler, kernel, and so on) of the operating system on
303
+which the executable runs, unless that component itself accompanies
304
+the executable.
305
+
306
+  It may happen that this requirement contradicts the license
307
+restrictions of other proprietary libraries that do not normally
308
+accompany the operating system.  Such a contradiction means you cannot
309
+use both them and the Library together in an executable that you
310
+distribute.
311
+
312
+  7. You may place library facilities that are a work based on the
313
+Library side-by-side in a single library together with other library
314
+facilities not covered by this License, and distribute such a combined
315
+library, provided that the separate distribution of the work based on
316
+the Library and of the other library facilities is otherwise
317
+permitted, and provided that you do these two things:
318
+
319
+    a) Accompany the combined library with a copy of the same work
320
+    based on the Library, uncombined with any other library
321
+    facilities.  This must be distributed under the terms of the
322
+    Sections above.
323
+
324
+    b) Give prominent notice with the combined library of the fact
325
+    that part of it is a work based on the Library, and explaining
326
+    where to find the accompanying uncombined form of the same work.
327
+
328
+  8. You may not copy, modify, sublicense, link with, or distribute
329
+the Library except as expressly provided under this License.  Any
330
+attempt otherwise to copy, modify, sublicense, link with, or
331
+distribute the Library is void, and will automatically terminate your
332
+rights under this License.  However, parties who have received copies,
333
+or rights, from you under this License will not have their licenses
334
+terminated so long as such parties remain in full compliance.
335
+
336
+  9. You are not required to accept this License, since you have not
337
+signed it.  However, nothing else grants you permission to modify or
338
+distribute the Library or its derivative works.  These actions are
339
+prohibited by law if you do not accept this License.  Therefore, by
340
+modifying or distributing the Library (or any work based on the
341
+Library), you indicate your acceptance of this License to do so, and
342
+all its terms and conditions for copying, distributing or modifying
343
+the Library or works based on it.
344
+
345
+  10. Each time you redistribute the Library (or any work based on the
346
+Library), the recipient automatically receives a license from the
347
+original licensor to copy, distribute, link with or modify the Library
348
+subject to these terms and conditions.  You may not impose any further
349
+restrictions on the recipients' exercise of the rights granted herein.
350
+You are not responsible for enforcing compliance by third parties to
351
+this License.
352
+
353
+  11. If, as a consequence of a court judgment or allegation of patent
354
+infringement or for any other reason (not limited to patent issues),
355
+conditions are imposed on you (whether by court order, agreement or
356
+otherwise) that contradict the conditions of this License, they do not
357
+excuse you from the conditions of this License.  If you cannot
358
+distribute so as to satisfy simultaneously your obligations under this
359
+License and any other pertinent obligations, then as a consequence you
360
+may not distribute the Library at all.  For example, if a patent
361
+license would not permit royalty-free redistribution of the Library by
362
+all those who receive copies directly or indirectly through you, then
363
+the only way you could satisfy both it and this License would be to
364
+refrain entirely from distribution of the Library.
365
+
366
+If any portion of this section is held invalid or unenforceable under any
367
+particular circumstance, the balance of the section is intended to apply,
368
+and the section as a whole is intended to apply in other circumstances.
369
+
370
+It is not the purpose of this section to induce you to infringe any
371
+patents or other property right claims or to contest validity of any
372
+such claims; this section has the sole purpose of protecting the
373
+integrity of the free software distribution system which is
374
+implemented by public license practices.  Many people have made
375
+generous contributions to the wide range of software distributed
376
+through that system in reliance on consistent application of that
377
+system; it is up to the author/donor to decide if he or she is willing
378
+to distribute software through any other system and a licensee cannot
379
+impose that choice.
380
+
381
+This section is intended to make thoroughly clear what is believed to
382
+be a consequence of the rest of this License.
383
+
384
+  12. If the distribution and/or use of the Library is restricted in
385
+certain countries either by patents or by copyrighted interfaces, the
386
+original copyright holder who places the Library under this License may add
387
+an explicit geographical distribution limitation excluding those countries,
388
+so that distribution is permitted only in or among countries not thus
389
+excluded.  In such case, this License incorporates the limitation as if
390
+written in the body of this License.
391
+
392
+  13. The Free Software Foundation may publish revised and/or new
393
+versions of the Library General Public License from time to time.
394
+Such new versions will be similar in spirit to the present version,
395
+but may differ in detail to address new problems or concerns.
396
+
397
+Each version is given a distinguishing version number.  If the Library
398
+specifies a version number of this License which applies to it and
399
+"any later version", you have the option of following the terms and
400
+conditions either of that version or of any later version published by
401
+the Free Software Foundation.  If the Library does not specify a
402
+license version number, you may choose any version ever published by
403
+the Free Software Foundation.
404
+
405
+  14. If you wish to incorporate parts of the Library into other free
406
+programs whose distribution conditions are incompatible with these,
407
+write to the author to ask for permission.  For software which is
408
+copyrighted by the Free Software Foundation, write to the Free
409
+Software Foundation; we sometimes make exceptions for this.  Our
410
+decision will be guided by the two goals of preserving the free status
411
+of all derivatives of our free software and of promoting the sharing
412
+and reuse of software generally.
413
+
414
+			    NO WARRANTY
415
+
416
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
417
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
418
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
419
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
420
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
421
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
422
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
423
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
424
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
425
+
426
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
427
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
428
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
429
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
430
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
431
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
432
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
433
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
434
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
435
+DAMAGES.
436
+
437
+		     END OF TERMS AND CONDITIONS
438
+
439
+           How to Apply These Terms to Your New Libraries
440
+
441
+  If you develop a new library, and you want it to be of the greatest
442
+possible use to the public, we recommend making it free software that
443
+everyone can redistribute and change.  You can do so by permitting
444
+redistribution under these terms (or, alternatively, under the terms of the
445
+ordinary General Public License).
446
+
447
+  To apply these terms, attach the following notices to the library.  It is
448
+safest to attach them to the start of each source file to most effectively
449
+convey the exclusion of warranty; and each file should have at least the
450
+"copyright" line and a pointer to where the full notice is found.
451
+
452
+    <one line to give the library's name and a brief idea of what it does.>
453
+    Copyright (C) <year>  <name of author>
454
+
455
+    This library is free software; you can redistribute it and/or
456
+    modify it under the terms of the GNU Library General Public
457
+    License as published by the Free Software Foundation; either
458
+    version 2 of the License, or (at your option) any later version.
459
+
460
+    This library is distributed in the hope that it will be useful,
461
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
462
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
463
+    Library General Public License for more details.
464
+
465
+    You should have received a copy of the GNU Library General Public
466
+    License along with this library; if not, write to the Free
467
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
468
+
469
+Also add information on how to contact you by electronic and paper mail.
470
+
471
+You should also get your employer (if you work as a programmer) or your
472
+school, if any, to sign a "copyright disclaimer" for the library, if
473
+necessary.  Here is a sample; alter the names:
474
+
475
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
476
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
477
+
478
+  <signature of Ty Coon>, 1 April 1990
479
+  Ty Coon, President of Vice
480
+
481
+That's all there is to it!

+ 39
- 0
ChangeLog View File

@@ -0,0 +1,39 @@
1
+
2
+0.4
3
+* new option for indented / non indented menu items
4
+* new option for highlighted tool button icons on mouse over
5
+* the button look for tool(bar) buttons is now optional
6
+* new rubberband options
7
+* smaller tabWidget margins
8
+* respects Gwenview's / Kicker's taskbar applet / Konversation's own mousewheel handling for scrollviews
9
+* clipped popup menu edges, for a better look with KWin's shadows (Beryl seems not to support it).
10
+* fixes pixmaps on PowerPC architecture
11
+* fixes functionality of some popup QToolButtons and adapts their look and behavior to KToolBarButtons
12
+* the content of popup menus with a side pixmap is visible again (Amarok, Digikam)
13
+* adapts KMenu's section header style
14
+* fixes Kickoff's tab icon alignment
15
+* fixes possible crash with enabled text effect
16
+* lets apps using their own label colors on tabs (if they're not defaulting to a fixed color like konsole)
17
+* decoration: option "dark window frame" draws a darker frame
18
+* decoration: borders are hidden when in maximized mode and moving / resizing of maximized windows is not allowed.
19
+
20
+
21
+0.3
22
+* decoration buttons on inactive windows are now visible if the mouse is over the titlebar
23
+* a new thinner contour for the buttons (raised and sunken)
24
+* different button contour colors for mousehover, pressed and default states
25
+* mouseclick on LineEdits hides the cursor
26
+* disabled toolButtons in non KDE applications are now drawn grayed out and with 50 % reduced transparency
27
+* buttons respect background pixmaps
28
+* text effect option
29
+* animated progressbar
30
+* configurable groupbox background color
31
+* configurable selected popupmenu item color
32
+* deactivatable popupmenu gradient
33
+* faster smooth scrolling
34
+* it's now possible to switch tabs with the mousewheel
35
+* colors can now be drag between the tabs in the configurations dialog
36
+* disables popupmenu (fake) transparency (they are cheap and broken)
37
+* some speed improvements, especially the groupbox
38
+* fixes mousewheel not switching desktops
39
+* fixes diverse crashes

+ 181
- 0
INSTALL View File

@@ -0,0 +1,181 @@
1
+Basic Installation
2
+==================
3
+
4
+   These are generic installation instructions.
5
+   
6
+   The `configure' shell script attempts to guess correct values for
7
+various system-dependent variables used during compilation.  It uses
8
+those values to create a `Makefile' in each directory of the package.
9
+It may also create one or more `.h' files containing system-dependent
10
+definitions.  Finally, it creates a shell script `config.status' that
11
+you can run in the future to recreate the current configuration, a file
12
+`config.cache' that saves the results of its tests to speed up
13
+reconfiguring, and a file `config.log' containing compiler output
14
+(useful mainly for debugging `configure').
15
+
16
+   If you need to do unusual things to compile the package, please try
17
+to figure out how `configure' could check whether to do them, and mail
18
+diffs or instructions to the address given in the `README' so they can
19
+be considered for the next release.  If at some point `config.cache'
20
+contains results you don't want to keep, you may remove or edit it.
21
+
22
+   The file `configure.in' is used to create `configure' by a program
23
+called `autoconf'.  You only need `configure.in' if you want to change
24
+it or regenerate `configure' using a newer version of `autoconf'.
25
+
26
+The simplest way to compile this package is:
27
+
28
+  1. `cd' to the directory containing the package's source code and type
29
+     `./configure' to configure the package for your system.  If you're
30
+     using `csh' on an old version of System V, you might need to type
31
+     `sh ./configure' instead to prevent `csh' from trying to execute
32
+     `configure' itself.
33
+
34
+     Running `configure' takes awhile.  While running, it prints some
35
+     messages telling which features it is checking for.
36
+
37
+  2. Type `make' to compile the package.
38
+
39
+  3. Optionally, type `make check' to run any self-tests that come with
40
+     the package.
41
+
42
+  4. Type `make install' to install the programs and any data files and
43
+     documentation.
44
+
45
+  5. You can remove the program binaries and object files from the
46
+     source code directory by typing `make clean'.  To also remove the
47
+     files that `configure' created (so you can compile the package for
48
+     a different kind of computer), type `make distclean'.  There is
49
+     also a `make maintainer-clean' target, but that is intended mainly
50
+     for the package's developers.  If you use it, you may have to get
51
+     all sorts of other programs in order to regenerate files that came
52
+     with the distribution.
53
+
54
+Compilers and Options
55
+=====================
56
+
57
+   Some systems require unusual options for compilation or linking that
58
+the `configure' script does not know about.  You can give `configure'
59
+initial values for variables by setting them in the environment.  Using
60
+a Bourne-compatible shell, you can do that on the command line like
61
+this:
62
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
63
+
64
+Or on systems that have the `env' program, you can do it like this:
65
+     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
66
+
67
+Compiling For Multiple Architectures
68
+====================================
69
+
70
+   You can compile the package for more than one kind of computer at the
71
+same time, by placing the object files for each architecture in their
72
+own directory.  To do this, you must use a version of `make' that
73
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
74
+directory where you want the object files and executables to go and run
75
+the `configure' script.  `configure' automatically checks for the
76
+source code in the directory that `configure' is in and in `..'.
77
+
78
+   If you have to use a `make' that does not supports the `VPATH'
79
+variable, you have to compile the package for one architecture at a time
80
+in the source code directory.  After you have installed the package for
81
+one architecture, use `make distclean' before reconfiguring for another
82
+architecture.
83
+
84
+Installation Names
85
+==================
86
+
87
+   By default, `make install' will install the package's files in
88
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
89
+installation prefix other than `/usr/local' by giving `configure' the
90
+option `--prefix=PATH'.
91
+
92
+   You can specify separate installation prefixes for
93
+architecture-specific files and architecture-independent files.  If you
94
+give `configure' the option `--exec-prefix=PATH', the package will use
95
+PATH as the prefix for installing programs and libraries.
96
+Documentation and other data files will still use the regular prefix.
97
+
98
+   In addition, if you use an unusual directory layout you can give
99
+options like `--bindir=PATH' to specify different values for particular
100
+kinds of files.  Run `configure --help' for a list of the directories
101
+you can set and what kinds of files go in them.
102
+
103
+   If the package supports it, you can cause programs to be installed
104
+with an extra prefix or suffix on their names by giving `configure' the
105
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
106
+
107
+Optional Features
108
+=================
109
+
110
+   Some packages pay attention to `--enable-FEATURE' options to
111
+`configure', where FEATURE indicates an optional part of the package.
112
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
113
+is something like `gnu-as' or `x' (for the X Window System).  The
114
+`README' should mention any `--enable-' and `--with-' options that the
115
+package recognizes.
116
+
117
+   For packages that use the X Window System, `configure' can usually
118
+find the X include and library files automatically, but if it doesn't,
119
+you can use the `configure' options `--x-includes=DIR' and
120
+`--x-libraries=DIR' to specify their locations.
121
+
122
+Specifying the System Type
123
+==========================
124
+
125
+   There may be some features `configure' can not figure out
126
+automatically, but needs to determine by the type of host the package
127
+will run on.  Usually `configure' can figure that out, but if it prints
128
+a message saying it can not guess the host type, give it the
129
+`--host=TYPE' option.  TYPE can either be a short name for the system
130
+type, such as `sun4', or a canonical name with three fields:
131
+     CPU-COMPANY-SYSTEM
132
+
133
+See the file `config.sub' for the possible values of each field.  If
134
+`config.sub' isn't included in this package, then this package doesn't
135
+need to know the host type.
136
+
137
+   If you are building compiler tools for cross-compiling, you can also
138
+use the `--target=TYPE' option to select the type of system they will
139
+produce code for and the `--build=TYPE' option to select the type of
140
+system on which you are compiling the package.
141
+
142
+Sharing Defaults
143
+================
144
+
145
+   If you want to set default values for `configure' scripts to share,
146
+you can create a site shell script called `config.site' that gives
147
+default values for variables like `CC', `cache_file', and `prefix'.
148
+`configure' looks for `PREFIX/share/config.site' if it exists, then
149
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
150
+`CONFIG_SITE' environment variable to the location of the site script.
151
+A warning: not all `configure' scripts look for a site script.
152
+
153
+Operation Controls
154
+==================
155
+
156
+   `configure' recognizes the following options to control how it
157
+operates.
158
+
159
+`--cache-file=FILE'
160
+     Use and save the results of the tests in FILE instead of
161
+     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
162
+     debugging `configure'.
163
+
164
+`--help'
165
+     Print a summary of the options to `configure', and exit.
166
+
167
+`--quiet'
168
+`--silent'
169
+`-q'
170
+     Do not print messages saying which checks are being made.
171
+
172
+`--srcdir=DIR'
173
+     Look for the package's source code in directory DIR.  Usually
174
+     `configure' can determine that directory automatically.
175
+
176
+`--version'
177
+     Print the version of Autoconf used to generate the `configure'
178
+     script, and exit.
179
+
180
+`configure' also accepts some other, not widely useful, options.
181
+

+ 11
- 0
Makefile.am View File

@@ -0,0 +1,11 @@
1
+
2
+AUTOMAKE_OPTIONS = foreign 1.5
3
+DISTCLEANFILES = inst-apps
4
+MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
5
+
6
+include admin/deps.am
7
+
8
+include admin/Doxyfile.am
9
+
10
+#SUBDIRS=$(TOPSUBDIRS)
11
+SUBDIRS = domino dominoConfig client

+ 10
- 0
Makefile.cvs View File

@@ -0,0 +1,10 @@
1
+all: 
2
+	@echo "This Makefile is only for the CVS repository"
3
+	@echo "This will be deleted before making the distribution"
4
+	@echo ""
5
+	$(MAKE) -f admin/Makefile.common cvs
6
+
7
+dist:
8
+	$(MAKE) -f admin/Makefile.common dist
9
+
10
+.SILENT:

+ 0
- 0
NEWS View File


+ 0
- 0
README View File


+ 16
- 0
client/Makefile.am View File

@@ -0,0 +1,16 @@
1
+
2
+INCLUDES = $(all_includes) -I$(kde_includes)/kwin
3
+
4
+SUBDIRS = . config
5
+
6
+kde_module_LTLIBRARIES = kwin3_domino.la
7
+
8
+kwin3_domino_la_SOURCES = dominoclient.cpp
9
+kwin3_domino_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module -L/usr/X11R6/lib 
10
+kwin3_domino_la_LIBADD  = $(LIB_KDECORE) $(kde_libraries)/libkdecorations.la -lXext -lX11 $(LIB_QT)
11
+
12
+METASOURCES = AUTO
13
+noinst_HEADERS = dominoclient.h
14
+
15
+lnkdir = $(kde_datadir)/kwin
16
+lnk_DATA = domino.desktop

+ 237
- 0
client/clientData.h View File

@@ -0,0 +1,237 @@
1
+/*
2
+	Copyright (C) 2006 Michael Lentner <michaell@gmx.net>
3
+	
4
+	This library is free software; you can redistribute it and/or
5
+	modify it under the terms of the GNU Library General Public
6
+	License version 2 as published by the Free Software Foundation.
7
+	
8
+	This library is distributed in the hope that it will be useful,
9
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+	Library General Public License for more details.
12
+	
13
+	You should have received a copy of the GNU General Public License
14
+	along with this library; if not, write to the Free Software
15
+	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
16
+*/
17
+
18
+
19
+#ifndef _QEMBED_CLIENTDATA
20
+#define _QEMBED_CLIENTDATA
21
+#include <qimage.h>
22
+#include <qdict.h>
23
+static const QRgb client_bottom_lines_dark_data[] = {
24
+    0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x44000000,0x44000000,0x44000000,0x44000000,
25
+    0x44000000,0x44000000,0x44000000,0x44000000,0x44000000,0x44000000
26
+};
27
+
28
+/* Generated by qembed */
29
+static const QRgb client_bottomLines_data[] = {
30
+    0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x13000000,0x13000000,0x13000000,0x13000000,
31
+    0x13000000,0x13000000,0x13000000,0x13000000,0x13000000,0x13000000
32
+};
33
+
34
+static const QRgb clientButtonContour_data[] = {
35
+    0x0,0x0,0x0,0x0,0x2000000,0x9000000,0xe000000,0xf000000,0xf000000,0xe000000,0x9000000,0x2000000,0x0,0x0,
36
+    0x0,0x0,0x0,0x0,0x1000000,0x7000000,0x27000000,0x8c000000,0xc4000000,0xc9000000,0xc9000000,0xc4000000,0x8c000000,0x27000000,
37
+    0x7000000,0x1000000,0x0,0x0,0x0,0x0,0xa000000,0x64000000,0xca000000,0x6a000000,0x1b000000,0xf000000,0xf000000,0x1b000000,
38
+    0x6a000000,0xca000000,0x64000000,0xa000000,0x1000000,0x0,0x0,0x7000000,0x5f000000,0xb5000000,0x23000000,0x8000000,0x1000000,0x0,
39
+    0x0,0x1000000,0x8000000,0x23000000,0xb5000000,0x5f000000,0x7000000,0x0,0x2000000,0x20000000,0xbd000000,0x1e000000,0x3000000,0x0,
40
+    0x0,0x0,0x0,0x0,0x0,0x3000000,0x1e000000,0xbd000000,0x20000000,0x2000000,0x9000000,0x88000000,0x62000000,0x7000000,
41
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7000000,0x62000000,0x88000000,0x9000000,0xe000000,0xc2000000,
42
+    0x1a000000,0x1000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x1a000000,0xc2000000,0xe000000,
43
+    0xf000000,0xc9000000,0xf000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xf000000,
44
+    0xc9000000,0xf000000,0xf000000,0xc9000000,0xf000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
45
+    0x0,0xf000000,0xc9000000,0xf000000,0xe000000,0xc2000000,0x19000000,0x1000000,0x0,0x0,0x0,0x0,0x0,0x0,
46
+    0x0,0x0,0x1000000,0x19000000,0xc2000000,0xe000000,0x9000000,0x88000000,0x62000000,0x7000000,0x0,0x0,0x0,0x0,
47
+    0x0,0x0,0x0,0x0,0x7000000,0x62000000,0x88000000,0x9000000,0x2000000,0x20000000,0xbd000000,0x1e000000,0x3000000,0x0,
48
+    0x0,0x0,0x0,0x0,0x0,0x3000000,0x1e000000,0xbd000000,0x20000000,0x2000000,0x0,0x7000000,0x5f000000,0xb5000000,
49
+    0x23000000,0x7000000,0x1000000,0x0,0x0,0x1000000,0x7000000,0x23000000,0xb5000000,0x5f000000,0x7000000,0x0,0x0,0x1000000,
50
+    0xa000000,0x64000000,0xca000000,0x6a000000,0x1b000000,0xf000000,0xf000000,0x1b000000,0x6a000000,0xca000000,0x64000000,0xa000000,0x1000000,0x0,
51
+    0x0,0x0,0x1000000,0x7000000,0x27000000,0x8c000000,0xc4000000,0xc9000000,0xc9000000,0xc4000000,0x8c000000,0x27000000,0x7000000,0x1000000,
52
+    0x0,0x0,0x0,0x0,0x0,0x0,0x2000000,0x9000000,0xe000000,0xf000000,0xf000000,0xe000000,0x9000000,0x2000000,
53
+    0x0,0x0,0x0,0x0
54
+};
55
+
56
+static const QRgb clientButtonPressed_data[] = {
57
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
58
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xb151515,0x400b0b0b,0x420d0d0d,0x420d0d0d,0x41090909,0xb151515,0x0,
59
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x39131313,0x6d010101,0x68000000,0x62000000,0x62000000,0x67000000,
60
+    0x70000000,0x50070707,0x1000000,0x0,0x0,0x0,0x0,0x0,0x1000000,0x5a040404,0x62000000,0x51000000,0x44000000,0x3e000000,
61
+    0x3d000000,0x43000000,0x4e000000,0x5f000000,0x51070707,0x1000000,0x0,0x0,0x0,0x0,0x3d0b0b0b,0x5a000000,0x42000000,0x32000000,
62
+    0x27000000,0x24000000,0x24000000,0x26000000,0x30000000,0x41000000,0x58000000,0x45060606,0x0,0x0,0x0,0x91a1a1a,0x5e000000,0x41000000,
63
+    0x2b000000,0x1e000000,0x18000000,0x16000000,0x15000000,0x18000000,0x1d000000,0x29000000,0x40000000,0x5b000000,0x12000000,0x0,0x0,0x28090909,
64
+    0x4a000000,0x2e000000,0x1b000000,0x14000000,0x11000000,0x10000000,0x10000000,0x10000000,0x13000000,0x1b000000,0x2c000000,0x49000000,0x31040404,0x0,
65
+    0x0,0x33050505,0x3d000000,0x22000000,0x14000000,0xf000000,0xd000000,0xd000000,0xd000000,0xd000000,0xe000000,0x14000000,0x21000000,0x3c000000,
66
+    0x2d070707,0x0,0x0,0x2f040404,0x34000000,0x1b000000,0xf000000,0xb000000,0xa000000,0xa000000,0xa000000,0xa000000,0xb000000,0xf000000,
67
+    0x1b000000,0x34000000,0x2a050505,0x0,0x0,0x2d020202,0x32000000,0x18000000,0xc000000,0x9000000,0x8000000,0x8000000,0x8000000,0x8000000,
68
+    0x9000000,0xd000000,0x19000000,0x33000000,0x28020202,0x0,0x0,0x14000000,0x35000000,0x1a000000,0xc000000,0x7000000,0x6000000,0x6000000,
69
+    0x6000000,0x6000000,0x7000000,0xd000000,0x1b000000,0x37000000,0xf000000,0x0,0x0,0x0,0x2b000000,0x23000000,0x12000000,0xa000000,
70
+    0x7000000,0x6000000,0x6000000,0x7000000,0xa000000,0x13000000,0x24000000,0x29000000,0x0,0x0,0x0,0x0,0x1000000,0x26000000,
71
+    0x1e000000,0x12000000,0xc000000,0xa000000,0xa000000,0xc000000,0x13000000,0x1f000000,0x25000000,0x1000000,0x0,0x0,0x0,0x0,
72
+    0x0,0x2000000,0x23000000,0x23000000,0x1b000000,0x16000000,0x16000000,0x1b000000,0x24000000,0x23000000,0x1000000,0x0,0x0,0x0,
73
+    0x0,0x0,0x0,0x0,0x0,0x8000000,0x1c000000,0x19000000,0x19000000,0x1b000000,0x7000000,0x0,0x0,0x0,
74
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
75
+    0x0,0x0,0x0,0x0
76
+};
77
+
78
+static const QRgb clientButtonShadow_data[] = {
79
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
80
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x16fdfdfd,0x52fdfdfd,0x6ffdfdfd,0x6ffdfdfd,0x50fdfdfd,0x16fdfdfd,0x0,
81
+    0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xafdfdfd,0x7bfcfcfc,0x78fdfdfd,0x65ffffff,0x6ffdfdfd,0x6ffdfdfd,0x65ffffff,
82
+    0x77fdfdfd,0x7afdfdfd,0x9fdfdfd,0x0,0x0,0x0,0x0,0x0,0xcfdfdfd,0x7bfdfdfd,0x69fdfdfd,0x4cfcfcfc,0x40ffffff,0x3bffffff,
83
+    0x3bffffff,0x40ffffff,0x4bffffff,0x69fdfdfd,0x7afcfcfc,0x9fdfdfd,0x0,0x0,0x0,0x3ffffff,0x66fcfcfc,0x58ffffff,0x37fcfcfc,0x2dffffff,
84
+    0x2bffffff,0x2bffffff,0x2bffffff,0x2bffffff,0x2dfbfbfb,0x37ffffff,0x58fcfcfc,0x64fdfdfd,0x3ffffff,0x0,0x0,0x25fdfdfd,0x50f9f9f9,0x32fafafa,
85
+    0x26f8f8f8,0x25f8f8f8,0x25f8f8f8,0x25f8f8f8,0x25f8f8f8,0x25f8f8f8,0x25f8f8f8,0x26f8f8f8,0x31fafafa,0x51f9f9f9,0x20fdfdfd,0x0,0x4bfbfbf,0x69fafafa,
86
+    0x3cf1f1f1,0x22e8e8e8,0x20e7e7e7,0x20e7e7e7,0x20e7e7e7,0x20e7e7e7,0x20e7e7e7,0x20e7e7e7,0x20e7e7e7,0x20e7e7e7,0x22e8e8e8,0x3cf3f3f3,0x66fafafa,0x3ffffff,
87
+    0xcffffff,0x8cfcfcfc,0x2fe5e5e5,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x1acdcdcd,0x2fe5e5e5,
88
+    0x8afbfbfb,0xaffffff,0x12f2f2f2,0x91f8f8f8,0x29d6d6d6,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,0x15aaaaaa,
89
+    0x15aaaaaa,0x28d7d7d7,0x91f8f8f8,0x10f0f0f0,0x12f2f2f2,0x81f8f8f8,0x2acdcdcd,0x11777777,0x106f6f6f,0x106f6f6f,0x106f6f6f,0x106f6f6f,0x106f6f6f,0x106f6f6f,
90
+    0x106f6f6f,0x106f6f6f,0x11777777,0x2bcecece,0x80f8f8f8,0x10f0f0f0,0xcffffff,0x5cf8f8f8,0x31cacaca,0x167f7f7f,0xc151515,0xb000000,0xb000000,0xb000000,
91
+    0xb000000,0xb000000,0xb000000,0xc151515,0x168b8b8b,0x37d5d5d5,0x55f8f8f8,0xbe9e9e9,0x4ffffff,0x32fafafa,0x78f2f2f2,0x24a8a8a8,0x17777777,0xe121212,
92
+    0xd000000,0xd000000,0xd000000,0xd000000,0xe121212,0x17797979,0x25ababab,0x7df3f3f3,0x2bffffff,0x3ffffff,0x0,0x15f3f3f3,0x66fcfcfc,0x64e9e9e9,
93
+    0x29acacac,0x1e858585,0x19707070,0x143f3f3f,0x143f3f3f,0x196e6e6e,0x1e858585,0x2aadadad,0x6debebeb,0x63f9f9f9,0x12ffffff,0x0,0x0,0x3ffffff,
94
+    0x26ffffff,0x7afafafa,0x7ff1f1f1,0x3cc4c4c4,0x30adadad,0x2ba6a6a6,0x2ba4a4a4,0x30afafaf,0x3ec3c3c3,0x84f1f1f1,0x77fafafa,0x22ffffff,0x3ffffff,0x0,
95
+    0x0,0x0,0x5ffffff,0x27f9f9f9,0x52fcfcfc,0x80f9f9f9,0x96f6f6f6,0x85f2f2f2,0x86f2f2f2,0x97f6f6f6,0x81fafafa,0x4ffcfcfc,0x20f8f8f8,0x4ffffff,
96
+    0x0,0x0,0x0,0x0,0x0,0x4bfbfbf,0xeffffff,0x32fafafa,0x3ffcfcfc,0x50fcfcfc,0x4ffcfcfc,0x3ffcfcfc,0x2ffafafa,0xef2f2f2,
97
+    0x3ffffff,0x0,0x0,0x0
98
+};
99
+
100
+static const QRgb client_close_6x6_data[] = {
101
+    0x6c2a2a2a,0x6b2a2a2a,0x0,0x0,0x6b2a2a2a,0x702a2a2a,0x7b2a2a2a,0xd62a2a2a,0x5c2a2a2a,0x792a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x7b2a2a2a,
102
+    0xd62a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x0,0x7b2a2a2a,0xd62a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x7b2a2a2a,0xd62a2a2a,0x782a2a2a,0x5e2a2a2a,
103
+    0xd62a2a2a,0x782a2a2a,0x6c2a2a2a,0x782a2a2a,0x0,0x0,0x5e2a2a2a,0x6c2a2a2a
104
+};
105
+
106
+static const QRgb client_dot_4x4_data[] = {
107
+    0x422a2a2a,0x9b2a2a2a,0x9b2a2a2a,0x422a2a2a,0x9b2a2a2a,0xb02a2a2a,0xb02a2a2a,0x9b2a2a2a,0x9b2a2a2a,0xb02a2a2a,0xb02a2a2a,0x9b2a2a2a,0x422a2a2a,0x9b2a2a2a,
108
+    0x9b2a2a2a,0x422a2a2a
109
+};
110
+
111
+static const QRgb client_edges_dark_data[] = {
112
+    0x0,0x0,0x0,0x34000000,0x35000000,0x35000000,0x34000000,0x0,0x0,0x0,0x0,0x0,0x34000000,0x2b000000,
113
+    0xe000000,0xe000000,0x2b000000,0x34000000,0x0,0x0,0x0,0x39000000,0x23000000,0x10000000,0x3000000,0x3000000,0x10000000,0x23000000,
114
+    0x39000000,0x0,0x3000000,0x38000000,0x11000000,0x3000000,0x0,0x0,0x3000000,0x11000000,0x38000000,0x3000000,0x34000000,0x2a000000,
115
+    0x5000000,0x1000000,0x0,0x0,0x1000000,0x5000000,0x2a000000,0x34000000,0x35000000,0x1e000000,0x3000000,0x0,0x0,0x0,
116
+    0x0,0x3000000,0x1e000000,0x35000000,0x37000000,0x20000000,0x3000000,0x0,0x0,0x0,0x0,0x3000000,0x20000000,0x37000000,
117
+    0x38000000,0x2c000000,0x6000000,0x1000000,0x0,0x0,0x1000000,0x6000000,0x2c000000,0x38000000,0x4000000,0x3d000000,0x13000000,0x3000000,
118
+    0x0,0x0,0x3000000,0x13000000,0x3d000000,0x4000000,0x0,0x40000000,0x28000000,0x13000000,0x4000000,0x4000000,0x13000000,0x28000000,
119
+    0x40000000,0x0,0x0,0x0,0x41000000,0x36000000,0x12000000,0x12000000,0x36000000,0x41000000,0x0,0x0,0x0,0x0,
120
+    0x0,0x41000000,0x44000000,0x44000000,0x41000000,0x0,0x0,0x0
121
+};
122
+
123
+static const QRgb client_edges_data[] = {
124
+    0x0,0x0,0x0,0x2fffffff,0x31ffffff,0x31ffffff,0x2fffffff,0x0,0x0,0x0,0x0,0x0,0x2effffff,0x25ffffff,
125
+    0x11ffffff,0x11ffffff,0x25ffffff,0x2effffff,0x0,0x0,0x0,0x34ffffff,0x1fffffff,0xeffffff,0x3ffffff,0x3ffffff,0xeffffff,0x1fffffff,
126
+    0x34ffffff,0x0,0x2ffffff,0x33ffffff,0xeffffff,0x3ffffff,0x0,0x0,0x3ffffff,0xeffffff,0x33ffffff,0x2ffffff,0x2fffffff,0x1fffffff,
127
+    0x4ffffff,0x1ffffff,0x0,0x0,0x1ffffff,0x4ffffff,0x1fffffff,0x2fffffff,0x2dffffff,0x12ffffff,0x2ffffff,0x0,0x0,0x0,
128
+    0x0,0x2ffffff,0x12ffffff,0x2dffffff,0x27ebebeb,0x18f5f5f5,0x3ffffff,0x0,0x0,0x0,0x0,0x3ffffff,0x18f5f5f5,0x27ebebeb,
129
+    0x28e5e5e5,0x1bcacaca,0x6ffffff,0x1ffffff,0x0,0x0,0x1ffffff,0x6ffffff,0x1bcacaca,0x28e5e5e5,0x1000000,0x1c888888,0xbb9b9b9,0x3ffffff,
130
+    0x0,0x0,0x3ffffff,0xbb9b9b9,0x1c888888,0x1000000,0x0,0x1d838383,0x11696969,0xab2b2b2,0x4ffffff,0x4ffffff,0xab2b2b2,0x11696969,
131
+    0x1d838383,0x0,0x0,0x0,0x12000000,0x15616161,0xcaaaaaa,0xcaaaaaa,0x15616161,0x12000000,0x0,0x0,0x0,0x0,
132
+    0x0,0x12000000,0x13000000,0x13000000,0x12000000,0x0,0x0,0x0
133
+};
134
+
135
+static const QRgb client_help_5x8_data[] = {
136
+    0x22a2a2a,0x772a2a2a,0xc22a2a2a,0xbd2a2a2a,0x302a2a2a,0x3b2a2a2a,0xd22a2a2a,0x612a2a2a,0x862a2a2a,0xbd2a2a2a,0x22a2a2a,0x22a2a2a,0x0,0x5b2a2a2a,
137
+    0xba2a2a2a,0x0,0x0,0x462a2a2a,0xbd2a2a2a,0x3e2a2a2a,0x0,0x0,0xd12a2a2a,0x682a2a2a,0x0,0x0,0x0,0x542a2a2a,
138
+    0x2a2a2a2a,0x0,0x0,0x0,0xb82a2a2a,0x5b2a2a2a,0x0,0x0,0x0,0x262a2a2a,0x82a2a2a,0x0
139
+};
140
+
141
+static const QRgb client_line_6x2_data[] = {
142
+    0x852a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0x852a2a2a,0x432a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x432a2a2a
143
+};
144
+
145
+static const QRgb client_max_8x8_data[] = {
146
+    0x0,0x0,0x0,0x852a2a2a,0x442a2a2a,0x0,0x0,0x0,0x0,0x0,0x0,0xbe2a2a2a,0x602a2a2a,0x0,
147
+    0x0,0x0,0x12a2a2a,0x12a2a2a,0x0,0xbe2a2a2a,0x602a2a2a,0x0,0x0,0x0,0x852a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,
148
+    0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0x852a2a2a,0x442a2a2a,0x602a2a2a,0x602a2a2a,0xbe2a2a2a,0x902a2a2a,0x622a2a2a,0x632a2a2a,0x452a2a2a,0x0,0x0,
149
+    0x0,0xbd2a2a2a,0x602a2a2a,0x0,0x0,0x0,0x0,0x0,0x0,0xbd2a2a2a,0x612a2a2a,0x0,0x0,0x0,
150
+    0x0,0x0,0x0,0x852a2a2a,0x442a2a2a,0x0,0x0,0x0
151
+};
152
+
153
+static const QRgb client_right_lines2_data[] = {
154
+    0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,
155
+    0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff
156
+};
157
+
158
+static const QRgb client_right_lines_dark_data[] = {
159
+    0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,
160
+    0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000
161
+};
162
+
163
+static const QRgb client_topLines2_data[] = {
164
+    0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,
165
+    0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff
166
+};
167
+
168
+static const QRgb client_top_lines_dark_data[] = {
169
+    0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x13000000,0x13000000,0x13000000,0x13000000,
170
+    0x13000000,0x13000000,0x13000000,0x13000000,0x13000000,0x13000000
171
+};
172
+
173
+static const QRgb client_upArrow_6x8_data[] = {
174
+    0x0,0x0,0x492a2a2a,0x142a2a2a,0x0,0x0,0x0,0x4a2a2a2a,0xb92a2a2a,0xa82a2a2a,0x1e2a2a2a,0x0,0x572a2a2a,0xb92a2a2a,
175
+    0xb92a2a2a,0xb82a2a2a,0xac2a2a2a,0x1d2a2a2a,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,
176
+    0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,
177
+    0x0,0x0,0x812a2a2a,0x402a2a2a,0x0,0x0
178
+};
179
+
180
+
181
+static struct EmbedImage {
182
+    int width, height, depth;
183
+    const unsigned char *data;
184
+    int numColors;
185
+    const QRgb *colorTable;
186
+    bool alpha;
187
+    const char *name;
188
+} embed_image_vec[] = {
189
+	{ 10, 2, 32, (const unsigned char*)client_bottom_lines_dark_data, 0, 0, TRUE, "client_bottomLines_dark" },
190
+	{ 10, 2, 32, (const unsigned char*)client_bottomLines_data, 0, 0, TRUE, "client_bottomLines" },
191
+	{ 16, 16, 32, (const unsigned char*)clientButtonContour_data, 0, 0, TRUE, "clientButtonContour" },
192
+	{ 16, 16, 32, (const unsigned char*)clientButtonPressed_data, 0, 0, TRUE, "clientButtonPressed" },
193
+	{ 16, 16, 32, (const unsigned char*)clientButtonShadow_data, 0, 0, TRUE, "clientButtonShadow" },
194
+	{ 6, 6, 32, (const unsigned char*)client_close_6x6_data, 0, 0, TRUE, "closeButtonIcon" },
195
+	{ 4, 4, 32, (const unsigned char*)client_dot_4x4_data, 0, 0, TRUE, "onAllDesktopsButtonIcon" },
196
+	{ 10, 12, 32, (const unsigned char*)client_edges_dark_data, 0, 0, TRUE, "client_edges_dark" },
197
+	{ 10, 12, 32, (const unsigned char*)client_edges_data, 0, 0, TRUE, "client_edges" },
198
+	{ 5, 8, 32, (const unsigned char*)client_help_5x8_data, 0, 0, TRUE, "helpButtonIcon" },
199
+	{ 6, 2, 32, (const unsigned char*)client_line_6x2_data, 0, 0, TRUE, "minButtonIcon" },
200
+	{ 8, 8, 32, (const unsigned char*)client_max_8x8_data, 0, 0, TRUE, "maxButtonIcon" },
201
+	{ 2, 10, 32, (const unsigned char*)client_right_lines2_data, 0, 0, TRUE, "client_rightLines" },
202
+	{ 2, 10, 32, (const unsigned char*)client_right_lines_dark_data, 0, 0, TRUE, "client_rightLines_dark" },
203
+	{ 10, 2, 32, (const unsigned char*)client_topLines2_data, 0, 0, TRUE, "client_topLines" },
204
+	{ 10, 2, 32, (const unsigned char*)client_top_lines_dark_data, 0, 0, TRUE, "client_topLines_dark" },
205
+	{ 6, 8, 32, (const unsigned char*)client_upArrow_6x8_data, 0, 0, TRUE, "aboveButtonIcon" },
206
+	{ 0, 0, 0, 0, 0, 0, 0, 0 }
207
+};
208
+
209
+static const QImage& qembed_findImage( const QString& name )
210
+{
211
+    static QDict<QImage> dict;
212
+    QImage* img = dict.find( name );
213
+    if ( !img ) {
214
+	for ( int i = 0; embed_image_vec[i].data; i++ ) {
215
+	    if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
216
+		img = new QImage((uchar*)embed_image_vec[i].data,
217
+			    embed_image_vec[i].width,
218
+			    embed_image_vec[i].height,
219
+			    embed_image_vec[i].depth,
220
+			    (QRgb*)embed_image_vec[i].colorTable,
221
+			    embed_image_vec[i].numColors,
222
+			    QImage::BigEndian );
223
+		if ( embed_image_vec[i].alpha )
224
+		    img->setAlphaBuffer( TRUE );
225
+		dict.insert( name, img );
226
+		break;
227
+	    }
228
+	}
229
+	if ( !img ) {
230
+	    static QImage dummy;
231
+	    return dummy;
232
+	}
233
+    }
234
+    return *img;
235
+}
236
+
237
+#endif

+ 10
- 0
client/config/Makefile.am View File

@@ -0,0 +1,10 @@
1
+INCLUDES = $(all_includes)
2
+
3
+kde_module_LTLIBRARIES = kwin_domino_config.la
4
+
5
+kwin_domino_config_la_SOURCES = config.cpp
6
+kwin_domino_config_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
7
+kwin_domino_config_la_LIBADD = $(LIB_KDEUI) $(LIB_QT) $(LIB_KDECORE)
8
+
9
+METASOURCES = AUTO
10
+noinst_HEADERS = config.h

+ 288
- 0
client/config/config.cpp View File

@@ -0,0 +1,288 @@
1
+/*
2
+	Copyright (C) 2006 Michael Lentner <michaell@gmx.net>
3
+	
4
+	based on KDE2 Default configuration widget:
5
+	Copyright (c) 2001
6
+		Karol Szwed <gallium@kde.org>
7
+		http://gallium.n3.net/
8
+	
9
+	This library is free software; you can redistribute it and/or
10
+	modify it under the terms of the GNU Library General Public
11
+	License version 2 as published by the Free Software Foundation.
12
+	
13
+	This library is distributed in the hope that it will be useful,
14
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+	Library General Public License for more details.
17
+	
18
+	You should have received a copy of the GNU General Public License
19
+	along with this library; if not, write to the Free Software
20
+	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
21
+ */
22
+
23
+#include "config.h"
24
+#include <kglobal.h>
25
+#include <klocale.h>
26
+#include <qvbox.h>
27
+#include <qlayout.h>
28
+#include <qlabel.h>
29
+#include <qgroupbox.h>
30
+#include <qsettings.h>
31
+
32
+extern "C"
33
+{
34
+	KDE_EXPORT QObject* allocate_config( KConfig* config, QWidget* parent )
35
+	{
36
+		return(new DominoConfig(config, parent));
37
+	}
38
+}
39
+
40
+// NOTE:
41
+// 'config' is a pointer to the kwindecoration modules open kwin config,
42
+//		  and is by default set to the "Style" group.
43
+// 'parent' is the parent of the QObject, which is a VBox inside the
44
+//		  Configure tab in kwindecoration
45
+
46
+DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
47
+	: QObject( parent )
48
+{
49
+	conf = new KConfig("kwindominorc");
50
+	
51
+	KGlobal::locale()->insertCatalogue("kwin_clients");
52
+	
53
+	vBox = new QVBox( parent );
54
+
55
+	customBorderColor = new QCheckBox( i18n("Custom border color"), vBox );
56
+	QHBox *hbox1 = new QHBox(vBox);
57
+	hbox1->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
58
+	borderColor = new KColorButton(hbox1);
59
+	
60
+	customButtonColor = new QCheckBox( i18n("Custom button color"), vBox );
61
+	QHBox *hbox2 = new QHBox(vBox);
62
+	hbox2->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
63
+	buttonColor = new KColorButton(hbox2);
64
+	
65
+	customButtonIconColor = new QCheckBox( i18n("Custom button icon color"), vBox );
66
+	QHBox *hbox3 = new QHBox(vBox);
67
+	hbox3->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
68
+	buttonIconColor = new KColorButton(hbox3);
69
+	
70
+	customGradientColors = new QCheckBox( i18n("Custom gradient colors"), vBox);
71
+	QHBox *hbox4 = new QHBox(vBox);
72
+	hbox4->layout()->addItem(new QSpacerItem(22, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
73
+	
74
+	QVBox *vbox1 = new QVBox(hbox4);
75
+	new QLabel( i18n("Top gradient color"), vbox1);
76
+	topGradientColor = new KColorButton(vbox1);
77
+	new QLabel(i18n("Bottom gradient color"), vbox1);
78
+	bottomGradientColor = new KColorButton(vbox1);
79
+	
80
+	showInactiveButtons = new QCheckBox( i18n("Show inactive buttons"), vBox );
81
+	showButtonIcons  = new QCheckBox( i18n("Show button icons"), vBox );
82
+	darkFrame  = new QCheckBox( i18n("Dark window frame"), vBox );
83
+	
84
+	
85
+	///////////////////////////////////////
86
+	
87
+	
88
+	QGroupBox* colorGb = new QGroupBox(vBox);
89
+	colorGb->setTitle(i18n("Button contour colors:"));
90
+	colorGb->setColumnLayout(0, Qt::Vertical );
91
+	colorGb->layout()->setSpacing( 6 );
92
+	colorGb->layout()->setMargin( 11 );
93
+	
94
+	QGridLayout* gbLayout = new QGridLayout( colorGb->layout(), 4, 2 );
95
+	gbLayout->setAlignment( Qt::AlignTop );
96
+	
97
+	QLabel* labelSC = new QLabel(i18n("Standard color:"), colorGb);
98
+	buttonContourColor = new KColorButton(colorGb);
99
+	buttonContourColor->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
100
+	QLabel* labelMC = new QLabel(i18n("Mouseover color:"), colorGb);
101
+	buttonMouseOverContourColor = new KColorButton(colorGb);
102
+	QLabel* labelPC = new QLabel(i18n("Pressed color:"), colorGb);
103
+	buttonPressedContourColor = new KColorButton(colorGb);
104
+	
105
+	useDominoStyleContourColors = new QCheckBox( i18n("Use domino style contour colors"), colorGb );
106
+	gbLayout->addMultiCellWidget(useDominoStyleContourColors, 0, 0, 0, 1);
107
+	
108
+	gbLayout->addWidget(labelSC, 1, 0);
109
+	gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
110
+	gbLayout->addWidget(buttonContourColor, 1, 1);
111
+	
112
+	gbLayout->addWidget(labelMC, 2, 0);
113
+	gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
114
+	gbLayout->addWidget(buttonMouseOverContourColor, 2, 1);
115
+	
116
+	gbLayout->addWidget(labelPC, 3, 0);
117
+	gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
118
+	gbLayout->addWidget(buttonPressedContourColor, 3, 1);
119
+	
120
+	
121
+	
122
+	
123
+	
124
+	
125
+	
126
+	
127
+	
128
+	///////////////////////////////////////
129
+	
130
+	// Load configuration options
131
+	load(config);
132
+
133
+	// Ensure we track user changes properly
134
+	connect(customGradientColors, SIGNAL(toggled(bool)), topGradientColor, SLOT(setEnabled(bool)));
135
+	connect(customGradientColors, SIGNAL(toggled(bool)), bottomGradientColor, SLOT(setEnabled(bool)));
136
+	
137
+	connect(customBorderColor, SIGNAL(toggled(bool)), borderColor, SLOT(setEnabled(bool)));
138
+	connect(customButtonColor, SIGNAL(toggled(bool)), buttonColor, SLOT(setEnabled(bool)));
139
+	connect(customButtonIconColor, SIGNAL(toggled(bool)), buttonIconColor, SLOT(setEnabled(bool)));
140
+	
141
+	connect(customGradientColors, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
142
+	connect(topGradientColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
143
+	connect(bottomGradientColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
144
+	
145
+	
146
+	connect(customBorderColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
147
+	connect(borderColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
148
+	
149
+	connect(customButtonColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
150
+	connect(buttonColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
151
+	connect(customButtonIconColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
152
+	connect(buttonIconColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
153
+	
154
+	connect(showInactiveButtons, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
155
+	connect(showButtonIcons, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
156
+	connect(darkFrame, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
157
+	
158
+	connect(useDominoStyleContourColors, SIGNAL(clicked()), this, SLOT(loadButtonContourColors()));
159
+	connect(useDominoStyleContourColors, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
160
+	connect(buttonContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
161
+	connect(buttonMouseOverContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
162
+	connect(buttonPressedContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
163
+	
164
+	
165
+	// Make the widgets visible in kwindecoration valueChanged
166
+	vBox->show();
167
+}
168
+
169
+
170
+DominoConfig::~DominoConfig()
171
+{
172
+	delete vBox;
173
+	delete conf;
174
+}
175
+
176
+
177
+void DominoConfig::slotSelectionChanged()
178
+{
179
+	emit changed();
180
+}
181
+
182
+
183
+// Loads the configurable options from the kwinrc config file
184
+// It is passed the open config from kwindecoration to improve efficiency
185
+void DominoConfig::load(KConfig*)
186
+{
187
+	conf->setGroup("General");
188
+	
189
+	customBorderColor->setChecked(conf->readBoolEntry("customBorderColor", true));
190
+	borderColor->setEnabled(customBorderColor->isChecked());
191
+	borderColor->setColor(conf->readEntry("borderColor", "#777B7F"));
192
+	customButtonColor->setChecked(conf->readBoolEntry( "customButtonColor", false));
193
+	buttonColor->setEnabled(customButtonColor->isChecked());
194
+	buttonColor->setColor(conf->readEntry("buttonColor", "#212121"));
195
+	customButtonIconColor->setChecked(conf->readBoolEntry( "customButtonIconColor", false));
196
+	buttonIconColor->setEnabled(customButtonIconColor->isChecked());
197
+	buttonIconColor->setColor(conf->readEntry("buttonIconColor", "#000000"));
198
+	
199
+	customGradientColors->setChecked(conf->readBoolEntry( "customGradientColors", false));
200
+	topGradientColor->setEnabled(customGradientColors->isChecked());
201
+	bottomGradientColor->setEnabled(customGradientColors->isChecked());
202
+	topGradientColor->setColor(conf->readEntry("topGradientColor", "#ffffff"));
203
+	bottomGradientColor->setColor(conf->readEntry("bottomGradientColor", "#000000"));
204
+	
205
+	showInactiveButtons->setChecked(conf->readBoolEntry("showInactiveButtons", false));
206
+	showButtonIcons->setChecked(conf->readBoolEntry("showButtonIcons", false));
207
+	darkFrame->setChecked(conf->readBoolEntry("darkFrame", false));
208
+	
209
+	useDominoStyleContourColors->setChecked(conf->readBoolEntry("useDominoStyleContourColors", true));
210
+	
211
+	loadButtonContourColors();
212
+	
213
+}
214
+
215
+
216
+// Saves the configurable options to the kwinrc config file
217
+void DominoConfig::save(KConfig*)
218
+{
219
+	conf->setGroup("General");
220
+	
221
+	conf->writeEntry("customBorderColor", customBorderColor->isChecked());
222
+	conf->writeEntry("borderColor", borderColor->color().name());
223
+	conf->writeEntry("customButtonColor", customButtonColor->isChecked());
224
+	conf->writeEntry("buttonColor", buttonColor->color().name());
225
+	conf->writeEntry("customButtonIconColor", customButtonIconColor->isChecked());
226
+	conf->writeEntry("buttonIconColor", buttonIconColor->color().name());
227
+	conf->writeEntry("showInactiveButtons", showInactiveButtons->isChecked());
228
+	conf->writeEntry("showButtonIcons", showButtonIcons->isChecked());
229
+	
230
+	conf->writeEntry("customGradientColors", customGradientColors->isChecked());
231
+	conf->writeEntry("topGradientColor", topGradientColor->color().name());
232
+	conf->writeEntry("bottomGradientColor", bottomGradientColor->color().name());
233
+	conf->writeEntry("darkFrame", darkFrame->isChecked());
234
+	
235
+	conf->writeEntry("useDominoStyleContourColors", useDominoStyleContourColors->isChecked());
236
+	conf->writeEntry("buttonContourColor", buttonContourColor->color().name());
237
+	conf->writeEntry("buttonMouseOverContourColor", buttonMouseOverContourColor->color().name());
238
+	conf->writeEntry("buttonPressedContourColor", buttonPressedContourColor->color().name());
239
+	
240
+	conf->sync();
241
+}
242
+
243
+
244
+// Sets UI widget defaults which must correspond to style defaults
245
+void DominoConfig::defaults()
246
+{
247
+	
248
+	QColor background = vBox->paletteBackgroundColor();
249
+	
250
+	customBorderColor->setChecked(true);
251
+	borderColor->setColor("#777B7F");
252
+	customButtonColor->setChecked(false);
253
+	buttonColor->setColor("#212121");
254
+	customButtonIconColor->setChecked(false);
255
+	buttonIconColor->setColor("#000000");
256
+	showInactiveButtons->setChecked(false);
257
+	showButtonIcons->setChecked(false);
258
+	customGradientColors->setChecked(false);
259
+	topGradientColor->setColor("#ffffff");
260
+	bottomGradientColor->setColor("#000000");
261
+	darkFrame->setChecked(false);
262
+	
263
+	useDominoStyleContourColors->setChecked(true);
264
+	buttonContourColor->setColor(background.dark(250).name());
265
+	buttonMouseOverContourColor->setColor(background.dark(250).name());
266
+	buttonPressedContourColor->setColor(background.dark(250).name());
267
+	
268
+}
269
+
270
+void DominoConfig::loadButtonContourColors() {
271
+	
272
+	QColor background = vBox->paletteBackgroundColor();
273
+	if(useDominoStyleContourColors->isChecked()) {
274
+		QSettings s;
275
+		buttonContourColor->setColor(s.readEntry("/domino/Settings/buttonContourColor", background.dark(250).name()));
276
+		buttonMouseOverContourColor->setColor(s.readEntry("/domino/Settings/buttonMouseOverContourColor", background.dark(250).name()));
277
+		buttonPressedContourColor->setColor(s.readEntry("/domino/Settings/buttonPressedContourColor", background.dark(250).name()));
278
+	}
279
+	else {
280
+		buttonContourColor->setColor(conf->readEntry("buttonContourColor", background.dark(250).name()));
281
+		buttonMouseOverContourColor->setColor(conf->readEntry("buttonMouseOverContourColor", background.dark(250).name()));
282
+		buttonPressedContourColor->setColor(conf->readEntry("buttonPressedContourColor", background.dark(250).name()));
283
+	}
284
+	
285
+}
286
+
287
+#include "config.moc"
288
+

+ 75
- 0
client/config/config.h View File

@@ -0,0 +1,75 @@
1
+/*
2
+	Copyright (C) 2006 Michael Lentner <michaell@gmx.net>
3
+	
4
+	based on KDE2 Default configuration widget:
5
+	Copyright (c) 2001
6
+		Karol Szwed <gallium@kde.org>
7
+		http://gallium.n3.net/
8
+	
9
+	This library is free software; you can redistribute it and/or
10
+	modify it under the terms of the GNU Library General Public
11
+	License version 2 as published by the Free Software Foundation.
12
+	
13
+	This library is distributed in the hope that it will be useful,
14
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+	Library General Public License for more details.
17
+	
18
+	You should have received a copy of the GNU General Public License
19
+	along with this library; if not, write to the Free Software
20
+	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
21
+ */
22
+
23
+#ifndef DOMINOCONFIG_H
24
+#define DOMINOCONFIG_H
25
+
26
+#include <qcheckbox.h>
27
+#include <kconfig.h>
28
+#include <qvbox.h>
29
+#include <kcolorbutton.h>
30
+
31
+class DominoConfig: public QObject
32
+{
33
+	Q_OBJECT
34
+
35
+	public:
36
+		DominoConfig( KConfig* config, QWidget* parent );
37
+		~DominoConfig();
38
+
39
+	// These public signals/slots work similar to KCM modules
40
+	signals:
41
+		void changed();
42
+
43
+	public slots:
44
+		void load(KConfig* config);
45
+		void save(KConfig* config);
46
+		void defaults();
47
+
48
+	protected slots:
49
+		void slotSelectionChanged();	// Internal use
50
+		void loadButtonContourColors();
51
+	private:
52
+		KConfig* conf;
53
+		QVBox* vBox;
54
+		QCheckBox* customBorderColor;
55
+		KColorButton* borderColor;
56
+		QCheckBox* customButtonColor;
57
+		KColorButton* buttonColor;
58
+		QCheckBox* customButtonIconColor;
59
+		KColorButton* buttonIconColor;
60
+		
61
+		QCheckBox* showInactiveButtons;
62
+		QCheckBox* showButtonIcons;
63
+		QCheckBox* customGradientColors;
64
+		KColorButton* topGradientColor;
65
+		KColorButton* bottomGradientColor;
66
+		QCheckBox* darkFrame;
67
+		
68
+		QCheckBox* useDominoStyleContourColors;
69
+		KColorButton* buttonContourColor;
70
+		KColorButton* buttonMouseOverContourColor;
71
+		KColorButton* buttonPressedContourColor;
72
+		
73
+};
74
+
75
+#endif

+ 5
- 0
client/domino.desktop View File

@@ -0,0 +1,5 @@
1
+[Desktop Entry]
2
+Encoding=UTF-8
3
+Icon=
4
+Name=Domino
5
+X-KDE-Library=kwin3_domino

+ 1195
- 0
client/dominoclient.cpp
File diff suppressed because it is too large
View File


+ 156
- 0
client/dominoclient.h View File

@@ -0,0 +1,156 @@
1
+/*
2
+	Copyright (C) 2006 Michael Lentner <michaell@gmx.net>
3
+	
4
+	based on KDE2 Default KWin client:
5
+	Copyright (C) 1999, 2001 Daniel Duley <mosfet@kde.org>
6
+	Matthias Ettrich <ettrich@kde.org>
7
+	Karol Szwed <gallium@kde.org>
8
+	
9
+	This library is free software; you can redistribute it and/or
10
+	modify it under the terms of the GNU Library General Public
11
+	License version 2 as published by the Free Software Foundation.
12
+	
13
+	This library is distributed in the hope that it will be useful,
14
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+	Library General Public License for more details.
17
+	
18
+	You should have received a copy of the GNU General Public License
19
+	along with this library; if not, write to the Free Software
20
+	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
21
+*/
22
+
23
+#ifndef _DOMINOCLIENT_H
24
+#define _DOMINOCLIENT_H
25
+
26
+#include <kcommondecoration.h>
27
+#include <kdecorationfactory.h>
28
+#include <qlayout.h>
29
+
30
+namespace Domino {
31
+
32
+class DominoClient;
33
+class TitleBar;
34
+
35
+class DominoHandler: public QObject, public KDecorationFactory
36
+{
37
+	public:
38
+		DominoHandler();
39
+		~DominoHandler();
40
+				KDecoration* createDecoration( KDecorationBridge* b );
41
+		bool reset( unsigned long changed );
42
+		virtual bool supports( Ability ability );
43
+		
44
+		QColor buttonContourColor;
45
+		QColor buttonMouseOverContourColor;
46
+		QColor buttonPressedContourColor;
47
+		
48
+		bool customButtonColor;
49
+		QColor buttonColor;
50
+		bool customButtonIconColor;
51
+		QColor buttonIconColor;
52
+		bool customBorderColor;
53
+		QColor borderColor;
54
+		bool darkLines;
55
+		
56
+	private:
57
+		unsigned long readConfig( bool update );
58
+		void createPixmaps();
59
+		void freePixmaps();
60
+
61
+};
62
+
63
+
64
+class DominoButton : public KCommonDecorationButton
65
+{
66
+	public:
67
+		DominoButton(ButtonType type, DominoClient *parent, const char *name);
68
+		~DominoButton();
69
+
70
+		void reset(unsigned long changed);
71
+
72
+	protected:
73
+		void enterEvent(QEvent *);
74
+		void leaveEvent(QEvent *);
75
+		void drawButton(QPainter *p);
76
+		void drawButtonLabel(QPainter*) {;}
77
+
78
+		bool isMouseOver;
79
+		DominoClient* client;
80
+};
81
+
82
+
83
+class DominoClient : public KCommonDecoration
84
+{
85
+	Q_OBJECT
86
+	public:
87
+		DominoClient( KDecorationBridge* b, KDecorationFactory* f );
88
+		~DominoClient();
89
+
90
+		virtual QString visibleName() const;
91
+		virtual QString defaultButtonsLeft() const;
92
+		virtual QString defaultButtonsRight() const;
93
+		virtual bool decorationBehaviour(DecorationBehaviour behaviour) const;
94
+		virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton * = 0) const;
95
+		virtual KCommonDecorationButton *createButton(ButtonType type);
96
+		void borders( int& left, int& right, int& top, int& bottom ) const;
97
+		
98
+		void init();
99
+		void reset( unsigned long changed );
100
+		void resize( const QSize& s );
101
+		void updateMask();
102
+		
103
+		void updateWindowShape();
104
+		void updateCaption();
105
+		void shadeChange();
106
+		void activeChange();
107
+		void iconChange();
108
+		
109
+		TitleBar* titleBar;
110
+		QWidget* borderTopLeft;
111
+		QWidget* borderTopRight;
112
+		QWidget* borderBottomLeft;
113
+		QWidget* borderBottomRight;
114
+		QWidget* borderLeft;
115
+		QWidget* borderRight;
116
+		QWidget* borderBottom;
117
+		QGridLayout* mainlayout;
118
+		QButton* menuButton;
119
+		
120
+		void setPixmaps();
121
+		bool titleBarMouseOver;
122
+		bool globalMouseTracking;
123
+		
124
+	public slots:
125
+		void slotShade();
126
+		void menuButtonDestroyed();
127
+
128
+	protected:
129
+		bool eventFilter(QObject*, QEvent*);
130
+		void paintEvent(QPaintEvent*);
131
+		void resizeEvent(QResizeEvent*);
132
+		void showEvent(QShowEvent*);
133
+
134
+	private:
135
+		
136
+		void createLayout();
137
+};
138
+
139
+class TitleBar : public QWidget
140
+{
141
+	public:
142
+		TitleBar(QWidget* parent=0, const char* name=0) : QWidget(parent, name) {}
143
+		void enterEvent(QEvent * e);
144
+		bool eventFilter(QObject*, QEvent*);
145
+		DominoClient* client;
146
+};
147
+
148
+
149
+
150
+void renderGradient(QPainter *painter, QRect &rect,
151
+	    QColor &c1, QColor &c2, const char* name = 0);
152
+QColor alphaBlendColors(const QColor &backgroundColor, const QColor &foregroundColor, const int alpha);
153
+QImage tintImage(const QImage &img, const QColor &tintColor);
154
+}
155
+
156
+#endif

+ 1
- 0
configure.in.in View File

@@ -0,0 +1 @@
1
+#MIN_CONFIG

+ 27
- 0
domino/Domino.kcsrc View File

@@ -0,0 +1,27 @@
1
+[Color Scheme]
2
+Name=Domino
3
+activeBackground=149,155,162
4
+activeBlend=149,155,162
5
+activeForeground=40,40,40
6
+activeTitleBtnBg=154,161,168
7
+alternateBackground=230,230,230
8
+background=149,155,162
9
+buttonBackground=149,155,162
10
+buttonForeground=0,0,0
11
+contrast=0
12
+foreground=0,0,0
13
+frame=149,155,162
14
+handle=149,155,162
15
+inactiveBackground=149,155,162
16
+inactiveBlend=149,155,162
17
+inactiveForeground=40,40,40
18
+inactiveFrame=149,155,162
19
+inactiveHandle=149,155,162
20
+inactiveTitleBtnBg=123,128,134
21
+linkColor=10,95,137
22
+selectBackground=162,168,223
23
+selectForeground=0,0,0
24
+shadeSortColumn=false
25
+visitedLinkColor=137,10,137
26
+windowBackground=237,237,237
27
+windowForeground=0,0,0

+ 20
- 0
domino/Makefile.am View File

@@ -0,0 +1,20 @@
1
+AUTOMAKE_OPTIONS = foreign
2
+
3
+KDE_CXXFLAGS = -DQT_PLUGIN -I/usr/include/freetype2
4
+
5
+INCLUDES = $(all_includes)
6
+
7
+stylercdir = $(kde_datadir)/kstyle/themes
8
+stylerc_DATA = domino.themerc
9
+schemedir = $(kde_datadir)/kdisplay/color-schemes
10
+scheme_DATA = Domino.kcsrc
11
+
12
+noinst_HEADERS = domino.h misc.h data.h
13
+
14
+kde_style_LTLIBRARIES = domino.la
15
+domino_la_SOURCES = domino.cpp misc.cpp
16
+domino_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module $(KDE_RPATH)
17
+domino_la_LIBADD = $(LIB_KDEUI) $(LIB_KUTILS) $(LIB_QT) -lkdefx -lXrender -lXft $(LIB_KDECORE)
18
+domino_la_METASOURCES = AUTO
19
+
20
+DISTCLEANFILES = $(domino_la_METASOURCES)

+ 1306
- 0
domino/data.h
File diff suppressed because it is too large
View File


+ 8139
- 0
domino/domino.cpp
File diff suppressed because it is too large
View File


+ 865
- 0
domino/domino.h View File

@@ -0,0 +1,865 @@
1
+/* Domino widget style for KDE 3
2
+   Copyright (C) 2006 Michael Lentner <michaell@gmx.net>
3
+
4
+   based on the KDE style "Plastik":
5
+   Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
6
+
7
+   based on the KDE style "dotNET":
8
+   Copyright (C) 2001-2002, Chris Lee <clee@kde.org>
9
+				Carsten Pfeiffer <pfeiffer@kde.org>
10
+				Karol Szwed <gallium@kde.org>
11
+   Drawing routines completely reimplemented from KDE3 HighColor, which was
12
+   originally based on some stuff from the KDE2 HighColor.
13
+
14
+   based on drawing routines of the style "Keramik":
15
+   Copyright (c) 2002 Malte Starostik <malte@kde.org>
16
+		 (c) 2002,2003 Maksim Orlovich <mo002j@mail.rochester.edu>
17
+   based on the KDE3 HighColor Style
18
+   Copyright (C) 2001-2002 Karol Szwed		<gallium@kde.org>
19
+		 (C) 2001-2002 Fredrik Höglund	<fredrik@kde.org>
20
+   Drawing routines adapted from the KDE2 HCStyle,
21
+   Copyright (C) 2000 Daniel M. Duley		<mosfet@kde.org>
22
+		 (C) 2000 Dirk Mueller			<mueller@kde.org>
23
+		 (C) 2001 Martijn Klingens		<klingens@kde.org>
24
+   Progressbar code based on KStyle,
25
+   Copyright (C) 2001-2002 Karol Szwed <gallium@kde.org>
26
+
27
+   This library is free software; you can redistribute it and/or
28
+   modify it under the terms of the GNU Library General Public
29
+   License version 2 as published by the Free Software Foundation.
30
+
31
+   This library is distributed in the hope that it will be useful,
32
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
33
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
34
+   Library General Public License for more details.
35
+
36
+   You should have received a copy of the GNU General Public License
37
+   along with this library; if not, write to the Free Software
38
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
39
+ */
40
+
41
+#ifndef __DOMINO_H
42
+#define __DOMINO_H
43
+
44
+#include <kstyle.h>
45
+#include <qintcache.h>
46
+#include <ktoolbarbutton.h>
47
+#include "misc.h"
48
+#include "data.h"
49
+#include <qpixmapcache.h>
50
+
51
+
52
+// #include <X11/extensions/Xrender.h>
53
+#include <X11/Xft/Xft.h>
54
+class ButtonContour;
55
+class RubberWidget;
56
+class Rubber;
57
+
58
+
59
+	enum ContourType
60
+{
61
+	Contour_Sunken = 0,
62
+	Contour_Raised = 1,
63
+	Contour_Simple = 2
64
+};
65
+
66
+	enum ContourState
67
+{
68
+	Contour_Default = 0,
69
+	Contour_Pressed = 1,
70
+	Contour_MouseOver = 2,
71
+	Contour_DefaultButton = 3
72
+};
73
+
74
+	enum TextEffect
75
+{
76
+	TextEffect_None = 0,
77
+	TextEffect_OnlyButton = 1,
78
+	TextEffect_Everywhere = 2
79
+};
80
+
81
+	struct DSurface {
82
+		int numGradients;
83
+		QColor g1Color1;
84
+		QColor g1Color2;
85
+		QColor g2Color1;
86
+		QColor g2Color2;
87
+		QColor background;
88
+		int g1Top;
89
+		int g1Bottom;
90
+		int g2Top;
91
+		int g2Bottom;
92
+	};
93
+
94
+
95
+class DominoStyle : public KStyle
96
+{
97
+	Q_OBJECT
98
+	
99
+public:
100
+	
101
+	DominoStyle();
102
+	virtual ~DominoStyle();
103
+	
104
+	enum PaletteTyp
105
+	{
106
+		Palette_Application,
107
+		Palette_Parent,
108
+		Palette_Widget
109
+	};
110
+	
111
+	void polish(QApplication* app );
112
+	void polish(QWidget* widget );
113
+	void polish( QPalette &p );
114
+	void unPolish(QWidget* widget );
115
+	
116
+	void drawKStylePrimitive(KStylePrimitive kpe,
117
+				QPainter* p,
118
+				const QWidget* widget,
119
+				const QRect &r,
120
+				const QColorGroup &cg,
121
+				SFlags flags = Style_Default,
122
+				const QStyleOption& = QStyleOption::Default ) const;
123
+
124
+	void drawPrimitive(PrimitiveElement pe,
125
+				QPainter *p,
126
+				const QRect &r,
127
+				const QColorGroup &cg,
128
+				SFlags flags = Style_Default,
129
+				const QStyleOption &opt = QStyleOption::Default ) const;
130
+
131
+	void drawControl(ControlElement element,
132
+				QPainter *p,
133
+				const QWidget *widget,
134
+				const QRect &r,
135
+				const QColorGroup &cg,
136
+				SFlags flags = Style_Default,
137
+				const QStyleOption& = QStyleOption::Default ) const;
138
+
139
+	void drawControlMask( ControlElement, QPainter *, const QWidget *, const QRect &, const QStyleOption &) const;
140
+
141
+	void drawComplexControl(ComplexControl control,
142
+				QPainter *p,
143
+				const QWidget *widget,
144
+				const QRect &r,
145
+				const QColorGroup &cg,
146
+				SFlags flags = Style_Default,
147
+				SCFlags controls = SC_All,
148
+				SCFlags active = SC_None,
149
+				const QStyleOption& = QStyleOption::Default ) const;
150
+
151
+	int pixelMetric(PixelMetric m,
152
+				const QWidget *widget = 0 ) const;
153
+
154
+	QRect subRect(SubRect r,
155
+				const QWidget *widget ) const;
156
+
157
+	QRect querySubControlMetrics(ComplexControl control,
158
+				const QWidget *widget,
159
+				SubControl subcontrol,
160
+				const QStyleOption &opt = QStyleOption::Default ) const;
161
+
162
+	QSize sizeFromContents(QStyle::ContentsType t,
163
+				const QWidget *w,
164
+				const QSize &s,
165
+				const QStyleOption &o) const;
166
+
167
+	int styleHint(StyleHint, const QWidget * = 0,
168
+				const QStyleOption & = QStyleOption::Default,
169
+				QStyleHintReturn * = 0 ) const;
170
+	
171
+	
172
+	QPixmap stylePixmap(StylePixmap stylepixmap, const QWidget* widget, const QStyleOption& opt) const;
173
+	
174
+	void drawItem( QPainter *p, const QRect &r,
175
+		       int flags, const QColorGroup &g, bool enabled,
176
+		       const QPixmap *pixmap, const QString &text,
177
+		       int len = -1, const QColor *penColor = 0) const;
178
+	
179
+	void dominoDrawItem( QPainter *p, const QRect &r,
180
+		       int flags, const QColorGroup &g, bool enabled,
181
+		       const QPixmap *pixmap, const QString &text,
182
+		       int len = -1, const QColor *penColor = 0, bool buttonTextEffect = 0 ) const;
183
+	
184
+	void setDominoButtonPalette(QWidget* widget, PaletteTyp type);
185
+	
186
+	virtual void drawFocusIndicator(QPainter *p,
187
+				const QRect &r,
188
+				int flags,
189
+				const QColorGroup cg,
190
+				bool /*enabled*/,
191
+				const QPixmap*  /*pixmap*/,
192
+				const QString & text,
193
+				int /*len = -1*/,
194
+				const QColor& highlight = 0,
195
+				bool drawLine = true,
196
+				bool isButton = false) const;
197
+	
198
+	QPixmap renderOutlineIcon(const QPixmap* icon) const;
199
+	
200
+	void renderSurface(QPainter *p,
201
+			   const QRect &r,
202
+			   const QColor &backgroundColor,
203
+			   const QColor &buttonColor,
204
+			   const QColor &highlightColor,
205
+			   const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
206
+					   Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const;
207
+	
208
+	inline QWidget::BackgroundOrigin setPixmapOrigin(QWidget::BackgroundOrigin origin);
209
+	
210
+	mutable Rubber* rubber;
211
+	mutable QRect oldRubberRect;
212
+	mutable bool viewPortPressed;
213
+	mutable bool ignoreNextFocusRect;
214
+	uint _argbRubberBandColor;
215
+	mutable bool compositeManagerRunning;
216
+	const QWidget* rubberViewPort;
217
+	
218
+protected:
219
+	
220
+	enum RubberType
221
+	{
222
+		ArgbRubber = 1,
223
+		LineRubber = 2,
224
+		DistRubber = 3
225
+	};
226
+	RubberType rubberBandType;
227
+	
228
+	enum TabPosition
229
+	{
230
+	First ,
231
+	Middle,
232
+	Last,
233
+	Single
234
+	};
235
+
236
+	struct TextEffectSettings {
237
+		TextEffect mode;
238
+		QColor color;
239
+		QColor buttonColor;
240
+		int opacity;
241
+		int buttonOpacity;
242
+		QPoint pos;
243
+		QPoint buttonPos;
244
+	};
245
+
246
+	struct GroupBoxSettings {
247
+		bool tintBackground;
248
+		int brightness;
249
+		bool customColor;
250
+		QColor color;
251
+	};
252
+
253
+	struct FocusIndicatorSettings {
254
+		QColor color;
255
+		int opacity;
256
+		QColor buttonColor;
257
+		int buttonOpacity;
258
+		bool drawUnderline;
259
+		bool indicateFocus;
260
+	};
261
+
262
+	
263
+	mutable TextEffectSettings textEffectSettings;
264
+	GroupBoxSettings groupBoxSettings;
265
+	FocusIndicatorSettings focusIndicatorSettings;
266
+	
267
+	ButtonContour* buttonContour;
268
+	
269
+	enum SurfaceFlags {
270
+	Draw_Left =			 0x00000001,
271
+	Draw_Right =		 0x00000002,
272
+	Draw_Top =			 0x00000004,
273
+	Draw_Bottom =		 0x00000008,
274
+	Is_Horizontal =		 0x00000200,
275
+	Is_Highlight =		 0x00000400,
276
+	Is_Default =			 0x00000800,
277
+	Is_Disabled =		 0x00001000,
278
+	Round_UpperLeft =	 0x00002000,
279
+	Round_UpperRight =	 0x00004000,
280
+	Round_BottomLeft =	 0x00008000,
281
+	Round_BottomRight = 0x00010000,
282
+	Rectangular_UpperLeft =	 0x00000010,
283
+	Rectangular_UpperRight =	 0x10000020,
284
+	Rectangular_BottomLeft =	 0x00000040,
285
+	Rectangular_BottomRight = 0x00000080,
286
+	
287
+	Draw_AlphaBlend =	0x00020000,
288
+	Is_ComboBox =		0x00080000,
289
+	Is_Button =			0x00100000,
290
+	Is_CheckItem =		0x00200000,
291
+	Is_RadioButton =		0x00400000,
292
+	Is_TabTop =			0x00000100,
293
+	Is_TabBottom =		0x01000000,
294
+	Is_ActiveTabTop =	0x00040000,
295
+	Is_ActiveTabBottom =	0x00800000,
296
+	Is_ScrollBarBtn =		0x02000000,
297
+	Is_Header =			0x04000000,
298
+	Is_ScrollBarGroove =	0x08000000,
299
+	Is_Slider =			0x20000000,
300
+	Is_Down =			0x40000000
301
+	};
302
+	
303
+	enum DominoStyleFlags {
304
+		Domino_noCache = 0x80000000
305
+	};
306
+	
307
+	enum DominoPrimitiveElement {
308
+		PE_ScrollBarSubLine2 = 0xf000001
309
+	};
310
+	
311
+	void renderContour(QPainter *p,
312
+			const QRect &r,
313
+			const QColor &backgroundColor,
314
+			const QColor &contourColor,
315
+			const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
316
+				Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const;
317
+	
318
+	void renderButtonShadow(QPainter *p, const QRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
319
+			Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const;
320
+	
321
+	QPixmap* renderLineEditShadow(QWidget* widget, QRect rect, QColor bg, uint flags, bool reverse);
322
+	
323
+	inline void renderPixel(QPainter *p,
324
+		const QPoint &pos,
325
+		const int alpha,
326
+		const QColor &color,
327
+		const QColor &background = QColor(),
328
+		bool fullAlphaBlend = true) const;
329
+
330
+	void renderButton(QPainter *p,
331
+			  const QRect &r,
332
+			  const QColorGroup &g,
333
+			  bool sunken = false,
334
+			  bool mouseOver = false,
335
+			  bool horizontal = true,
336
+			  bool enabled = true,
337
+			  bool khtmlMode = false) const;
338
+
339
+	void renderHeader(QPainter *p,
340
+			  const QRect &r,
341
+			  const QColorGroup &g,
342
+			  bool sunken = false,
343
+			  bool mouseOver = false,
344
+			  bool horizontal = true,
345
+			  bool enabled = true) const;
346
+
347
+	void renderGradient(QPainter *p,
348
+			const QRect &r,
349
+			const QColor &c1,
350
+			const QColor &c2,
351
+			bool horizontal = true) const;
352
+
353
+	void renderTab(QPainter *p,
354
+			const QRect &r,
355
+			const QColorGroup &g,
356
+			bool mouseOver = false,
357
+			const bool selected = false,
358
+			const bool bottom = false,
359
+			const TabPosition pos = Middle,
360
+			const bool triangular = false,
361
+			const bool cornerWidget = false,
362
+			const bool konqTab = false) const;
363
+	
364
+	DSurface btnSurface;
365
+	DSurface tabTopSurface;
366
+	DSurface activeTabTopSurface;
367
+	DSurface tabBottomSurface;
368
+	DSurface activeTabBottomSurface;
369
+	DSurface scrollBarSurface;
370
+	DSurface scrollBarGrooveSurface;
371
+	DSurface headerSurface;
372
+	DSurface checkItemSurface;
373
+	
374
+	bool eventFilter(QObject *, QEvent *);
375
+	
376
+	QString configMode;
377
+	void removeCachedSbPix(const QColor &color) {
378
+		QPixmapCache::remove("sHCap"+QString::number(color.pixel(), 16)+"1"+configMode);
379
+		QPixmapCache::remove("sHCap"+QString::number(color.pixel(), 16)+"0"+configMode);
380
+		QPixmapCache::remove("sVCap"+QString::number(color.pixel(), 16)+"1"+configMode);
381
+		QPixmapCache::remove("sVCap"+QString::number(color.pixel(), 16)+"0"+configMode);
382
+		QPixmapCache::remove(QString::number(color.pixel(), 16)+"sh"+configMode);
383
+		QPixmapCache::remove(QString::number(color.pixel(), 16)+"sv"+configMode);
384
+		QPixmapCache::remove(QString::number(color.pixel(), 16)+"ah"+configMode);
385
+		QPixmapCache::remove(QString::number(color.pixel(), 16)+"av"+configMode);
386
+	};
387
+	
388
+	QColor getGroupBoxColor(const QWidget* w) const;
389
+	QPixmap* createCheckMark(const QColor color) const;
390
+	QPixmap* createRadioIndicator(const QColor color) const;
391
+	QPixmap disableIcon(const QPixmap* icon) const;;
392
+	
393
+	QWidget* hoverWidget;
394
+
395
+	QPixmap* checkMark;
396
+	QPixmap* radioIndicator;
397
+	QPixmap* popupFrame;
398
+	QPixmap* border1;
399
+	mutable bool alphaButtonMode;
400
+	bool KApplicationMode;
401
+	QColor _checkMarkColor;
402
+	
403
+	QMap<const QGroupBox*, const QPixmap*> groupBoxPixmaps;
404
+	uint preMultiplyColor(const uint &c) const;
405
+	QToolButton* popupButton;
406
+	QTimer* popupTimer;
407
+	QPoint popupMousePressPos;
408
+
409
+protected slots:
410
+	void khtmlWidgetDestroyed(QObject* w);
411
+	void groupBoxDestroyed(QObject* w);
412
+	
413
+	//Animation slots.
414
+	void updateProgressPos();
415
+	void updateScrollPos(); // smoothscroll
416
+	
417
+	void progressBarDestroyed(QObject* bar);
418
+	inline QColor dGetColor(const QColor &color, const int value) const;
419
+	inline QColor lightenColor(const QColor &color, const int value) const;
420
+	inline QColor darkenColor(const QColor &color, const int value) const;
421
+	void updateTabWidgetFrame();
422
+	void spinBoxValueChanged(int);
423
+	void toolPopupPressed();
424
+	void popupToolMenu();
425
+	void toolPopupReleased();
426
+	
427
+private:
428
+	// Disable copy constructor and = operator
429
+	DominoStyle( const DominoStyle & );
430
+	DominoStyle& operator=( const DominoStyle & );
431
+
432
+	bool kickerMode;
433
+	bool konquerorMode;
434
+	bool konsoleMode;
435
+	
436
+	mutable bool flatMode;
437
+	bool sideRepaint;
438
+	bool _animateProgressBar;
439
+	bool _drawTriangularExpander;
440
+	bool _customCheckMarkColor;
441
+	bool _smoothScrolling;
442
+	QColor _toolTipColor;
443
+	int _buttonHeightAdjustment;
444
+	bool _customPopupMenuColor;
445
+	QColor _popupMenuColor;
446
+	bool _customSelMenuItemColor;
447
+	QColor _selMenuItemColor;
448
+	bool _drawPopupMenuGradient;
449
+	bool _indentPopupMenuItems;
450
+	bool _centerTabs;
451
+	bool _wheelSwitchesTabs;
452
+	bool _customSliderHandleContourColor;
453
+	bool _drawButtonSunkenShadow;
454
+	bool _toolBtnAsBtn;
455
+	bool _highlightToolBtnIcon;
456
+	
457
+	bool konqTab;
458
+	int minTabLength;
459
+	bool macStyleBar;
460
+	int konqTabBarContrast;
461
+	bool spinWidgetDown;
462
+	
463
+	mutable int sliderlen;
464
+	
465
+	// smoothscrolling
466
+	int scrollDistance;
467
+	bool scrollVertical;
468
+	QScrollView* scrollWidget;
469
+	QTimer* scrollTimer;
470
+	
471
+	bool hoveredToolBoxTab;
472
+	
473
+	// track khtml widgets.
474
+	QMap<const QWidget*,bool> khtmlWidgets;
475
+	
476
+	//Animation support.
477
+	QMap<QWidget*, int> progAnimWidgets;
478
+
479
+	// pixmap cache.
480
+	enum CacheEntryType {
481
+		cSurface,
482
+		cGradientTile,
483
+		cAlphaDot
484
+	};
485
+	
486
+	struct CacheEntry
487
+	{
488
+		CacheEntryType type;
489
+		int width;
490
+		int height;
491
+		QRgb c1Rgb;
492
+		QRgb c2Rgb;
493
+		bool horizontal;
494
+	
495
+		QPixmap* pixmap;
496
+	
497
+		CacheEntry(CacheEntryType t, int w, int h, QRgb c1, QRgb c2 = 0,
498
+			bool hor = false, QPixmap* p = 0 ):
499
+			type(t), width(w), height(h), c1Rgb(c1), c2Rgb(c2), horizontal(hor), pixmap(p)
500
+		{}
501
+	
502
+		~CacheEntry()
503
+		{
504
+			delete pixmap;
505
+		}
506
+	
507
+		int key()
508
+		{
509
+			// create an int key from the properties which is used to refer to entries in the QIntCache.
510
+			// the result may not be 100% correct as we don't have so much space in one integer -- use
511
+			// == operator after find to make sure we got the right one. :)
512
+			return horizontal ^ (type<<1) ^ (width<<5) ^ (height<<10) ^ (c1Rgb<<19) ^ (c2Rgb<<22);
513
+		}
514
+	
515
+		bool operator == (const CacheEntry& other)
516
+		{
517
+			bool match = (type == other.type) &&
518
+				(width	 == other.width) &&
519
+				(height == other.height) &&
520
+				(c1Rgb == other.c1Rgb) &&
521
+				(c1Rgb == other.c1Rgb) &&
522
+				(horizontal = other.horizontal);
523
+// 				   if(!match) {
524
+// 					   qDebug("operator ==: CacheEntries don't match!");
525
+// 					   qDebug("width: %d\t\tother width: %d", width, other.width);
526
+// 					   qDebug("height: %d\t\tother height: %d", height, other.height);
527
+// 					   qDebug("fgRgb: %d\t\tother fgRgb: %d", fgRgb, other.fgRgb);
528
+// 					   qDebug("bgRgb: %d\t\tother bgRgb: %d", bgRgb, other.bgRgb);
529
+// 					   qDebug("surfaceFlags: %d\t\tother surfaceFlags: %d", surfaceFlags, other.surfaceFlags);
530
+// 				   }
531
+			return match;
532
+		}
533
+	};
534
+	QIntCache<CacheEntry> *pixmapCache;
535
+
536
+	// For KPE_ListViewBranch
537
+	mutable QBitmap *verticalLine;
538
+	mutable QBitmap *horizontalLine;
539
+	
540
+	// For progress bar animation
541
+	QTimer *animationTimer;
542
+	
543
+	void renderTabSeparator(QPainter *p, const QRect &r, const QColor buttonColor, bool tabAbove) const;
544
+	void renderGroupBox(QObject *obj, QEvent *ev);
545
+};
546
+
547
+
548
+
549
+class ButtonContour
550
+{
551
+	friend class DominoStyleConfig;
552
+	friend class DominoStyle;
553
+	
554
+	public:
555
+		ButtonContour();
556
+		virtual ~ButtonContour();
557
+		
558
+		static const int num_states = 4;
559
+		static const int num_types = 3;
560
+		ContourType defaultType;
561
+		ContourType type;
562
+		ContourState state;
563
+		bool alpha_mode;
564
+		bool drawButtonSunkenShadow;
565
+		int created[num_types][num_states];
566
+		int shadowCreated[num_states];
567
+		
568
+		QColor contour[num_states];
569
+		uint c1[num_types][num_states]; // top shadow
570
+		uint c2[num_types][num_states]; // outer ring
571
+		uint c3[num_types][num_states]; // inner ring
572
+		uint c4[num_types][num_states]; // bottom first shadow line
573
+		uint c5[num_types][num_states]; // bottom second shadow line
574
+		uint c6[num_types][num_states]; // first left shadow line
575
+		QPixmap* btnEdges[num_types][num_states];
576
+		QPixmap* btnVLines[num_types][num_states];
577
+		QPixmap* btnHLines[num_types][num_states];
578
+		
579
+		// for sunken type and sunken flat buttons
580
+		QPixmap* buttonShadowRectangular[num_states];
581
+		QPixmap* buttonShadowRound [num_states];
582
+		QPixmap* buttonShadowHlines[num_states];
583
+		QPixmap* buttonShadowVlines[num_states];
584
+		
585
+		
586
+		bool alphaMode() {
587
+			return alpha_mode;
588
+		}
589
+		uint color1() {
590
+			return c1[type][state];
591
+		}
592
+		uint color2() {
593
+			return c2[type][state];
594
+		}
595
+		uint color3() {
596
+			return c3[type][state];
597
+		}
598
+		uint color4() {
599
+			return c4[type][state];
600
+		}
601
+		uint