Package peppy :: Package plugins :: Module mpd_major_mode :: Class MPDMode
[frames] | no frames]

Class MPDMode

       lib.nextpanel.wx.Panel --+
                                |
               object --+       |
                        |       |
lib.userparams.ClassPrefs --+   |
                            |   |
               object --+   |   |
                        |   |   |
         debug.debugmixin --+   |
                            |   |
              major.MajorMode --+
                                |
                               MPDMode

Major mode for controlling a Music Player Daemon.

Displays various search boxes used to populate the mpd playlist.

Nested Classes
  stc_class
stc_class is used to associate this major mode with a storage mechanism (implementing the STCInterface).

Inherited from lib.userparams.ClassPrefs: __metaclass__

Instance Methods
 
__init__(self, parent, wrapper, buffer, frame)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
OnTabChanged(self, evt)
 
reset(self)
 
createListenersPostHook(self)
Hook to add custom listeners.
 
loadMinorModesPostHook(self)
User hook after all minor modes have been loaded.
 
deleteWindowPostHook(self)
Hook after all widgets are deleted.
 
showMessages(self, message=None)
debug method to show all pubsub messages.
 
OnTimer(self, evt=None)
 
update(self)
 
isConnected(self)
 
loginPassword(self)
 
OnLogin(self, evt=None)

Inherited from major.MajorMode: OnContextMenu, OnUpdateUI, OnUpdateUIHook, __del__, applySettings, createEditWindow, createEventBindings, createEventBindingsPostHook, createListeners, createPostHook, createStatusBarInfo, createStatusIcons, createWindowPostHook, deleteWindow, deleteWindowPre, deleteWindowPreHook, findMinorMode, focus, focusPostHook, getIcon, getPopupActions, getStatusBarWidths, getTabName, getTitle, getWelcomeMessage, idleHandler, idlePostHook, removeListeners, removeListenersPostHook, removeMinibuffer, resetStatusBar, save, savePostHook, savePreHook, setMinibuffer, setStatusText, settingsChanged, showBusy, showInitialPosition, showModified, tabActivatedHook, updateAui

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods
 
verifyProtocol(cls, url)
Hook to short-circuit the mode matching heuristics.

Inherited from major.MajorMode: verifyEditraType, verifyFilename, verifyMagic, verifyMetadata, verifyMimetype

Inherited from debug.debugmixin: dprint

Class Variables
  keyword = 'MPD'
The single-word keyword representing this major mode
  icon = 'icons/mpd.png'
Pointer to the icon representing this major mode
  default_classprefs = StrParam('minor_modes', 'MPD Playlist, MP...

Inherited from major.MajorMode: allow_threaded_loading, classprefs, debuglevel, emacs_synonyms, localkeymaps, mimetype, preferences_tab, regex, temporary

Inherited from lib.userparams.ClassPrefs: preferences_sort_weight

Properties

Inherited from object: __class__

Method Details

verifyProtocol(cls, url)
Class Method

 

Hook to short-circuit the mode matching heuristics.

For non-editing applications and client applications that connect to a server, this hook provides the ability to short-circuit the matching process and open a mode immediately.

This method must not attempt to open the url and read any data. All modes' verifyProtocol methods are called before the file is attempted to be opened, and attempting to read data here could mess up streaming files.

Parameters:
  • url - vfs.Reference object
Returns:
True to short circuit and use this mode.
Overrides: major.MajorMode.verifyProtocol
(inherited documentation)

__init__(self, parent, wrapper, buffer, frame)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

createListenersPostHook(self)

 

Hook to add custom listeners.

Subclasses should override this method rather than createListeners to add their own listeners.

Overrides: major.MajorMode.createListenersPostHook
(inherited documentation)

loadMinorModesPostHook(self)

 

User hook after all minor modes have been loaded.

Use this hook if you need to initialize the set of minor modes after all of them have been loaded.

Overrides: major.MajorMode.loadMinorModesPostHook
(inherited documentation)

deleteWindowPostHook(self)

 

Hook after all widgets are deleted.

This is called after all windows have been deleted, in case there are any non-window references to clean up.

Overrides: major.MajorMode.deleteWindowPostHook
(inherited documentation)

Class Variable Details

default_classprefs

Value:
StrParam('minor_modes', 'MPD Playlist, MPD Currently Playing, MPD Sear\
ch Results'), IntParam('update_interval', 1), IntParam('volume_step', \
10), IntParam('list_font_size', 8), IntParam('list_width', 100), StrPa\
ram('password', None),