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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTIyZTg3OTJiZWI1MWYzOTU3MWJjZjJlN2IwYmE4NmNjYTlhNGJjYQ==
4
+ MmQ2NjZhNDUwNmRiOTJjNTAyY2MzYmMzN2Q3ZWY1MTY2NjNjNGM5Zg==
5
5
  data.tar.gz: !binary |-
6
- YzQ4ZjUzYzBiZjU5NGI1Y2QwNWIwMmJhNGIzM2JmN2NjMzg2YmQ2ZQ==
6
+ NGFjMWE1YWJiYmI1YzM3MTQzYjI4ODhjOWFiNDhkNzAwYzIxZWM1ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTUzNTQ4YmQ3NGQwYjMyNzU5ZDg5ZjZkZDRmMzI5NzYzZTY4ZTI1Y2UxMjQ3
10
- Mjk4MDhkMTExODI2OTA4OWI2M2I3MjJjZmFiODJkNjE2Y2QyMzIzYjA5MDc0
11
- OTc0YmE1MmExZjIxMTRmNDhjMTRmZmNjYjRmMTM2YzJlYWEzNDg=
9
+ MDk4MDFhN2I1NzkwYWM3NmRiMTY1ZmMyOGZiYzcwOGViMWUzNGE5MGFiMzU0
10
+ NWM0MDI0OTEyMTBjNDk5YzJjMGJhMGQ0YzFmNWYwY2JiYWE4YmUzN2UwZTk5
11
+ OGVjNzFiZmI5MGU5OTJkZjg3MjI4MTk4MDNmMWJlZmMxYzgxZjU=
12
12
  data.tar.gz: !binary |-
13
- ZGI4NTM5Yzk1NjQyOWMyYjBkMWZiNjE3YTVjZTA1ZmI4MDZlMWI1Zjc5ZDE3
14
- NmZmMTNkMmMwMGYzZWY3ZTc0OGRkODZkYWRlNWNjMmVhZjgxMmQ2YjYzMWJl
15
- MjY1ZWYwNDMwYjgzMzE1ODRiN2E5YzZlN2ZjYzQ2ZDQ0YWIxODk=
13
+ YzJmMDQ4NDc3ODk0MjE4NjJmNDQxYzFlYmY2N2M3MmY4ZmFiYTg0NTM0NWQ1
14
+ NzJjNDQxMjEyNDFiMWMyNDJiOWQ4ZWZmOGZhNmE3Y2IyMzkyNjZhMTRmODNi
15
+ MjgyYTJlNTBmM2E0OTlhNzg3MjQ3Yjc3MmZkYWNkNzYyYWZlZmI=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tgios (0.0.32)
4
+ tgios (0.0.33)
5
5
  awesome_print_motion
6
6
  motion-layout
7
7
  plastic_cup (>= 0.1.1)
@@ -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, 292, 25)
13
- }, :ios7) unless Base.get_style_sheet(:ui_field_without_label)
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, 282, 25)
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(114, 9, 194, 25)
21
- }, :ios7) unless Base.get_style_sheet(:ui_field_with_label)
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(84, 9, 214, 25)
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.detailTextLabel.text = field_set[:label]
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.detailTextLabel.text = field_set[:label]
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
@@ -1,3 +1,3 @@
1
1
  module Tgios
2
- VERSION = '0.0.32'
2
+ VERSION = '0.0.33'
3
3
  end
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.32
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-04 00:00:00.000000000 Z
12
+ date: 2014-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sugarcube