Permalink
Browse files

0.2.0, see README

  • Loading branch information...
etiennesky committed Mar 15, 2012
1 parent caee24d commit 90088ad95d6496094850b9cbe4590a7fda95be63
Showing with 240 additions and 133 deletions.
  1. +20 −3 README
  2. +1 −1 __init__.py
  3. +19 −14 loopvisiblelayers.py
  4. +119 −52 loopvisiblelayersdock.py
  5. +1 −1 metadata.txt
  6. +21 −16 ui_loopvisiblelayersdock.py
  7. +59 −46 ui_loopvisiblelayersdock.ui
View
23 README
@@ -19,10 +19,19 @@ The Controls are Play/Pause, Stop, Next.
============================================================
TODO
-- fix groups - cannot have identical names and nested groups are added to groups/layers to loop unnecessarily
-- add one-shot timers instead of programmed one
-- update the groups list (and internal representations) automatically
+- fix nested group handling - nested groups are added to loop list unnecessarily
+- use one-shot timers instead of programmed one
+- create rendering/canvas cache for each loop, instead of rendering each time
+ - is this possible with qgis api?
+ - maybe not necessary when layer caching is activated (show warning if not activated)
+- update the groups list and relations automatically (patches in my QGis repos. fix this)
+ - get this pulled to qgis
+ - find a way to test for this and print status "groups not updated automatically" if not implemented
+- modify qgis so new groups have unique names (group1,group2,...) - done in my repos.
+
+- check redraw of vector layers when user changes visibility in the layers legend (control rendering order?)
+- check blank page when looping over groups with vector layers
============================================================
CREDITS
@@ -35,3 +44,11 @@ CHANGELOG
0.1 initial release
0.1.1 add missing files
0.1.2 added README ; Makefile fixes
+0.2.0 2012/03/15
+ - freeze canvas before changing layer visibility
+ - add auto-update of groups (reqs. QGis fixes)
+ - add status bar
+ - keep group selection when updating group selector
+ - check for duplicate group names
+ - update UI stretching behaviour when docked
+
View
@@ -24,7 +24,7 @@ def name():
def description():
return "Loop Visible Layers"
def version():
- return "Version 0.1.2"
+ return "Version 0.2.0"
def icon():
return "icon.png"
def qgisMinimumVersion():
View
@@ -39,13 +39,18 @@ def __init__(self, iface):
def initGui(self):
# Create action that will start plugin configuration
- self.action = QAction(QIcon(":/plugins/loopvisiblelayers/icon.png"), \
- "Loop Visible Layers", self.iface.mainWindow())
+ self.action = QAction(QIcon(':/plugins/loopvisiblelayers/icon.png'), \
+ 'Loop Visible Layers', self.iface.mainWindow())
# create and show the dock
self.dockWidget = LoopVisibleLayersDock(self.iface.mainWindow(), self.iface)
self.restoreDockLocation()
self.restoreTimerDelay()
+
+ settings = QSettings()
+ if not settings.value('/Qgis/enable_render_caching').toBool():
+ self.dockWidget.setStatus( 'Enable render caching to improve performance' )
+
self.iface.addDockWidget(self.dockWidget.getLocation(), self.dockWidget)
# show the dialog
#dlg.show()
@@ -66,41 +71,41 @@ def saveDockLocation(self):
if floating:
nFloating = 1
- position = "%s %s" % (self.dockWidget.pos().x(), self.dockWidget.pos().y())
+ position = '%s %s' % (self.dockWidget.pos().x(), self.dockWidget.pos().y())
else:
nFloating = 0
- position = u"%s" % self.dockWidget.getLocation()
+ position = u'%s' % self.dockWidget.getLocation()
- settings.setValue( "/plugins/LoopVisibleLayers/floating", floating )
- settings.setValue( "/plugins/LoopVisibleLayers/position", QString(position) )
- #size = "%s %s" % (dockwidget.size().width(), dockwidget.size().height())
- #QgsProject.instance().writeEntry( "DockableMirrorMap", "/mirror%s/size" % i, QString(size) )
+ settings.setValue( '/PythonPlugins/LoopVisibleLayers/floating', floating )
+ settings.setValue( '/PythonPlugins/LoopVisibleLayers/position', QString(position) )
+ #size = '%s %s' % (dockwidget.size().width(), dockwidget.size().height())
+ #QgsProject.instance().writeEntry( 'DockableMirrorMap', '/mirror%s/size' % i, QString(size) )
def restoreDockLocation(self):
settings = QSettings()
- floating = settings.value("/plugins/LoopVisibleLayers/floating").toBool()
+ floating = settings.value('/PythonPlugins/LoopVisibleLayers/floating').toBool()
self.dockWidget.setFloating( floating )
if not floating:
- position = settings.value( "/plugins/LoopVisibleLayers/position" ).toString()
+ position = settings.value( '/PythonPlugins/LoopVisibleLayers/position' ).toString()
if position is None or position=='':
position = Qt.LeftDockWidgetArea
else:
- #position = int(position.split(" ")[0])
+ #position = int(position.split(' ')[0])
position = int(position)
#position = Qt.LeftDockWidgetArea
self.dockWidget.setLocation( position )
def saveTimerDelay(self):
timerDelay = self.dockWidget.getTimerDelay()
settings = QSettings()
- timerDelayStr = settings.value("/plugins/LoopVisibleLayers/delay")
+ timerDelayStr = settings.value('/PythonPlugins/LoopVisibleLayers/delay')
if ( timerDelayStr.toFloat()[0] != timerDelay ):
- settings.setValue( "/plugins/LoopVisibleLayers/delay", timerDelay )
+ settings.setValue( '/PythonPlugins/LoopVisibleLayers/delay', timerDelay )
def restoreTimerDelay(self):
settings = QSettings()
- timerDelayStr = settings.value("/plugins/LoopVisibleLayers/delay")
+ timerDelayStr = settings.value('/PythonPlugins/LoopVisibleLayers/delay')
if timerDelayStr is None or timerDelayStr != '':
timerDelay = timerDelayStr.toFloat()[0]
Oops, something went wrong.

0 comments on commit 90088ad

Please sign in to comment.