[Spambayes-checkins] spambayes/Outlook2000/dialogs dialog_map.py, 1.9, 1.10 dlgcore.py, 1.6, 1.7 processors.py, 1.4, 1.5

Adam Walker xenogeist at users.sourceforge.net
Mon Aug 18 14:00:58 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv5523/Outlook2000/dialogs

Modified Files:
	dialog_map.py dlgcore.py processors.py 
Log Message:
Right-clicking in a blank area of the advanced tab will bring up a diagnosic dialog.

Index: dialog_map.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/dialog_map.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** dialog_map.py	18 Aug 2003 18:35:48 -0000	1.9
--- dialog_map.py	18 Aug 2003 20:00:53 -0000	1.10
***************
*** 232,235 ****
--- 232,248 ----
          dd = self.window.manager.dialog_parser.dialogs[self.idd]
          return "Displays the %s dialog" % dd.caption
+ class HiddenDialogCommand(DialogCommand):
+     def __init__(self, window, control_ids, idd):
+         DialogCommand.__init__(self, window, control_ids, idd)
+     def Init(self):
+         DialogCommand.Init(self)
+         # Hide it
+         win32gui.SetWindowText(self.GetControl(), "")
+     def OnCommand(self, wparam, lparam):
+         pass
+     def OnRButtonUp(self, wparam, lparam):
+         self.OnClicked(0)
+     def GetPopupHelpText(self, id):
+         return "Nothing to see here."
  
  from async_processor import AsyncCommandProcessor
***************
*** 313,316 ****
--- 326,330 ----
          (ComboProcessor,          "IDC_RECOVER_RS", "General.recover_from_spam_message_state",
           "make no change to the read state,mark as read,mark as unread"),
+         (HiddenDialogCommand,           "IDC_HIDDEN", "IDD_DIAGNOSIC"),
          ),
      "IDD_DIAGNOSIC" : (

Index: dlgcore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/dlgcore.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** dlgcore.py	18 Aug 2003 16:47:56 -0000	1.6
--- dlgcore.py	18 Aug 2003 20:00:53 -0000	1.7
***************
*** 96,99 ****
--- 96,100 ----
              win32con.WM_CLOSE: self.OnClose,
              win32con.WM_DESTROY: self.OnDestroy,
+             win32con.WM_RBUTTONUP: self.OnRButtonUp,
          }
          return ret
***************
*** 118,121 ****
--- 119,124 ----
      def OnDestroy(self, hwnd, msg, wparam, lparam):
          pass
+     def OnRButtonUp(self, hwnd, msg, wparam, lparam):
+         pass
  
      def _DoCreate(self, fn):
***************
*** 216,220 ****
          print "Can not get command processor for", self._GetIDName(iCtrlId)
          return None
! 
      def OnCommandProcessorMessage(self, hwnd, msg, wparam, lparam):
          for p in self.processor_message_map[msg]:
--- 219,226 ----
          print "Can not get command processor for", self._GetIDName(iCtrlId)
          return None
!     def OnRButtonUp(self, hwnd, msg, wparam, lparam):
!         for cp in self.command_processors.values():
!             cp.OnRButtonUp(wparam,lparam)
!             
      def OnCommandProcessorMessage(self, hwnd, msg, wparam, lparam):
          for p in self.processor_message_map[msg]:

Index: processors.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/processors.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** processors.py	17 Aug 2003 21:16:51 -0000	1.4
--- processors.py	18 Aug 2003 20:00:54 -0000	1.5
***************
*** 42,45 ****
--- 42,47 ----
      def OnOptionChanged(self, option):
          pass
+     def OnRButtonUp(self, wparam, lparam):
+         pass
  
  class ImageProcessor(ControlProcessor):





More information about the Spambayes-checkins mailing list