Skip to content

Commit 6f4d28d

Browse files
committed
Different enhancements.
1 parent e2676fb commit 6f4d28d

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

Files/Controls.xlsx

161 Bytes
Binary file not shown.

addon/appModules/vismaAdmin/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def initOverlayClass(self):
284284
def script_changeItem(self,gesture):
285285
gesture.send()
286286
self.ReadGridSelection()
287+
pass
287288

288289

289290
def event_gainFocus(self):
@@ -293,20 +294,23 @@ def event_gainFocus(self):
293294
if config.conf['VismaAdministration']['sayNumGridRows']:
294295
ui.message("Rad %d av %d markerad" % (self.GetCurrentRow() + 1, self._get_rowCount()))
295296
self.ReadGridSelection()
297+
pass
296298
except Exception as e:
297299
log.info("Fel i VismaSafGrid.gainFocus: %s" % e)
298300
ui.message("Fel i VismaSafGrid.gainFocus: %s" % e)
299301

300302
def event_UIA_selectionInvalidated(self):
301303
try:
302304
self.ReadGridSelection()
305+
pass
303306
except Exception as e:
304307
log.info("Fel i VismaSafGrid.event_UIA_selectionInvalidated: %s" % e)
305308
ui.message("Fel i VismaSafGrid.event_UIA_selectionInvalidated: %s" % e)
306309

307310
def event_UIA_AutomationFocusChanged(self, obj, nextHandler):
308311
try:
309312
self.ReadGridSelection()
313+
pass
310314
except Exception as e:
311315
log.info("Fel i VismaSafGrid.event_UIA_AutomationFocusChanged: %s" % e)
312316
ui.message("Fel i VismaSafGrid.event_UIA_AutomationFocusChanged: %s" % e)
@@ -321,6 +325,7 @@ def event_UIA_AutomationFocusChanged(self, obj, nextHandler):
321325
def script_readNumGridRows(self, gesture):
322326
ui.message("Rad %d av %d markerad" % (self.GetCurrentRow() + 1, self._get_rowCount()))
323327
self.ReadGridSelection()
328+
pass
324329

325330
@script(
326331
# Translators: Gesture description
@@ -332,6 +337,7 @@ def script_readGridSelection(self, gesture):
332337
# Pass the keystroke along
333338
#gesture.send()
334339
self.ReadGridSelection()
340+
pass
335341

336342

337343
def ReadGridSelection(self):
@@ -424,7 +430,12 @@ def ReadGridSelection(self):
424430

425431
def GetCurrentRow(self):
426432
try:
433+
UIAPointer = UIAClient.ElementFromHandleBuildCache(self.windowHandle, UIAHandler.handler.baseCacheRequest)
434+
if UIAPointer == None:
435+
return 0
427436
selpat = self._getUIAPattern(UIAHandler.UIA_SelectionPatternId,UIAHandler.IUIAutomationSelectionPattern)
437+
if selpat == None:
438+
return 0
428439
cursel = selpat.GetCurrentSelection()
429440
selement = cursel.GetElement(0)
430441
return selement.GetCurrentPropertyValue(UIAHandler.UIA_GridItemRowPropertyId)
@@ -483,6 +494,7 @@ def get_tab_text(self,idx):
483494
if idx == -1:
484495
tabidx = watchdog.cancellableSendMessage(self.windowHandle, TCM_GETCURSEL, 0, 0)
485496
bufLen = 256
497+
#ui.message("Flik: %d" % tabidx)
486498
info = TCITEMWStruct()
487499
info.mask = TCIF_TEXT
488500
info.textMax = bufLen - 1

addon/data/controls.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Edit 22628 Lagerplats
5656
Edit 22629 Vikt
5757
Edit 22630 Volym
5858
Button 22657 Lagerv�rdet �r inaktivt
59-
Edit v Normal leveranstid Artikelkort, flik 3
59+
Edit 22627 Normal leveranstid Artikelkort, flik 3
6060
Edit 22631 Huvudleverant�r
6161
Edit 22653 Kalkylpris, inpris
6262
Edit 22654 Kalkylpris, frakt
@@ -249,7 +249,7 @@ Edit 22483 VAT-nummer
249249
Edit 22431 Telefon
250250
Edit 22432 Telefon 2
251251
Edit 23628 Telefon 3
252-
Edit 22433 Telefon 3
252+
Edit 22433 Telefon 4
253253
Edit 22425 Kortnamn
254254
Edit 23808 Referenskod
255255
Edit 22443 Referens
@@ -541,3 +541,7 @@ Edit 22556 Avtal F
541541
Edit 22558 Avtal Fakturadag
542542
Edit 22557 Avtal Fakturaintervall, m�nader
543543
Edit 22564 Avtal N�sta period, slut
544+
Edit 21317 Skapa fakturor Fakturera till och med
545+
SafGrid 26607 Inl�sning underlag Underlag
546+
SafGrid 26616 Inl�sning underlag Konteringsf�rslag
547+
SafGrid 21641 Artiklar och tj�nster Strukturartiklar

buildVars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _(arg):
2525
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
2626
"addon_description": _("""Fixes accessibility issues in Visma Administration/Fakturering/forening."""),
2727
# version
28-
"addon_version": "2023.2.1",
28+
"addon_version": "2025.1",
2929
# Author(s)
3030
"addon_author": "Karl-Otto Rosenqvist <karl-otto@mawingu.se>",
3131
# URL for the add-on documentation support
@@ -37,7 +37,7 @@ def _(arg):
3737
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)
3838
"addon_minimumNVDAVersion": "2021.1",
3939
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
40-
"addon_lastTestedNVDAVersion": "2023.1",
40+
"addon_lastTestedNVDAVersion": "2025.1",
4141
# Add-on update channel (default is None, denoting stable releases,
4242
# and for development releases, use "dev".)
4343
# Do not change unless you know what you are doing!

0 commit comments

Comments
 (0)