RUIC 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +201 -0
  4. data/bin/ruic +52 -0
  5. data/gui/MetaData.xml +387 -0
  6. data/gui/TODO +2 -0
  7. data/gui/appattributesmodel.rb +51 -0
  8. data/gui/appelementsmodel.rb +126 -0
  9. data/gui/launch.rb +20 -0
  10. data/gui/makefile +14 -0
  11. data/gui/resources.qrc +37 -0
  12. data/gui/resources/images/Objects-Behavior-Normal.png +0 -0
  13. data/gui/resources/images/Objects-Camera-Normal.png +0 -0
  14. data/gui/resources/images/Objects-Component-Normal.png +0 -0
  15. data/gui/resources/images/Objects-Effect-Normal.png +0 -0
  16. data/gui/resources/images/Objects-Group-Normal.png +0 -0
  17. data/gui/resources/images/Objects-Image-Normal.png +0 -0
  18. data/gui/resources/images/Objects-Layer-Normal.png +0 -0
  19. data/gui/resources/images/Objects-Light-Normal.png +0 -0
  20. data/gui/resources/images/Objects-Material-Normal.png +0 -0
  21. data/gui/resources/images/Objects-Model-Normal.png +0 -0
  22. data/gui/resources/images/Objects-Music-Normal.png +0 -0
  23. data/gui/resources/images/Objects-Property-Normal.png +0 -0
  24. data/gui/resources/images/Objects-References-Normal.png +0 -0
  25. data/gui/resources/images/Objects-Scene-Normal.png +0 -0
  26. data/gui/resources/images/Objects-Sound-Normal.png +0 -0
  27. data/gui/resources/images/Objects-Text-Normal.png +0 -0
  28. data/gui/resources/images/Objects-Unknown-Normal.png +0 -0
  29. data/gui/resources/images/Objects-Video-Normal.png +0 -0
  30. data/gui/resources/images/SCXML.ico +0 -0
  31. data/gui/resources/images/TSCXML.ico +0 -0
  32. data/gui/resources/images/UIA.ico +0 -0
  33. data/gui/resources/images/clipboard.png +0 -0
  34. data/gui/resources/images/console_arrow.png +0 -0
  35. data/gui/resources/images/cross.png +0 -0
  36. data/gui/resources/images/currentline.png +0 -0
  37. data/gui/resources/images/disk-black.png +0 -0
  38. data/gui/resources/images/disks-black.png +0 -0
  39. data/gui/resources/images/document--plus.png +0 -0
  40. data/gui/resources/images/document-copy.png +0 -0
  41. data/gui/resources/images/executable-actions-delete-active.png +0 -0
  42. data/gui/resources/images/executable-actions-delete-idle.png +0 -0
  43. data/gui/resources/images/executable-actions-enter-badge.png +0 -0
  44. data/gui/resources/images/executable-actions-exit-badge.png +0 -0
  45. data/gui/resources/images/folder-horizontal--plus.png +0 -0
  46. data/gui/resources/images/folder-horizontal-open.png +0 -0
  47. data/gui/resources/images/gear.png +0 -0
  48. data/gui/resources/images/invalid_breakpoint.png +0 -0
  49. data/gui/resources/images/scissors-blue.png +0 -0
  50. data/gui/resources/images/slide-16-active.png +0 -0
  51. data/gui/resources/images/slide-16-master.png +0 -0
  52. data/gui/resources/images/slide-16-normal.png +0 -0
  53. data/gui/resources/images/slide-32-active.png +0 -0
  54. data/gui/resources/images/slide-32-master.png +0 -0
  55. data/gui/resources/images/slide-32-normal.png +0 -0
  56. data/gui/resources/images/studio_architect32.ico +0 -0
  57. data/gui/resources/images/studio_architect32.png +0 -0
  58. data/gui/resources/images/textfile_icon.png +0 -0
  59. data/gui/resources/style/checkbox.png +0 -0
  60. data/gui/resources/style/dark.qss +459 -0
  61. data/gui/resources/style/down_arrow.png +0 -0
  62. data/gui/resources/style/handle.png +0 -0
  63. data/gui/window.rb +90 -0
  64. data/gui/window.ui +753 -0
  65. data/lib/ruic.rb +59 -0
  66. data/lib/ruic/application.rb +129 -0
  67. data/lib/ruic/asset_classes.rb +448 -0
  68. data/lib/ruic/behaviors.rb +31 -0
  69. data/lib/ruic/interfaces.rb +36 -0
  70. data/lib/ruic/presentation.rb +354 -0
  71. data/lib/ruic/statemachine.rb +111 -0
  72. data/lib/ruic/version.rb +3 -0
  73. data/ruic.gemspec +23 -0
  74. data/test/MetaData.xml +387 -0
  75. data/test/customclasses.ruic +21 -0
  76. data/test/filtering.ruic +39 -0
  77. data/test/nonmaster.ruic +21 -0
  78. data/test/projects/CustomClasses/Brush Strokes.effect +38 -0
  79. data/test/projects/CustomClasses/CustomClasses.uia +6 -0
  80. data/test/projects/CustomClasses/CustomClasses.uip +34 -0
  81. data/test/projects/CustomClasses/copper.material +194 -0
  82. data/test/projects/CustomClasses/maps/UV-Checker.png +0 -0
  83. data/test/projects/CustomClasses/maps/effects/brushnoise.dds +0 -0
  84. data/test/projects/CustomClasses/maps/materials/spherical_checker.png +0 -0
  85. data/test/projects/ReferencedMaterials/ReferencedMaterials.uia +6 -0
  86. data/test/projects/ReferencedMaterials/ReferencedMaterials.uip +39 -0
  87. data/test/properties.ruic +81 -0
  88. data/test/referencematerials.ruic +53 -0
  89. data/test/usage.ruic +20 -0
  90. metadata +166 -0
@@ -0,0 +1,20 @@
1
+ metadata 'MetaData.xml' # optional; also may be set via -m flag
2
+ # uia 'projects/CustomClasses/CustomClasses.uia' # required before other commands
3
+ uia 'projects/BMW_Cluster/BMW_Cluster.uia' # required before other commands
4
+ show app.errors if app.errors?
5
+
6
+ show app.image_usage # hash mapping image paths, relative to uia, to arrays of things referencing them: materials; scxml visual actions; effects;
7
+ show app.image_paths # Just the paths
8
+ show app.mesh_usage # mapping mesh paths (postfixed with version numbers) to referencing elements
9
+ show app.mesh_paths # Just the paths (no version number information)
10
+ show app.script_usage # hash mapping lua paths, relative to uia, to arrays of things referencing them: presentation/application behaviors
11
+ show app.script_paths # just the paths
12
+ show app.material_usage # hash mapping materials paths, relative to uia, to arrays referencing material elements
13
+ show app.material_paths # just the paths
14
+ show app.font_usage # hash mapping font paths, relative to uia, to arrays of referencing text elements
15
+ show app.font_paths # just the paths
16
+ show app.effect_usage # hash mapping effect paths, relative to uia, to arrays of referencing effect elements
17
+ show app.effect_paths # just the paths
18
+
19
+ show app.referenced_paths
20
+ show app.unused_files # Remember to check for .uip and .scxml not referenced by .uia
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: RUIC
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gavin Kistner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1'
27
+ description: RUIC is a library that understands the XML formats used by NVIDIA's "UI
28
+ Composer" tool suite. In addition to APIs for analyzing and manipulating these files—the
29
+ UIC portion of the library—it also includes a mini DSL for writing scripts that
30
+ can be run by the `ruic` interpreter.
31
+ email:
32
+ - gavin@phrogz.net
33
+ executables:
34
+ - ruic
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - LICENSE
39
+ - README.md
40
+ - bin/ruic
41
+ - gui/MetaData.xml
42
+ - gui/TODO
43
+ - gui/appattributesmodel.rb
44
+ - gui/appelementsmodel.rb
45
+ - gui/launch.rb
46
+ - gui/makefile
47
+ - gui/resources.qrc
48
+ - gui/resources/images/Objects-Behavior-Normal.png
49
+ - gui/resources/images/Objects-Camera-Normal.png
50
+ - gui/resources/images/Objects-Component-Normal.png
51
+ - gui/resources/images/Objects-Effect-Normal.png
52
+ - gui/resources/images/Objects-Group-Normal.png
53
+ - gui/resources/images/Objects-Image-Normal.png
54
+ - gui/resources/images/Objects-Layer-Normal.png
55
+ - gui/resources/images/Objects-Light-Normal.png
56
+ - gui/resources/images/Objects-Material-Normal.png
57
+ - gui/resources/images/Objects-Model-Normal.png
58
+ - gui/resources/images/Objects-Music-Normal.png
59
+ - gui/resources/images/Objects-Property-Normal.png
60
+ - gui/resources/images/Objects-References-Normal.png
61
+ - gui/resources/images/Objects-Scene-Normal.png
62
+ - gui/resources/images/Objects-Sound-Normal.png
63
+ - gui/resources/images/Objects-Text-Normal.png
64
+ - gui/resources/images/Objects-Unknown-Normal.png
65
+ - gui/resources/images/Objects-Video-Normal.png
66
+ - gui/resources/images/SCXML.ico
67
+ - gui/resources/images/TSCXML.ico
68
+ - gui/resources/images/UIA.ico
69
+ - gui/resources/images/clipboard.png
70
+ - gui/resources/images/console_arrow.png
71
+ - gui/resources/images/cross.png
72
+ - gui/resources/images/currentline.png
73
+ - gui/resources/images/disk-black.png
74
+ - gui/resources/images/disks-black.png
75
+ - gui/resources/images/document--plus.png
76
+ - gui/resources/images/document-copy.png
77
+ - gui/resources/images/executable-actions-delete-active.png
78
+ - gui/resources/images/executable-actions-delete-idle.png
79
+ - gui/resources/images/executable-actions-enter-badge.png
80
+ - gui/resources/images/executable-actions-exit-badge.png
81
+ - gui/resources/images/folder-horizontal--plus.png
82
+ - gui/resources/images/folder-horizontal-open.png
83
+ - gui/resources/images/gear.png
84
+ - gui/resources/images/invalid_breakpoint.png
85
+ - gui/resources/images/scissors-blue.png
86
+ - gui/resources/images/slide-16-active.png
87
+ - gui/resources/images/slide-16-master.png
88
+ - gui/resources/images/slide-16-normal.png
89
+ - gui/resources/images/slide-32-active.png
90
+ - gui/resources/images/slide-32-master.png
91
+ - gui/resources/images/slide-32-normal.png
92
+ - gui/resources/images/studio_architect32.ico
93
+ - gui/resources/images/studio_architect32.png
94
+ - gui/resources/images/textfile_icon.png
95
+ - gui/resources/style/checkbox.png
96
+ - gui/resources/style/dark.qss
97
+ - gui/resources/style/down_arrow.png
98
+ - gui/resources/style/handle.png
99
+ - gui/window.rb
100
+ - gui/window.ui
101
+ - lib/ruic.rb
102
+ - lib/ruic/application.rb
103
+ - lib/ruic/asset_classes.rb
104
+ - lib/ruic/behaviors.rb
105
+ - lib/ruic/interfaces.rb
106
+ - lib/ruic/presentation.rb
107
+ - lib/ruic/statemachine.rb
108
+ - lib/ruic/version.rb
109
+ - ruic.gemspec
110
+ - test/MetaData.xml
111
+ - test/customclasses.ruic
112
+ - test/filtering.ruic
113
+ - test/nonmaster.ruic
114
+ - test/projects/CustomClasses/Brush Strokes.effect
115
+ - test/projects/CustomClasses/CustomClasses.uia
116
+ - test/projects/CustomClasses/CustomClasses.uip
117
+ - test/projects/CustomClasses/copper.material
118
+ - test/projects/CustomClasses/maps/UV-Checker.png
119
+ - test/projects/CustomClasses/maps/effects/brushnoise.dds
120
+ - test/projects/CustomClasses/maps/materials/spherical_checker.png
121
+ - test/projects/ReferencedMaterials/ReferencedMaterials.uia
122
+ - test/projects/ReferencedMaterials/ReferencedMaterials.uip
123
+ - test/properties.ruic
124
+ - test/referencematerials.ruic
125
+ - test/usage.ruic
126
+ homepage: https://github.com/Phrogz/RUIC
127
+ licenses:
128
+ - MIT License
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubyforge_project:
146
+ rubygems_version: 2.4.2
147
+ signing_key:
148
+ specification_version: 4
149
+ summary: Library and DSL analyzing and manipulating UI Composer applications and presentations.
150
+ test_files:
151
+ - test/MetaData.xml
152
+ - test/customclasses.ruic
153
+ - test/filtering.ruic
154
+ - test/nonmaster.ruic
155
+ - test/projects/CustomClasses/Brush Strokes.effect
156
+ - test/projects/CustomClasses/CustomClasses.uia
157
+ - test/projects/CustomClasses/CustomClasses.uip
158
+ - test/projects/CustomClasses/copper.material
159
+ - test/projects/CustomClasses/maps/UV-Checker.png
160
+ - test/projects/CustomClasses/maps/effects/brushnoise.dds
161
+ - test/projects/CustomClasses/maps/materials/spherical_checker.png
162
+ - test/projects/ReferencedMaterials/ReferencedMaterials.uia
163
+ - test/projects/ReferencedMaterials/ReferencedMaterials.uip
164
+ - test/properties.ruic
165
+ - test/referencematerials.ruic
166
+ - test/usage.ruic