Neal Wilson 9 years ago
parent
commit
23d3fd43e4
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      config/Windows/batchdetailsnew.xml

+ 5
- 0
config/Windows/batchdetailsnew.xml View File

10
     </layout>
10
     </layout>
11
 	<menu name="File">
11
 	<menu name="File">
12
             <item id="save" shortcut="Ctrl+S">Save…</item>
12
             <item id="save" shortcut="Ctrl+S">Save…</item>
13
+            <item id="print" shortcut="Ctrl+P">Print…</item>
13
 	</menu>
14
 	</menu>
14
     <program>
15
     <program>
15
         <![CDATA[
16
         <![CDATA[
22
             }
23
             }
23
             var unitText = (unit == 0 ? "Kg" : "Lb");
24
             var unitText = (unit == 0 ? "Kg" : "Lb");
24
             dataView = findChildObject(this, 'view');
25
             dataView = findChildObject(this, 'view');
26
+            var printMenu = findChildObject(this, 'print');
27
+            printMenu.triggered.connect(function() {
28
+                dataView.print();
29
+            });
25
             var fileID;
30
             var fileID;
26
             var target = findChildObject(this, 'target');
31
             var target = findChildObject(this, 'target');
27
             var compare = findChildObject(this, 'compare');
32
             var compare = findChildObject(this, 'compare');

Loading…
Cancel
Save