Browse Source

Initial import of kkbswitch 1.4.3

Slávek Banko 5 years ago
commit
ae0c828ac2
85 changed files with 33111 additions and 0 deletions
  1. 18
    0
      AUTHORS
  2. 340
    0
      COPYING
  3. 90
    0
      ChangeLog
  4. 248
    0
      Doxyfile
  5. 167
    0
      INSTALL
  6. 45
    0
      Makefile.am
  7. 10
    0
      Makefile.cvs
  8. 1
    0
      NEWS
  9. 81
    0
      README
  10. 9
    0
      TODO
  11. 11207
    0
      acinclude.m4
  12. 12040
    0
      aclocal.m4
  13. 225
    0
      config.h.in
  14. 2
    0
      configure.files
  15. 104
    0
      configure.in
  16. 27
    0
      configure.in.in
  17. 6
    0
      doc/Makefile.am
  18. 13
    0
      doc/en/Makefile.am
  19. BIN
      doc/en/code_style.png
  20. BIN
      doc/en/flag_code_style.png
  21. BIN
      doc/en/flag_style.png
  22. 695
    0
      doc/en/index.docbook
  23. 136
    0
      kkbswitch.1
  24. 215
    0
      kkbswitch.kdevelop
  25. 16
    0
      kkbswitch.lsm
  26. 375
    0
      kkbswitch.sgml
  27. 104
    0
      kkbswitch.spec
  28. 4
    0
      kkbswitch.upd/Makefile.am
  29. 9
    0
      kkbswitch.upd/kkbswitch.upd
  30. 29
    0
      kkbswitch.upd/kkbswitch_update_14_icons
  31. 16
    0
      kkbswitch.upd/kkbswitch_update_14_options
  32. 47
    0
      kkbswitch.xpm
  33. 29
    0
      kkbswitch/Makefile.am
  34. 31
    0
      kkbswitch/Makefile.am.kdeinit
  35. 39
    0
      kkbswitch/boldlistboxitem.cpp
  36. 40
    0
      kkbswitch/boldlistboxitem.h
  37. 68
    0
      kkbswitch/boldmenuitem.cpp
  38. 52
    0
      kkbswitch/boldmenuitem.h
  39. 44
    0
      kkbswitch/group_names
  40. 340
    0
      kkbswitch/kbconfig.cpp
  41. 110
    0
      kkbswitch/kbconfig.h
  42. 408
    0
      kkbswitch/kbconfigdlg.cpp
  43. 84
    0
      kkbswitch/kbconfigdlg.h
  44. 26
    0
      kkbswitch/kbgroup.cpp
  45. 48
    0
      kkbswitch/kbgroup.h
  46. 203
    0
      kkbswitch/kbpickicondlg.cpp
  47. 61
    0
      kkbswitch/kbpickicondlg.h
  48. 379
    0
      kkbswitch/kbswitchapp.cpp
  49. 131
    0
      kkbswitch/kbswitchapp.h
  50. 51
    0
      kkbswitch/kbswitchintf.cpp
  51. 54
    0
      kkbswitch/kbswitchintf.h
  52. 1
    0
      kkbswitch/kbswitchintf.skel
  53. 74
    0
      kkbswitch/kbswitchintf_skel.cpp
  54. 200
    0
      kkbswitch/kbswitchtrayicon.cpp
  55. 72
    0
      kkbswitch/kbswitchtrayicon.h
  56. 19
    0
      kkbswitch/kkbswitch.desktop
  57. 66
    0
      kkbswitch/main.cpp
  58. 28
    0
      kkbswitch/pathlistboxitem.cpp
  59. 36
    0
      kkbswitch/pathlistboxitem.h
  60. 427
    0
      kkbswitch/ru_ua
  61. 73
    0
      kkbswitch/singlewindowwatcher.cpp
  62. 53
    0
      kkbswitch/singlewindowwatcher.h
  63. 106
    0
      kkbswitch/windowclasswatcher.cpp
  64. 59
    0
      kkbswitch/windowclasswatcher.h
  65. 37
    0
      kkbswitch/windowwatcher.cpp
  66. 53
    0
      kkbswitch/windowwatcher.h
  67. 246
    0
      kkbswitch/xkeyboard.cpp
  68. 86
    0
      kkbswitch/xkeyboard.h
  69. 1
    0
      po/Makefile.am
  70. BIN
      po/bg.gmo
  71. 360
    0
      po/bg.po
  72. BIN
      po/cs.gmo
  73. 369
    0
      po/cs.po
  74. BIN
      po/el.gmo
  75. 400
    0
      po/el.po
  76. BIN
      po/he.gmo
  77. 362
    0
      po/he.po
  78. 326
    0
      po/kkbswitch.pot
  79. BIN
      po/ru.gmo
  80. 415
    0
      po/ru.po
  81. BIN
      po/sk.gmo
  82. 369
    0
      po/sk.po
  83. BIN
      po/uk.gmo
  84. 392
    0
      po/uk.po
  85. 4
    0
      subdirs

+ 18
- 0
AUTHORS View File

@@ -0,0 +1,18 @@
1
+Leonid Zeitlin <lz@europe.com>
2
+  creator and maintainer
3
+
4
+Thanks to:
5
+Mikhail Senin <m_senin@mail.ru>, 
6
+  Default group config and per-window groups,
7
+Rashid N. Achilov <achilov@granch.ru>
8
+  FreeBSD port
9
+Vadim Kriklivy (K&K Analitic) <analitic@vinnitsa.com>
10
+  Feature suggestions, Ukrainian translation
11
+Sergey V Turchin <zerg@altlinux.org>
12
+  Autostart patch
13
+Stergios Dramis <sdramis@egnatia.ee.auth.gr>
14
+  Greek translation
15
+Shlomi Loubaton <shlomister@gmail.com>
16
+  Manpage, Debian package maintainer
17
+Igal aka "Koala" <igalfr@netvision.net.il>
18
+  Hebrew translation, Gentoo ebuild maintainer

+ 340
- 0
COPYING View File

@@ -0,0 +1,340 @@
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
+	    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) <year>  <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
+
311
+Also add information on how to contact you by electronic and paper mail.
312
+
313
+If the program is interactive, make it output a short notice like this
314
+when it starts in an interactive mode:
315
+
316
+    Gnomovision version 69, Copyright (C) year name of author
317
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
+    This is free software, and you are welcome to redistribute it
319
+    under certain conditions; type `show c' for details.
320
+
321
+The hypothetical commands `show w' and `show c' should show the appropriate
322
+parts of the General Public License.  Of course, the commands you use may
323
+be called something other than `show w' and `show c'; they could even be
324
+mouse-clicks or menu items--whatever suits your program.
325
+
326
+You should also get your employer (if you work as a programmer) or your
327
+school, if any, to sign a "copyright disclaimer" for the program, if
328
+necessary.  Here is a sample; alter the names:
329
+
330
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
+
333
+  <signature of Ty Coon>, 1 April 1989
334
+  Ty Coon, President of Vice
335
+
336
+This General Public License does not permit incorporating your program into
337
+proprietary programs.  If your program is a subroutine library, you may
338
+consider it more useful to permit linking proprietary applications with the
339
+library.  If this is what you want to do, use the GNU Library General
340
+Public License instead of this License.

+ 90
- 0
ChangeLog View File

@@ -0,0 +1,90 @@
1
+2001-07-29 Leonid Zeitlin <lz@europe.com>
2
+  * Initial release 0.1
3
+
4
+2001-09-01 Leonid Zeitlin <lz@europe.com>
5
+  * Version 0.2
6
+  * added DCOP bindings (see README)
7
+  * fixed a compilation problem with gcc 2.96
8
+  * fixed a bug that prevented KKBSwitch from working with XFree86 4.0.x
9
+  (older versions tolerated this bug)
10
+
11
+2001-11-19 Leonid Zeitlin <lz@europe.com>
12
+  * Version 0.3 (not indended for public release)
13
+  * If XKeyboard configuration changes while KKBSwitch is running, it can
14
+    now detect the change and adapt to it
15
+  * Wrote documentation
16
+
17
+2001-11-21 Leonid Zeitlin <lz@europe.com>
18
+  * Version 1.0
19
+  * Integrated online help
20
+  * Added "What's this" functionality
21
+  * Cleaned up some code
22
+
23
+2002-06-16 Leonid Zeitlin <lz@europe.com>
24
+  * Version 1.1
25
+  * Ported to KDE 3.0. Everything else is the same
26
+
27
+2002-11-02 Leonid Zeitlin <lz@europe.com>
28
+  * Version 1.2
29
+  * Added configuration of default layout and the per-window layout mode (using
30
+    code contributed by Mikhail Senin <m_senin@mail.ru>). Updated documentation
31
+    accordingly
32
+  * Added Russian translation
33
+
34
+2003-10-18 Leonid Zeitlin <lz@europe.com>
35
+  * Version 1.3
36
+  * Added configurable style of layout indicator icon. Three styles are
37
+    implemented: country flag (as in previous versions of KKBSwitch),
38
+    language code (a la Windows), country flag with language code
39
+    superimposed (a la kxkb)
40
+  * Added ability to activate particular layouts with keyboard shortcuts
41
+  * Added autostart option
42
+  * Work around missing country flag icons in Red Hat 9: try to use
43
+    gkb icons instead
44
+  * In configuration dialog the default layout is now displayed in bold 
45
+  * Added Ukrainian translation
46
+
47
+2003-11-02 Leonid Zeitlin <lz@europe.com>
48
+  * Version 1.3.1
49
+  * Restored compatibility with KDE 3.0, unintentionally broken in the
50
+    previous release
51
+  * Updated Ukrainian translation
52
+
53
+2004-01-08 Leonid Zeitlin <lz@europe.com>
54
+  * Version 1.3.2
55
+  * Bugfix: previously the config dialog failed to set a icon for a layout, for
56
+    which KKBSwitch could not initially guess the icon
57
+  * Added Greek translation (from Stergios Dramis <sdramis@egnatia.ee.auth.gr>)
58
+  * Set KDEDIR in RPM spec file (fixes reported problems with incorrect
59
+     installation from SRPM) 
60
+  * configure option to not install ru_ua layout file (--disable-ru-ua-layout)
61
+
62
+2004-05-10 Leonid Zeitlin <lz@europe.com>
63
+  * Version 1.4.
64
+  * Reworked Pick Icon dialog: new look and ability to browse for an
65
+    arbitrary image file to use as an icon (suggested by Rashid Achilov).
66
+  * Option "Use per-window layout" replaced by "Layout scope". Now the
67
+    layout can apply either globally (same as "per-window layout" off), to 
68
+    one window only (same as "per-window layout" on) or to windows of
69
+    one application (new feature) (technically, one window class)
70
+    (suggested by Oded Arbel).
71
+  * Internal code refactoring, must fix some obscure bugs.
72
+
73
+2004-06-16 Leonid Zeitlin <lz@europe.com>
74
+  * Version 1.4.1.
75
+  * Fixed a bug that could crash KKBSwitch if no window was active when
76
+    the program started up.
77
+  * Fixed alignment of the system tray icon.
78
+  * Added Slovak translation (from Michal Sulek <reloadshot@atlas.sk>)
79
+
80
+2004-11-06 Leonid Zeitlin <lz@europe.com>
81
+  * Version 1.4.2
82
+  * Added Hebrew translation by Igal aka "Koala" and manpage by Shlomi Loubaton
83
+    (required for Debian)
84
+
85
+2005-01-15 Leonid Zeitlin <lz@europe.com>
86
+  * Version 1.4.3
87
+  * Added Bulgarian translation by Petko Yotov <5ko@free.fr> and Czech 
88
+    translation by Michal Bukovsky <michal@trilogic.cz>
89
+  * Try harder to guess layout icon. If group_names file produces no match, try XKB
90
+    layout name as country code.

+ 248
- 0
Doxyfile View File

@@ -0,0 +1,248 @@
1
+# Doxyfile 1.3.5-KDevelop
2
+
3
+#---------------------------------------------------------------------------
4
+# Project related configuration options
5
+#---------------------------------------------------------------------------
6
+PROJECT_NAME           = kkbswitch.kdevelop
7
+PROJECT_NUMBER         = 0.1
8
+OUTPUT_DIRECTORY       = 
9
+OUTPUT_LANGUAGE        = English
10
+USE_WINDOWS_ENCODING   = NO
11
+BRIEF_MEMBER_DESC      = YES
12
+REPEAT_BRIEF           = YES
13
+ABBREVIATE_BRIEF       = "The $name class" \
14
+                         "The $name widget" \
15
+                         "The $name file" \
16
+                         is \
17
+                         provides \
18
+                         specifies \
19
+                         contains \
20
+                         represents \
21
+                         a \
22
+                         an \
23
+                         the
24
+ALWAYS_DETAILED_SEC    = NO
25
+INLINE_INHERITED_MEMB  = NO
26
+FULL_PATH_NAMES        = NO
27
+STRIP_FROM_PATH        = /home/lz/src/kkbswitch/kkbswitch/
28
+SHORT_NAMES            = NO
29
+JAVADOC_AUTOBRIEF      = NO
30
+MULTILINE_CPP_IS_BRIEF = NO
31
+DETAILS_AT_TOP         = NO
32
+INHERIT_DOCS           = YES
33
+DISTRIBUTE_GROUP_DOC   = NO
34
+TAB_SIZE               = 8
35
+ALIASES                = 
36
+OPTIMIZE_OUTPUT_FOR_C  = NO
37
+OPTIMIZE_OUTPUT_JAVA   = NO
38
+SUBGROUPING            = YES
39
+#---------------------------------------------------------------------------
40
+# Build related configuration options
41
+#---------------------------------------------------------------------------
42
+EXTRACT_ALL            = NO
43
+EXTRACT_PRIVATE        = NO
44
+EXTRACT_STATIC         = NO
45
+EXTRACT_LOCAL_CLASSES  = YES
46
+HIDE_UNDOC_MEMBERS     = NO
47
+HIDE_UNDOC_CLASSES     = NO
48
+HIDE_FRIEND_COMPOUNDS  = NO
49
+HIDE_IN_BODY_DOCS      = NO
50
+INTERNAL_DOCS          = NO
51
+CASE_SENSE_NAMES       = YES
52
+HIDE_SCOPE_NAMES       = NO
53
+SHOW_INCLUDE_FILES     = YES
54
+INLINE_INFO            = YES
55
+SORT_MEMBER_DOCS       = YES
56
+SORT_BRIEF_DOCS        = NO
57
+SORT_BY_SCOPE_NAME     = NO
58
+GENERATE_TODOLIST      = YES
59
+GENERATE_TESTLIST      = YES
60
+GENERATE_BUGLIST       = YES
61
+GENERATE_DEPRECATEDLIST= YES
62
+ENABLED_SECTIONS       = 
63
+MAX_INITIALIZER_LINES  = 30
64
+SHOW_USED_FILES        = YES
65
+#---------------------------------------------------------------------------
66
+# configuration options related to warning and progress messages
67
+#---------------------------------------------------------------------------
68
+QUIET                  = NO
69
+WARNINGS               = YES
70
+WARN_IF_UNDOCUMENTED   = YES
71
+WARN_IF_DOC_ERROR      = YES
72
+WARN_FORMAT            = "$file:$line: $text"
73
+WARN_LOGFILE           = 
74
+#---------------------------------------------------------------------------
75
+# configuration options related to the input files
76
+#---------------------------------------------------------------------------
77
+INPUT                  = /home/lz/src/kkbswitch/kkbswitch
78
+FILE_PATTERNS          = *.c \
79
+                         *.cc \
80
+                         *.cxx \
81
+                         *.cpp \
82
+                         *.c++ \
83
+                         *.java \
84
+                         *.ii \
85
+                         *.ixx \
86
+                         *.ipp \
87
+                         *.i++ \
88
+                         *.inl \
89
+                         *.h \
90
+                         *.hh \
91
+                         *.hxx \
92
+                         *.hpp \
93
+                         *.h++ \
94
+                         *.idl \
95
+                         *.odl \
96
+                         *.cs \
97
+                         *.php \
98
+                         *.php3 \
99
+                         *.inc \
100
+                         *.C \
101
+                         *.H \
102
+                         *.tlh \
103
+                         *.diff \
104
+                         *.patch \
105
+                         *.moc \
106
+                         *.xpm \
107
+                         *.dox
108
+RECURSIVE              = yes
109
+EXCLUDE                = 
110
+EXCLUDE_SYMLINKS       = NO
111
+EXCLUDE_PATTERNS       = 
112
+EXAMPLE_PATH           = 
113
+EXAMPLE_PATTERNS       = *
114
+EXAMPLE_RECURSIVE      = NO
115
+IMAGE_PATH             = 
116
+INPUT_FILTER           = 
117
+FILTER_SOURCE_FILES    = NO
118
+#---------------------------------------------------------------------------
119
+# configuration options related to source browsing
120
+#---------------------------------------------------------------------------
121
+SOURCE_BROWSER         = NO
122
+INLINE_SOURCES         = NO
123
+STRIP_CODE_COMMENTS    = YES
124
+REFERENCED_BY_RELATION = YES
125
+REFERENCES_RELATION    = YES
126
+VERBATIM_HEADERS       = YES
127
+#---------------------------------------------------------------------------
128
+# configuration options related to the alphabetical class index
129
+#---------------------------------------------------------------------------
130
+ALPHABETICAL_INDEX     = NO
131
+COLS_IN_ALPHA_INDEX    = 5
132
+IGNORE_PREFIX          = 
133
+#---------------------------------------------------------------------------
134
+# configuration options related to the HTML output
135
+#---------------------------------------------------------------------------
136
+GENERATE_HTML          = YES
137
+HTML_OUTPUT            = html
138
+HTML_FILE_EXTENSION    = .html
139
+HTML_HEADER            = 
140
+HTML_FOOTER            = 
141
+HTML_STYLESHEET        = 
142
+HTML_ALIGN_MEMBERS     = YES
143
+GENERATE_HTMLHELP      = NO
144
+CHM_FILE               = 
145
+HHC_LOCATION           = 
146
+GENERATE_CHI           = NO
147
+BINARY_TOC             = NO
148
+TOC_EXPAND             = NO
149
+DISABLE_INDEX          = NO
150
+ENUM_VALUES_PER_LINE   = 4
151
+GENERATE_TREEVIEW      = NO
152
+TREEVIEW_WIDTH         = 250
153
+#---------------------------------------------------------------------------
154
+# configuration options related to the LaTeX output
155
+#---------------------------------------------------------------------------
156
+GENERATE_LATEX         = YES
157
+LATEX_OUTPUT           = latex
158
+LATEX_CMD_NAME         = latex
159
+MAKEINDEX_CMD_NAME     = makeindex
160
+COMPACT_LATEX          = NO
161
+PAPER_TYPE             = a4wide
162
+EXTRA_PACKAGES         = 
163
+LATEX_HEADER           = 
164
+PDF_HYPERLINKS         = NO
165
+USE_PDFLATEX           = NO
166
+LATEX_BATCHMODE        = NO
167
+LATEX_HIDE_INDICES     = NO
168
+#---------------------------------------------------------------------------
169
+# configuration options related to the RTF output
170
+#---------------------------------------------------------------------------
171
+GENERATE_RTF           = NO
172
+RTF_OUTPUT             = rtf
173
+COMPACT_RTF            = NO
174
+RTF_HYPERLINKS         = NO
175
+RTF_STYLESHEET_FILE    = 
176
+RTF_EXTENSIONS_FILE    = 
177
+#---------------------------------------------------------------------------
178
+# configuration options related to the man page output
179
+#---------------------------------------------------------------------------
180
+GENERATE_MAN           = NO
181
+MAN_OUTPUT             = man
182
+MAN_EXTENSION          = .3
183
+MAN_LINKS              = NO
184
+#---------------------------------------------------------------------------
185
+# configuration options related to the XML output
186
+#---------------------------------------------------------------------------
187
+GENERATE_XML           = yes
188
+XML_OUTPUT             = xml
189
+XML_SCHEMA             = 
190
+XML_DTD                = 
191
+XML_PROGRAMLISTING     = YES
192
+#---------------------------------------------------------------------------
193
+# configuration options for the AutoGen Definitions output
194
+#---------------------------------------------------------------------------
195
+GENERATE_AUTOGEN_DEF   = NO
196
+#---------------------------------------------------------------------------
197
+# configuration options related to the Perl module output
198
+#---------------------------------------------------------------------------
199
+GENERATE_PERLMOD       = NO
200
+PERLMOD_LATEX          = NO
201
+PERLMOD_PRETTY         = YES
202
+PERLMOD_MAKEVAR_PREFIX = 
203
+#---------------------------------------------------------------------------
204
+# Configuration options related to the preprocessor   
205
+#---------------------------------------------------------------------------
206
+ENABLE_PREPROCESSING   = YES
207
+MACRO_EXPANSION        = NO
208
+EXPAND_ONLY_PREDEF     = NO
209
+SEARCH_INCLUDES        = YES
210
+INCLUDE_PATH           = 
211
+INCLUDE_FILE_PATTERNS  = 
212
+PREDEFINED             = 
213
+EXPAND_AS_DEFINED      = 
214
+SKIP_FUNCTION_MACROS   = YES
215
+#---------------------------------------------------------------------------
216
+# Configuration::additions related to external references   
217
+#---------------------------------------------------------------------------
218
+TAGFILES               = 
219
+GENERATE_TAGFILE       = 
220
+ALLEXTERNALS           = NO
221
+EXTERNAL_GROUPS        = YES
222
+PERL_PATH              = /usr/bin/perl
223
+#---------------------------------------------------------------------------
224
+# Configuration options related to the dot tool   
225
+#---------------------------------------------------------------------------
226
+CLASS_DIAGRAMS         = YES
227
+HIDE_UNDOC_RELATIONS   = YES
228
+HAVE_DOT               = NO
229
+CLASS_GRAPH            = YES
230
+COLLABORATION_GRAPH    = YES
231
+UML_LOOK               = NO
232
+TEMPLATE_RELATIONS     = NO
233
+INCLUDE_GRAPH          = YES
234
+INCLUDED_BY_GRAPH      = YES
235
+CALL_GRAPH             = NO
236
+GRAPHICAL_HIERARCHY    = YES
237
+DOT_IMAGE_FORMAT       = png
238
+DOT_PATH               = 
239
+DOTFILE_DIRS           = 
240
+MAX_DOT_GRAPH_WIDTH    = 1024
241
+MAX_DOT_GRAPH_HEIGHT   = 1024
242
+MAX_DOT_GRAPH_DEPTH    = 1000
243
+GENERATE_LEGEND        = YES
244
+DOT_CLEANUP            = YES
245
+#---------------------------------------------------------------------------
246
+# Configuration::additions related to the search engine   
247
+#---------------------------------------------------------------------------
248
+SEARCHENGINE           = NO

+ 167
- 0
INSTALL View File

@@ -0,0 +1,167 @@
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 a while.  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. Type `make install' to install the programs and any data files and
40
+     documentation.
41
+
42
+  4. You can remove the program binaries and object files from the
43
+     source code directory by typing `make clean'.  
44
+
45
+Compilers and Options
46
+=====================
47
+
48
+   Some systems require unusual options for compilation or linking that
49
+the `configure' script does not know about.  You can give `configure'
50
+initial values for variables by setting them in the environment.  Using
51
+a Bourne-compatible shell, you can do that on the command line like
52
+this:
53
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
54
+
55
+Or on systems that have the `env' program, you can do it like this:
56
+     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
57
+
58
+Compiling For Multiple Architectures
59
+====================================
60
+
61
+   You can compile the package for more than one kind of computer at the
62
+same time, by placing the object files for each architecture in their
63
+own directory.  To do this, you must use a version of `make' that
64
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
65
+directory where you want the object files and executables to go and run
66
+the `configure' script.  `configure' automatically checks for the
67
+source code in the directory that `configure' is in and in `..'.
68
+
69
+   If you have to use a `make' that does not supports the `VPATH'
70
+variable, you have to compile the package for one architecture at a time
71
+in the source code directory.  After you have installed the package for
72
+one architecture, use `make distclean' before reconfiguring for another
73
+architecture.
74
+
75
+Installation Names
76
+==================
77
+
78
+   By default, `make install' will install the package's files in
79
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
80
+installation prefix other than `/usr/local' by giving `configure' the
81
+option `--prefix=PATH'.
82
+
83
+   You can specify separate installation prefixes for
84
+architecture-specific files and architecture-independent files.  If you
85
+give `configure' the option `--exec-prefix=PATH', the package will use
86
+PATH as the prefix for installing programs and libraries.
87
+Documentation and other data files will still use the regular prefix.
88
+
89
+   If the package supports it, you can cause programs to be installed
90
+with an extra prefix or suffix on their names by giving `configure' the
91
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
92
+
93
+Optional Features
94
+=================
95
+
96
+   Some packages pay attention to `--enable-FEATURE' options to
97
+`configure', where FEATURE indicates an optional part of the package.
98
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
99
+is something like `gnu-as' or `x' (for the X Window System).  The
100
+`README' should mention any `--enable-' and `--with-' options that the
101
+package recognizes.
102
+
103
+   For packages that use the X Window System, `configure' can usually
104
+find the X include and library files automatically, but if it doesn't,
105
+you can use the `configure' options `--x-includes=DIR' and
106
+`--x-libraries=DIR' to specify their locations.
107
+
108
+Specifying the System Type
109
+==========================
110
+
111
+   There may be some features `configure' can not figure out
112
+automatically, but needs to determine by the type of host the package
113
+will run on.  Usually `configure' can figure that out, but if it prints
114
+a message saying it can not guess the host type, give it the
115
+`--host=TYPE' option.  TYPE can either be a short name for the system
116
+type, such as `sun4', or a canonical name with three fields:
117
+     CPU-COMPANY-SYSTEM
118
+
119
+See the file `config.sub' for the possible values of each field.  If
120
+`config.sub' isn't included in this package, then this package doesn't
121
+need to know the host type.
122
+
123
+   If you are building compiler tools for cross-compiling, you can also
124
+use the `--target=TYPE' option to select the type of system they will
125
+produce code for and the `--build=TYPE' option to select the type of
126
+system on which you are compiling the package.
127
+
128
+Sharing Defaults
129
+================
130
+
131
+   If you want to set default values for `configure' scripts to share,
132
+you can create a site shell script called `config.site' that gives
133
+default values for variables like `CC', `cache_file', and `prefix'.
134
+`configure' looks for `PREFIX/share/config.site' if it exists, then
135
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
136
+`CONFIG_SITE' environment variable to the location of the site script.
137
+A warning: not all `configure' scripts look for a site script.
138
+
139
+Operation Controls
140
+==================
141
+
142
+   `configure' recognizes the following options to control how it
143
+operates.
144
+
145
+`--cache-file=FILE'
146
+     Use and save the results of the tests in FILE instead of
147
+     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
148
+     debugging `configure'.
149
+
150
+`--help'
151
+     Print a summary of the options to `configure', and exit.
152
+
153
+`--quiet'
154
+`--silent'
155
+`-q'
156
+     Do not print messages saying which checks are being made.
157
+
158
+`--srcdir=DIR'
159
+     Look for the package's source code in directory DIR.  Usually
160
+     `configure' can determine that directory automatically.
161
+
162
+`--version'
163
+     Print the version of Autoconf used to generate the `configure'
164
+     script, and exit.
165
+
166
+`configure' also accepts some other, not widely useful, options.
167
+

+ 45
- 0
Makefile.am View File

@@ -0,0 +1,45 @@
1
+SUBDIRS = $(TOPSUBDIRS)
2
+
3
+$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
4
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
5
+
6
+$(top_srcdir)/subdirs:
7
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
8
+
9
+$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
10
+	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
11
+
12
+MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 
13
+
14
+package-messages:
15
+	cd $(top_srcdir) && $(MAKE) includedir=$(kde_includes) -f admin/Makefile.common package-messages
16
+	$(MAKE) -C po merge
17
+
18
+EXTRA_DIST = admin COPYING configure.in.in Makefile.cvs kkbswitch.1\
19
+   configure.files Doxyfile kkbswitch.kdevelop kkbswitch.lsm \
20
+   kkbswitch.spec kkbswitch.xpm subdirs kkbswitch.sgml
21
+
22
+man_MANS = kkbswitch.1
23
+DISTCHECK_CONFIGURE_FLAGS = --disable-ru-ua-layout
24
+KDE_OPTIONS = noautodist
25
+
26
+dist-hook:
27
+	cd $(top_distdir) && perl admin/am_edit -padmin
28
+	cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
29
+#	rm -f $(distdir)/kkbswitch.kdevelop.pcs
30
+#	rm -f $(distdir)/$(PACKAGE)-*.tar.gz
31
+
32
+
33
+rpmdir = _rpm
34
+specfile = $(PACKAGE).spec
35
+rpm: $(specfile)
36
+	rm -rf $(rpmdir)
37
+	mkdir $(rpmdir)
38
+	mkdir -p rpms
39
+	cd $(rpmdir) && \
40
+	mkdir RPMS SRPMS SOURCES SPECS BUILD RPMS/i386 RPMS/noarch && \
41
+	cp ../$(specfile) SPECS && \
42
+	cp ../$(distdir).tar.gz SOURCES && \
43
+	rpmbuild --define "_topdir "`pwd` -ba SPECS/$(specfile) && \
44
+	cp SRPMS/* RPMS/*/* ../rpms && cd .. && rm -rf $(rpmdir)
45
+	

+ 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:

+ 1
- 0
NEWS View File

@@ -0,0 +1 @@
1
+ 

+ 81
- 0
README View File

@@ -0,0 +1,81 @@
1
+NOTE: As of version 1.0 KKBSwitch has online documentation, so refer to it for 
2
+more information. This README file will no longer be maintained, but the 
3
+documentation will instead.
4
+
5
+
6
+                          KKBSwitch
7
+                 by Leonid Zeitlin <lz@europe.com>
8
+                          Version 1.0
9
+
10
+KKBSwitch is a keyboard layout indicator for KDE 2. It is useful when you have
11
+configured the XKeyboard extension of your X Server to have more than one
12
+keyboard group, for example US/ASCII and Russian. KKBSwitch displays an icon
13
+in the system tray that indicates which layout is currently active. Note that
14
+KKBSwitch does not help you configure XKeyboard, it merely serves as the 
15
+indicator of the current group. You still have to configure XKeyboard by 
16
+editing XF86Config file.
17
+
18
+KKBSwitch features:
19
+- displays an icon in the KDE's system tray indicating the active keyboard group
20
+- you can switch keyboard groups by clicking the icon or selecting the
21
+desired group from the icon's menu
22
+- icons corresponding to different groups are configurable (chosen from country
23
+flag pixmaps that ship with KDE)
24
+- "Toggle mode" (see below for more).
25
+
26
+Using KKBSwicth.
27
+
28
+The most basic usage is simply to let it sit in the system tray and show you 
29
+which keyboard group is currently active. You can also click the KKBSwicth 
30
+system tray icon to switch keyboard layouts. When right-clicked, the system 
31
+tray icon displays a menu with the following entries:
32
+
33
+- one or more entries corresponding to the configured keyboard groups (XKeyboard
34
+can have up to 4 groups configured). The currently active group will be checked.
35
+Selecting a menu entry corresponding to a group will make that group active.
36
+- "Configure Keyboard Switch..." entry lets you configure KKBSwitch
37
+- "About Keyboard Switch" displays a standard "About" dialog
38
+- "Quit" quits KKBSwitch.
39
+
40
+Configuring KKBSwicth.
41
+
42
+In the KKBSwitch configuration dialog you can do the following:
43
+- set the icons corresponding to the available keyboard groups. Note that
44
+KKBSwitch will try hard to guess the correct icon based on the name of the
45
+keyboard group (the names are configured in XKeyboard). For example, it will
46
+display the US flag for US/ASCII group, German flag for German group, Russian
47
+flag for Russian group, etc. If it cannot guess an icon, it will display the
48
+"default" icon, which simply shows the group's number. Use the configuration
49
+dialog to customize the icons: select a group in the "Available keyboard groups"
50
+listbox, and click "Change icon..." button. You will be able to select from the
51
+list of country flag pixmaps that is shipped with KDE.
52
+- turn the "Toggle mode" on and off. "Toggle mode" is a convient feature of
53
+KKBSwitch, which is useful if you have more than 2 groups. When "Toggle mode"
54
+is on, pressing the XKeyboard's group switch key or clicking KKBSwitch's tray
55
+icon will toggle between the two most recently used groups. To activate the
56
+third or the fourth (if available) group you'll need to right-click KKBSwitch's
57
+tray icon and select the desired group from the menu. For example, I have
58
+US/ASCII, Russian and Ukrainian layouts configured. Most of the time I use
59
+either US/ASCII or Russian layout and switch back and forth between them without
60
+activating the rarely needed Ukrainian layout. But sometimes I need to write
61
+something in Ukrainian, so I select this layout from the tray icon's menu. When
62
+"Toggle mode" is on, the two most recently used groups will be marked with an
63
+asterisk in the KKBSwitch tray icon's menu.
64
+
65
+
66
+DCOP Bindings
67
+
68
+As of version 0.2, KKBSwitch can be manipulated programmatically with DCOP.
69
+It exports an interface named KBSwitchIntf. The interfaces offers the following
70
+methods:
71
+- int getNumKbdGroups() - returns the number of configured keyboard groups
72
+(layouts)
73
+- ASYNC selectNextGroup() - does the same thing as clicking on the KKBSwitch's
74
+tray icon, i.e. makes the next keyboard group active. If in "toggle mode", toggles
75
+between the two recently used ones, just like clicking on the tray icon does.
76
+- ASYNC selectGroup(int groupno) - makes the group whose number is groupno active
77
+(like selecting a group from the tray icon popup menu)
78
+- QStringList getGroupNames() - returns the list of the keyboard group names,
79
+as configured in XKeyboard.
80
+
81
+

+ 9
- 0
TODO View File

@@ -0,0 +1,9 @@
1
+1. Perhaps show items in popup menu that corresponds to the two most
2
+frequently used layouts in "toggle mode" in bold, rather then with asterisks.
3
+2. Translate documentation.
4
+3. Create UI to configure keyboard groups. Should be possible in XFree86
5
+>= 4.3 (and X.Org), e.g. run setxkbmap -layout "us,ru,ua"
6
+4. Somehow automatically detect wrong keyboard layout. E.g. if I type "vfvf
7
+vskf hfve", magically figure out that I meant to type "ÍÁÍÁ ÍÙÌÁ ÒÁÍÕ" in
8
+Russian. There are Windows programs that do that, like Punto Switcher.
9
+5. Need an icon!

+ 11207
- 0
acinclude.m4
File diff suppressed because it is too large
View File


+ 12040
- 0
aclocal.m4
File diff suppressed because it is too large
View File


+ 225
- 0
config.h.in View File

@@ -0,0 +1,225 @@
1
+/* config.h.in.  Generated from configure.in by autoheader.  */
2
+
3
+/* Define if you have the CoreAudio API */
4
+#undef HAVE_COREAUDIO
5
+
6
+/* Define to 1 if you have the <crt_externs.h> header file. */
7
+#undef HAVE_CRT_EXTERNS_H
8
+
9
+/* Defines if your system has the crypt function */
10
+#undef HAVE_CRYPT
11
+
12
+/* Define to 1 if you have the <dlfcn.h> header file. */
13
+#undef HAVE_DLFCN_H
14
+
15
+/* Define to 1 if you have the <inttypes.h> header file. */
16
+#undef HAVE_INTTYPES_H
17
+
18
+/* Define if you have libjpeg */
19
+#undef HAVE_LIBJPEG
20
+
21
+/* Define if you have libpng */
22
+#undef HAVE_LIBPNG
23
+
24
+/* Define if you have a working libpthread (will enable threaded code) */
25
+#undef HAVE_LIBPTHREAD
26
+
27
+/* Define to 1 if you have the `xkbfile' library (-lxkbfile). */
28
+#undef HAVE_LIBXKBFILE
29
+
30
+/* Define if you have libz */
31
+#undef HAVE_LIBZ
32
+
33
+/* Define to 1 if you have the <memory.h> header file. */
34
+#undef HAVE_MEMORY_H
35
+
36
+/* Define if your system needs _NSGetEnviron to set up the environment */
37
+#undef HAVE_NSGETENVIRON
38
+
39
+/* Define if you have the res_init function */
40
+#undef HAVE_RES_INIT
41
+
42
+/* Define if you have a STL implementation by SGI */
43
+#undef HAVE_SGI_STL
44
+
45
+/* Define to 1 if you have the `snprintf' function. */
46
+#undef HAVE_SNPRINTF
47
+
48
+/* Define to 1 if you have the <stdint.h> header file. */
49
+#undef HAVE_STDINT_H
50
+
51
+/* Define to 1 if you have the <stdlib.h> header file. */
52
+#undef HAVE_STDLIB_H
53
+
54
+/* Define to 1 if you have the <strings.h> header file. */
55
+#undef HAVE_STRINGS_H
56
+
57
+/* Define to 1 if you have the <string.h> header file. */
58
+#undef HAVE_STRING_H
59
+
60
+/* Define if you have strlcat */
61
+#undef HAVE_STRLCAT
62
+
63
+/* Define if you have the strlcat prototype */
64
+#undef HAVE_STRLCAT_PROTO
65
+
66
+/* Define if you have strlcpy */
67
+#undef HAVE_STRLCPY
68
+
69
+/* Define if you have the strlcpy prototype */
70
+#undef HAVE_STRLCPY_PROTO
71
+
72
+/* Define to 1 if you have the <sys/stat.h> header file. */
73
+#undef HAVE_SYS_STAT_H
74
+
75
+/* Define to 1 if you have the <sys/types.h> header file. */
76
+#undef HAVE_SYS_TYPES_H
77
+
78
+/* Define to 1 if you have the <unistd.h> header file. */
79
+#undef HAVE_UNISTD_H
80
+
81
+/* Define to 1 if you have the `vsnprintf' function. */
82
+#undef HAVE_VSNPRINTF
83
+
84
+/* Define to 1 if you have the <X11/extensions/XKBrules.h> header file. */
85
+#undef HAVE_X11_EXTENSIONS_XKBRULES_H
86
+
87
+/* Suffix for lib directories */
88
+#undef KDELIBSUFF
89
+
90
+/* Define a safe value for MAXPATHLEN */
91
+#undef KDEMAXPATHLEN
92
+
93
+/* Name of package */
94
+#undef PACKAGE
95
+
96
+/* Define to the address where bug reports for this package should be sent. */
97
+#undef PACKAGE_BUGREPORT
98
+
99
+/* Define to the full name of this package. */
100
+#undef PACKAGE_NAME
101
+
102
+/* Define to the full name and version of this package. */
103
+#undef PACKAGE_STRING
104
+
105
+/* Define to the one symbol short name of this package. */
106
+#undef PACKAGE_TARNAME
107
+
108
+/* Define to the version of this package. */
109
+#undef PACKAGE_VERSION
110
+
111
+/* The size of a `char *', as computed by sizeof. */
112
+#undef SIZEOF_CHAR_P
113
+
114
+/* The size of a `int', as computed by sizeof. */
115
+#undef SIZEOF_INT
116
+
117
+/* The size of a `long', as computed by sizeof. */
118
+#undef SIZEOF_LONG
119
+
120
+/* The size of a `short', as computed by sizeof. */
121
+#undef SIZEOF_SHORT
122
+
123
+/* The size of a `size_t', as computed by sizeof. */
124
+#undef SIZEOF_SIZE_T
125
+
126
+/* The size of a `unsigned long', as computed by sizeof. */
127
+#undef SIZEOF_UNSIGNED_LONG
128
+
129
+/* Define to 1 if you have the ANSI C header files. */
130
+#undef STDC_HEADERS
131
+
132
+/* Version number of package */
133
+#undef VERSION
134
+
135
+/* Define to 1 if your processor stores words with the most significant byte
136
+   first (like Motorola and SPARC, unlike Intel and VAX). */
137
+#undef WORDS_BIGENDIAN
138
+
139
+/*
140
+ * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
141
+ * headers and I'm too lazy to write a configure test as long as only
142
+ * unixware is related
143
+ */
144
+#ifdef _UNIXWARE
145
+#define HAVE_BOOLEAN
146
+#endif
147
+
148
+
149
+
150
+/*
151
+ * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
152
+ * that defines bzero.
153
+ */
154
+
155
+#if defined(_AIX)
156
+#include <strings.h>
157
+#endif
158
+
159
+
160
+
161
+#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
162
+# include <sys/time.h>
163
+# include <crt_externs.h>
164
+# define environ (*_NSGetEnviron())
165
+#endif
166
+
167
+
168
+
169
+#if !defined(HAVE_STRLCAT_PROTO)
170
+#ifdef __cplusplus
171
+extern "C" {
172
+#endif
173
+unsigned long strlcat(char*, const char*, unsigned long);
174
+#ifdef __cplusplus
175
+}
176
+#endif
177
+#endif
178
+
179
+
180
+
181
+#if !defined(HAVE_STRLCPY_PROTO)
182
+#ifdef __cplusplus
183
+extern "C" {
184
+#endif
185
+unsigned long strlcpy(char*, const char*, unsigned long);
186
+#ifdef __cplusplus
187
+}
188
+#endif
189
+#endif
190
+
191
+
192
+
193
+/*
194
+ * On HP-UX, the declaration of vsnprintf() is needed every time !
195
+ */
196
+
197
+#if !defined(HAVE_VSNPRINTF) || defined(hpux)
198
+#if __STDC__
199
+#include <stdarg.h>
200
+#include <stdlib.h>
201
+#else
202
+#include <varargs.h>
203
+#endif
204
+#ifdef __cplusplus
205
+extern "C"
206
+#endif
207
+int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
208
+#ifdef __cplusplus
209
+extern "C"
210
+#endif
211
+int snprintf(char *str, size_t n, char const *fmt, ...);
212
+#endif
213
+
214
+
215
+
216
+#if defined(__SVR4) && !defined(__svr4__)
217
+#define __svr4__ 1
218
+#endif
219
+
220
+
221
+/* Compatibility define */
222
+#undef ksize_t
223
+
224
+/* Define the real type of socklen_t */
225
+#undef socklen_t

+ 2
- 0
configure.files View File

@@ -0,0 +1,2 @@
1
+./admin/configure.in.min
2
+configure.in.in

+ 104
- 0
configure.in View File

@@ -0,0 +1,104 @@
1
+dnl    This file is part of the KDE libraries/packages
2
+dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
3
+ 
4
+dnl    This file is free software; you can redistribute it and/or
5
+dnl    modify it under the terms of the GNU Library General Public
6
+dnl    License as published by the Free Software Foundation; either
7
+dnl    version 2 of the License, or (at your option) any later version.
8
+ 
9
+dnl    This library is distributed in the hope that it will be useful,
10
+dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
+dnl    Library General Public License for more details.
13
+ 
14
+dnl    You should have received a copy of the GNU Library General Public License
15
+dnl    along with this library; see the file COPYING.LIB.  If not, write to
16
+dnl    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
+dnl    Boston, MA 02111-1307, USA.
18
+
19
+# Original Author was Kalle@kde.org
20
+# I lifted it in some mater. (Stephan Kulow)
21
+# I used much code from Janos Farkas
22
+
23
+dnl Process this file with autoconf to produce a configure script.
24
+
25
+AC_INIT(acinclude.m4) dnl a source file from your sub dir
26
+
27
+dnl This is so we can use kde-common
28
+AC_CONFIG_AUX_DIR(admin)
29
+
30
+dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
31
+unset CDPATH
32
+
33
+dnl Checking host/target/build systems, for make, install etc.
34
+AC_CANONICAL_SYSTEM 
35
+dnl Perform program name transformation
36
+AC_ARG_PROGRAM
37
+
38
+dnl Automake doc recommends to do this only here. (Janos)
39
+AM_INIT_AUTOMAKE(kkbswitch, 1.4.3) dnl searches for some needed programs
40
+
41
+KDE_SET_PREFIX
42
+
43
+dnl generate the config header
44
+AM_CONFIG_HEADER(config.h) dnl at the distribution this done
45
+
46
+dnl Checks for programs.
47
+AC_CHECK_COMPILERS
48
+AC_ENABLE_SHARED(yes)
49
+AC_ENABLE_STATIC(no)
50
+KDE_PROG_LIBTOOL
51
+
52
+dnl for NLS support. Call them in this order!
53
+dnl WITH_NLS is for the po files
54
+AM_KDE_WITH_NLS
55
+
56
+KDE_USE_QT(3.0.0)
57
+AC_PATH_KDE
58
+#MIN_CONFIG(3.0.0)
59
+
60
+dnl PACKAGE set before
61
+AC_C_BIGENDIAN
62
+AC_CHECK_KDEMAXPATHLEN
63
+
64
+AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
65
+  #include <stdio.h> 
66
+  #include <X11/XKBlib.h>])
67
+
68
+save_LDFLAGS="$LDFLAGS"
69
+LDFLAGS="$LDFLAGS $all_libraries"
70
+AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
71
+LDFLAGS="$save_LDFLAGS"
72
+  
73
+AC_ARG_ENABLE(ru-ua-layout,
74
+  [  --enable-ru-ua-layout  Install Russian/Ukrainian layout file
75
+                          (default: don't install)],
76
+  enable_ru_ua_layout="$enableval",
77
+  enable_ru_ua_layout="no")
78
+
79
+AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")
80
+
81
+dnl set prefix according to installed KDE. Strange that KDE build scripts
82
+dnl don't do it by default
83
+AC_PREFIX_DEFAULT(`kde-config --prefix`)
84
+
85
+KDE_CREATE_SUBDIRSLIST
86
+AC_CONFIG_FILES([ Makefile ])
87
+AC_CONFIG_FILES([ doc/Makefile ])
88
+AC_CONFIG_FILES([ doc/en/Makefile ])
89
+AC_CONFIG_FILES([ kkbswitch/Makefile ])
90
+AC_CONFIG_FILES([ kkbswitch.upd/Makefile ])
91
+AC_CONFIG_FILES([ po/Makefile ])
92
+AC_OUTPUT
93
+if test "$all_tests" = "bad"; then
94
+  if test ! "$cache_file" = "/dev/null"; then
95
+    echo ""    
96
+    echo "Please remove the file $cache_file after changing your setup"
97
+    echo "so that configure will find the changes next time."
98
+    echo ""
99
+  fi
100
+else
101
+  echo ""
102
+  echo "Good - your configure finished. Start make now"
103
+  echo ""
104
+fi

+ 27
- 0
configure.in.in View File

@@ -0,0 +1,27 @@
1
+#MIN_CONFIG(3.0.0)
2
+
3
+AM_INIT_AUTOMAKE(kkbswitch, 1.4.3)
4
+AC_C_BIGENDIAN
5
+AC_CHECK_KDEMAXPATHLEN
6
+
7
+AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
8
+  #include <stdio.h> 
9
+  #include <X11/XKBlib.h>])
10
+
11
+save_LDFLAGS="$LDFLAGS"
12
+LDFLAGS="$LDFLAGS $all_libraries"
13
+AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
14
+LDFLAGS="$save_LDFLAGS"
15
+  
16
+AC_ARG_ENABLE(ru-ua-layout,
17
+  [  --enable-ru-ua-layout  Install Russian/Ukrainian layout file
18
+                          (default: don't install)],
19
+  enable_ru_ua_layout="$enableval",
20
+  enable_ru_ua_layout="no")
21
+
22
+AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")
23
+
24
+dnl set prefix according to installed KDE. Strange that KDE build scripts
25
+dnl don't do it by default
26
+AC_PREFIX_DEFAULT(`kde-config --prefix`)
27
+

+ 6
- 0
doc/Makefile.am View File

@@ -0,0 +1,6 @@
1
+# the SUBDIRS is filled automatically by am_edit. If files are 
2
+# in this directory they are installed into the english dir
3
+
4
+KDE_LANG = en
5
+KDE_DOCS = kkbswitch
6
+SUBDIRS = $(AUTODIRS)  

+ 13
- 0
doc/en/Makefile.am View File

@@ -0,0 +1,13 @@
1
+KDE_DOCS = kkbswitch
2
+KDE_LANG = en
3
+
4
+.PHONY: html
5
+
6
+html: HTML/index.html
7
+
8
+HTML/index.html: $(srcdir)/index.docbook
9
+	rm -fr HTML
10
+	mkdir HTML
11
+	(cd HTML && meinproc --check --stylesheet $(KDE_XSL_STYLESHEET) ../$(srcdir)/index.docbook && ln -s /usr/share/doc/HTML/en/common; \
12
+  for name in ../$(srcdir)/*.png; do ln -s $$name; done)
13
+

BIN
doc/en/code_style.png View File


BIN
doc/en/flag_code_style.png View File


BIN
doc/en/flag_style.png View File


+ 695
- 0
doc/en/index.docbook View File

@@ -0,0 +1,695 @@
1
+<?xml version="1.0" ?>
2
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1-Based Variant V1.0//EN"
3
+ "dtd/kdex.dtd" [
4
+  <!ENTITY kkbswitch '<application>KKBSwitch</application>'>
5
+  <!ENTITY kapp "&kkbswitch;"><!-- replace KKBSwitch here -->
6
+  <!ENTITY kkbswitchVersion '1.4.3'>
7
+  <!ENTITY % addindex "IGNORE">
8
+  <!ENTITY % English "INCLUDE"><!-- change language only here -->
9
+
10
+
11
+  <!-- Do not define any other entities; instead, use the entities
12
+       from kde-genent.entities and $LANG/user.entities. -->
13
+]>
14
+<!-- kdoctemplate v0.8 October 1 1999
15
+     Minor update to "Credits and Licenses" section on August 24, 2000
16
+     Removed "Revision history" section on 22 January 2001   -->
17
+
18
+
19
+<book lang="&language;">
20
+
21
+<bookinfo>
22
+<title>The &kkbswitch; Handbook</title>
23
+
24
+<authorgroup>
25
+<author>
26
+<firstname>Leonid</firstname>
27
+<surname>Zeitlin</surname>
28
+<affiliation>
29
+<address><email>lz@europe.com</email></address>
30
+</affiliation>
31
+</author>
32
+</authorgroup>
33
+
34
+<!-- TRANS:ROLES_OF_TRANSLATORS -->
35
+
36
+<copyright>
37
+<year>2002, 2003, 2004, 2005</year>
38
+<holder>Leonid Zeitlin</holder>
39
+</copyright>
40
+<legalnotice>&FDLNotice;</legalnotice>
41
+
42
+<date>23/01/2005</date>
43
+<releaseinfo>&kkbswitchVersion;</releaseinfo>
44
+
45
+<!-- Abstract about this handbook -->
46
+
47
+<abstract>
48
+<para>
49
+&kkbswitch; is a keyboard layout indicator for &kde;.
50
+</para>
51
+</abstract>
52
+
53
+<keywordset>
54
+<keyword>KDE</keyword>
55
+<keyword>KKBSwitch</keyword>
56
+<keyword>keyboard</keyword>
57
+<keyword>layout</keyword>
58
+<keyword>indicator</keyword>
59
+<keyword>XKeyboard</keyword>
60
+</keywordset>
61
+
62
+</bookinfo>
63
+
64
+<chapter id="introduction">
65
+<title>Introduction</title>
66
+
67
+<para>
68
+&kkbswitch; is a keyboard layout indicator for &kde; 2 or 3. It is useful when
69
+you have configured the XKeyboard extension of your X Server to have more than
70
+one keyboard group (layout), for example US/ASCII and Russian. &kkbswitch;
71
+displays an icon in the system tray that indicates which layout is currently
72
+active. Note that &kkbswitch; does not help you configure XKeyboard, it merely
73
+serves as the indicator of the current layout. You still have to configure
74
+XKeyboard by editing the <filename>XF86Config</filename> file.
75
+</para>
76
+<para>
77
+Please report any problems or feature requests to the author, Leonid
78
+Zeitlin, at the address <email>lz@europe.com</email>.
79
+</para>
80
+
81
+</chapter>
82
+
83
+<chapter id="using-kapp">
84
+<title>Using &kkbswitch;</title>
85
+
86
+<para>
87
+The most basic usage is simply to let it sit in the system tray and show you
88
+which keyboard layout is currently active. You can also click the KKBSwicth
89
+system  tray icon to switch keyboard layouts. When right-clicked, the system
90
+tray icon  displays a menu with the following entries:
91
+</para>
92
+
93
+<itemizedlist>
94
+<listitem><para>
95
+One or more entries corresponding to the configured keyboard layouts.
96
+Note that XKeyboard can have up to 4 layouts configured. The currently active
97
+layout will be checked. Selecting a menu entry corresponding to a layout will
98
+make that layout active.
99
+</para></listitem>
100
+<listitem><para>
101
+<guimenuitem>"Configure Keyboard Switch..."</guimenuitem>.
102
+This entry lets you configure &kkbswitch;
103
+</para></listitem>
104
+<listitem><para>
105
+<guimenuitem>"Help"</guimenuitem>. Brings up the online help (probably the
106
+document you are reading now).
107
+</para></listitem>
108
+<listitem><para>
109
+<guimenuitem>"About Keyboard Switch"</guimenuitem>.
110
+This entry displays a standard "About" dialog box.
111
+</para></listitem>
112
+<listitem><para>
113
+<guimenuitem>"Quit"</guimenuitem>.
114
+Quit &kkbswitch;.
115
+</para></listitem>
116
+</itemizedlist>
117
+
118
+<sect1 id="configure-kkbswitch">
119
+<title>Configuring &kkbswitch;</title>
120
+
121
+<para>
122
+In the &kkbswitch; configuration dialog (invoked by selecting
123
+<guimenuitem>"Configure Keyboard Switch..."</guimenuitem> from the tray icon's
124
+context menu) you will be able to configure various aspects of &kkbswitch;'s
125
+behavior. The configuration dialog consits of two pages, <guilabel>General</guilabel>
126
+and <guilabel>Shortcuts</guilabel>.
127
+</para>
128
+
129
+<sect2 id="general-page">
130
+<title>The <guilabel>General</guilabel> page</title>
131
+
132
+<sect3 id="specifying-icons">
133
+<title>Setting the icons corresponding to the available keyboard
134
+layouts</title>
135
+
136
+<para>
137
+The appearance of the system tray icons that represent keyboard layouts depends on the icon <emphasis>style</emphasis>. &kkbswitch; implements the following three styles:
138
+<variablelist>
139
+<varlistentry>
140
+<term>Country flag</term>
141
+<listitem><para>
142
+This style displays a country flag corresponding to the currently selected layout. 
143
+Note that this was the only style in version of &kkbswitch; prior to 1.3.
144
+</para></listitem>
145
+</varlistentry>
146
+
147
+<varlistentry>
148
+<term>Language code</term>
149
+<listitem><para>
150
+This style displays the two-letter ISO language code corresponding to the currently selected layout. This style mimics &Windows; layout indicator.
151
+</para></listitem>
152
+</varlistentry>
153
+
154
+<varlistentry>
155
+<term>Flag and code</term>
156
+<listitem><para>
157
+This style displays the language code against the background of a country flag. This style mimics &kde;'s <application>kxkb</application> application.
158
+</para></listitem>
159
+</varlistentry>
160
+</variablelist>
161
+</para>
162
+
163
+<para>The following table illustrates the look of &kkbswitch; tray icon menu with different icon styles.
164
+<informaltable>
165
+<tgroup cols="3">
166
+<thead>
167
+<row>
168
+<entry>Country flag</entry>
169
+<entry>Language code</entry>
170
+<entry>Flag and code</entry>
171
+</row>
172
+</thead>
173
+<tbody>
174
+<row>
175
+<entry>
176
+<inlinemediaobject>
177
+<imageobject><imagedata fileref="flag_style.png"/></imageobject>
178
+</inlinemediaobject>
179
+</entry>
180
+
181
+<entry>
182
+<inlinemediaobject>
183
+<imageobject><imagedata fileref="code_style.png"/></imageobject>
184
+</inlinemediaobject>
185
+</entry>
186
+
187
+<entry>
188
+<inlinemediaobject>
189
+<imageobject><imagedata fileref="flag_code_style.png"/></imageobject>
190
+</inlinemediaobject>
191
+</entry>
192
+</row>
193
+</tbody>
194
+</tgroup>
195
+</informaltable>
196
+</para>
197
+
198
+<para>
199
+The desired style can be selected in the <guilabel>Layout icon style</guilabel> combo box.
200
+</para>
201
+
202
+<para>
203
+Note that &kkbswitch; will try hard to guess the correct flag and language code based on the name of the
204
+keyboard layout (the names are configured in XKeyboard). For example, it will
205
+display the US flag and/or "EN" language code for US/ASCII layout, German flag and/or "DE" language code for German layout,
206
+Russian flag and/or "RU" language code for Russian layout, etc. If it cannot guess
207
+an icon, it will display a "default" icon, which simply shows the layout's number. 
208
+Use the configuration dialog to customize flag icons: select a layout in the
209
+<guilabel>"Available keyboard layouts"</guilabel> listbox and click
210
+<guibutton>"Change icon..."</guibutton> button. You will be presented with "Pick icon" dialog box. There you will be able to select from the list of country flag pixmaps that are shipped with &kde;. If you'd like to use a custom image, click the <guibutton>"Browse"</guibutton> button in the bottom of the dialog box and browse for the image file you'd like to use. Note that the preferred size for layout icons is 21 by 14 pixels. If your image has different dimensions, &kkbswitch; will scale it appropriately, but the result might look not very good.
211
+</para>
212
+
213
+<para>
214
+Note that changing the icon is not available for the Language Code style, which does not feature a flag.
215
+</para>
216
+
217
+<para>
218
+If you have specified a custom icon for a layout, you can always go back to the standard icon (the one the &kkbswitch; has guessed) by clicking <guibutton>"Use Default Icon"</guibutton> button. This button will be enabled only when the layout selected in the <guilabel>"Available keyboard layouts"</guilabel> listbox has a custom icon.
219
+</para>
220
+</sect3>
221
+
222
+<sect3 id="default-group">
223
+<title>Specifying default layout</title>
224
+<para>
225
+You can mark one of the configured keyboard layouts as the default. The default
226
+layout will be activated when &kkbswitch; starts up. To mark a layout as
227
+default, simply select the layout in the <guilabel>"Available keyboard
228
+layouts"</guilabel> listbox and click <guibutton>"Set as default"</guibutton>
229
+button. The default layout's name is shown in boldface in the
230
+<guilabel>"Available keyboard layouts"</guilabel> listbox.
231
+</para>
232
+</sect3>
233
+
234
+<sect3 id="group-scope">
235
+<title>Specifying layout scope</title>
236
+<para>
237
+&kkbswitch; supports three modes of operation with regards to the scope of the active keyboard layout. Possible settings are:
238
+<variablelist>
239
+
240
+<varlistentry>
241
+<term>All windows</term>
242
+<listitem>
243
+<para>
244
+In this mode the active layout applies to all windows on your desktop. In other words, at any given time all windows use the same layout.
245
+</para>
246
+</listitem>
247
+</varlistentry>
248
+
249
+<varlistentry>
250
+<term>Windows of one application</term>
251
+<listitem>
252
+<para>
253
+In this mode the active layout applies to windows one application<footnote><para>A technically inclined user familiar with &X-Window; API would be interested to know that &kkbswitch; considers windows that have the same Window Class (from WM_CLASS property) as belonging to the same application.</para></footnote>. In other words, each application has its own active layout. When a window gets focused, KKBSwitch automatically shows the active layout of this window's application in the system tray. When you change the active layout, either by pressing XKeyboard's group switch key, or by clicking KKBSwitch's tray icon, or by using its context menu, this change affects only the currently active application. Other applications retain their layouts. 
254
+</para>
255
+</listitem>
256
+</varlistentry>
257
+
258
+<varlistentry>
259
+<term>One window</term>
260
+<listitem>
261
+<para>
262
+In this mode the active layout applies to the focused window only. In other words, each window has its own active layout. When a window gets focused, KKBSwitch automatically shows this window's active layout in the system tray. When you change the active layout, either by pressing XKeyboard's group switch key, or by clicking KKBSwitch's tray icon, or by using its context menu, this change affects only the currently focused window. Other windows retain their layouts. 
263
+</para>
264
+</listitem>
265
+</varlistentry>
266
+
267
+</variablelist>
268
+</para>
269
+
270
+<para>
271
+Pick the mode that you prefer in the <guilabel>"Layout applies to"</guilabel> combo box. The author's opinion is that "Windows of one application" is the most reasonable choice, but opinions vary.
272
+</para>
273
+
274
+<para>
275
+Note that in "Windows of one application" and "One window" modes, all new windows start up with the default layout. In "All windows" mode new windows start with the active (global) layout.
276
+</para>
277
+</sect3>
278
+
279
+<sect3 id="toggle-mode">
280
+<title>Using "Toggle Mode"</title>
281
+<para>
282
+"Toggle mode" is a convenient feature of &kkbswitch;, which is useful if you 
283
+have more than 2 layouts. When "Toggle mode" is on, pressing the XKeyboard's 
284
+group switch key or clicking &kkbswitch;'s tray icon will toggle between the 
285
+two most recently used layouts. To activate the third or the fourth (if 
286
+available) layout
287
+you'll need to right-click  &kkbswitch;'s tray icon and select the desired 
288
+layout from the menu or use keyboard shortcuts (see <xref linkend="shortcuts"/>). For example, I have US/ASCII, Russian and Ukrainian
289
+layouts configured. Most of the time I use either US/ASCII or Russian layout and
290
+switch back and forth between them without activating the rarely needed
291
+Ukrainian layout. But sometimes I need to write something in Ukrainian, so I
292
+select this layout from the tray icon's menu.
293
+</para>
294
+<para>
295
+To turn the "Toggle mode" on and off use the <guilabel>Use "Toggle
296
+Mode"</guilabel> checkbox in the configuration dialog.
297
+</para>
298
+
299
+<para>
300
+When "Toggle mode" is on, the two most recently used layouts will be marked
301
+with an asterisk in the &kkbswitch; tray icon's menu.
302
+</para>
303
+
304
+</sect3>
305
+
306
+<sect3 id="autostart">
307
+<title>Starting &kkbswitch; automatically when you log in</title>
308
+<para>
309
+Use <guilabel>"Autostart"</guilabel> checkbox to enable &kkbswitch; autostart feature. When this checkbox is on, &kkbswitch; will start automatically each time you log in to &kde;. Note that this is independent of &kde;'s session restoration feature. If you configure &kde; to restore the previous session on login (under &kde; Components | Session Manager in &kcontrolcenter;), and &kkbswitch; was running in your previous session, &kde; will restore &kkbswitch;
310
+in the new session regardless of the autostart setting.
311
+</para>
312
+</sect3>
313
+
314
+</sect2>
315
+
316
+<sect2 id="shortcuts">
317
+<title>The <guilabel>Shortcuts</guilabel> page</title>
318
+<para>
319
+&kkbswitch; allows you to quickly activate particular layouts with keyboard shortcuts. This is configured at the <guilabel>Shortcuts</guilabel> page. 
320
+The <guilabel>"Use shortcuts to activate keyboard layouts"</guilabel> checkbox allows to turns the shortcut feature on and off. Uncheck the checkbox if you don't want to use shortcuts at all. If the checkbox is checked, the shortcuts are enabled. You can configure what key combinations activate which layouts at the key chooser pane under the checkbox. This is a standard &kde; key chooser widget that should be familiar to you from other &kde; applications. The default shortcuts are: <keycombo action="simul"><keycap>Ctrl</keycap> <keycap>Alt</keycap> <keycap>1</keycap></keycombo> to activate the first layout, <keycombo action="simul"><keycap>Ctrl</keycap> <keycap>Alt</keycap> <keycap>2</keycap></keycombo> the activate the second one, etc.
321
+</para>
322
+</sect2>
323
+
324
+<sect2 id="group-names">
325
+<title>How &kkbswitch; guesses icons for keyboard layouts</title>
326
+<para>
327
+&kkbswitch; uses the name of the keyboard layout, as defined by XKeyboard, to
328
+guess the icon to represent it. The process is entirely automatic; this section
329
+is only for those who want to tweak how this guessing works or just are curious.
330
+The algorithm is very simple. The &kkbswitch; distribution contains a file named
331
+<filename>group_names</filename>, which resides in &kkbswitch;'s data directory
332
+(<filename
333
+ class="directory">$<envar>KDEDIR</envar>/share/apps/kkbswitch</filename>).
334
+The file is a standard &kde; config file. It contains two sections. The secion  named "Mapping" contains mappings from XKeyboard group names to country codes.
335
+It contains various key=value pairs, key being the name of the XKeyboard layout and
336
+value the two-letter country code of the flag to display. The second section, "Language" contains similar mappings from XKeyboard group names to language codes. Note that if a group name is not found in the "Language" section, it is looked up in "Mapping" section, thus only layouts where country code and language code do not coincide need to be listed in "Language" section (e.g. for US/ASCII group the country code would be "us", but the language code would be "en").
337
+</para>
338
+
339
+<para>
340
+Once the country-code
341
+has been determined, &kkbswitch; will look for an icon named
342
+<filename>flag.png</filename> in the directory <filename
343
+class="directory">$<envar>KDEDIR</envar>/share/locale/l10n/<replaceable>country code</replaceable></filename> for icons styles that feature a flag and use the language code for styles that feature the a language code.
344
+</para>
345
+
346
+<para>
347
+As I was told, in &RedHat; 9 systems, the &kde; default country flag icons are missing. To work around that, if &kkbswitch; cannot find country flag icons in the location specified above, it will look for <acronym>GNOME</acronym>'s <application>gkb</application> icons in <filename class="directory">/usr/share/pixmaps/gkb</filename>. Unfortunately, <application>gkb</application> icons have size 40x60, while &kde; ones are 21x14. Thus &kkbswitch; rescales <application>gkb</application> icons on the fly, and the quality of the resulting images leaves a lot to be desired. But still it's better than nothing. 
348
+</para>
349
+
350
+<para>
351
+Of course, you can override the flag icon selection algorithm by specifying the icon you want to use, as described in <xref linkend="specifying-icons"/>.
352
+</para>
353
+
354
+</sect2>
355
+</sect1>
356
+</chapter>
357
+
358
+<chapter id="developers">
359
+<title>Developer's Guide to &kkbswitch;</title>
360
+
361
+<para>
362
+&kkbswitch; can be manipulated programmatically via DCOP. It exports an
363
+interface named <classname>KBSwitchIntf</classname>. The interface offers the
364
+following methods.
365
+</para>
366
+
367
+<funcsynopsis>
368
+<funcprototype>
369
+<funcdef>int <function>getNumKbdGroups</function></funcdef>
370
+<void/>
371
+</funcprototype>
372
+</funcsynopsis>
373
+<para>
374
+This method returns the number of configured keyboard groups (layouts).
375
+</para>
376
+
377
+<funcsynopsis>
378
+<funcprototype>
379
+<funcdef>ASYNC <function>selectNextGroup</function></funcdef>
380
+<void/>
381
+</funcprototype>
382
+</funcsynopsis>
383
+<para>
384
+This method does the same thing as clicking on the &kkbswitch;'s
385
+tray icon, i.e. makes the next keyboard layout active. If in "toggle mode",
386
+toggles between the two recently used ones, just like clicking on the tray icon
387
+does.
388
+</para>
389
+
390
+<funcsynopsis>
391
+<funcprototype>
392
+<funcdef>ASYNC <function>selectGroup</function></funcdef>
393
+<paramdef>int <parameter>groupno</parameter></paramdef>
394
+</funcprototype>
395
+</funcsynopsis>
396
+<para>
397
+This method makes the layout whose number is <parameter>groupno</parameter>
398
+active (like selecting a layout from the tray icon popup menu).
399
+</para>
400
+
401
+<funcsynopsis>
402
+<funcprototype>
403
+<funcdef>QStringList <function>getGroupNames</function></funcdef>
404
+<void/>
405
+</funcprototype>
406
+</funcsynopsis>
407
+<para>
408
+This method returns the list of the keyboard layout names, as configured in
409
+XKeyboard.
410
+</para>
411
+
412
+<sect1 id="examples">
413
+<title>Examples</title>
414
+<para>
415
+The following examples illustrate how one can manipulate &kkbswitch; with the
416
+command line tool <command>dcop</command>.
417
+</para>
418
+
419
+<informalexample>
420
+<para>Select the next keyboard group (layout):</para>
421
+<para>
422
+<screen>
423
+<prompt>&percnt;</prompt> <userinput><command>dcop</command> kkbswitch KBSwitchIntf selectNextGroup</userinput> 
424
+</screen>
425
+</para>
426
+</informalexample>
427
+
428
+<informalexample>
429
+<para>Select the group (layout) number 0:</para>
430
+<para>
431
+<screen>
432
+<prompt>&percnt;</prompt> <userinput><command>dcop</command> kkbswitch KBSwitchIntf selectGroup 0</userinput>
433
+</screen>
434
+</para>
435
+</informalexample>
436
+
437
+</sect1>
438
+</chapter>
439
+
440
+
441
+<chapter id="credits">
442
+
443
+<title>Credits and License</title>
444
+
445
+<para>
446
+&kkbswitch;
447
+</para>
448
+<para>
449
+Program copyright 2001-2004 Leonid Zeitlin <email>lz@europe.com</email>
450
+</para>
451
+
452
+<para>
453
+Contributors:
454
+<itemizedlist>
455
+<listitem><para>Mikhail Senin <email>m_senin@mail.ru</email> - implemented
456
+configuration for the default layout and per-window layouts
457
+</para>
458
+</listitem>
459
+
460
+<listitem>
461
+<para>
462
+Rashid N. Achilov <email>achilov@granch.ru</email> - made a FreeBSD port, suggested "Browse" button in "Pick icon" dialog box.
463
+</para>  
464
+</listitem>  
465
+
466
+<listitem>
467
+<para>
468
+Vadim Kriklivy <email>analitic@vinnitsa.com</email> - suggested "Language code" icon style (a la &Windows;) and shortcuts feature, made Ukrainian translation.
469
+</para>  
470
+</listitem>  
471
+
472
+<listitem>
473
+<para>
474
+Sergey V Turchin <email>zerg@altlinux.org</email> - implemented autostart feature.
475
+</para>
476
+</listitem>
477
+
478
+<listitem>
479
+<para>
480
+Stergios Dramis <email>sdramis@egnatia.ee.auth.gr</email> - contributed Greek translation.
481
+</para>
482
+</listitem>
483
+
484
+<listitem>
485
+<para>
486
+Michal &Scaron;ulek <email>reloadshot@atlas.sk</email> - contributed Slovak translation.
487
+</para>
488
+</listitem>
489
+
490
+<listitem>
491
+<para>
492
+Shlomi Loubaton <email>shlomister@gmail.com</email> - contributed manpage, Debian package 
493
+maintainer.
494
+</para>
495
+</listitem>
496
+
497
+<listitem>
498
+<para>
499
+Igal aka "Koala" <email>igalfr@netvision.net.il</email> - contributed Hebrew translation, Gentoo ebuild maintainer.
500
+</para>
501
+</listitem>
502
+
503
+<listitem>
504
+<para>
505
+Petko Yotov <email>5ko@free.fr</email> - contributed Bulgarian translation.
506
+</para>
507
+</listitem>
508
+
509
+<listitem>
510
+<para>
511
+Michal Bukovsk&yacute; <email>michal@trilogic.cz</email> - contributed Czech translation.
512
+</para>
513
+</listitem>
514
+
515
+</itemizedlist>
516
+</para>
517
+
518
+<para>
519
+Documentation copyright 2001-2005 Leonid Zeitlin <email>lz@europe.com</email>
520
+</para>
521
+
522
+<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
523
+
524
+&underFDL; <!-- FDL: do not remove. Commercial development should -->
525
+<!-- replace this with their copyright and either remove it or re-set this.-->
526
+
527
+<!-- Determine which license your application is licensed under,
528
+     and delete all the remaining licenses below:
529
+
530
+     (NOTE:  All documentation are licensed under the FDL,
531
+     regardless of what license the application uses) -->
532
+
533
+&underGPL;        	 <!-- GPL License -->
534
+
535
+</chapter>
536
+
537
+<appendix id="installation">
538
+<title>Installation</title>
539
+
540
+<sect1 id="getting-KKBSwitch">
541
+<title>How to obtain &kkbswitch;</title>
542
+
543
+<para>
544
+&kkbswitch; has a home page at SourceForge: 
545
+<ulink url="http://kkbswitch.sourceforge.net">
546
+http://kkbswitch.sourceforge.net</ulink>. Check there for the latest news. The latest version is available for download from the project page: <ulink url="http://sourceforge.net/projects/kkbswitch">
547
+http://sourceforge.net/projects/kkbswitch</ulink>.
548
+</para>
549
+<!-- <para>
550
+&kkbswitch; can be found in the at the <ulink
551
+url="http://apps.kde.com/">apps.kde.com</ulink> site at <ulink
552
+url="http://ftp.kde.com/Desktop/Utilities/KKBSwitch/">
553
+http://ftp.kde.com/Desktop/Utilities/KKBSwitch/</ulink>
554
+</para>
555
+<para>
556
+&kkbswitch; doesn't have a homepage yet. For the latest version check <ulink
557
+url="http://apps.kde.com/">apps.kde.com</ulink>
558
+</para> -->
559
+</sect1>
560
+
561
+<sect1 id="requirements">
562
+<title>Requirements</title>
563
+<para>
564
+&kkbswitch; doesn't require any special environment to compile and run besides
565
+ the standard &kde; 2 or 3 kdelibs and kdebase.
566
+</para>
567
+</sect1>
568
+
569
+<sect1 id="compilation">
570
+<title>Compilation and Installation</title>
571
+<para>
572
+In order to compile and install &kkbswitch; on your system, type the following
573
+in the  base directory of the &kkbswitch; distribution:
574
+<screen width="40">
575
+<prompt>&percnt;</prompt> <userinput>./configure</userinput>
576
+<prompt>&percnt;</prompt> <userinput>make</userinput>
577
+<prompt>&percnt;</prompt> <userinput>make install</userinput>
578
+</screen>
579
+</para>
580
+
581
+<para>
582
+Options you may want or need to give to the <command>configure</command> command are:
583
+</para>
584
+<simplelist>
585
+<member>
586
+<option>--prefix</option>=<replaceable>dir</replaceable> - set the prefix where your &kde; installation is located. Alternatively, you can set $<envar>KDEDIR</envar> environment variable to the &kde; directory. Under regular circumstances, the configuration script will find the &kde; location automatically; use this option only if you are having problems without it.
587
+</member>
588
+<member>
589
+<option>--enable-ru-ua-layout</option> - install the Russian/Ukrainian layout file (described in <xref linkend="ru_ua"/>). This option is useful for users of XFree86 prior to version 4.3, who want to use Russian/Ukrainian layout file. Note that with this option it is not possible to install &kkbswitch; without root privileges, because the layout file <emphasis>must</emphasis> go to the system XKB layout directory where ordinary users don't have write access.
590
+</member>
591
+<member>
592
+<option>--without-arts</option> - do not check for &arts; development headers. &arts; is &kde;'s multimedia framework, which &kkbswitch; does not use. However, since &kkbswitch; uses standard &kde; configuration macros, the configuration script will check for &arts; headers and complain if they are not found. If this happens to you, specify this option to compile &kkbswitch;. Alternatively, install &arts; development headers, you'll need them one day.
593
+</member>
594
+</simplelist>
595
+
596
+
597
+<para>
598
+Since &kkbswitch; uses autoconf and automake you should have not trouble
599
+compiling it. &kkbswitch; was tested under several versions of &Linux; and FreeBSD, 
600
+and a FreeBSD port is available.
601
+</para>
602
+
603
+<para>
604
+If you system uses <application>RPM</application> you may want to download
605
+&kkbswitch; source RPM package. To build a binary RPM out of source RPM run this
606
+command (as root):
607
+<screen>
608
+<prompt>&percnt;</prompt> <userinput><command>rpmbuild</command> <option>--rebuild</option> <filename>kkbswitch-&kkbswitchVersion;-1.src.rpm</filename></userinput>
609
+</screen>
610
+
611
+(You may add <option>--with ru_ua_layout</option> option if you need the Russian/Ukrainian layout file, see  <xref linkend="ru_ua"/>).
612
+Then, still as root, go to your binary RPM directory (on &RedHat; Intel systems,
613
+<filename class="directory">/usr/src/redhat/RPMS/i386</filename>) and install
614
+the binary RPM you've just built with this command:
615
+</para>
616
+
617
+<screen>
618
+<prompt>&percnt;</prompt> <userinput><command>rpm</command> <option>-ihv</option> <filename>kkbswitch-&kkbswitchVersion;-1.i386.rpm</filename></userinput>
619
+</screen>
620
+
621
+<para>
622
+Note that with older versions of <application>RPM</application> you will need to use command <userinput><command>rpm</command> <option>--rebuild</option></userinput> instead of <userinput><command>rpmbuild</command> <option>--rebuild</option></userinput>
623
+</para>
624
+
625
+</sect1>
626
+</appendix>
627
+
628
+<appendix id="ru_ua">
629
+<title>The Russian/Ukrainian keyboard layout file</title>
630
+<para>
631
+For the benefit of Ukrainian users of &kkbswitch; and XFree86 versions before 4.3,
632
+a Russian/Ukrainian keyboard layout file is included with the distribution (users of XFree86 4.3 and later, including X.Org server, read the note in the end of this appendix). This file is experimental, so report any problems with it to the author of &kkbswitch;. The file is named
633
+<filename>ru_ua</filename> and by default gets installed to the directory
634
+<filename class="directory">/usr/X11R6/lib/X11/xkb/symbols</filename>, where
635
+this type of XKeyboard configuation file is supposed to go. The file defines a
636
+configuration with 3 keyboard groups (layouts): US/ASCII, Russian and Ukrainian.
637
+To use this layout, you can do one of the following.
638
+<orderedlist>
639
+<listitem>
640
+<para>
641
+If you feel comfortable editing your <filename>XF86Config</filename> file and
642
+know its structure you can simply edit the file (usually
643
+<filename>/etc/X11/XF86Config-4</filename> for XFree86 4.x), and in InputDevice
644
+section for keyboard set XkbLayout option to "ru_ua". It is recommented to set
645
+XkbVariant to "winkeys", since only this variant was tested.
646
+</para>
647
+</listitem>
648
+<listitem>
649
+<para>
650
+If you are using &RedHat; &Linux;, you may create a file named
651
+<filename>.Xkbmap</filename> in your home directory and write the text "ru_ua"
652
+(without quotes) in it. The default X session startup script will pick this file
653
+and activate the layout named in it.
654
+</para>
655
+</listitem>
656
+<listitem>
657
+<para>
658
+Run the command <userinput><command>setxkbmap</command> ru_ua</userinput> either
659
+manually from command prompt our in one of your X session startup script.
660
+</para>
661
+</listitem>
662
+</orderedlist>
663
+</para>
664
+
665
+<note>
666
+<para>Users of XFree86 4.3 and later versions, including X.Org server, don't need any additional files if they want a three-language layout. Just specify <userinput>XkbLayout "us,ru,ua"</userinput> in your <filename>XF86Config</filename> (<filename>xorg.conf</filename> for X.Org server) file.
667
+</para>
668
+</note>
669
+
670
+</appendix>
671
+
672
+&documentation.index;
673
+</book>
674
+<!--
675
+Local Variables:
676
+mode: sgml
677
+sgml-minimize-attributes:nil
678
+sgml-general-insert-case:lower
679
+sgml-indent-step:0
680
+sgml-indent-data:nil
681
+End:
682
+-->
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+

+ 136
- 0
kkbswitch.1 View File

@@ -0,0 +1,136 @@
1
+.\" This manpage has been automatically generated by docbook2man 
2
+.\" from a DocBook document.  This tool can be found at:
3
+.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4
+.\" Please send any bug reports, improvements, comments, patches, 
5
+.\" etc. to Steve Cheng <steve@ggi-project.org>.
6
+.TH "KKBSWITCH" "1" "06 November 2004" "" ""
7
+
8
+.SH NAME
9
+kkbswitch \- A keyboard layout indicator for KDE 3.
10
+.SH SYNOPSIS
11
+
12
+\fBkkbswitch\fR [ \fB--help\fI\fB\fR ] [ \fB--help-kde\fI\fB\fR ] [ \fB--help-qt\fI\fB\fR ] [ \fB--version\fI -v\fB\fR ] [ \fB--license\fI\fB\fR ] [ \fB--author\fI\fB\fR ] [ \fB--caption <caption>\fI\fB\fR ] [ \fB--icon <icon>\fI\fB\fR ] [ \fB--miniicon <icon>\fI\fB\fR ] [ \fB--dcopserver <server>\fI\fB\fR ] [ \fB--nocrashhandler\fI\fB\fR ] [ \fB--waitforwm\fI\fB\fR ] [ \fB--style <style>\fI\fB\fR ] [ \fB--geometry <geometry>\fI\fB\fR ] [ \fB--display <display>\fI\fB\fR ] [ \fB--session <sessionid>\fI\fB\fR ] [ \fB--cmap\fI\fB\fR ] [ \fB--ncols <columns>\fI\fB\fR ] [ \fB--nograb\fI\fB\fR ] [ \fB--dograb\fI\fB\fR ] [ \fB--sync\fI\fB\fR ] [ \fB--font\fI --fn <fontname>\fB\fR ] [ \fB--background\fI --bg <colour>\fB\fR ] [ \fB--button\fI --btn <colour>\fB\fR ] [ \fB--name\fI <name>\fB\fR ] [ \fB--title\fI <title>\fB\fR ] [ \fB--visual\fI TrueColor\fB\fR ] [ \fB--inputstyle\fI <style>\fB\fR ] [ \fB--im\fI <server>\fB\fR ] [ \fB--noxim\fI\fB\fR ]
13
+
14
+.SH "DESCRIPTION"
15
+.PP
16
+This manual page documents briefly the
17
+\fBkkbswitch\fR command.
18
+.PP
19
+This manual page was written for the Debian GNU/Linux distribution
20
+because the original program does not have a manual page.
21
+Instead, it has documentation in the KDE handbook format; see below.
22
+.PP
23
+\fBkkbswitch\fR is a keyboard layout indicator for KDE.
24
+.PP
25
+It is useful when you have configured the XKeyboard extension of your X Server to have more than one keyboard group (layout), for example US/ASCII and Russian. 
26
+KKBSwitch displays an icon in the system tray that indicates which layout is currently active and enables layout switching by clicking the icon or by right click and selecting layout from a popup menu. Note that KKBSwitch does not help you configure XKeyboard.
27
+This means that you still have to configure XKeyboard by editing the XF86Config file or use a setup program to do it for you.
28
+KKBSwitch is a KDE application, but is reported to work under GNOME as well.
29
+.SH "OPTIONS"
30
+.PP
31
+These programs follow the usual GNU command line syntax,
32
+with long options starting with two dashes (`-').  A summary of
33
+options is included below.
34
+.TP
35
+\fB-h --help \fR
36
+Show summary of options.
37
+.TP
38
+\fB-v --version \fR
39
+Show version information.
40
+.TP
41
+\fB--author \fR
42
+Show information about the author.
43
+.TP
44
+\fB--license \fR
45
+Show license information.
46
+.TP
47
+\fB--caption <caption> \fR
48
+Specify the caption of the window.
49
+.TP
50
+\fB--icon <icon> \fR
51
+Specify the icon of the window.
52
+.TP
53
+\fB--miniicon <icon> \fR
54
+Specify the mini-icon of the window.
55
+.TP
56
+\fB--dcopserver <server> \fR
57
+Specify the DCOP server to use.
58
+.TP
59
+\fB--nocrashhandler \fR
60
+Disable KDE crash handler (enables core dumps).
61
+.TP
62
+\fB--waitforwm \fR
63
+Waits for a compatible window manager to start.
64
+.TP
65
+\fB--style <style> \fR
66
+Sets the application's GUI style (overrides KDE).
67
+.TP
68
+\fB--geometry <geometry> \fR
69
+Sets the geometry of the window.
70
+.TP
71
+\fB--display <display> \fR
72
+Specifies the X display to use.
73
+.TP
74
+\fB--session <sessionid> \fR
75
+Restores the application for the given session ID.
76
+.TP
77
+\fB--cmap \fR
78
+Forces use of an internal colour map on an 8-bit display.
79
+.TP
80
+\fB--ncols <count> \fR
81
+Limits the number of colours allowed in an 8-bit display.
82
+.TP
83
+\fB--nograb \fR
84
+Forces Qt to never grab the mouse or keyboard.
85
+.TP
86
+\fB--dograb \fR
87
+Overrides --nograb, which may be implicitly set.
88
+.TP
89
+\fB--sync \fR
90
+Forces synchronous mode (for debugging).
91
+.TP
92
+\fB--font <font> --fn <font>\fR
93
+Sets the default application font.
94
+.TP
95
+\fB--background <colour> --bg <colour>\fR
96
+Sets the default background colour and application
97
+pallette.
98
+.TP
99
+\fB--foreground <colour> --fg <colour>\fR
100
+Sets the default foreground colour.
101
+.TP
102
+\fB--button <colour> --btn <colour>\fR
103
+Sets the default button colour.
104
+.TP
105
+\fB--name <name> \fR
106
+Sets the application name.
107
+.TP
108
+\fB--title <name> \fR
109
+Sets the application title.
110
+.TP
111
+\fB--visual TrueColor \fR
112
+Forces the application to use a True Colour visual on 8-bit
113
+displays.
114
+.TP
115
+\fB--inputstyle <style> \fR
116
+Sets X Input Method (XIM) input style. Possible values are: 
117
+onthespot, overthespot, offthespot, and root.
118
+.TP
119
+\fB--im <server> \fR
120
+Sets X Input Method (XIM) server.
121
+.TP
122
+\fB--noxim \fR
123
+Disables X Input Method (XIM) support.
124
+.SH "SEE ALSO"
125
+.PP
126
+This program includes documentation in the format of KDE handbook available in /usr/share/doc/HTML/en/kkbswitch or by help option in the user interface.
127
+.SH "AUTHOR"
128
+.PP
129
+This manual page was written by Shlomi Loubaton <shlomister@gmail.com> for
130
+the Debian GNU/Linux system (but may be used by others).  Permission is
131
+granted to copy, distribute and/or modify this document under
132
+the terms of the GNU General Public License, Version 2 any 
133
+later version published by the Free Software Foundation.
134
+.PP
135
+On Debian systems, the complete text of the GNU General Public
136
+License can be found in /usr/share/common-licenses/GPL.

+ 215
- 0
kkbswitch.kdevelop View File

@@ -0,0 +1,215 @@
1
+<?xml version = '1.0'?>
2
+<kdevelop>
3
+  <general>
4
+    <author>Leonid Zeitlin</author>
5
+    <email>lz@europe.com</email>
6
+    <version>1.4.1</version>
7
+    <projectmanagement>KDevKDEAutoProject</projectmanagement>
8
+    <primarylanguage>C++</primarylanguage>
9
+    <keywords>
10
+      <keyword>C++</keyword>
11
+      <keyword>Code</keyword>
12
+      <keyword>Qt</keyword>
13
+      <keyword>KDE</keyword>
14
+    </keywords>
15
+    <projectdirectory>.</projectdirectory>
16
+    <absoluteprojectpath>false</absoluteprojectpath>
17
+    <description/>
18
+    <ignoreparts>
19
+      <part>KDevClearCase</part>
20
+      <part>KDevPerforce</part>
21
+    </ignoreparts>
22
+    <secondaryLanguages/>
23
+  </general>
24
+  <kdevautoproject>
25
+    <general>
26
+      <activetarget>kkbswitch/kkbswitch</activetarget>
27
+      <useconfiguration>default</useconfiguration>
28
+    </general>
29
+    <run>
30
+      <mainprogram>kkbswitch/kkbswitch</mainprogram>
31
+      <directoryradio>build</directoryradio>
32
+      <runarguments>
33
+        <kkbswitch/>
34
+      </runarguments>
35
+      <customdirectory>/</customdirectory>
36
+      <programargs/>
37
+      <terminal>false</terminal>
38
+      <autocompile>true</autocompile>
39
+      <envvars/>
40
+    </run>
41
+    <configurations>
42
+      <optimized>
43
+        <builddir>optimized</builddir>
44
+        <ccompiler>kdevgccoptions</ccompiler>
45
+        <cxxcompiler>kdevgppoptions</cxxcompiler>
46
+        <f77compiler>kdevg77options</f77compiler>
47
+        <cxxflags>-O2 -g0</cxxflags>
48
+      </optimized>
49
+      <debug>
50
+        <configargs>--enable-debug=full</configargs>
51
+        <builddir>debug</builddir>
52
+        <ccompiler>kdevgccoptions</ccompiler>
53
+        <cxxcompiler>kdevgppoptions</cxxcompiler>
54
+        <f77compiler>kdevg77options</f77compiler>
55
+        <cxxflags>-O0 -g3</cxxflags>
56
+        <envvars/>
57
+      </debug>
58
+    </configurations>
59
+    <make>
60
+      <envvars>
61
+        <envvar value="1" name="WANT_AUTOCONF_2_5" />
62
+        <envvar value="1" name="WANT_AUTOMAKE_1_6" />
63
+      </envvars>
64
+      <abortonerror>true</abortonerror>
65
+      <numberofjobs>1</numberofjobs>
66
+      <dontact>false</dontact>
67
+      <makebin/>
68
+    </make>
69
+  </kdevautoproject>
70
+  <kdevfileview>
71
+    <groups>
72
+      <group pattern="*.cpp;*.cxx;*.h" name="Sources" />
73
+      <group pattern="*.ui" name="User Interface" />
74
+      <group pattern="*.png" name="Icons" />
75
+      <group pattern="*.po;*.ts" name="Translations" />
76
+      <group pattern="*" name="Others" />
77
+      <hidenonprojectfiles>false</hidenonprojectfiles>
78
+      <hidenonlocation>false</hidenonlocation>
79
+    </groups>
80
+    <tree>
81
+      <hidepatterns>*.o,*.lo,CVS</hidepatterns>
82
+      <hidenonprojectfiles>false</hidenonprojectfiles>
83
+    </tree>
84
+  </kdevfileview>
85
+  <kdevdoctreeview>
86
+    <ignoretocs>
87
+      <toc>ada</toc>
88
+      <toc>ada_bugs_gcc</toc>
89
+      <toc>bash</toc>
90
+      <toc>bash_bugs</toc>
91
+      <toc>clanlib</toc>
92
+      <toc>w3c-dom-level2-html</toc>
93
+      <toc>fortran_bugs_gcc</toc>
94
+      <toc>gnome1</toc>
95
+      <toc>gnustep</toc>
96
+      <toc>gtk</toc>
97
+      <toc>gtk_bugs</toc>
98
+      <toc>haskell</toc>
99
+      <toc>haskell_bugs_ghc</toc>
100
+      <toc>java_bugs_gcc</toc>
101
+      <toc>java_bugs_sun</toc>
102
+      <toc>pascal_bugs_fp</toc>
103
+      <toc>php</toc>
104
+      <toc>php_bugs</toc>
105
+      <toc>perl</toc>
106
+      <toc>perl_bugs</toc>
107
+      <toc>python</toc>
108
+      <toc>python_bugs</toc>
109
+      <toc>ruby</toc>
110
+      <toc>ruby_bugs</toc>
111
+      <toc>sdl</toc>
112
+      <toc>w3c-svg</toc>
113
+      <toc>sw</toc>
114
+      <toc>w3c-uaag10</toc>
115
+      <toc>wxwindows_bugs</toc>
116
+      <toc>libmilter</toc>
117
+      <toc>c++_bugs_gcc</toc>
118
+      <toc>kdev3api</toc>
119
+      <toc>libc</toc>
120
+      <toc>libstdc++</toc>
121
+      <toc>opengl</toc>
122
+      <toc>qt-kdev3</toc>
123
+    </ignoretocs>
124
+    <ignoreqt_xml>
125
+      <toc>qmake User Guide</toc>
126
+      <toc>Guide to the Qt Translation Tools</toc>
127
+      <toc>Qt Assistant Manual</toc>
128
+    </ignoreqt_xml>
129
+    <projectdoc>
130
+      <userdocDir>html/</userdocDir>
131
+      <apidocDir>html/</apidocDir>
132
+    </projectdoc>
133
+    <ignoredoxygen/>
134
+    <ignorekdocs/>
135
+    <ignoredevhelp/>
136
+  </kdevdoctreeview>
137
+  <kdevdebugger>
138
+    <general>
139
+      <dbgshell>libtool</dbgshell>
140
+      <programargs/>
141
+      <gdbpath/>
142
+      <configGdbScript/>
143
+      <runShellScript/>
144
+      <runGdbScript/>
145
+      <breakonloadinglibs>true</breakonloadinglibs>
146
+      <separatetty>false</separatetty>
147
+      <floatingtoolbar>false</floatingtoolbar>
148
+    </general>
149
+    <display>
150
+      <staticmembers>false</staticmembers>
151
+      <demanglenames>true</demanglenames>
152
+      <outputradix>10</outputradix>
153
+    </display>
154
+  </kdevdebugger>
155
+  <kdevfilecreate>
156
+    <filetypes/>
157
+    <useglobaltypes>
158
+      <type ext="ui" />
159
+      <type ext="cpp" />
160
+      <type ext="h" />
161
+    </useglobaltypes>
162
+  </kdevfilecreate>
163
+  <kdevcppsupport>
164
+    <references/>
165
+    <codecompletion>
166
+      <includeGlobalFunctions>true</includeGlobalFunctions>
167
+      <includeTypes>true</includeTypes>
168
+      <includeEnums>true</includeEnums>
169
+      <includeTypedefs>false</includeTypedefs>
170
+      <automaticCodeCompletion>true</automaticCodeCompletion>
171
+      <automaticArgumentsHint>true</automaticArgumentsHint>
172
+      <automaticHeaderCompletion>true</automaticHeaderCompletion>
173
+      <codeCompletionDelay>250</codeCompletionDelay>
174
+      <argumentsHintDelay>400</argumentsHintDelay>
175
+      <headerCompletionDelay>250</headerCompletionDelay>
176
+    </codecompletion>
177
+  </kdevcppsupport>
178
+  <cppsupportpart>
179
+    <filetemplates>
180
+      <interfacesuffix>.h</interfacesuffix>
181
+      <implementationsuffix>.cpp</implementationsuffix>
182
+    </filetemplates>
183
+  </cppsupportpart>
184
+  <dist>
185
+    <custom>false</custom>
186
+    <bzip>false</bzip>
187
+    <archname/>
188
+    <appname/>
189
+    <version>1.3.2</version>
190
+    <release/>
191
+    <vendor/>
192
+    <licence/>
193
+    <summary/>
194
+    <group/>
195
+    <packager/>
196
+    <description/>
197
+    <changelog/>
198
+    <devpackage>false</devpackage>
199
+    <docspackage>false</docspackage>
200
+    <appicon>false</appicon>
201
+    <arch>0</arch>
202
+    <genHTML>false</genHTML>
203
+    <useRPM>false</useRPM>
204
+    <ftpkde>false</ftpkde>
205
+    <appskde>false</appskde>
206
+    <url/>
207
+  </dist>
208
+  <kdevdocumentation>
209
+    <projectdoc>
210
+      <docsystem/>
211
+      <docurl/>
212
+      <usermanualurl/>
213
+    </projectdoc>
214
+  </kdevdocumentation>
215
+</kdevelop>

+ 16
- 0
kkbswitch.lsm View File

@@ -0,0 +1,16 @@
1
+Begin3
2
+Title:          Kkbswitch 
3
+Version:        1.1
4
+Entered-date:   01SEP01
5
+Description:    KKBSwitch is a keyboard layout indicator for KDE 2 or 3
6
+Keywords:       keyboard layout indicator KDE XKeyboard
7
+Author:         Leonid Zeitlin <lz@europe.com> 
8
+Maintained-by:  Leonid Zeitlin <lz@europe.com> 
9
+Primary-site:   ftp.kde.org /pub/kde/unstable/apps/utils
10
+                  kkbswitch-1.1.tar.gz
11
+                  kkbswitch-1.1-1.src.rpm
12
+Home-page:
13
+Original-site: