Package mathbench :: Package ext :: Module pluginmanagement_widgets :: Class PluginList
[hide private]

Class PluginList

source code

               object --+                    
                        |                    
          wx._core.Object --+                
                            |                
          wx._core.EvtHandler --+            
                                |            
                  wx._core.Window --+        
                                    |        
                     wx._core.Control --+    
                                        |    
                    wx._controls.ListCtrl --+
                                            |
wx.lib.mixins.listctrl.CheckListCtrlMixin --+
                                            |
                               object --+   |
                                        |   |
             columnsizer.ColumnSizerMixin --+
                                            |
                                           PluginList

Display the list of plugins with check boxes to see which ones are activated.

Collaborates with a plugin manager.



Instance Methods [hide private]
 
__init__(self, parent, pm, use_versions=True)
Size size=DefaultSize, long style=LC_ICON, Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
source code
 
recuperatePlugins(self)
Recuperate all plugins
source code
 
createColumns(self) source code
 
getPlugin(self, index) source code
 
OnItemActivated(self, evt) source code
 
reset(self) source code
 
OnCheckItem(self, index, flag)
When an item "checked state" change, apply the change to the corresponding plugin by activating/deactivating it.
source code
 
verify(self, selected_index)
Check two things:
source code
 
update(self) source code

Inherited from wx._controls.ListCtrl: Append, Arrange, AssignImageList, ClearAll, ClearColumnImage, Create, DeleteAllColumns, DeleteAllItems, DeleteColumn, DeleteItem, EditLabel, EnsureVisible, FindItem, FindItemAtPos, FindItemData, Focus, GetColumn, GetColumnCount, GetColumnWidth, GetCountPerPage, GetEditControl, GetFirstSelected, GetFocusedItem, GetImageList, GetItem, GetItemBackgroundColour, GetItemCount, GetItemData, GetItemFont, GetItemPosition, GetItemRect, GetItemSpacing, GetItemState, GetItemText, GetItemTextColour, GetMainWindow, GetNextItem, GetNextSelected, GetSelectedItemCount, GetTextColour, GetTopItem, GetViewRect, HitTest, HitTestSubItem, InReportView, InsertColumn, InsertColumnInfo, InsertColumnItem, InsertImageItem, InsertImageStringItem, InsertItem, InsertStringItem, IsSelected, IsVirtual, RefreshItem, RefreshItems, ScrollList, Select, SetColumn, SetColumnImage, SetColumnWidth, SetImageList, SetItem, SetItemBackgroundColour, SetItemColumnImage, SetItemCount, SetItemData, SetItemFont, SetItemImage, SetItemPosition, SetItemSpacing, SetItemState, SetItemText, SetItemTextColour, SetSingleStyle, SetStringItem, SetTextColour, SortItems, __repr__

Inherited from wx._controls.ListCtrl (private): _setCallbackInfo

Inherited from wx._core.Control: Command, GetAlignment, GetLabelText

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from wx.lib.mixins.listctrl.CheckListCtrlMixin: CheckItem, IsChecked, ToggleItem

Inherited from columnsizer.ColumnSizerMixin: OnSize, resizeColumns, resizeColumnsIfDirty

Inherited from columnsizer.ColumnSizerMixin (private): _resizeColumns

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

Static Methods [hide private]

Inherited from wx._controls.ListCtrl: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Properties [hide private]

Inherited from wx._controls.ListCtrl: ColumnCount, CountPerPage, EditControl, FocusedItem, ItemCount, MainWindow, SelectedItemCount, TextColour, TopItem, ViewRect, thisown

Inherited from wx._core.Control: Alignment, LabelText

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, pm, use_versions=True)
(Constructor)

source code 
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=LC_ICON, Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
Overrides: wx._controls.ListCtrl.__init__
(inherited documentation)

OnCheckItem(self, index, flag)

source code 
When an item "checked state" change, apply the change to the corresponding plugin by activating/deactivating it.
Overrides: wx.lib.mixins.listctrl.CheckListCtrlMixin.OnCheckItem

verify(self, selected_index)

source code 

Check two things:

  • make sure a plugin that is currently in use isn't deactivated
  • When multiple versions of the same plugin exist, verify that only the selected version is active and all other versions are deactivated.