tgios 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/tgios/ui_table_view_model_binding.rb +14 -12
- data/lib/tgios/ui_text_field_binding.rb +8 -8
- data/lib/tgios/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmQ2NjZhNDUwNmRiOTJjNTAyY2MzYmMzN2Q3ZWY1MTY2NjNjNGM5Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGFjMWE1YWJiYmI1YzM3MTQzYjI4ODhjOWFiNDhkNzAwYzIxZWM1ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDk4MDFhN2I1NzkwYWM3NmRiMTY1ZmMyOGZiYzcwOGViMWUzNGE5MGFiMzU0
|
10
|
+
NWM0MDI0OTEyMTBjNDk5YzJjMGJhMGQ0YzFmNWYwY2JiYWE4YmUzN2UwZTk5
|
11
|
+
OGVjNzFiZmI5MGU5OTJkZjg3MjI4MTk4MDNmMWJlZmMxYzgxZjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzJmMDQ4NDc3ODk0MjE4NjJmNDQxYzFlYmY2N2M3MmY4ZmFiYTg0NTM0NWQ1
|
14
|
+
NzJjNDQxMjEyNDFiMWMyNDJiOWQ4ZWZmOGZhNmE3Y2IyMzkyNjZhMTRmODNi
|
15
|
+
MjgyYTJlNTBmM2E0OTlhNzg3MjQ3Yjc3MmZkYWNkNzYyYWZlZmI=
|
data/Gemfile.lock
CHANGED
@@ -9,19 +9,19 @@ module Tgios
|
|
9
9
|
}) unless Base.get_style_sheet(:ui_field_default_styles)
|
10
10
|
PlasticCup::Base.add_style_sheet(:ui_field_without_label, {
|
11
11
|
extends: :ui_field_default_styles,
|
12
|
-
frame: CGRectMake(16, 9,
|
13
|
-
}, :
|
12
|
+
frame: CGRectMake(16, 9, 282, 25)
|
13
|
+
}, :ios6) unless Base.get_style_sheet(:ui_field_without_label)
|
14
14
|
PlasticCup::Base.add_style_sheet(:ui_field_without_label, {
|
15
15
|
extends: :ui_field_default_styles,
|
16
|
-
frame: CGRectMake(16, 9,
|
16
|
+
frame: CGRectMake(16, 9, 292, 25)
|
17
17
|
}) unless Base.get_style_sheet(:ui_field_without_label)
|
18
18
|
PlasticCup::Base.add_style_sheet(:ui_field_with_label, {
|
19
19
|
extends: :ui_field_default_styles,
|
20
|
-
frame: CGRectMake(
|
21
|
-
}, :
|
20
|
+
frame: CGRectMake(84, 9, 214, 25)
|
21
|
+
}, :ios6) unless Base.get_style_sheet(:ui_field_with_label)
|
22
22
|
PlasticCup::Base.add_style_sheet(:ui_field_with_label, {
|
23
23
|
extends: :ui_field_default_styles,
|
24
|
-
frame: CGRectMake(
|
24
|
+
frame: CGRectMake(114, 9, 194, 25)
|
25
25
|
}) unless Base.get_style_sheet(:ui_field_with_label)
|
26
26
|
PlasticCup::Base.add_style_sheet(:ui_view_default_styles, {
|
27
27
|
font: lambda {UIFont.systemFontOfSize(15)},
|
@@ -83,9 +83,13 @@ module Tgios
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def build_cell(cell_identifier, type)
|
86
|
-
if type == :checkbox
|
86
|
+
if type == :checkbox || type == :label_only || type == :array
|
87
87
|
cell = UITableViewCell.default(cell_identifier)
|
88
88
|
cell.textLabel.numberOfLines = 0
|
89
|
+
if type == :label_only || type == :array
|
90
|
+
cell.textLabel.font = UIFont.systemFontOfSize(14)
|
91
|
+
cell.textLabel.textColor = UIColor.colorWithRed(0, green: 122.0/255.0, blue: 1.0, alpha: 1.0)
|
92
|
+
end
|
89
93
|
else
|
90
94
|
cell = UITableViewCell.value2(cell_identifier)
|
91
95
|
|
@@ -93,8 +97,6 @@ module Tgios
|
|
93
97
|
cell.detailTextLabel.numberOfLines = 0
|
94
98
|
cell.detailTextLabel.backgroundColor = :clear.uicolor
|
95
99
|
cell.textLabel.numberOfLines = 0
|
96
|
-
elsif type == :label_only || type == :array
|
97
|
-
cell.detailTextLabel.textColor = UIColor.colorWithRed(0, green: 122.0/255.0, blue: 1.0, alpha: 1.0)
|
98
100
|
else
|
99
101
|
cell.textLabel.numberOfLines = 2
|
100
102
|
end
|
@@ -144,7 +146,7 @@ module Tgios
|
|
144
146
|
|
145
147
|
when :array
|
146
148
|
if field_set[:child_index].nil?
|
147
|
-
cell.
|
149
|
+
cell.textLabel.text = field_set[:label]
|
148
150
|
else
|
149
151
|
child_field = field_set[:child_field]
|
150
152
|
child = @model.send(field_set[:name])[field_set[:child_index]]
|
@@ -163,7 +165,7 @@ module Tgios
|
|
163
165
|
cell.imageView.image = @model.send(field_set[:name])== true ? 'tick_select.png'.uiimage : 'tick_deselect.png'.uiimage
|
164
166
|
|
165
167
|
when :label_only
|
166
|
-
cell.
|
168
|
+
cell.textLabel.text = field_set[:label]
|
167
169
|
|
168
170
|
when :text_view
|
169
171
|
|
@@ -323,4 +325,4 @@ module Tgios
|
|
323
325
|
end
|
324
326
|
|
325
327
|
end
|
326
|
-
end
|
328
|
+
end
|
@@ -11,19 +11,19 @@ module Tgios
|
|
11
11
|
title: '.',
|
12
12
|
titleFont: lambda {UIFont.boldSystemFontOfSize(30)},
|
13
13
|
}) unless Base.get_style_sheet(:decimal_button_common)
|
14
|
-
Base.add_style_sheet(:decimal_button, {
|
15
|
-
extends: :decimal_button_common,
|
16
|
-
frame: [[0, 162.5 + 44], [104.5, 54]],
|
17
|
-
highlighted_background_image: Tgios::CommonUIUtility.imageFromColor(:white),
|
18
|
-
titleColor: :black.uicolor
|
19
|
-
}, :ios7) unless Base.get_style_sheet(:decimal_button)
|
20
|
-
|
21
14
|
Base.add_style_sheet(:decimal_button, {
|
22
15
|
extends: :decimal_button_common,
|
23
16
|
frame: [[0, 163 + 44], [105, 54]],
|
24
17
|
highlighted_background_image: Tgios::CommonUIUtility.imageFromColor(UIColor.colorWithRed(0.324, green: 0.352, blue: 0.402, alpha: 1)),
|
25
18
|
titleColor: :darkgray.uicolor,
|
26
19
|
highlighted_title_color: :white.uicolor
|
20
|
+
}, :ios6) unless Base.get_style_sheet(:decimal_button)
|
21
|
+
|
22
|
+
Base.add_style_sheet(:decimal_button, {
|
23
|
+
extends: :decimal_button_common,
|
24
|
+
frame: [[0, 162.5 + 44], [104.5, 54]],
|
25
|
+
highlighted_background_image: Tgios::CommonUIUtility.imageFromColor(:white),
|
26
|
+
titleColor: :black.uicolor
|
27
27
|
}) unless Base.get_style_sheet(:decimal_button)
|
28
28
|
|
29
29
|
@field_name=field_name
|
@@ -298,4 +298,4 @@ module Tgios
|
|
298
298
|
end
|
299
299
|
|
300
300
|
end
|
301
|
-
end
|
301
|
+
end
|
data/lib/tgios/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tgios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- April Tsang
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sugarcube
|