Skip to content

Commit

Permalink
Fix new parameter in create PropertyFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Martinez committed Feb 18, 2019
1 parent af0c621 commit 5209e13
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
7 changes: 4 additions & 3 deletions autorun.inf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ enable = true
isolationGroup = gvsig-base

[properties]
autorun.group.name=gvsig-base
autorun.group.order=1000
autorun.order=2150
autorun.group.name = gvsig-base
autorun.group.order = 1000
autorun.order = 2150

10 changes: 6 additions & 4 deletions quickinfo.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# encoding: utf-8

import gvsig

import sys
from org.gvsig.fmap.mapcontrol.tools.Behavior import MouseMovementBehavior
from org.gvsig.fmap.mapcontrol.tools.Listeners import AbstractPointListener
from org.gvsig.fmap.mapcontext.layers.vectorial import SpatialEvaluatorsFactory

from gvsig import logger
from gvsig import LOGGER_WARN,LOGGER_INFO,LOGGER_ERROR
def trace(msg):
#print "###> ", msg
pass
Expand Down Expand Up @@ -57,8 +58,9 @@ def getTooltipValue(self, point, projection):
x = eval(expression, _globals,_locals)
trace("tooltip: %s" % repr(x))
return x
except Exception, ex:
print str(ex)
except:
ex = sys.exc_info()[1]
logger(str(ex), LOGGER_ERROR)

def setTool(self, mapControl):
actives = mapControl.getMapContext().getLayers().getActives()
Expand Down
1 change: 1 addition & 0 deletions quickinfopanel.inf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ version =
[Script]
main = main
Lang = python
enable = true

2 changes: 1 addition & 1 deletion quickinfopanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def btnTest_click(self, *args):

def main(*args):
viewDoc = gvsig.currentView()
layer = viewDoc.getLayer("manzanas_pob")
layer = gvsig.currentLayer() # viewDoc.getLayer("manzanas_pob")
panel = QuickinfoPanel(layer)
panel.setPreferredSize(400,300)

Expand Down
1 change: 1 addition & 0 deletions quickinfopropertypage.inf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ version =
[Script]
main = main
Lang = python
enable = true

2 changes: 1 addition & 1 deletion quickinfopropertypage.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def isVisible(self, layer):
return True
return False

def create(self, layer):
def create(self, object1, layer):
if not isinstance(layer,VectorLayer):
return None
return QuickinfoPropertyPage(layer)
Expand Down

0 comments on commit 5209e13

Please sign in to comment.