Module fileview :: Class FileView
[hide private]
[frames] | no frames]

Class FileView

source code

     object --+                
              |                
wx._core.Object --+            
                  |            
wx._core.EvtHandler --+        
                      |        
        wx._core.Window --+    
                          |    
          wx._windows.Panel --+
                              |
       widgets.BitPimWidget --+
                              |
                             FileView
Known Subclasses:

Instance Methods [hide private]
EvtHandler
__init__(self, mainwindow, parent, media_root, watermark=None)
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition, ...
source code
 
OnIdle(self, _)
Save out changed data
source code
 
OnKeyDown(self, evt) source code
 
OnKeyUp(self, evt) source code
 
OnThumbnailView(self, _) source code
 
OnListView(self, _) source code
 
OnSelected(self, node)
Default does nothing, override to provide specific functionality.
source code
 
GetRightClickMenuItems(self, node)
Default does nothing, override to provide specific functionality.
source code
 
OnRightClickMenuExit(self) source code
 
MakeMoveMenu(self) source code
 
GetColumnNames(self) source code
 
OnSize(self, evt) source code
 
OnRightClick(self, evt)
Popup the right click context menu
source code
 
OnMoveItem(self, evt) source code
 
_launch(self, item) source code
 
OnLaunch(*args, **kwargs) source code
 
OnStartDrag(self, evt) source code
 
OnMouseEvent(self, evt) source code
 
OnTooltipTimer(self, _) source code
 
OnRefresh(self) source code
 
OnRefreshList(self) source code
 
GetSelectedItems(self) source code
 
GetAllItems(self) source code
 
CanSelectAll(self) source code
 
OnSelectAll(self, _) source code
 
OnSave(self, _) source code
 
OnCopy(self, _) source code
 
CanCopy(self) source code
 
OnPaste(self, _=None) source code
 
CanPaste(self)
Return True if can accept clipboard data, False otherwise
source code
 
CanDelete(self) source code
 
OnDelete(self, _) source code
 
AddToIndex(self, file, origin, data, dict, timestamp=None, index=-1) source code
 
_fixupdb(self, db) source code
 
_gettempfile(self, item) source code
 
_filename(self, item) source code
 
_save_to_db(self, dict) source code
 
_load_from_db(self, result) source code
 
convert_to_dict(self, result, res=None) source code
 
get_media_data(self, result, name, origin) source code
 
updateindex(self, index) source code
 
populatefs(self, dict) source code
 
_populatefs(self, dict) source code
 
populate(self, dict) source code
 
getfromfs(self, result) source code
 
legacygetfromfs(self, result, key, indexkey, currentversion) source code
 
delete_old_media(self) source code
 
OnDropFiles(self, _, dummy, filenames) source code
 
CanAdd(self) source code
 
OnAdd(self, _=None) source code
 
CanRename(self) source code
 
OnRename(self, _=None) source code
 
OnAddFiles(self, _) source code
 
OnReplace(self, _=None) source code
 
get_media_name_from_filename(self, filename, newext='') source code
 
getdata(self, dict, want=0) source code
 
CompareItems(self, a, b) source code
 
log(self, log_str) source code
 
GetHelpID(self) source code
 
OnMediaInfo(self, msg) source code
 
OnMediaOpen(self, msg) source code

Inherited from wx._windows.Panel: Create, SetFocusIgnoringChildren, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, 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, GetGtkWidget, 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, HitTest, 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, OnPaint, 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, WindowToClientSize

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 object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Inherited from widgets.BitPimWidget: ActivateSelf, AddNode, AddSubPage, CanPrint, GetAddInfo, GetDeleteInfo, GetWidgetName, HasColumnSelector, HasHistoricalData, HasPreviewPane, InitialiseWidget, IsPreviewPaneEnabled, OnHistoricalData, OnInit, OnPopupMenu, OnPostActivate, OnPreActivate, OnPrintDialog, OnViewColumnSelector, OnViewPreview

Static Methods [hide private]

Inherited from wx._windows.Panel: GetClassDefaultAttributes

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

Class Variables [hide private]
  item_selection_brush = None
  item_selection_pen = None
  item_line_font = None
  item_term = '...'
  item_guardspace = None
  skiplist = ('desktop.ini', 'thumbs.db', 'zbthumbnail.info')
  database_key = ''
  NONE = 0
  SELECTED = 1
  ALL = 2
  maxlen = -1
  filenamechars = None
  helpid = 'tab-media.htm'
  media_notification_type = None

Inherited from widgets.BitPimWidget: MENU_CHECK, MENU_NORMAL, MENU_SPACER

Properties [hide private]

Inherited from wx._windows.Panel: thisown

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, GtkWidget, 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, mainwindow, parent, media_root, watermark=None)
(Constructor)

source code 

__init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
    Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, 
    String name=PanelNameStr) -> Panel

Returns: EvtHandler
Overrides: widgets.BitPimWidget.__init__

OnKeyDown(self, evt)

source code 
Overrides: widgets.BitPimWidget.OnKeyDown

OnKeyUp(self, evt)

source code 
Overrides: widgets.BitPimWidget.OnKeyUp

OnSelected(self, node)

source code 

Default does nothing, override to provide specific functionality. node equals value returned from AddNode.

Overrides: widgets.BitPimWidget.OnSelected
(inherited documentation)

GetRightClickMenuItems(self, node)

source code 

Default does nothing, override to provide specific functionality. node equals value returned from AddNode. Return array of (type, ID, name, tootltip) tuples to be used in the popup menu Valid types are "menu",

Overrides: widgets.BitPimWidget.GetRightClickMenuItems
(inherited documentation)

OnRightClickMenuExit(self)

source code 
Overrides: widgets.BitPimWidget.OnRightClickMenuExit

OnRightClick(self, evt)

source code 

Popup the right click context menu

Parameters:
  • widget - which widget to popup in
  • position - position in widget
  • onitem - True if the context menu is for an item

OnLaunch(*args, **kwargs)

source code 
Decorators:
  • @guihelper.BusyWrapper

CanSelectAll(self)

source code 
Overrides: widgets.BitPimWidget.CanSelectAll

OnSelectAll(self, _)

source code 
Overrides: widgets.BitPimWidget.OnSelectAll

OnCopy(self, _)

source code 
Overrides: widgets.BitPimWidget.OnCopy

CanCopy(self)

source code 
Overrides: widgets.BitPimWidget.CanCopy

OnPaste(self, _=None)

source code 
Overrides: widgets.BitPimWidget.OnPaste

CanPaste(self)

source code 

Return True if can accept clipboard data, False otherwise

Overrides: widgets.BitPimWidget.CanPaste

CanDelete(self)

source code 
Overrides: widgets.BitPimWidget.CanDelete

OnDelete(self, _)

source code 
Overrides: widgets.BitPimWidget.OnDelete

CanAdd(self)

source code 
Overrides: widgets.BitPimWidget.CanAdd

OnAdd(self, _=None)

source code 
Overrides: widgets.BitPimWidget.OnAdd

CanRename(self)

source code 
Overrides: widgets.BitPimWidget.CanRename

OnRename(self, _=None)

source code 
Overrides: widgets.BitPimWidget.OnRename

GetHelpID(self)

source code 
Overrides: widgets.BitPimWidget.GetHelpID