q2rad 0.1.198__tar.gz → 0.1.199__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of q2rad might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.198
3
+ Version: 0.1.199
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.198"
3
+ version = "0.1.199"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -43,7 +43,7 @@ SQL_DATATYPES = (
43
43
  "time",
44
44
  "datetime",
45
45
  )
46
- HAS_DATADEC = ("dec", "numeric", "num")
46
+ HAS_DATADEC = ("dec", "numeric", "num", "decimal")
47
47
  HAS_DATALEN = ("char", "varchar") + HAS_DATADEC
48
48
  WIDGETS = (
49
49
  "line",
@@ -72,7 +72,7 @@ WIDGETS = (
72
72
  # "toolbar;"
73
73
  # "toolbutton;"
74
74
 
75
- HAS_PIC = "radio;" "combo;" "list;"
75
+ HAS_PIC = "radio;" "combo;" "list;" "line;"
76
76
 
77
77
 
78
78
  class Q2Lines(Q2Form, Q2_save_and_run):
@@ -94,6 +94,7 @@ _logger = logging.getLogger(__name__)
94
94
  class ReturnEvent(Exception):
95
95
  pass
96
96
 
97
+
97
98
  def get_report(report_name="", style={}):
98
99
  if report_name == "":
99
100
  return Q2RadReport(style=style)
@@ -1017,6 +1018,7 @@ class Q2RadApp(Q2App):
1017
1018
  , gridlabel
1018
1019
  , tag
1019
1020
  , mess
1021
+ , alignment
1020
1022
  , nogrid
1021
1023
  , noform
1022
1024
  , `check`
@@ -90,7 +90,7 @@ class Q2RadReport(Q2Report):
90
90
  def repo_valid(mode):
91
91
  form.heap.mode = mode
92
92
  form.close()
93
-
93
+ form.add_control("/s")
94
94
  form.add_control("/h")
95
95
  form.add_control("/s")
96
96
  form.add_control("/v")
@@ -121,6 +121,22 @@ class Q2RadReport(Q2Report):
121
121
  form.add_control("/")
122
122
  form.add_control("/s")
123
123
  form.add_control("/")
124
+
125
+ def repo_edit():
126
+ report_edit_form = Q2ReportEdit()
127
+ report_edit_form.after_form_show = lambda: report_edit_form.set_content(self.report_content)
128
+ report_edit_form.run()
129
+ form.close()
130
+
131
+ if q2app.q2_app.dev_mode:
132
+ form.add_control("/s")
133
+ form.add_control("/h")
134
+ form.add_control("/s")
135
+ form.add_control("edit", "Edit", control="button", datalen=8, valid=repo_edit)
136
+ form.add_control("/s")
137
+ form.add_control("/")
138
+ form.add_control("/s")
139
+
124
140
  form.cancel_button = 1
125
141
  form.do_not_save_geometry = 1
126
142
  form.run()
@@ -131,7 +131,9 @@ class Q2Form(_Q2Form):
131
131
 
132
132
  report = get_report(style=get_report().make_style(font_size=q2app.q2_app.q2style.font_size))
133
133
 
134
- report.data_sets["cursor"] = [{"_n_n_n_": x} for x in range(self.model.row_count())]
134
+ report.data_sets["cursor"] = [
135
+ {"_n_n_n_": x} for x in range(self.model.row_count()) if not self.model.is_hidden(x)
136
+ ]
135
137
 
136
138
  detail_rows = report.new_rows()
137
139
  detail_rows.rows["role"] = "table"
@@ -0,0 +1 @@
1
+ __version__ = "0.1.199"
@@ -1 +0,0 @@
1
- __version__ = "0.1.198"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes