plasmoid-kbstate-2.0~svn906377/0000755000175000017500000000000011130551510016421 5ustar jonathanjonathanplasmoid-kbstate-2.0~svn906377/kbstateapplet.h0000644000175000017500000001256411102200057021441 0ustar jonathanjonathan/* * Copyright (c) 2004 Gunnar Schmi Dt * Copyright (c) 2008 Sebastian Sauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software */ #ifndef KBSTATE_H #define KBSTATE_H #include #include #include #include #include #include #include #include #include #include #include extern "C" { #include #include #include #define XK_MISCELLANY #define XK_XKB_KEYS #include #include } class QGridLayout; class KIconLoader; class StatusIcon : public QPushButton { Q_OBJECT public: StatusIcon (const QString &text, QWidget *parent, const char *name=0); ~StatusIcon (); QSize minimumSizeHint () const; }; typedef QList IconList; class TimeoutIcon : public StatusIcon { Q_OBJECT public: TimeoutIcon (KIconLoader *iconLoader, const QString &text, const QString &featurename, QWidget *parent, const char *name=0); ~TimeoutIcon (); void update (); void setGlyth (const QString &glyth); void setImage (const QString &name, int timeout = 0); void paintEvent(QPaintEvent *event); private: QString glyth; QString iconname; QString featurename; QPixmap pixmap; QPixmap image; QTimer timer; KIconLoader *iconLoader; private slots: void timeout (); }; class KeyIcon : public StatusIcon { Q_OBJECT public: KeyIcon (int keyId, KIconLoader *iconLoader, QWidget *parent, const char *name=0); ~KeyIcon (); void setState (bool latched, bool locked); void paintEvent(QPaintEvent *event); void updateImages (); signals: void stateChangeRequest (KeyIcon *source, bool latched, bool locked); protected: void resizeEvent(QResizeEvent*); private slots: void clickedSlot(); private: QPixmap locked; QPixmap latched; QPixmap unlatched; bool isLatched; bool isLocked; bool tristate; int keyId; KIconLoader *iconLoader; }; class MouseIcon : public StatusIcon { Q_OBJECT public: MouseIcon (KIconLoader *iconLoader, QWidget *parent, const char *name=0); ~MouseIcon (); void setState (int state); void setActiveKey (int activekey); void paintEvent(QPaintEvent *event); void updateImages (); protected: void resizeEvent(QResizeEvent*); private: QPixmap mouse; QPixmap leftSelected; QPixmap middleSelected; QPixmap rightSelected; QPixmap leftDot; QPixmap middleDot; QPixmap rightDot; QPixmap leftDotSelected; QPixmap middleDotSelected; QPixmap rightDotSelected; int state, activekey; KIconLoader *iconLoader; }; class KbStateApplet; class KbStateWidget : public QWidget { Q_OBJECT public: explicit KbStateWidget(KbStateApplet *applet, QWidget *parent = 0); ~KbStateWidget(); int widthForHeight(int height) const; int heightForWidth(int width) const; int orientation() const; Display* x11Display() const; signals: void updateLayout(); protected: void timerEvent(QTimerEvent*); void resizeEvent(QResizeEvent*); bool x11Event (XEvent *); public slots: void updateSettings (); void paletteChanged(); private slots: void stateChangeRequest (KeyIcon *source, bool latched, bool locked); private: void layout(); KbStateApplet* m_applet; int xkb_base_event_type; KeyIcon *(icons[8]); IconList modifiers; IconList lockkeys; TimeoutIcon *sticky; TimeoutIcon *slow; TimeoutIcon *bounce; MouseIcon *mouse; int state; unsigned int accessxFeatures; int m_size; bool showModifiers, showLockkeys, showMouse, showAccessX; bool fillSpace; KComponentData componentData; XkbDescPtr xkb; KIconLoader *m_iconLoader; friend class KbStateApplet; }; class KbStateApplet : public Plasma::Applet { Q_OBJECT public: KbStateApplet(QObject *parent, const QVariantList &args); virtual ~KbStateApplet(); virtual void init(); virtual void constraintsEvent(Plasma::Constraints constraints); virtual void createConfigurationInterface(KConfigDialog *parent); public Q_SLOTS: void configAccepted(); private: class Private; Private* d; }; #endif plasmoid-kbstate-2.0~svn906377/COPYING0000644000175000017500000004354111130542733017472 0ustar jonathanjonathanNOTE! The GPL below is copyrighted by the Free Software Foundation, but the instance of code that it refers to (the kde programs) are copyrighted by the authors who actually wrote it. --------------------------------------------------------------------------- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. plasmoid-kbstate-2.0~svn906377/plasma-applet-kbstate.desktop0000644000175000017500000000600711130134430024210 0ustar jonathanjonathan[Desktop Entry] Name=Keyboard Status Applet Name[ca]=Miniaplicació d'estat del teclat Name[de]=Miniprogramm für Tastaturstatus Name[el]=Μικροεφαρμογή κατάστασης πληκτρολογίου Name[et]=Klaviatuurioleku aplett Name[gl]=Applet dos leds do teclado Name[ja]=キーボード状態表示アプレット Name[km]=អាប់ភ្លេត​ស្ថានភាព​ក្ដារចុច Name[ml]=കീബോര്‍ഡ് സ്ഥിതിവിവരം കാണിയ്ക്കുന്ന ലഘുപ്രയോഗം Name[nds]=Tastatuurstatus-Lüttprogramm Name[nn]=Panelprogram for tastaturstatus Name[pt]='Applet' de Estado do Teclado Name[pt_BR]=Miniaplicativo de status do teclado Name[ro]=Miniaplicație Stare tastatură Name[ru]=Аплет состояния клавиатуры Name[sv]=Miniprogram för tangentbordsstatus Name[th]=แอพเพล็ตแสดงสถานะแป้นพิมพ์ Name[tr]=Klavye Durumu Programcığı Name[uk]=Аплет стану клавіатури Name[x-test]=xxKeyboard Status Appletxx Name[zh_CN]=键盘状态小程序 Name[zh_TW]=鍵盤狀態小程式 Comment=Shows the state of the modifier keys Comment[ca]=Mostra l'estat de les tecles modificadores Comment[cs]=Zobrazuí stav stisknutí kláves modifikátorů Comment[de]=Zeigt den Status der Sondertasten Comment[el]=Εμφάνιση της κατάστασης των πλήκτρων τροποποίησης Comment[et]=Muuteklahvide oleku näitamine Comment[fr]=Affiche l'état de touches spéciales Comment[gl]=Mostra o estado das teclas modificadoras Comment[ja]=修飾キーの状態を表示します Comment[km]=បង្ហាញ​ស្ថានភាព​របស់​គ្រាប់ចុច​កែប្រែ Comment[ml]=ഭേദഗതിക്കട്ടകളുടെ അവസ്ഥ കാണിക്കുന്നു Comment[nds]=Wiest de Sünnertasten ehr Status Comment[nn]=Panelprogram som viser tilstanden til valtastane Comment[pt]=Mostra o estado das teclas modificadoras Comment[pt_BR]=Mostra o status das teclas modificadoras Comment[ro]=Afișează starea tastelor modificatoare Comment[ru]=Показать состояния специальных клавиш Comment[sv]=Visar väljartangenternas tillstånd Comment[th]=แสดงสถานะของแป้น Comment[tr]=Değiştirici tuşların durumunu göster Comment[uk]=Показує стан клавіш-модифікаторів Comment[x-test]=xxShows the state of the modifier keysxx Comment[zh_CN]=显示修饰键状态 Comment[zh_TW]=顯示變更鍵的狀態 Icon=preferences-desktop-keyboard Type=Service X-KDE-ServiceTypes=Plasma/Applet X-KDE-Library=plasma_applet_kbstate X-KDE-PluginInfo-Author=KDE Accessibility Team X-KDE-PluginInfo-Email= X-KDE-PluginInfo-Name=kbstate X-KDE-PluginInfo-Version=2.0 X-KDE-PluginInfo-Website=http://accessibility.kde.org/ X-KDE-PluginInfo-Category=Utilities X-KDE-PluginInfo-Depends= X-KDE-PluginInfo-License=GPL X-KDE-PluginInfo-EnabledByDefault=false plasmoid-kbstate-2.0~svn906377/images/0000755000175000017500000000000011130551510017666 5ustar jonathanjonathanplasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_stickykeys.svg0000644000175000017500000000056610306037513026546 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox32-action-keypressok.png0000644000175000017500000000100410613722523024643 0ustar jonathanjonathanPNG  IHDR szzIDATxOKakgc鲨E N!(\C"k#-#H[vb'KZ9,4\D3Ar8w'yɌ:2Ҽ [!d,j'xloV~Fko! "O g]{tpRŃx34ЬyehjoL1c88"+v羲/,u$=,vv88nX? X -.gwT`ⷁʶs6GγLM-ȵ4[v]χkA"K><+{WȨ{1E&YuE&|Ύ".2뵙W1X(>|@1 JIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse_right.png0000644000175000017500000000013010613722523026507 0ustar jonathanjonathanPNG  IHDR7IDAT(c`[ýF| Fi!IENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_mouse_left.svg0000644000175000017500000000047610306037513026506 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox48-action-unlatched.png0000644000175000017500000000012410613722523024424 0ustar jonathanjonathanPNG  IHDR00 1 IDATx1 k`p0o͏IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-key.png0000644000175000017500000000011210613722523023232 0ustar jonathanjonathanPNG  IHDRnIDATc`` O]ƽIENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-hyperkey.png0000644000175000017500000000023410613722523024317 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME 8EZubKGD̿-IDATx11,p, $8`)TM;ѭaV IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_mouse_left_selected.png0000644000175000017500000000021410613722523030175 0ustar jonathanjonathanPNG  IHDR sSIDATx DQs|+뱁%E%@ I^t#2J3H0&^$)İXtB}bEbIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_mouse_mid_selected.svg0000644000175000017500000000047110306037513030170 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse_mid.png0000644000175000017500000000020610613722523026152 0ustar jonathanjonathanPNG  IHDR@@`UMIDATx!0 ХvEQ& f!{m|W>@q%gc O>*o'/W"IENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-capskey.png0000644000175000017500000000025010613722523024107 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME  y^bKGD̿9IDATxڽ IDD@k_ WډuXW &X6gWZIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-superkey.png0000644000175000017500000000022610613722523024317 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME (4bKGD̿'IDAT(c` ?NU1*&GC2ֆ<IENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_slowkeys.png0000644000175000017500000000107310613722523026054 0ustar jonathanjonathanPNG  IHDR@@`UIDATx혽NAtPJ *}D=Vz߀_b-T&2Ls#3̷ܻsvv%D"Qq%V+gj; p{-K{W)(|EϘ :hs3(10Ô MVpj:<E@Or52cB@0y%]i KM@FU.h:˃/B`@@ NhP@6 hMTlr,-Ƕ!P6$%-)Mim!l˕%43L N !8UsCϕ C88#D"H )ۏ{IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_stickykeys.png0000644000175000017500000000031210613722523026364 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME hVbKGD̿[IDATx1 CQ&tpф0 M 4xHD'dt"DW8#ĩĹ}>H;IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-superkey.png0000644000175000017500000000023710613722523024322 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME ,'bKGD̿0IDATHc` 4' 5 bk" >FҨ!! G`.ΘAWIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_mouse_right.png0000644000175000017500000000015410613722523026513 0ustar jonathanjonathanPNG  IHDR s3IDATHc`ޠ2U ^ïzƁr`Q0 h ? TlIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse_left_selected.png0000644000175000017500000000016510613722523030201 0ustar jonathanjonathanPNG  IHDRn plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_stickykeys.png0000644000175000017500000000042110613722523026372 0ustar jonathanjonathanPNG  IHDR@@`U pHYs  tIME abKGD̿IDATxٱ 08?^Qcnxz$ Ys=; @gO @~.g9 @y A;w"D @y 4?]HUyte @| H{IENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse_left.png0000644000175000017500000000020110613722523026326 0ustar jonathanjonathanPNG  IHDR@@`UHIDATx!@ @r[EhYSMdrTfOzRGηF{?!F.bȈIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-superkey.png0000644000175000017500000000022510613722523024321 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME 3IbKGD̿&IDAT(c`hTU@ `D X 5RTIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-shiftkey.png0000644000175000017500000000030410613722523024274 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME 28 bKGD̿UIDATx1 1 (B]zy4Nrq+!a$LuNI\% @gK~ M S,zɤIIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse_mid.png0000644000175000017500000000012610613722523026150 0ustar jonathanjonathanPNG  IHDR7IDAT(c`tAAY 0 M@IENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-metakey.png0000644000175000017500000000023610613722523024113 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME .3y;bKGD̿/IDAT(c`7h4%0iJ(APBPA+p$$"hYňIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_mouse_right_selected.svg0000644000175000017500000000047110306037513030534 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_mouse_mid.png0000644000175000017500000000020210613722523026150 0ustar jonathanjonathanPNG  IHDR00 1 IIDATx Hb, BМ131ݐ$}P88)G䠱x@eIt.nzH$I@I7IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse_right_selected.png0000644000175000017500000000016710613722523030366 0ustar jonathanjonathanPNG  IHDRn>IDAT(c`VfÙ (5'^[9)}&7mNᚘF0l^/śHIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-superkey.svg0000644000175000017500000000131710173171172024473 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox22-action-lockkey.png0000644000175000017500000000024610613722523024113 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME 'MbKGD̿7IDATxͱ A ۤx'Yyb],ùO|G3iM[ i-yIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-controlkey.svg0000644000175000017500000000045110173171172025013 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/crsc-action-metakey.svg0000644000175000017500000000047610173171172024270 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox16-action-key.png0000644000175000017500000000010710613722523023241 0ustar jonathanjonathanPNG  IHDR7IDATc`IIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse_mid_selected.png0000644000175000017500000000015110613722523030013 0ustar jonathanjonathanPNG  IHDRn0IDAT(c`aG-(AXPxa( /Vl6 `$EO71IENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-altkey.png0000644000175000017500000000022510613722523023750 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME @bKGD̿&IDATx 1ۜK.-k|S vEJj qIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-unlatched.png0000644000175000017500000000012710613722523024425 0ustar jonathanjonathanPNG  IHDR@@`UIDATxvH{ @IENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-key.svg0000644000175000017500000000031310160624544023411 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox48-action-lockkey.png0000644000175000017500000000030110613722523024113 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME 7! :bKGD̿RIDATx+ =:7Ӥ|yC,Z_/%={D/ky>|$HS ;kjIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-keypressno.png0000644000175000017500000000032410613722523024651 0ustar jonathanjonathanPNG  IHDRj pHYs  tIME -"4K PLTE&tRNSGbKGDH?IDATx1 0 Bњ%|SǺD`\[mh8JM JY, ]IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_mouse.png0000644000175000017500000000043110613722523025314 0ustar jonathanjonathanPNG  IHDR sIDATx1AFgIlAD'q=F't"YP+ېK 4d@btT~5y߼F$a뉌jẍ1#3xpR5FRZ+BH"!sbnȏ3'mU}#.m6d%aL*p-UZ#=찱\w84GFA-c) 'dBB=SR_!;_fOI$<,=Ad4nIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_mouse_left_selected.svg0000644000175000017500000000047110306037513030351 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_mouse_right.svg0000644000175000017500000000047710306037513026672 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox16-action-controlkey.png0000644000175000017500000000023410613722523024643 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME  {bKGD̿-IDAT(c`7h4Ʈ&C 4%  AEFJ# IENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse_left_selected.png0000644000175000017500000000014710613722523030204 0ustar jonathanjonathanPNG  IHDR7.IDAT(c`*h`-5awÅoiQц d[IENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-keypressno.png0000644000175000017500000000043310613722523024660 0ustar jonathanjonathanPNG  IHDR@@!PLTE_ tRNS#,9XEͻIDATx10 ᎐0vg$DbgT*K򝗎mVj\3{񙏆=/񙳴a  *OӬ<ʃ<ʃ<x0^3+q![[0ȟ`10?HQ/4c],jsFr )FWIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-lockkey.png0000644000175000017500000000026710613722523024117 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME 0;6ڇbKGD̿HIDATx퐱 0rz>o:Js,eOU e'PPFEw5Lh'e<G@IENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-hyperkey.svg0000644000175000017500000000071510173171172024465 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox22-action-hyperkey.png0000644000175000017500000000021410613722523024305 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME )A/bKGD̿IDAT(c` ?n`44FC շSזIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-hyperkey.png0000644000175000017500000000023310613722523024314 0ustar jonathanjonathanPNG  IHDR@@`U pHYs  tIME ^.sbKGD̿,IDATx11LpG:~@PD-C8ǺGIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-lockkey.png0000644000175000017500000000024310613722523024113 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME 7SbKGD̿4IDATx!0 BQo&CLT $};tDĜ$ h9)48IENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_mouse_right_selected.png0000644000175000017500000000025410613722523030373 0ustar jonathanjonathanPNG  IHDR00 1 sIDATx E@F^-X&4 Ӏ&4A 5H NȽ0PQy lR+5{ypk|x 砤e`R= Ǐ?5-=31" """"_uI,oۭ IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-controlkey.png0000644000175000017500000000027410613722523024645 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME /(ҕbKGD̿MIDATxA }?//1P`^)3ּ5}ļ[@BI: Y'!$duÇD_.%py EIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse_left.png0000644000175000017500000000013010613722523026324 0ustar jonathanjonathanPNG  IHDR7IDAT(c`D4cý/JF7_IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse_mid.png0000644000175000017500000000013610613722523026146 0ustar jonathanjonathanPNG  IHDRn%IDAT(c`@Ć~b26<BFb7H(  nCIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse_right_selected.png0000644000175000017500000000014710613722523030367 0ustar jonathanjonathanPNG  IHDR7.IDAT(c`h`"`z p+RwƆ F< U8:IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-hyperkey.png0000644000175000017500000000022310613722523024306 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME 1%bKGD̿$IDATHc`4' @ i4!ф4 pk !IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-unlatched.png0000644000175000017500000000012110613722523024412 0ustar jonathanjonathanPNG  IHDR sIDATx1 o`' WhIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-keypressno.svg0000644000175000017500000000056710160624544025036 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_stickykeys.png0000644000175000017500000000036110613722523026377 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME  bKGD̿IDATxA DQӋ'OP(2Yt`y\Wd;`AK'+: yA^ y:A@:A @y ]%?A1 J@!x2 xl8[L|7IENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_mouse.png0000644000175000017500000000065510613722523025333 0ustar jonathanjonathanPNG  IHDR00 1 tIDATx퐯KCa@C 3Xe6Â>b8` b^L}͵7esÍcN^|=ϱX,Z13c|.B#1뽣 BAJWTV3 5<0O) HLh{m͐7`6`,ţHcȆf,PqC@T 5]ȳJr |ht&;NԉU")'n"nu>Nܣɘ eq` aQN!li1=W.za(0])PӼp@.׸Ƭc[*a16BΉ.øA8umdȴ%X,EIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-controlkey.png0000644000175000017500000000025010613722523024636 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME $%{bKGD̿9IDATx1 0CQlY3lK0q%%TrRI[N ˽O[~L(j̍IENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-superkey.png0000644000175000017500000000026710613722523024332 0ustar jonathanjonathanPNG  IHDR@@`U pHYs  tIME /{bKGD̿HIDATx1 AMi/0VȔ%IL;πq?$I\+nYuIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse_left_selected.png0000644000175000017500000000022610613722523030205 0ustar jonathanjonathanPNG  IHDR@@`U]IDATx1 @DQl?h9=(lנּ.|P֒lsgRQ=C@ߑf!G̥h-P sO}?Hcfd QRTi?*JQ[9d'А%MA - }6{ >R&$p,(0!mq$|`\-K+كp,X`v"t)'hBh7&y(p˲JIgzs,; yʡ2mh~alx(N #B} `,2Oe9Wa $<ӿB Fx\qe\TnKYl{U(?$q4q<_JtW;1lYƹi(HnIS 6C_RIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_mouse_mid_selected.png0000644000175000017500000000013210613722523030013 0ustar jonathanjonathanPNG  IHDR s!IDATHc`4G@`Q@*!ktIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse_mid_selected.png0000644000175000017500000000015010613722523030020 0ustar jonathanjonathanPNG  IHDR@@`U/IDATx1 1Ҟ+H0` Z+IENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-keypressok.png0000644000175000017500000000163410613722523024661 0ustar jonathanjonathanPNG  IHDR@@PLTE VtRNS "#'+.057:@AEKQX^abeltxy{drIDATxVKqw{).9-)wC4 {7Cbki 62!ze~` T N4H plasmoid-kbstate-2.0~svn906377/images/ox32-action-capskey.png0000644000175000017500000000030410613722523024105 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME 4 :^gbKGD̿UIDATxA 0 A=]?OOa]ꔂaG{uW@ ^ sGh_ߝ7yDGyDGyDyJX9z܁DIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-altkey.png0000644000175000017500000000022710613722523023750 0ustar jonathanjonathanPNG  IHDR@@`U pHYs  tIME  a6!bKGD̿(IDATxA 0LpvVznd &ka{IENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-superkey.png0000644000175000017500000000025610613722523024332 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME 9˓bKGD̿?IDATxԱ EuEc;_BH-r_vU nO>UؕIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_slowkeys.png0000644000175000017500000000030410613722523026042 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME MbKGD̿UIDATxݒ CLCm]T~(Ӷ澓5G"!z v̚Quq'΢ H0G`f IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-altkey.png0000644000175000017500000000020510613722523023736 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME .1bKGD̿IDAT(c``P+IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_stickykeys.png0000644000175000017500000000025510613722523026371 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME (ebKGD̿>IDATx1 0 B<BC,"o4@ *:49z22^<$1\DIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-metakey.png0000644000175000017500000000026710613722523024115 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME .5,bKGD̿HIDATx!0x:?gbA{OVV+u:GQs9 01|7As9r&XB%I4/tIENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_mouse_mid_selected.png0000644000175000017500000000014210613722523030023 0ustar jonathanjonathanPNG  IHDR00 1 )IDATx 1ۜ7pD֜"eF+IENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_slowkeys.svg0000644000175000017500000000063210306037513026216 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox22-action-unlatched.png0000644000175000017500000000011210613722523024411 0ustar jonathanjonathanPNG  IHDRnIDATc`` O]ƽIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-keypressno.png0000644000175000017500000000031510613722523024652 0ustar jonathanjonathanPNG  IHDR szzIDATx; D)1M !E#l`;7a/`fCVJ ,@pO؄!x9 A Rj@·rдeLD,&9Uȫ>Ǻ\1 -IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-metakey.png0000644000175000017500000000025410613722523024110 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME '-^ bKGD̿=IDATx!0C31A&-T·8[&2M_-ZIG)F)F)a͝5w䑖sIENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-keypressok.png0000644000175000017500000000134510613722523024662 0ustar jonathanjonathanPNG  IHDR00` /PLTE!ItRNS "&5>TU[]dkruzIDATxRP5ލbQ[b~g0 sIr_왍H$8mBCrJX:,!<kFt4 ?_^\i ~ZWR>ßI 0\II[g!fh1,P¼%-?Nh+A7y% {mwIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse_right.png0000644000175000017500000000020610613722523026516 0ustar jonathanjonathanPNG  IHDR@@`UMIDATx!0 ХvEQ& 4Y?i|ze#Y}NJXkx`'|T4J/W^IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse.png0000644000175000017500000000035010613722523025313 0ustar jonathanjonathanPNG  IHDRnIDATxՏ Pe`0h( M,Obph94N0d,<2& ;8<0<(mJiFh =cr}ϖM%w2"M$-ZhP}:ၥS^p)XbSGf!)$čeIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse.png0000644000175000017500000000023410613722523025317 0ustar jonathanjonathanPNG  IHDR7cIDAT(c`*h`BRU @x7- $ 7 <UAq(iG 5T*lŸ$d0728.jIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse_right.png0000644000175000017500000000013510613722523026511 0ustar jonathanjonathanPNG  IHDRn$IDAT(c`D>6|l$V_T[IENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-keypressok.png0000644000175000017500000000052210613722523024646 0ustar jonathanjonathanPNG  IHDRĴl;IDATx풿KaBښ#h+ZZZ =B!J@:S 7Hyc|}L$9jFQĨcG6G7'sX Mp1q)mJ 7T)PDŗrsd .Yfurx2{TpA e G޴>F?`Y$$+m|9GGy%Ƈu>9Y2D&8xlc+=/ڜi=L|elYј_lhXIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-shiftkey.svg0000644000175000017500000000052310173171172024450 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/crsc-action-kbstate_mouse_mid.svg0000644000175000017500000000047610306037513026325 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox48-action-key.png0000644000175000017500000000012410613722523023245 0ustar jonathanjonathanPNG  IHDR00 1 IDATx1 k`p0o͏IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-altkey.png0000644000175000017500000000022010613722523023734 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME 45;2bKGD̿!IDATHc``Q0 p!~`.#]N4IENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_mouse_left.png0000644000175000017500000000021010613722523026330 0ustar jonathanjonathanPNG  IHDR00 1 OIDATx̱ 0ѯ8A&rAεt%!D{_H1fN*[d}M뭑+sd3$I/Hw-IENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse.png0000644000175000017500000000100010613722523025312 0ustar jonathanjonathanPNG  IHDR@@`UIDATx=(q d2d9`1tÕE꾃lJL&"/MtM,Wrwy|Kyy<1{sQD"AS_\$RX9O7\o09+OKoݻE[ :&\ w]FD@D@.2wv@l0=bN&ٴ[p"̦;v"eS>VWPm1Ah>h-0}34CtZ-Sfh Ϝ^!joزj@7<a'ȿEq0bkpIzV aP(,ZҤ*B*.e$,cM0gnU"F`O5cmЎgѪ$D")3o?2lIENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_mouse_mid_selected.png0000644000175000017500000000014010613722523030014 0ustar jonathanjonathanPNG  IHDR7'IDAT(c`/hxpVp?ާ p:(%)IENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-shiftkey.png0000644000175000017500000000033610613722523024310 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME  YpbKGD̿oIDATxA tni=,R(\LcΣRQ}\LW# 鑄HBz$!=IH$GM~%xϛj*8Ɂ! ,fN?isIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-kbstate_mouse_left.png0000644000175000017500000000013510613722523026326 0ustar jonathanjonathanPNG  IHDRn$IDAT(c`8@J#>6ضmhr1>jIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-capskey.png0000644000175000017500000000035310613722523024116 0ustar jonathanjonathanPNG  IHDR@@`U pHYs  tIME  ZQ{bKGD̿|IDATx1 Q͵N!@(+/TRJ)e\s> @8 ±0u iB`J!0Vt* BXU(o 텨CRy.y1VIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-unlatched.svg0000644000175000017500000000031310160624544024570 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox48-action-kbstate_mouse_left_selected.png0000644000175000017500000000025710613722523030213 0ustar jonathanjonathanPNG  IHDR00 1 vIDATxͽ @Pa1 VPX*,a SAB~ {#y~2&cd階pv~@@P@7nf% xfzZ* 1*"""?;rN8IENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_mouse_right_selected.png0000644000175000017500000000021210613722523030356 0ustar jonathanjonathanPNG  IHDR sQIDATx̱ @K48VЄ4OP~-C(B&M3[q1L/l(H"S9q ObSIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-key.png0000644000175000017500000000012110613722523023233 0ustar jonathanjonathanPNG  IHDR sIDATx1 o`' WhIENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-metakey.png0000644000175000017500000000031710613722523024120 0ustar jonathanjonathanPNG  IHDR00 1 pHYs  tIME  bKGD̿`IDATxͱ @Js8P;.[4=>P݃b|1_/b|1_/wiz?oΝIENDB`plasmoid-kbstate-2.0~svn906377/images/ox64-action-shiftkey.png0000644000175000017500000000035210613722523024304 0ustar jonathanjonathanPNG  IHDR@@`U pHYs  tIME :^ bKGD̿{IDATx1 <:7 4/ wDDDl8ǩK9jzn4= MϖgSӳIhzR'ya)̺.5Yk@*P """Ky:mIENDB`plasmoid-kbstate-2.0~svn906377/images/ox32-action-kbstate_slowkeys.png0000644000175000017500000000043310613722523026046 0ustar jonathanjonathanPNG  IHDR s pHYs  tIME%$nbKGD̿IDATx픱 0 Dowgo^v-m]h@224gp/n,|]`"Hu4N|jzӷ-`,& A> {,x_,qoԞ<8d"x0}3)PIENDB`plasmoid-kbstate-2.0~svn906377/images/ox22-action-shiftkey.png0000644000175000017500000000025310613722523024276 0ustar jonathanjonathanPNG  IHDRn pHYs  tIME #0YqbKGD̿ᓆIENDB`plasmoid-kbstate-2.0~svn906377/images/ox48-action-keypressno.png0000644000175000017500000000037410613722523024666 0ustar jonathanjonathanPNG  IHDR00` !PLTEs0 tRNS 帄IDATxK D EuttjT6z~rm/S!WaS@6I#~'7+2 `Y[7_~Q>chqIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-lockkey.svg0000644000175000017500000000052310173171172024263 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox64-action-kbstate_mouse_right_selected.png0000644000175000017500000000023010613722523030363 0ustar jonathanjonathanPNG  IHDR@@`U_IDATx1 !ѳ4 ;+H›0 F0`\I J3}@JwU$I$d B&IENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-altkey.svg0000644000175000017500000000044110173171172024112 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox64-action-key.png0000644000175000017500000000012710613722523023246 0ustar jonathanjonathanPNG  IHDR@@`UIDATxvH{ @IENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-keypressok.png0000644000175000017500000000035710613722523024657 0ustar jonathanjonathanPNG  IHDRaIDATxбJBa's"DQp_A:88 N' Zz]/m 4z.e׹$8Hh=6pc$/8Twsdz9Z,832w#8ٴ{l'Cҧؓ4%xJ7`Mf/9T71ٍ!IENDB`plasmoid-kbstate-2.0~svn906377/images/ox16-action-hyperkey.png0000644000175000017500000000021110613722523024305 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME aaEbKGD̿IDAT(c`h Q`np;utIENDB`plasmoid-kbstate-2.0~svn906377/images/crsc-action-keypressok.svg0000644000175000017500000000047610160624544025032 0ustar jonathanjonathan plasmoid-kbstate-2.0~svn906377/images/ox16-action-kbstate_stickykeys.png0000644000175000017500000000024210613722523026370 0ustar jonathanjonathanPNG  IHDR7 pHYs  tIME ܹ{bKGD̿3IDAT(c`?h?p QH:!B XL(I`)` * Copyright (c) 2008 Sebastian Sauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software */ #include "kbstateapplet.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct ModifierKey { const unsigned int mask; const KeySym keysym; const char *name; const char *icon; const char *text; const bool isModifier; }; static ModifierKey modifierKeys[] = { { ShiftMask, 0, I18N_NOOP("Shift"), "shiftkey", "", true }, { ControlMask, 0, I18N_NOOP("Control"), "controlkey", "", true }, { 0, XK_Alt_L, I18N_NOOP("Alt"), "altkey", "", true }, { 0, 0, I18N_NOOP("Win"), "superkey", "", true }, { 0, XK_Meta_L, I18N_NOOP("Meta"), "metakey", "", true }, { 0, XK_Super_L, I18N_NOOP("Super"), "superkey", "", true }, { 0, XK_Hyper_L, I18N_NOOP("Hyper"), "hyperkey", "", true }, { 0, 0, I18N_NOOP("Alt Graph"), "", I18N_NOOP("æ"), true }, { 0, XK_Num_Lock, I18N_NOOP("Num Lock"), "lockkey", I18N_NOOP("Num"), false }, { LockMask, 0, I18N_NOOP("Caps Lock"), "capskey", "", false }, { 0, XK_Scroll_Lock, I18N_NOOP("Scroll Lock"), "lockkey", I18N_NOOP("Scroll"), false }, { 0, 0, "", "", "", false } }; /********************************************************************/ KbStateWidget::KbStateWidget(KbStateApplet *applet, QWidget *parent) : QWidget(parent) , m_applet(applet) , m_size(20) , componentData("kbstateapplet") { setAttribute(Qt::WA_NoSystemBackground); for (int i = 0; i < 8; i++) icons[i] = 0; m_iconLoader = new KIconLoader(componentData.componentName(), componentData.dirs()); state = 0; for (int i = 0; strcmp(modifierKeys[i].name, "") != 0; i++) { int mask = modifierKeys[i].mask; if (mask == 0) if (modifierKeys[i].keysym != 0) mask = XkbKeysymToModifiers (this->x11Display(), modifierKeys[i].keysym); #if 0 //TODO kde4: how to port it ? else if (strcmp(modifierKeys[i].name, "Win") == 0) mask = KKeyNative::modXWin(); #endif else mask = XkbKeysymToModifiers (this->x11Display(), XK_Mode_switch) | XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Shift) | XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Latch) | XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Lock); int map = 0; for (map = 0; map < 8; map++) { if ((mask & (1 << map)) != 0) break; } if ((map <= 7) && !(icons[map])) { icons[map] = new KeyIcon (i, m_iconLoader, this, modifierKeys[i].name); icons[map]->setToolTip( i18n (modifierKeys[i].name)); connect (icons[map], SIGNAL(stateChangeRequest (KeyIcon*,bool,bool)), SLOT(stateChangeRequest (KeyIcon*,bool,bool))); if (modifierKeys[i].isModifier) modifiers.append(icons[map]); else lockkeys.append(icons[map]); } } mouse = new MouseIcon (m_iconLoader, this, "mouse"); sticky = new TimeoutIcon (m_iconLoader, "", "kbstate_stickykeys", this, "sticky"); slow = new TimeoutIcon (m_iconLoader, "", "kbstate_slowkeys", this, "slow"); bounce = new TimeoutIcon (m_iconLoader, "", "", this, "bounce"); xkb = XkbGetMap(QX11Info::display(), 0, XkbUseCoreKbd); if (xkb != 0) { XkbGetControls (QX11Info::display(), XkbAllControlsMask, xkb); if (xkb->ctrls != 0) accessxFeatures = xkb->ctrls->enabled_ctrls; else accessxFeatures = 0; } else accessxFeatures = 0; //startTimer(100); // ten times a second connect(KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()), SLOT(paletteChanged())); kapp->installX11EventFilter (this); int opcode_rtn, error_rtn; XkbQueryExtension (QX11Info::display(), &opcode_rtn, &xkb_base_event_type, &error_rtn, NULL, NULL); XkbSelectEvents (QX11Info::display(), XkbUseCoreKbd, XkbAllEventsMask, XkbAllEventsMask); } KbStateWidget::~KbStateWidget() { delete m_iconLoader; } // Calculates the layout based on a given number of modifiers, lockkeys and accessx features. // Output: // lines: number of lines // length: number of icons per line // size: size of the icons void calculateSizes (int space, int modifiers, int lockkeys, int accessx, bool showMouse, int &lines, int &length, int &size) { // Calculate lines and length if (showMouse) ++accessx; lines = space>=size ? space/size : 1; length = modifiers + lockkeys + accessx; if (length > 0 && lines >= 2) { length = (length + lines-1)/lines; // As we want to have some line breaks, we need to do some corrections: // Calculate the number of lines that are really needed: int linesNeeded = (modifiers+length-1)/length + (lockkeys+length-1)/length; int tmp1 = modifiers%length == 0 ? 0 : length - modifiers%length; int tmp2 = lockkeys%length == 0 ? 0 : length - lockkeys%length; if ((tmp1 + tmp2) < accessx) linesNeeded = (modifiers+lockkeys+accessx + length-1)/length; // If we need more lines than we have, try with more icons per line: while (linesNeeded > lines) { length++; linesNeeded = (modifiers+length-1)/length + (lockkeys+length-1)/length; int tmp1 = modifiers%length == 0 ? 0 : length - modifiers%length; int tmp2 = lockkeys%length == 0 ? 0 : length - lockkeys%length; if ((tmp1 + tmp2) < accessx) linesNeeded = (modifiers+lockkeys+accessx + length-1)/length; } lines = linesNeeded; } } int KbStateWidget::widthForHeight(int h) const { int lines, length; int size = m_size; int accessx = 0; if ((accessxFeatures & XkbStickyKeysMask) != 0) accessx++; if ((accessxFeatures & XkbSlowKeysMask) != 0) accessx++; if ((accessxFeatures & XkbBounceKeysMask) != 0) accessx++; calculateSizes (h, showModifiers?modifiers.count():0, showLockkeys?lockkeys.count():0, showAccessX?accessx:0, showMouse, lines, length, size); size = h/lines; return length*size; } int KbStateWidget::heightForWidth(int w) const { int lines, length; int size = m_size; int accessx = 0; if ((accessxFeatures & XkbStickyKeysMask) != 0) accessx++; if ((accessxFeatures & XkbSlowKeysMask) != 0) accessx++; if ((accessxFeatures & XkbBounceKeysMask) != 0) accessx++; calculateSizes (w, showModifiers?modifiers.count():0, showLockkeys?lockkeys.count():0, showAccessX?accessx:0, showMouse, lines, length, size); size = w/lines; return length*size; } int KbStateWidget::orientation() const { return m_applet->formFactor() == Plasma::Vertical ? Qt::Vertical : Qt::Horizontal; } Display* KbStateWidget::x11Display() const { return QX11Info::display(); } void KbStateWidget::resizeEvent( QResizeEvent*e ) { QWidget::resizeEvent(e); layout(); } void KbStateWidget::layout() { int size = m_size; int lines, length, x,y,dx,dy, ldx,ldy; int modifierCount = showModifiers?modifiers.count():0; int lockkeyCount = showLockkeys?lockkeys.count():0; int accessxCount = 0; if (showAccessX) { if ((accessxFeatures & XkbStickyKeysMask) != 0) accessxCount++; if ((accessxFeatures & XkbSlowKeysMask) != 0) accessxCount++; if ((accessxFeatures & XkbBounceKeysMask) != 0) accessxCount++; } if (orientation() == Qt::Vertical) { calculateSizes (height(), modifierCount, lockkeyCount, accessxCount, showMouse, lines, length, size); size = height()/lines; x = 0; y = (height()-lines*size)/2; dx = size; dy = 0; ldx= 0; ldy= size; } else { calculateSizes (width(), modifierCount, lockkeyCount, accessxCount, showMouse, lines, length, size); size = width()/lines; x = (width()-lines*size)/2; y = 0; dx = 0; dy = size; ldx= size; ldy= 0; } int item = 1; foreach(StatusIcon* icon, modifiers) { if (showModifiers) { icon->setGeometry (x, y, size, size); icon->show(); icon->update(); item++; x+=dx; y+=dy; if (item > length) { x = x - length*dx + ldx; y = y - length*dy + ldy; item = 1; } } else { icon->hide(); } } int lockkeyLines = (lockkeyCount+length-1)/qMax(1,length); int accessxLines = lines - (modifierCount+length-1)/qMax(1,length) - lockkeyLines; if (showMouse) ++accessxCount; if (lockkeyLines*length + accessxLines*length >= lockkeyCount + accessxCount) { if (lines > 1 && item > 1) { x = x - (item-1)*dx + ldx; y = y - (item-1)*dy + ldy; item = 1; } } else { accessxLines++; } if (showMouse && showAccessX && accessxLines > 0) { mouse->setGeometry (x, y, size, size); mouse->show(); mouse->update(); accessxCount--; item++; x+=dx; y+=dy; if (item > length) { x = x - length*dx + ldx; y = y - length*dy + ldy; item = 1; accessxLines--; } } else { mouse->hide(); } if ((accessxFeatures & XkbStickyKeysMask) != 0 && showAccessX && accessxLines > 0) { sticky->setGeometry (x, y, size, size); sticky->show(); sticky->update(); accessxCount--; item++; x+=dx; y+=dy; if (item > length) { x = x - length*dx + ldx; y = y - length*dy + ldy; item = 1; accessxLines--; } } else { sticky->hide(); } if ((accessxFeatures & XkbSlowKeysMask) != 0 && showAccessX && accessxLines > 0) { slow->setGeometry (x, y, size, size); slow->show(); slow->update(); accessxCount--; item++; x+=dx; y+=dy; if (item > length) { x = x - length*dx + ldx; y = y - length*dy + ldy; item = 1; accessxLines--; } } else { slow->hide(); } if ((accessxFeatures & XkbBounceKeysMask) != 0 && showAccessX && accessxLines > 0) { bounce->setGeometry (x, y, size, size); bounce->show(); bounce->update(); accessxCount--; item++; x+=dx; y+=dy; if (item > length) { x = x - length*dx + ldx; y = y - length*dy + ldy; item = 1; accessxLines--; } } else { bounce->hide(); } if (lines > 1) { if (item != 1) { x = x - (item-1)*dx + ldx; y = y - (item-1)*dy + ldy; } item = 1; } foreach(StatusIcon *icon, lockkeys) { if (showLockkeys) { icon->setGeometry (x, y, size, size); icon->show(); icon->update(); item++; x+=dx; y+=dy; if (item > length) { x = x - length*dx + ldx; y = y - length*dy + ldy; item = 1; } } else { icon->hide(); } } if ((accessxFeatures & XkbBounceKeysMask) != 0 && showAccessX && accessxCount > 0) { bounce->setGeometry (x, y, size, size); bounce->show(); bounce->update(); item++; x+=dx; y+=dy; accessxCount--; } if ((accessxFeatures & XkbSlowKeysMask) != 0 && showAccessX && accessxCount > 0) { slow->setGeometry (x, y, size, size); slow->show(); slow->update(); item++; x+=dx; y+=dy; accessxCount--; } if ((accessxFeatures & XkbStickyKeysMask) != 0 && showAccessX && accessxCount > 0) { sticky->setGeometry (x, y, size, size); sticky->show(); sticky->update(); item++; x+=dx; y+=dy; accessxCount--; } if (showMouse && accessxCount > 0) { mouse->setGeometry (x, y, size, size); mouse->show(); mouse->update(); item++; x+=dx; y+=dy; accessxCount--; } } void KbStateWidget::paletteChanged() { for (int i = 0; i < 8; i++) { if (icons[i]) icons[i]->updateImages(); } mouse->update(); sticky->update(); slow->update(); bounce->update(); } bool KbStateWidget::x11Event (XEvent *evt) { if (evt->type == xkb_base_event_type + XkbEventCode) { XkbEvent *kbevt = (XkbEvent *)evt; switch (kbevt->any.xkb_type) { case XkbStateNotify: timerEvent (0); mouse->setState (kbevt->state.ptr_buttons); break; case XkbAccessXNotify: switch (kbevt->accessx.detail) { case XkbAXN_SKPress: slow->setGlyth(i18nc("a (the first letter in the alphabet)", "a")); slow->setImage("unlatched"); break; case XkbAXN_SKAccept: slow->setImage("keypressok"); break; case XkbAXN_SKRelease: slow->setGlyth(" "); slow->setImage("kbstate_slowkeys"); break; case XkbAXN_SKReject: slow->setImage("keypressno", kbevt->accessx.sk_delay>150?kbevt->accessx.sk_delay:150); break; case XkbAXN_BKAccept: slow->setGlyth(i18nc("a (the first letter in the alphabet)", "a")); bounce->setImage("keypressok", kbevt->accessx.sk_delay>150?kbevt->accessx.sk_delay:150); break; case XkbAXN_BKReject: slow->setGlyth(i18nc("a (the first letter in the alphabet)", "a")); bounce->setImage("keypressno", kbevt->accessx.sk_delay>150?kbevt->accessx.sk_delay:150); break; } break; case XkbControlsNotify: { XkbControlsNotifyEvent* event = (XkbControlsNotifyEvent*)evt; accessxFeatures = event->enabled_ctrls; if ((accessxFeatures & XkbMouseKeysMask) != 0) { XkbGetControls (QX11Info::display(), XkbMouseKeysMask, xkb); if (xkb->ctrls->mk_dflt_btn < 1) mouse->setActiveKey (1); else if (xkb->ctrls->mk_dflt_btn > 3) mouse->setActiveKey (1); else mouse->setActiveKey (xkb->ctrls->mk_dflt_btn); } else mouse->setActiveKey (0); layout(); updateGeometry(); emit updateLayout(); } break; case XkbExtensionDeviceNotify: // This is a hack around the fact that XFree86's XKB doesn't give AltGr notifications break; default: break; } } return false; } void KbStateWidget::timerEvent(QTimerEvent*) { XkbStateRec state_return; XkbGetState (this->x11Display(), XkbUseCoreKbd, &state_return); unsigned char latched = XkbStateMods (&state_return); unsigned char locked = XkbModLocks (&state_return); int mods = ((int)latched)<<8 | locked; if (state != mods) { state = mods; for (int i = 0; i < 8; i++) { if (icons[i]) icons[i]->setState ((latched&(1<x11Display(), XkbUseCoreKbd, 1<x11Display(), XkbUseCoreKbd, 1<x11Display(), XkbUseCoreKbd, 1<x11Display(), XkbUseCoreKbd, 1<x11Display(), XkbUseCoreKbd, 1<iconLoader = iconLoader; this->keyId = keyId; this->tristate = (modifierKeys[keyId].isModifier); isLocked = false; isLatched = false; updateImages (); connect (this, SIGNAL(clicked()), SLOT(clickedSlot())); } KeyIcon::~KeyIcon () { } void KeyIcon::setState (bool latched, bool locked) { latched = latched | locked; isLatched = latched; isLocked = locked; update(); } void KeyIcon::clickedSlot () { if (tristate) emit stateChangeRequest (this, !isLocked, isLatched&!isLocked); else emit stateChangeRequest (this, false, !isLocked); } void KeyIcon::resizeEvent( QResizeEvent*e ) { QWidget::resizeEvent(e); updateImages(); } void KeyIcon::updateImages () { int size = width()loadIcon("object-locked", KIconLoader::Panel, size-4); if (strcmp(modifierKeys[keyId].icon, "")) { latched = iconLoader->loadIcon(modifierKeys[keyId].icon, KIconLoader::NoGroup, size-4); unlatched = iconLoader->loadIcon(modifierKeys[keyId].icon, KIconLoader::NoGroup, size-4); QImage img = latched.toImage(); KIconEffect::colorize(img, KColorScheme(QPalette::Active, KColorScheme::Selection).foreground().color(), 1.0); latched = QPixmap::fromImage(img); img = unlatched.toImage(); KIconEffect::colorize(img, KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(), 1.0); unlatched = QPixmap::fromImage(img); } update(); } void KeyIcon::paintEvent(QPaintEvent *) { QPainter p(this); QColor black; int x = (width()-locked.width())/2; int y = (height()-locked.height())/2; int o = 0; if (isLocked || isLatched) { qDrawShadePanel (&p, 0, 0, width(), height(), KColorScheme(QPalette::Active, KColorScheme::Selection).shade(KColorScheme::LightShade), true, 1, NULL); p.fillRect (1,1,width()-2,height()-2, KColorScheme(QPalette::Active, KColorScheme::Selection).background().color()); if (strcmp(modifierKeys[keyId].icon, "")) p.drawPixmap (x+1,y+1, latched); black = KColorScheme(QPalette::Active, KColorScheme::Selection).foreground().color(); o = 1; } else { qDrawShadePanel (&p, 0, 0, width(), height(), KColorScheme(QPalette::Active, KColorScheme::View).shade(KColorScheme::LightShade), false, 1, NULL); p.fillRect (1,1,width()-2,height()-2, KColorScheme(QPalette::Active, KColorScheme::View).background().color()); if (strcmp(modifierKeys[keyId].icon, "")) p.drawPixmap (x,y, unlatched); black = KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(); } QString text = modifierKeys[keyId].text; //i18n( modifierKeys[keyId].text ); if (!text.isEmpty() && !text.isNull()) { QFont font = KGlobalSettings::generalFont(); font.setWeight(QFont::Black); QFontMetrics metrics(font); QRect rect = metrics.boundingRect (text); int size; if (!strcmp(modifierKeys[keyId].name, "Alt Graph")) size = rect.width()>rect.height()?rect.width():rect.height(); else size = rect.width()>12*rect.height()/5?rect.width():12*rect.height()/5; if (font.pixelSize() != -1) font.setPixelSize (font.pixelSize()*width()*19/size/32); else font.setPointSizeF (font.pointSizeF()*width()*19/size/32); p.setPen (black); p.setFont (font); if (!strcmp(modifierKeys[keyId].name, "Alt Graph")) p.drawText (o,o, width(), height(), Qt::AlignCenter, text); else p.drawText (o,o, width(), height()*(251)/384, Qt::AlignCenter, text); } if (tristate && isLocked) { p.drawPixmap(x+o,y+o, locked); } } /********************************************************************/ MouseIcon::MouseIcon (KIconLoader *iconLoader, QWidget *parent, const char *name) : StatusIcon ("", parent, name) { this->iconLoader = iconLoader; state = 0; activekey = 0; updateImages (); } MouseIcon::~MouseIcon () { } void MouseIcon::setState (int state) { this->state = state; update(); } void MouseIcon::setActiveKey (int activekey) { this->activekey = activekey; update(); } void MouseIcon::resizeEvent( QResizeEvent*e ) { QWidget::resizeEvent(e); updateImages(); } QPixmap loadIcon(KIconLoader *iconLoader, int size, const QColor &color, const QString &name) { QPixmap result = iconLoader->loadIcon(name, KIconLoader::NoGroup, size); QImage img = result.toImage(); KIconEffect::colorize(img, color, 1.0); result = QPixmap::fromImage(img); return result; } void MouseIcon::updateImages () { int size = width()iconLoader = iconLoader; this->featurename = featurename; glyth = " "; setImage (featurename); connect (&timer, SIGNAL(timeout()), this, SLOT(timeout())); } TimeoutIcon::~TimeoutIcon () { } void TimeoutIcon::update () { int size = width()loadIcon(iconname, KIconLoader::NoGroup, size); QImage img = pixmap.toImage(); KIconEffect::colorize(img, KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(), 1.0); pixmap = QPixmap::fromImage(img); image = pixmap; QWidget::update(); } void TimeoutIcon::setGlyth (const QString &glyth) { timer.stop(); this->glyth = glyth; QImage img = pixmap.toImage(); KIconEffect::colorize(img, KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(), 1.0); pixmap = QPixmap::fromImage(img); image = pixmap; update(); } void TimeoutIcon::setImage (const QString &name, int timeout) { timer.stop(); iconname = name; if (!name.isNull() && !name.isEmpty()) { int size = width()loadIcon(iconname, KIconLoader::NoGroup, size); QImage img = pixmap.toImage(); KIconEffect::colorize(img, KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(), 1.0); pixmap = QPixmap::fromImage(img); image = pixmap; } update(); if (timeout > 0) timer.start (timeout); } void TimeoutIcon::timeout () { setGlyth (" "); setImage(featurename); } void TimeoutIcon::paintEvent(QPaintEvent *) { QPainter p(this); QString text = glyth; int count = 1; int factor = 19; if (!iconname.isNull() && !iconname.isEmpty()) p.drawPixmap(0,0, image); else if (glyth == " ") { text = i18nc("a (the first letter in the alphabet)", "a"); count = 3; factor = 64; } QFont font = KGlobalSettings::generalFont(); font.setWeight(QFont::Black); QFontMetrics metrics(font); QRect rect = metrics.boundingRect (text); int size = count*rect.width() > rect.height() ? count*rect.width() : rect.height(); if (font.pixelSize() != -1) font.setPixelSize (font.pixelSize()*width()*factor/size/64); else font.setPointSizeF (font.pointSizeF()*width()*factor/size/64); p.setFont (font); if (count == 1) { p.setPen (KColorScheme(QPalette::Active, KColorScheme::View).foreground().color()); p.drawText (0,0, width()/2, height()/2, Qt::AlignCenter, text); } else { QColor t = KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(); QColor b = KColorScheme(QPalette::Active, KColorScheme::View).background().color(); p.setPen (QColor ((2*t.red()+3*b.red())/5, (2*t.green()+3*b.green())/5, (2*t.blue()+3*b.blue())/5)); p.drawText (width()/2,0, width()/2, height(), Qt::AlignCenter, text); p.setPen (QColor ((2*t.red()+b.red())/3, (2*t.green()+b.green())/3, (2*t.blue()+b.blue())/3)); p.drawText (0,0, width(), height(), Qt::AlignCenter, text); p.setPen (KColorScheme(QPalette::Active, KColorScheme::View).foreground().color()); p.drawText (0,0, width()/2, height(), Qt::AlignCenter, text); } } /********************************************************************/ StatusIcon::StatusIcon (const QString &text, QWidget *parent, const char *name) : QPushButton (parent) { setObjectName(name); //setText(text); setToolTip(text); setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored)); } StatusIcon::~StatusIcon () { } QSize StatusIcon::minimumSizeHint () const { return QSize (0,0); } /********************************************************************/ K_EXPORT_PLASMA_APPLET(kbstate, KbStateApplet) class KbStateApplet::Private { public: QGraphicsLinearLayout* m_layout; KbStateWidget* m_widget; QGraphicsProxyWidget* m_proxy; QPointer m_configwidget; QCheckBox *m_modifierCheckBox, *lockkeysCheckBox, *mouseCheckBox, *accessxCheckBox; explicit Private() : m_layout(0), m_widget(0), m_proxy(0), m_configwidget(0) {} }; KbStateApplet::KbStateApplet(QObject *parent, const QVariantList &args) : Plasma::Applet(parent, args) , d(new Private) { KGlobal::locale()->insertCatalog("kbstateapplet"); setAspectRatioMode(Plasma::IgnoreAspectRatio); setHasConfigurationInterface(true); resize(300, 60); } KbStateApplet::~KbStateApplet() { delete d->m_widget; delete d; } void KbStateApplet::init() { Plasma::Applet::init(); d->m_widget = new KbStateWidget(this); KConfigGroup c = config(); d->m_widget->showModifiers = c.readEntry("Modifierkeys visible", true); d->m_widget->showLockkeys = c.readEntry("Lockkeys visible", true); d->m_widget->showMouse = c.readEntry("Mouse status visible", true); d->m_widget->showAccessX = c.readEntry("Slowkeys status visible", true); d->m_widget->showAccessX = c.readEntry("AccessX status visible", d->m_widget->showAccessX); d->m_proxy = new QGraphicsProxyWidget(this); d->m_proxy->setWidget(d->m_widget); d->m_proxy->show(); updateConstraints(Plasma::AllConstraints); } void KbStateApplet::constraintsEvent(Plasma::Constraints constraints) { if (! d->m_widget) return; if (constraints & Plasma::SizeConstraint || constraints & Plasma::FormFactorConstraint) { d->m_widget->setGeometry(contentsRect().toRect()); if (formFactor() == Plasma::Horizontal) { setMinimumWidth(d->m_widget->widthForHeight(contentsRect().height())); setMinimumHeight(0); } else if (formFactor() == Plasma::Vertical) { setMinimumHeight(d->m_widget->heightForWidth(contentsRect().width())); setMinimumWidth(0); } else { setMinimumWidth(0); setMinimumHeight(0); } } } void KbStateApplet::createConfigurationInterface(KConfigDialog *parent) { if (! d->m_configwidget) { d->m_configwidget = new QWidget(parent->mainWidget()); QVBoxLayout *l = new QVBoxLayout(d->m_configwidget); d->m_configwidget->setLayout(l); d->m_modifierCheckBox = new QCheckBox(i18n("Show Modifier Keys"), d->m_configwidget); l->addWidget(d->m_modifierCheckBox); d->lockkeysCheckBox = new QCheckBox(i18n("Show Lock Keys"), d->m_configwidget); l->addWidget(d->lockkeysCheckBox); d->mouseCheckBox = new QCheckBox(i18n("Show Mouse Status"), d->m_configwidget); l->addWidget(d->mouseCheckBox); d->accessxCheckBox = new QCheckBox(i18n("Show AccessX Status"), d->m_configwidget); l->addWidget(d->accessxCheckBox); } d->m_modifierCheckBox->setChecked(d->m_widget->showModifiers); d->lockkeysCheckBox->setChecked(d->m_widget->showLockkeys); d->mouseCheckBox->setChecked(d->m_widget->showMouse); d->accessxCheckBox->setChecked(d->m_widget->showAccessX); parent->setButtons( KDialog::Ok | KDialog::Cancel | KDialog::Apply ); parent->addPage(d->m_configwidget, parent->windowTitle(), icon()); connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted())); connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted())); } void KbStateApplet::configAccepted() { d->m_widget->showModifiers = d->m_modifierCheckBox->isChecked(); d->m_widget->showLockkeys = d->lockkeysCheckBox->isChecked(); d->m_widget->showMouse = d->mouseCheckBox->isChecked(); d->m_widget->showAccessX = d->accessxCheckBox->isChecked(); KConfigGroup c = config(); c.writeEntry("Modifierkeys visible", d->m_widget->showModifiers); c.writeEntry("Lockkeys visible", d->m_widget->showLockkeys); c.writeEntry("Mouse status visible", d->m_widget->showMouse); c.writeEntry("AccessX status visible", d->m_widget->showAccessX); d->m_widget->updateSettings(); emit configNeedsSaving(); } #include "kbstateapplet.moc" plasmoid-kbstate-2.0~svn906377/Messages.sh0000755000175000017500000000010510431074432020531 0ustar jonathanjonathan#! /usr/bin/env bash $XGETTEXT *.cpp *.h -o $podir/kbstateapplet.pot plasmoid-kbstate-2.0~svn906377/CMakeLists.txt0000644000175000017500000000072111104246776021201 0ustar jonathanjonathanproject(plasma-kbstate) find_package(X11 REQUIRED) include_directories(X11_INCLUDE_DIR) set(kbstate_SRCS kbstateapplet.cpp) kde4_add_plugin(plasma_applet_kbstate ${kbstate_SRCS}) target_link_libraries(plasma_applet_kbstate ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES}) install(TARGETS plasma_applet_kbstate DESTINATION ${PLUGIN_INSTALL_DIR}) install(FILES plasma-applet-kbstate.desktop DESTINATION ${SERVICES_INSTALL_DIR}) add_subdirectory( images )