Package wx :: Package lib :: Module pydocview :: Class DocOptionsService
[frames | no frames]

Type DocOptionsService

object --+            
         |            
    Object --+        
             |        
    EvtHandler --+    
                 |    
        DocService --+
                     |
                    DocOptionsService


A service that implements an options menu item and an options dialog with notebook tabs. New tabs can be added by other services by calling the "AddOptionsPanel" method.
Method Summary
  __init__(self, showGeneralOptions, allowModeChanges)
Initializes the options service with the option of suppressing the default general options pane that is included with the options service by setting showGeneralOptions to False.
  AddOptionsPanel(self, optionsPanel)
Adds an options panel to the options dialog.
  ClearOptionsPanels(self)
Clears all of the options panels that have been added into the options dialog.
  GetAllowModeChanges(self)
Return true if the default general options pane should allow users to change the document interface mode between SDI and MDI modes.
  InstallControls(self, frame, menuBar, toolBar, statusBar, document)
Installs a "Tools" menu with an "Options" menu item.
  OnOptions(self, event)
Shows the options dialog, called when the "Options" menu item is selected.
  ProcessEvent(self, event)
Checks to see if the "Options" menu item has been selected.
  SetAllowModeChanges(self, allowModeChanges)
Set to true if the default general options pane should allow users to change the document interface mode between SDI and MDI modes.

Method Details

__init__(self, showGeneralOptions=True, allowModeChanges=True)
(Constructor)

Initializes the options service with the option of suppressing the default general options pane that is included with the options service by setting showGeneralOptions to False. It allowModeChanges is set to False, the default general options pane will allow users to change the document interface mode between SDI and MDI modes.
Overrides:
wx.lib.pydocview.DocService.__init__

AddOptionsPanel(self, optionsPanel)

Adds an options panel to the options dialog.

ClearOptionsPanels(self)

Clears all of the options panels that have been added into the options dialog.

GetAllowModeChanges(self)

Return true if the default general options pane should allow users to change the document interface mode between SDI and MDI modes.

InstallControls(self, frame, menuBar=None, toolBar=None, statusBar=None, document=None)

Installs a "Tools" menu with an "Options" menu item.
Overrides:
wx.lib.pydocview.DocService.InstallControls

OnOptions(self, event)

Shows the options dialog, called when the "Options" menu item is selected.

ProcessEvent(self, event)

Checks to see if the "Options" menu item has been selected.
Overrides:
wx.lib.pydocview.DocService.ProcessEvent

SetAllowModeChanges(self, allowModeChanges)

Set to true if the default general options pane should allow users to change the document interface mode between SDI and MDI modes.

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:40 2005 http://epydoc.sf.net