TODO items, sorted by priority (90 items)
Last updated: Sat Jan 22 21:03:54 2005
- /imgSeekLib/customWidgets.py:213
def onSetBg(self):
if sys.platform.find('win') != -1: # windows platform
pass #TODO: port to windows, and update the method above this one (createMenus)
else:
from Settings import binpathfinder \
- /imgSeekLib/AlbumWiz.py:46
self.themecomboBox.insertItem("Acqua")
self.themecomboBox.insertItem("Slides")
for cap in self.curdb.metafields:#TODO0: sort these alphabetically
self.availablecaptionlist.insertItem(cap)
self.curdb.cbs["Batch"].append(self.updateDirList) \
- /imgSeekLib/DuplicateWiz.py:234
fname = None
others = targetlist[:]
try: #TODO: this is probably ineficient as hell
others.remove(id) # so id is not found as a duplicate to id
except: \
- /imgSeekLib/EXIF.py:705
val = s2n_motorola(slice)
# Sign extension ?
""" #TODO0: remove futurewarning here:
/home/rnc/prj/imgseek/imgSeekLib/EXIF.py:707: FutureWarning: x<
- /imgSeekLib/imgSeekApp.py:1853
def gohomebtn_clicked(self):
#TODO0: im getting a "path not found" error on win32 here
fuln = os.path.expanduser(os.path.join("~",""))
self.BrowseSysDirListView.showPath(fuln) \
- /imgSeekLib/SlideShowDialog.py:48
self.setSizePolicy(SizePolicyClass(0,0,0,0,self.sizePolicy().hasHeightForWidth()))
if 1:#sizeMode=="Slide": #TODO: attempt to fix bug #959344. This is a temporary fix. Seems to work now.
self.sv = QScrollView(self)
\
- /dist/imgSeek-0.8.5rc1/imgSeekLib/customWidgets.py:213
def onSetBg(self):
if sys.platform.find('win') != -1: # windows platform
pass #TODO: port to windows, and update the method above this one (createMenus)
else:
from Settings import binpathfinder \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/AlbumWiz.py:46
self.themecomboBox.insertItem("Acqua")
self.themecomboBox.insertItem("Slides")
for cap in self.curdb.metafields:#TODO0: sort these alphabetically
self.availablecaptionlist.insertItem(cap)
self.curdb.cbs["Batch"].append(self.updateDirList) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/DuplicateWiz.py:234
fname = None
others = targetlist[:]
try: #TODO: this is probably ineficient as hell
others.remove(id) # so id is not found as a duplicate to id
except: \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/EXIF.py:705
val = s2n_motorola(slice)
# Sign extension ?
""" #TODO0: remove futurewarning here:
/home/rnc/prj/imgseek/imgSeekLib/EXIF.py:707: FutureWarning: x<
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:1853
def gohomebtn_clicked(self):
#TODO0: im getting a "path not found" error on win32 here
fuln = os.path.expanduser(os.path.join("~",""))
self.BrowseSysDirListView.showPath(fuln) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/SlideShowDialog.py:48
self.setSizePolicy(SizePolicyClass(0,0,0,0,self.sizePolicy().hasHeightForWidth()))
if 1:#sizeMode=="Slide": #TODO: attempt to fix bug #959344. This is a temporary fix. Seems to work now.
self.sv = QScrollView(self)
\
- /imgSeekLib/imgSeekApp.py:329
self.DrawQueryColorPixmap.setPixmap(pixm)
else:
imglibdir = os.path.split(sys.argv[0])[0]+"/imgSeekLib/" #TODO1: port this
if os.path.exists(imglibdir+"color.png"):
pixm = QPixmap(imglibdir+"color.png") \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:329
self.DrawQueryColorPixmap.setPixmap(pixm)
else:
imglibdir = os.path.split(sys.argv[0])[0]+"/imgSeekLib/" #TODO1: port this
if os.path.exists(imglibdir+"color.png"):
pixm = QPixmap(imglibdir+"color.png") \
- /imgSeekLib/customWidgets.py:417
self.pixlabel.accrotate = 0
#TODO2: these view transforms (aka rotations) should happen before fitting image to window. That would fix bug #959344
if fid != -1: # check for view transforms
if self.env.curdb.meta.has_key(fid): \
- /imgSeekLib/customWidgets.py:23
__version__ = "$Revision: 1.109 $"
from string import * #TODO2: ugly. Remove this import later
import os
import traceback \
- /imgSeekLib/BatchEditWnd.py:23
"""
from string import * #TODO2: this import sucks. Remove it
import time
\
- /imgSeekLib/ImgDB.py:1899
@return: list of pairs [img_id,0]. (0 is fixed and should be ignored.) What matters is the img_id integer, which means this image is a query result
"""
#TODO2: document the logic for this function. I can't even understand it now...
res = []
metaq = txt[0] \
- /imgSeekLib/ImgDB.py:239
@type fname: string
#TODO2: run more sanity checks on database
"""
self.fname = os.path.expanduser(fname) \
- /imgSeekLib/imgSeekApp.py:2653
def getAcceptedIdx(self):
#TODO2: test more
#somewhere there can be still some problems (bugs)... try following:
# create folders 1 and 2 and a child 3 to folder 2. Then drop the same file to 1 and 3. \
- /imgSeekLib/imgSeekApp.py:2540
cnt = 0
while len(self.SearchImageIconView.hiddenIcons):
a = self.SearchImageIconView.hiddenIcons[0] #TODO2: is this del thing fast ??? -- investigate mem leaks (dangling obj refs) here and on other places
del self.SearchImageIconView.hiddenIcons[0]
if a[2][0] == "id": # image on db \
- /imgSeekLib/imgSeekApp.py:2518
self.app.processEvents()
while len(self.hiddenIcons):
a = self.hiddenIcons[0] #TODO2: is this del thing fast ??? -- investigate mem leaks (dangling obj refs) here and on other places
del self.hiddenIcons[0]
if a[2][0] == "id": \
- /imgSeekLib/imgSeekApp.py:1717
aImage = self.curdb.getThumbDB(self.curdb.simgroups[id][1])
except:
#TODO2: after deleting some files, their similarity group still exists, causing an error here.
pass
if not aImage: continue \
- /imgSeekLib/imgSeekApp.py:985
listItemsToRemove = self.curdb.renameFiles(renpairs)
#TODO2: This is a hack, i'm too lazy to rewrite everything related to this Rename File -> Remove affected icons mechanism.
# Make sure i actually use Obj. Oriented Programming properly next time i write something :-/
for it in listItemsToRemove: \
- /imgSeekLib/imgSeekApp.py:844
it=self.selectedIDs[0]
fname = None
#TODO2: port to win32
if it["type"]=="Img":
id = it["id"] \
- /imgSeekLib/imgSeekApp.py:632
self.updateStatusBar(self.tr("Directory added successfully"))
else:
#TODO2: allow people to add only 1 image. Also investigate the feasibility of adding images automatically to db when they are displayed on the system thumbnail lister.
self.progressGroup.hide()
self.addImageBtn.setEnabled(1) \
- /imgSeekLib/imgSeekApp.py:270
customWidgets.folderLocked = QPixmap( customWidgets.folder_locked )
customWidgets.folderClosed = QPixmap( customWidgets.folder_closed_xpm )
customWidgets.folderOpen = QPixmap( customWidgets.folder_open_xpm ) # TODO2: this pixmap is b0rked, fix it
customWidgets.fileNormal = QPixmap( customWidgets.pix_file )
self.BrowseSysDirListView.setTreeStepSize( 20 ) \
- /imgSeekLib/SlideShowDialog.py:202
def onDeleteMenu(self):
#TODO2: physically removing here will not invoke any db function to see if this file should be removed from dbase
if self.mtimer: self.mtimer.stop()
res = QMessageBox.information( self, "imgSeek","Are you sure you want to physically remove \"%s\" ?"%self.fname, QString("&Delete"), QString("Cancel")) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/customWidgets.py:417
self.pixlabel.accrotate = 0
#TODO2: these view transforms (aka rotations) should happen before fitting image to window. That would fix bug #959344
if fid != -1: # check for view transforms
if self.env.curdb.meta.has_key(fid): \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/customWidgets.py:23
__version__ = "$Revision: 1.109 $"
from string import * #TODO2: ugly. Remove this import later
import os
import traceback \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/BatchEditWnd.py:23
"""
from string import * #TODO2: this import sucks. Remove it
import time
\
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:1899
@return: list of pairs [img_id,0]. (0 is fixed and should be ignored.) What matters is the img_id integer, which means this image is a query result
"""
#TODO2: document the logic for this function. I can't even understand it now...
res = []
metaq = txt[0] \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:239
@type fname: string
#TODO2: run more sanity checks on database
"""
self.fname = os.path.expanduser(fname) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:2653
def getAcceptedIdx(self):
#TODO2: test more
#somewhere there can be still some problems (bugs)... try following:
# create folders 1 and 2 and a child 3 to folder 2. Then drop the same file to 1 and 3. \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:2540
cnt = 0
while len(self.SearchImageIconView.hiddenIcons):
a = self.SearchImageIconView.hiddenIcons[0] #TODO2: is this del thing fast ??? -- investigate mem leaks (dangling obj refs) here and on other places
del self.SearchImageIconView.hiddenIcons[0]
if a[2][0] == "id": # image on db \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:2518
self.app.processEvents()
while len(self.hiddenIcons):
a = self.hiddenIcons[0] #TODO2: is this del thing fast ??? -- investigate mem leaks (dangling obj refs) here and on other places
del self.hiddenIcons[0]
if a[2][0] == "id": \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:1717
aImage = self.curdb.getThumbDB(self.curdb.simgroups[id][1])
except:
#TODO2: after deleting some files, their similarity group still exists, causing an error here.
pass
if not aImage: continue \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:985
listItemsToRemove = self.curdb.renameFiles(renpairs)
#TODO2: This is a hack, i'm too lazy to rewrite everything related to this Rename File -> Remove affected icons mechanism.
# Make sure i actually use Obj. Oriented Programming properly next time i write something :-/
for it in listItemsToRemove: \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:844
it=self.selectedIDs[0]
fname = None
#TODO2: port to win32
if it["type"]=="Img":
id = it["id"] \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:632
self.updateStatusBar(self.tr("Directory added successfully"))
else:
#TODO2: allow people to add only 1 image. Also investigate the feasibility of adding images automatically to db when they are displayed on the system thumbnail lister.
self.progressGroup.hide()
self.addImageBtn.setEnabled(1) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:270
customWidgets.folderLocked = QPixmap( customWidgets.folder_locked )
customWidgets.folderClosed = QPixmap( customWidgets.folder_closed_xpm )
customWidgets.folderOpen = QPixmap( customWidgets.folder_open_xpm ) # TODO2: this pixmap is b0rked, fix it
customWidgets.fileNormal = QPixmap( customWidgets.pix_file )
self.BrowseSysDirListView.setTreeStepSize( 20 ) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/SlideShowDialog.py:202
def onDeleteMenu(self):
#TODO2: physically removing here will not invoke any db function to see if this file should be removed from dbase
if self.mtimer: self.mtimer.stop()
res = QMessageBox.information( self, "imgSeek","Are you sure you want to physically remove \"%s\" ?"%self.fname, QString("&Delete"), QString("Cancel")) \
- /imgSeekLib/HTMLAlbum.py:324
def pageGroup(self,dirid,header = ""):
"""create html page for the given group and return html page name
#TODO3: check for bugs here
"""
path = self.curdb.groups[dirid][0] \
- /imgSeekLib/Settings.py:172
self.imgseekdatadir = sys.path[0] + "\\resources\\" #TODO3: add failovers here
else: # *NIX platform
#TODO3: improve this detection, this is nasty. Check code from treeShare or imgSeekNet
self.imgseekdatadir = sys.exec_prefix + "/share/imgSeek/"
if not os.path.exists(self.imgseekdatadir): \
- /imgSeekLib/Settings.py:170
self.imgseekdatadir = sys.exec_prefix + "/share/imgSeek/"
elif sys.platform.find('win') != -1: #windows platform
self.imgseekdatadir = sys.path[0] + "\\resources\\" #TODO3: add failovers here
else: # *NIX platform
#TODO3: improve this detection, this is nasty. Check code from treeShare or imgSeekNet \
- /imgSeekLib/ImgDB.py:737
path = os.path.abspath(os.path.expanduser(os.path.split(fname)[0]))+os.sep # make sure we have absolute path, so the stubdir code below won't choke on "wallpaper/"-like paths
file = os.path.split(fname)[-1]
groupid = 1 # will belong to orphan. TODO3: make them belong to a "group of the day"
ndid = -1
restr = None \
- /imgSeekLib/ImgDB.py:385
def generateImageID(self):
""" need to return something unique"""
#TODO3: is this random hack safe ? should I hash a resource somehow ? should I check if this ID already exists somewhere ? How much will extra checks slow things down ?
try:
a = random.randrange(999999999) \
- /imgSeekLib/imgSeekApp.py:2509
return # nothing else to show
cnt = 0
##TODO3: try implementing this time based update avoidance mechanism again later. The problem with this attempted implementation is that when scrolling with the mouse, the scrollbar will reach the bottom (while there are still thumbnails to be displayed), then an update will be avoided, and no further thumbnails are displayed. The user has to move the scrollbar up and then down again so more is shown.
## if time.time() - self.lastMoreThumbTime < 0.1:
## print 'avoided update' \
- /imgSeekLib/imgSeekApp.py:1600
except:
Error.PrintTB("dirid:"+str(dirid)+ " parent:"+str(parent))
try: #TODO3: this fix should not even exist in the first place. Orphan dirs shouldn't exist
self.curdb.dirs[parent.dirid][2].remove(dirid)
except: \
- /imgSeekLib/imgSeekApp.py:1363
except:
Error.PrintTB("This search result won't be displayed.(cause above) ")
#if probloading: #TODO3: this was an annoying popup warning, removing it.
# self.info(self.tr("Unable to load one or more images from the query results. Perhaps another application removed an image. ")
\
- /imgSeekLib/imgSeekApp.py:137
if sys.platform.find('win') != -1: # windows platform
self.seeAsGqviewCollection.setVisible(0)
self.gohomebtn.hide() #TODO3: implement this on win32 one day
######## Statusbar
sbar = self.statusBar() \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/HTMLAlbum.py:324
def pageGroup(self,dirid,header = ""):
"""create html page for the given group and return html page name
#TODO3: check for bugs here
"""
path = self.curdb.groups[dirid][0] \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/Settings.py:172
self.imgseekdatadir = sys.path[0] + "\\resources\\" #TODO3: add failovers here
else: # *NIX platform
#TODO3: improve this detection, this is nasty. Check code from treeShare or imgSeekNet
self.imgseekdatadir = sys.exec_prefix + "/share/imgSeek/"
if not os.path.exists(self.imgseekdatadir): \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/Settings.py:170
self.imgseekdatadir = sys.exec_prefix + "/share/imgSeek/"
elif sys.platform.find('win') != -1: #windows platform
self.imgseekdatadir = sys.path[0] + "\\resources\\" #TODO3: add failovers here
else: # *NIX platform
#TODO3: improve this detection, this is nasty. Check code from treeShare or imgSeekNet \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:737
path = os.path.abspath(os.path.expanduser(os.path.split(fname)[0]))+os.sep # make sure we have absolute path, so the stubdir code below won't choke on "wallpaper/"-like paths
file = os.path.split(fname)[-1]
groupid = 1 # will belong to orphan. TODO3: make them belong to a "group of the day"
ndid = -1
restr = None \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:385
def generateImageID(self):
""" need to return something unique"""
#TODO3: is this random hack safe ? should I hash a resource somehow ? should I check if this ID already exists somewhere ? How much will extra checks slow things down ?
try:
a = random.randrange(999999999) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:2509
return # nothing else to show
cnt = 0
##TODO3: try implementing this time based update avoidance mechanism again later. The problem with this attempted implementation is that when scrolling with the mouse, the scrollbar will reach the bottom (while there are still thumbnails to be displayed), then an update will be avoided, and no further thumbnails are displayed. The user has to move the scrollbar up and then down again so more is shown.
## if time.time() - self.lastMoreThumbTime < 0.1:
## print 'avoided update' \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:1600
except:
Error.PrintTB("dirid:"+str(dirid)+ " parent:"+str(parent))
try: #TODO3: this fix should not even exist in the first place. Orphan dirs shouldn't exist
self.curdb.dirs[parent.dirid][2].remove(dirid)
except: \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:1363
except:
Error.PrintTB("This search result won't be displayed.(cause above) ")
#if probloading: #TODO3: this was an annoying popup warning, removing it.
# self.info(self.tr("Unable to load one or more images from the query results. Perhaps another application removed an image. ")
\
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:137
if sys.platform.find('win') != -1: # windows platform
self.seeAsGqviewCollection.setVisible(0)
self.gohomebtn.hide() #TODO3: implement this on win32 one day
######## Statusbar
sbar = self.statusBar() \
- /imgSeekLib/customWidgets.py:311
def showImage(self):
#TODO4: later, some MouseMoveLabel related code that is on ImgViewScroll should stay here, and MouseMoveLabel.showImage() should be called by ImgViewScroll,showImg()
self.accrotate = 0 # reset the "rotation-accumulator"
\
- /imgSeekLib/Transforms.py:97
# on other filters, you should apply the transform on a thumbnail and show it on self.wnd.thumbLabel
#TODO4: warn user that the preview is not broken. (that is, caption transform is not supposed to show a thumbnailed preview)
#How do I remove the current pixmap of a label and then set it's caption ???? \
- /imgSeekLib/ImgDB.py:862
pb is a QProgressDialog
#TODO5: all addDir options should be a dictionary and a dict instance should be passed as the only parm
#TODO4: This function & friends are MESSY, rewrite. Also: most parameters are deprecated, as they are now passed through restr
"""
if aborted: return -1 \
- /imgSeekLib/imgSeekApp.py:2633
## if not gid in self.curdb.img[id][2]:
## self.curdb.img[id][2].append(gid) #should be recursive, TODO4
# self.images_updated = 1 #quick hack, TODO4
# def reset_image_groups(self): \
- /imgSeekLib/imgSeekApp.py:2632
## for id in self.curdb.groups[gid2][3]:
## if not gid in self.curdb.img[id][2]:
## self.curdb.img[id][2].append(gid) #should be recursive, TODO4
# self.images_updated = 1 #quick hack, TODO4
\
- /dist/imgSeek-0.8.5rc1/imgSeekLib/customWidgets.py:311
def showImage(self):
#TODO4: later, some MouseMoveLabel related code that is on ImgViewScroll should stay here, and MouseMoveLabel.showImage() should be called by ImgViewScroll,showImg()
self.accrotate = 0 # reset the "rotation-accumulator"
\
- /dist/imgSeek-0.8.5rc1/imgSeekLib/Transforms.py:97
# on other filters, you should apply the transform on a thumbnail and show it on self.wnd.thumbLabel
#TODO4: warn user that the preview is not broken. (that is, caption transform is not supposed to show a thumbnailed preview)
#How do I remove the current pixmap of a label and then set it's caption ???? \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:862
pb is a QProgressDialog
#TODO5: all addDir options should be a dictionary and a dict instance should be passed as the only parm
#TODO4: This function & friends are MESSY, rewrite. Also: most parameters are deprecated, as they are now passed through restr
"""
if aborted: return -1 \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:2633
## if not gid in self.curdb.img[id][2]:
## self.curdb.img[id][2].append(gid) #should be recursive, TODO4
# self.images_updated = 1 #quick hack, TODO4
# def reset_image_groups(self): \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/imgSeekApp.py:2632
## for id in self.curdb.groups[gid2][3]:
## if not gid in self.curdb.img[id][2]:
## self.curdb.img[id][2].append(gid) #should be recursive, TODO4
# self.images_updated = 1 #quick hack, TODO4
\
- /imgSeekLib/customWidgets.py:204
self.imgmenu.insertItem ( self.env.wnd.fileSaveAction.iconSet(),"&Save as displayed ...", self.onSaveDisp)
self.imgmenu.insertItem ( self.env.wnd.fileSaveAsAction.iconSet(),"&Save original to ...", self.onCopyImageMenu)
#self.imgmenu.insertItem ( "&Move ...", self.onRotate) #TODO5: implement one day
#self.imgmenu.insertItem ( "&Delete", self.onRotate)
self.imgmenu.insertSeparator() \
- /imgSeekLib/DuplicateWiz.py:223
try:
fsize = self.curdb.meta[id]["Filesize"]
except: #TODO5: retrieve it with os.stat
fsize = None
if dofname: \
- /imgSeekLib/Transforms.py:108
if not caption: caption = "Sample caption"
ifo = ImageFont.load(self.wnd.parent().imglibdir+"courB12.pil")
#TODO5: font is hardcoded, make it configurable later (since .pil font files must be used, make at least the size an option)
image = Image.open(self.wnd.curfidname)
draw = ImageDraw.Draw(image) \
- /imgSeekLib/ImgDB.py:861
calledRecurs is the id of the dir that should be the parent to the one at path (ie, the one being processed)
pb is a QProgressDialog
#TODO5: all addDir options should be a dictionary and a dict instance should be passed as the only parm
#TODO4: This function & friends are MESSY, rewrite. Also: most parameters are deprecated, as they are now passed through restr
""" \
- /imgSeekLib/ImgDB.py:371
@param id: image id to be fixed
"""
#TODO5: improve it. check if parents know all children and viceversa
self.img[id][2] = []
for gid in self.groups.keys(): \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/customWidgets.py:204
self.imgmenu.insertItem ( self.env.wnd.fileSaveAction.iconSet(),"&Save as displayed ...", self.onSaveDisp)
self.imgmenu.insertItem ( self.env.wnd.fileSaveAsAction.iconSet(),"&Save original to ...", self.onCopyImageMenu)
#self.imgmenu.insertItem ( "&Move ...", self.onRotate) #TODO5: implement one day
#self.imgmenu.insertItem ( "&Delete", self.onRotate)
self.imgmenu.insertSeparator() \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/DuplicateWiz.py:223
try:
fsize = self.curdb.meta[id]["Filesize"]
except: #TODO5: retrieve it with os.stat
fsize = None
if dofname: \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/Transforms.py:108
if not caption: caption = "Sample caption"
ifo = ImageFont.load(self.wnd.parent().imglibdir+"courB12.pil")
#TODO5: font is hardcoded, make it configurable later (since .pil font files must be used, make at least the size an option)
image = Image.open(self.wnd.curfidname)
draw = ImageDraw.Draw(image) \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:861
calledRecurs is the id of the dir that should be the parent to the one at path (ie, the one being processed)
pb is a QProgressDialog
#TODO5: all addDir options should be a dictionary and a dict instance should be passed as the only parm
#TODO4: This function & friends are MESSY, rewrite. Also: most parameters are deprecated, as they are now passed through restr
""" \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:371
@param id: image id to be fixed
"""
#TODO5: improve it. check if parents know all children and viceversa
self.img[id][2] = []
for gid in self.groups.keys(): \
- /imgSeekLib/RenameWiz.py:41
self.curBatch = -1
self.setFinishEnabled(self.lastpage,1)
self.helpButton().hide() #TODO6: show help for this wizard. Until it's not done, just hide the button
self.curdb = self.env.curdb
self.flist = [] \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/RenameWiz.py:41
self.curBatch = -1
self.setFinishEnabled(self.lastpage,1)
self.helpButton().hide() #TODO6: show help for this wizard. Until it's not done, just hide the button
self.curdb = self.env.curdb
self.flist = [] \
- /imgSeekLib/ImgDB.py:605
return self.getThumb(self.img[id][0],force=force)
def getThumb(self,fname,imgDims = None,force = 0, mountDiff="", onlyNewer = 1): #TODO7: imgDims is deprecated
"""use to get a QPixmap with the thumbnail for a file
\
- /imgSeekLib/ImgDB.py:352
print self.tr("Done.")
self.changedDB({"scope":"Database","reason":"opened","subject":fname})
#TODO7: add dirbm to cb system
for cb in self.sysdirbmCb: cb()
return 1 \
- /imgSeekLib/TransformWnd.py:225
def onPreviewFull(self):
fname = self.parent().dbdir+".cacheprev.bmp"
#TODO7: should I delete this cacheprev.bmp after usage ?
self.callback(real = fname)
from SlideShowDialog import SlideShowDialog \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:605
return self.getThumb(self.img[id][0],force=force)
def getThumb(self,fname,imgDims = None,force = 0, mountDiff="", onlyNewer = 1): #TODO7: imgDims is deprecated
"""use to get a QPixmap with the thumbnail for a file
\
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:352
print self.tr("Done.")
self.changedDB({"scope":"Database","reason":"opened","subject":fname})
#TODO7: add dirbm to cb system
for cb in self.sysdirbmCb: cb()
return 1 \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/TransformWnd.py:225
def onPreviewFull(self):
fname = self.parent().dbdir+".cacheprev.bmp"
#TODO7: should I delete this cacheprev.bmp after usage ?
self.callback(real = fname)
from SlideShowDialog import SlideShowDialog \
- /imgSeekLib/ImgDB.py:151
self.cbs["Meta"] = []
self.cbs["Database"] = [] # generic changes like, dbname, location. etc
self.sysdirbmCb = [] # list of functions that should get called when a bookmark is changed. #TODO9: this should go to the new callback system (dbCallbacks.py)
### Init C++ db engine \
- /dist/imgSeek-0.8.5rc1/imgSeekLib/ImgDB.py:151
self.cbs["Meta"] = []
self.cbs["Database"] = [] # generic changes like, dbname, location. etc
self.sysdirbmCb = [] # list of functions that should get called when a bookmark is changed. #TODO9: this should go to the new callback system (dbCallbacks.py)
### Init C++ db engine \
- /imgSeekLib/imgSeekApp.py:1853