[Tkabber-dev] r17 - in trunk/plugins: . floatinglog hidefix

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Wed Aug 15 14:13:56 MSD 2007


Author: archimed
Date: 2007-08-15 14:13:56 +0400 (Wed, 15 Aug 2007)
New Revision: 17

Added:
   trunk/plugins/hidefix/
   trunk/plugins/hidefix/AUTHORS
   trunk/plugins/hidefix/ChangeLog
   trunk/plugins/hidefix/INSTALL
   trunk/plugins/hidefix/README
   trunk/plugins/hidefix/VERSION
   trunk/plugins/hidefix/hidefix.tcl
   trunk/plugins/hidefix/license.terms
   trunk/plugins/hidefix/todo
Modified:
   trunk/plugins/floatinglog/todo
Log:


Modified: trunk/plugins/floatinglog/todo
===================================================================
--- trunk/plugins/floatinglog/todo	2007-07-14 15:31:04 UTC (rev 16)
+++ trunk/plugins/floatinglog/todo	2007-08-15 10:13:56 UTC (rev 17)
@@ -1,20 +1,24 @@
 
 ----------------------------------------
+Do not show messages from set_status hook but get all of them from other hooks
 Уйти от отображения status
-Do not show messages from set_status hook but get all of them from other hooks
 
 ----------------------------------------
+Open chat window on left click on message
 Открытие окна чата с соответствующим джид при левом клике
-Open chat window on left click on message
 
 ----------------------------------------
+Log grows up or down depends on position
 Использовать механизмы снизу-вверх и сверху-вниз в зависимости от опции position.
-Log grows up or down depends on position
 
 ----------------------------------------
+Allow to select colors for window in options
 Вынести настройку цветов окна в опции.
-Allow to select colors for window in options
 
 ----------------------------------------
 Translation to other languages
-Перевод на другие языки
\ No newline at end of file
+Перевод на другие языки
+
+----------------------------------------
+Do not show messages for selected groups in roster
+Возможность оключения показа сообщений в зависимости от группы в ростере
\ No newline at end of file

Added: trunk/plugins/hidefix/AUTHORS
===================================================================
--- trunk/plugins/hidefix/AUTHORS	                        (rev 0)
+++ trunk/plugins/hidefix/AUTHORS	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1 @@
+Rakhmanin Ruslan <rakhmaninr at mail.ru>

Added: trunk/plugins/hidefix/ChangeLog
===================================================================
--- trunk/plugins/hidefix/ChangeLog	                        (rev 0)
+++ trunk/plugins/hidefix/ChangeLog	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1,8 @@
+Version 0.1
+
+2007-06-03  Rakhmanin Ruslan <rakhmaninr at mail.ru>
+
+	* Initial version (0.1). For test only.
+
+
+

Added: trunk/plugins/hidefix/INSTALL
===================================================================
--- trunk/plugins/hidefix/INSTALL	                        (rev 0)
+++ trunk/plugins/hidefix/INSTALL	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1,8 @@
+Copy this directory under the ~/.tkabber/plugins directory
+so that you get a hierarchy like this:
+  ~/.tkabber/plugins
+  ~/.tkabber/plugins/hidefix/
+  ~/.tkabber/plugins/hidefix/hidefix.tcl
+
+Restart Tkabber, to get the plugin loaded.
+

Added: trunk/plugins/hidefix/README
===================================================================
--- trunk/plugins/hidefix/README	                        (rev 0)
+++ trunk/plugins/hidefix/README	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1,18 @@
+"HideFix" plugin for Tkabber.
+
+I. The idea.
+
+     By  default  left  clicking  on  tray  icon of Tkabber is toggle 2 Tkabber
+states  (hide  in  tray  and unhide). This plugin add new behavior of tray icon
+left  mouse  clicking  - when Tkabber is unhide and has no focus - it get focus
+and stay unhide.
+
+II. Usage.
+
+     Plugin just begin work on loading.
+
+III. Notes.
+
+Tested on Tkabber 0.10.
+     Plugin replace some functions in Tkabber code. So it can be a reason of
+crash in new Tkabber relises.
\ No newline at end of file

Added: trunk/plugins/hidefix/VERSION
===================================================================
--- trunk/plugins/hidefix/VERSION	                        (rev 0)
+++ trunk/plugins/hidefix/VERSION	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1,2 @@
+Version: 0.1
+Date: 2007-August-15

Added: trunk/plugins/hidefix/hidefix.tcl
===================================================================
--- trunk/plugins/hidefix/hidefix.tcl	                        (rev 0)
+++ trunk/plugins/hidefix/hidefix.tcl	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1,31 @@
+namespace eval ::ifacetk::systray {
+     variable active_window
+
+     proc save_active_window_name {} {
+          variable active_window
+          set active_window ""
+          set active_window [focus]
+          after 1000 ifacetk::systray::save_active_window_name
+     }
+
+
+     proc toggle_state {} {
+         variable active_window
+         switch -- [wm state .] {
+     	    zoomed -
+             normal {
+     	        if {$active_window != ""} {
+     	           withdraw
+                 }
+             }
+
+              iconic -
+              withdrawn -
+              default {
+                  restore
+              }
+         }
+     }
+}
+
+after 1000 ifacetk::systray::save_active_window_name

Added: trunk/plugins/hidefix/license.terms
===================================================================
--- trunk/plugins/hidefix/license.terms	                        (rev 0)
+++ trunk/plugins/hidefix/license.terms	2007-08-15 10:13:56 UTC (rev 17)
@@ -0,0 +1,19 @@
+Copyright (c) 2007 Rakhmanin Ruslan <rakhmaninr at mail.ru>
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.

Added: trunk/plugins/hidefix/todo
===================================================================



More information about the Tkabber-dev mailing list