Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module thumbnailctrl :: Class ScrolledThumbnail |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Panel
--+ |ScrolledWindow
--+ | ScrolledThumbnail
Method Summary | |
---|---|
Default class constructor. | |
Calculate the best caption based on the actual zoom. | |
Clears ThumbnailCtrl. | |
Deletes the selected thumbs and their associated files. | |
Draws the visible thumbnails. | |
Enables/disables thumbs drag and drop. | |
Globally enables/disables thumb file information. | |
Not used at present. | |
Returns the font for all the thumb captions. | |
Returns the height for the file name caption. | |
Returns global thumbs popup menu (no need of thumb selection). | |
Returns whether the thumb pointed should be highlighted or not. | |
Returns the item at position "index". | |
Returns the number of thumbs. | |
Returns the thumb index at position (x, y). | |
Returns the bitmap associated to a thumb. | |
Returns the Paint bounding rect for the OnPaint() method. | |
Returns the pointed thumb index. | |
Returns the pointed thumb. | |
Returns thumbs popup menu when at least one thumb is selected. | |
Returns the selected thumb. | |
Returns the selected thumb. | |
Returns the colour used to indicate a selected thumb. | |
Returns the working directory with images. | |
Returns the thumb border. | |
Returns the thumb height. | |
Returns thumbs information. | |
Returns the thumb outline style on selection. | |
Returns the thumb size as width, height and border. | |
Returns the thumb width. | |
Returns the zoom factor. | |
Inserts thumb in the specified position "pos". | |
Not used at present. | |
Not used at present. | |
Returns whether a thumb is selected or not. | |
Not used at present. | |
Gets list of file info objects for files of particular extensions. | |
Threaded method to load images. | |
Handles the wx.EVT_CHAR event for ThumbnailCtrl. | |
Handles the wx.EVT_LEFT_DCLICK event for ThumbnailCtrl. | |
Handles the wx.EVT_LEFT_DOWN and wx.EVT_RIGHT_DOWN events for ThumbnailCtrl. | |
Handles the wx.EVT_LEAVE_WINDOW event for ThumbnailCtrl. | |
Handles the wx.EVT_MOTION event for ThumbnailCtrl. | |
Handles the wx.EVT_LEFT_UP and wx.EVT_RIGHT_UP events for ThumbnailCtrl. | |
Handles the wx.EVT_MOUSEWHEEL event for ThumbnailCtrl. | |
Handles the wx.EVT_PAINT event for ThumbnailCtrl. | |
Handles the wx.EVT_SIZE event for ThumbnailCtrl. | |
Handles the wxEVT_THUMBNAILS_THUMB_CHANGED event for ThumbnailCtrl. | |
Removes thumbs in the specified position "pos". | |
Rotates the selected thumbs by the angle specified by "angle" (in degrees!!!). | |
Scrolls the wx.ScrolledWindow to the thumb selected. | |
Not used at present. | |
Sets the font for all the thumb captions. | |
Sets global thumbs popup menu (no need of thumb selection). | |
Sets whether the thumb pointed should be highlighted or not. | |
Not used at present. | |
Not used at present. | |
Sets thumbs popup menu when at least one thumb is selected. | |
Sets thumb selection. | |
Sets the colour used to indicate a selected thumb. | |
Sets the thumb outline style on selection. | |
Sets the thumb size as width, height and border. | |
Sets the zoom factor. | |
Shows thumbnails for a particular folder. | |
Sets whether the user wants to show file names under the thumbs or not. | |
Sorts the items accordingly to the cmpthumb function. | |
Threaded method to load images. | |
Updates thumb items. | |
Updates ThumbnailCtrl wx.ScrolledWindow and visible thumbs. | |
Updates thumb items. | |
Zooms the thumbs in. | |
Zooms the thumbs out. |
Property Summary |
---|
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
pos=wx.Point(-1, -1),
size=wx.Size(-1, -1),
thumboutline=4,
thumbfilter=1)
|
CalculateBestCaption(self, dc, caption, sw, width)Calculate the best caption based on the actual zoom. |
Clear(self)Clears ThumbnailCtrl. |
DeleteFiles(self)Deletes the selected thumbs and their associated files. Be careful!!! |
DrawThumbnail(self, bmp, thumb, index)Draws the visible thumbnails. |
EnableDragging(self, enable=True)Enables/disables thumbs drag and drop. |
EnableToolTips(self, enable=True)Globally enables/disables thumb file information. |
GetCaption(self)Not used at present. |
GetCaptionFont(self)Returns the font for all the thumb captions. |
GetCaptionHeight(self, begRow, count=1)Returns the height for the file name caption. |
GetGlobalPopupMenu(self)Returns global thumbs popup menu (no need of thumb selection). |
GetHighlightPointed(self)Returns whether the thumb pointed should be highlighted or not. Please be aware that this functionality may be slow on slower computers. |
GetItem(self, index)Returns the item at position "index". |
GetItemCount(self)Returns the number of thumbs. |
GetItemIndex(self, x, y)Returns the thumb index at position (x, y). |
GetOriginalImage(self, index=None)Returns the bitmap associated to a thumb. |
GetPaintRect(self)Returns the Paint bounding rect for the OnPaint() method. |
GetPointed(self)Returns the pointed thumb index. |
GetPointedItem(self)Returns the pointed thumb. |
GetPopupMenu(self)Returns thumbs popup menu when at least one thumb is selected. |
GetSelectedItem(self, index)Returns the selected thumb. |
GetSelection(self, selIndex=-1)Returns the selected thumb. |
GetSelectionColour(self)Returns the colour used to indicate a selected thumb. |
GetShowDir(self)Returns the working directory with images. |
GetThumbBorder(self)Returns the thumb border. |
GetThumbHeight(self)Returns the thumb height. |
GetThumbInfo(self, thumb=-1)Returns thumbs information. |
GetThumbOutline(self)Returns the thumb outline style on selection. |
GetThumbSize(self)Returns the thumb size as width, height and border. |
GetThumbWidth(self)Returns the thumb width. |
GetZoomFactor(self)Returns the zoom factor. |
InsertItem(self, thumb, pos)Inserts thumb in the specified position "pos". |
IsAudio(self, fname)Not used at present. |
IsAudioVideo(self, fname)Not used at present. |
IsSelected(self, indx)Returns whether a thumb is selected or not. |
IsVideo(self, fname)Not used at present. |
ListDirectory(self, directory, fileExtList)Gets list of file info objects for files of particular extensions. |
LoadImages(self, newfile, imagecount)Threaded method to load images. Used internally. |
OnChar(self, event)Handles the wx.EVT_CHAR event for ThumbnailCtrl. You have these choices:
|
OnMouseDClick(self, event)Handles the wx.EVT_LEFT_DCLICK event for ThumbnailCtrl. |
OnMouseDown(self, event)Handles the wx.EVT_LEFT_DOWN and wx.EVT_RIGHT_DOWN events for ThumbnailCtrl. |
OnMouseLeave(self, event)Handles the wx.EVT_LEAVE_WINDOW event for ThumbnailCtrl. |
OnMouseMove(self, event)Handles the wx.EVT_MOTION event for ThumbnailCtrl. |
OnMouseUp(self, event)Handles the wx.EVT_LEFT_UP and wx.EVT_RIGHT_UP events for ThumbnailCtrl. |
OnMouseWheel(self, event)Handles the wx.EVT_MOUSEWHEEL event for ThumbnailCtrl. If you hold down the ctrl key, you can zoom in/out with the mouse wheel. |
OnPaint(self, event)Handles the wx.EVT_PAINT event for ThumbnailCtrl. |
OnResize(self, event)Handles the wx.EVT_SIZE event for ThumbnailCtrl. |
OnThumbChanged(self, event)Handles the wxEVT_THUMBNAILS_THUMB_CHANGED event for ThumbnailCtrl. |
RemoveItemAt(self, pos, count)Removes thumbs in the specified position "pos". |
Rotate(self, angle=90)Rotates the selected thumbs by the angle specified by "angle" (in degrees!!!). |
ScrollToSelected(self)Scrolls the wx.ScrolledWindow to the thumb selected. |
SetCaption(self, caption='')Not used at present. |
SetCaptionFont(self, font=None)Sets the font for all the thumb captions. |
SetGlobalPopupMenu(self, gpmenu)Sets global thumbs popup menu (no need of thumb selection). |
SetHighlightPointed(self, highlight=True)Sets whether the thumb pointed should be highlighted or not. Please be aware that this functionality may be slow on slower computers. |
SetLabelControl(self, statictext)Not used at present. |
SetOrientation(self, orient=8)Not used at present. |
SetPopupMenu(self, menu)Sets thumbs popup menu when at least one thumb is selected. |
SetSelection(self, value=-1)Sets thumb selection. |
SetSelectionColour(self, colour=None)Sets the colour used to indicate a selected thumb. |
SetThumbOutline(self, outline)Sets the thumb outline style on selection. |
SetThumbSize(self, width, height, border=6)Sets the thumb size as width, height and border. |
SetZoomFactor(self, zoom=1.3999999999999999)Sets the zoom factor. |
ShowDir(self, dir, filter=1)Shows thumbnails for a particular folder. |
ShowFileNames(self, show=True)Sets whether the user wants to show file names under the thumbs or not. |
SortItems(self)Sorts the items accordingly to the cmpthumb function. |
ThreadImage(self, filenames)Threaded method to load images. Used internally. |
UpdateItems(self)Updates thumb items. |
UpdateProp(self, checkSize=True)Updates ThumbnailCtrl wx.ScrolledWindow and visible thumbs. |
UpdateShow(self)Updates thumb items. |
ZoomIn(self)Zooms the thumbs in. |
ZoomOut(self)Zooms the thumbs out. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:52:03 2009 | http://epydoc.sf.net |