tecscde 0.6.0
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.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +125 -0
- data/.rubocop_todo.yml +188 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +6 -0
- data/LICENSE +46 -0
- data/LICENSE.ja +32 -0
- data/README.ja.md +200 -0
- data/README.md +35 -0
- data/Rakefile +27 -0
- data/bin/tecscde +64 -0
- data/glade/tecscde-cell-property.glade +205 -0
- data/glade/tecscde-celltype-property.glade +172 -0
- data/glade/tecscde-celltype.glade +414 -0
- data/glade/tecscde-export.glade +161 -0
- data/glade/test-cell-plugin.rb +51 -0
- data/glade/test-cell-property.rb +35 -0
- data/glade/test-export.rb +35 -0
- data/glade/test-palette.rb +26 -0
- data/lib/tcflow.rb +148 -0
- data/lib/tecscde.rb +65 -0
- data/lib/tecscde/NewCell.png +0 -0
- data/lib/tecscde/SelectArrow.png +0 -0
- data/lib/tecscde/attr_tree_view.rb +253 -0
- data/lib/tecscde/cell_plugin_dialog.glade +294 -0
- data/lib/tecscde/cell_plugin_dialog.rb +89 -0
- data/lib/tecscde/celltype_tree_view.rb +105 -0
- data/lib/tecscde/change_set_control.rb +35 -0
- data/lib/tecscde/change_set_control/change_set.rb +32 -0
- data/lib/tecscde/change_set_control/change_set_manager.rb +62 -0
- data/lib/tecscde/command.rb +35 -0
- data/lib/tecscde/control.rb +491 -0
- data/lib/tecscde/highlighted_objects.rb +180 -0
- data/lib/tecscde/logger.rb +74 -0
- data/lib/tecscde/main_view_and_model.rb +80 -0
- data/lib/tecscde/palette.glade +553 -0
- data/lib/tecscde/palette.rb +174 -0
- data/lib/tecscde/preferences.glade +117 -0
- data/lib/tecscde/preferences.rb +44 -0
- data/lib/tecscde/tecs_model.rb +1137 -0
- data/lib/tecscde/tecs_model/hbar.rb +68 -0
- data/lib/tecscde/tecs_model/tm_c_port.rb +122 -0
- data/lib/tecscde/tecs_model/tm_c_port_array.rb +98 -0
- data/lib/tecscde/tecs_model/tm_cell.rb +496 -0
- data/lib/tecscde/tecs_model/tm_e_port.rb +126 -0
- data/lib/tecscde/tecs_model/tm_e_port_array.rb +78 -0
- data/lib/tecscde/tecs_model/tm_join.rb +293 -0
- data/lib/tecscde/tecs_model/tm_join_bar.rb +146 -0
- data/lib/tecscde/tecs_model/tm_port.rb +238 -0
- data/lib/tecscde/tecs_model/tm_port_array.rb +246 -0
- data/lib/tecscde/tecs_model/tm_region.rb +107 -0
- data/lib/tecscde/tecs_model/tm_uneditable.rb +68 -0
- data/lib/tecscde/tecs_model/vbar.rb +68 -0
- data/lib/tecscde/templates/_cell_info.cde.erb +15 -0
- data/lib/tecscde/templates/_join_info.cde.erb +28 -0
- data/lib/tecscde/templates/main.cde.erb +49 -0
- data/lib/tecscde/tm_object.rb +91 -0
- data/lib/tecscde/version.rb +4 -0
- data/lib/tecscde/view.rb +58 -0
- data/lib/tecscde/view/cairo_matrix.rb +90 -0
- data/lib/tecscde/view/canvas.rb +59 -0
- data/lib/tecscde/view/constants.rb +114 -0
- data/lib/tecscde/view/main_view.rb +1245 -0
- data/lib/tecsflow.rb +475 -0
- data/lib/tecsflow/C_parser.tab.rb +2471 -0
- data/lib/tecsflow/C_parser.y.rb +1087 -0
- data/lib/tecsflow/classes.rb +421 -0
- data/lib/tecsgen.rb +581 -0
- data/lib/tecsgen/core/C_parser.tab.rb +2477 -0
- data/lib/tecsgen/core/C_parser.y +1032 -0
- data/lib/tecsgen/core/bnf-deb.tab.rb +5193 -0
- data/lib/tecsgen/core/bnf.tab.rb +5193 -0
- data/lib/tecsgen/core/bnf.y +2211 -0
- data/lib/tecsgen/core/componentobj.rb +7901 -0
- data/lib/tecsgen/core/ctypes.rb +226 -0
- data/lib/tecsgen/core/expression.rb +1031 -0
- data/lib/tecsgen/core/gen_xml.rb +374 -0
- data/lib/tecsgen/core/generate.rb +5206 -0
- data/lib/tecsgen/core/location.rb +116 -0
- data/lib/tecsgen/core/messages.rb +101 -0
- data/lib/tecsgen/core/optimize.rb +456 -0
- data/lib/tecsgen/core/plugin.rb +332 -0
- data/lib/tecsgen/core/pluginModule.rb +165 -0
- data/lib/tecsgen/core/syntaxobj.rb +1234 -0
- data/lib/tecsgen/core/tecs_lang.rb +306 -0
- data/lib/tecsgen/core/tecsgen.rb +453 -0
- data/lib/tecsgen/core/tecsinfo.rb +860 -0
- data/lib/tecsgen/core/tool_info.rb +258 -0
- data/lib/tecsgen/core/types.rb +1632 -0
- data/lib/tecsgen/core/unjoin_plugin.rb +218 -0
- data/lib/tecsgen/core/value.rb +650 -0
- data/lib/tecsgen/messages/messages_console_en_US.rb +1171 -0
- data/lib/tecsgen/messages/messages_console_ja_JP.rb +1171 -0
- data/lib/tecsgen/messages/messages_file_en_US.rb +334 -0
- data/lib/tecsgen/messages/messages_file_ja_JP.rb +163 -0
- data/lib/tecsgen/plugin/ATK1AlarmPlugin.rb +196 -0
- data/lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb +106 -0
- data/lib/tecsgen/plugin/ATK1EventPlugin.rb +147 -0
- data/lib/tecsgen/plugin/ATK1ISRPlugin.rb +174 -0
- data/lib/tecsgen/plugin/ATK1KernelPlugin.rb +287 -0
- data/lib/tecsgen/plugin/ATK1ResourcePlugin.rb +124 -0
- data/lib/tecsgen/plugin/ATK1TaskPlugin.rb +220 -0
- data/lib/tecsgen/plugin/C2TECSBridgePlugin.rb +210 -0
- data/lib/tecsgen/plugin/CellPlugin.rb +61 -0
- data/lib/tecsgen/plugin/CelltypePlugin.rb +72 -0
- data/lib/tecsgen/plugin/CompositePlugin.rb +66 -0
- data/lib/tecsgen/plugin/DomainPlugin.rb +89 -0
- data/lib/tecsgen/plugin/HRP2AlarmHandlerPlugin.rb +76 -0
- data/lib/tecsgen/plugin/HRP2Cache.rb +1 -0
- data/lib/tecsgen/plugin/HRP2CyclicHandlerPlugin.rb +75 -0
- data/lib/tecsgen/plugin/HRP2DataqueuePlugin.rb +68 -0
- data/lib/tecsgen/plugin/HRP2EventflagPlugin.rb +68 -0
- data/lib/tecsgen/plugin/HRP2FixedSizeMemoryPoolPlugin.rb +68 -0
- data/lib/tecsgen/plugin/HRP2HandlerPlugin.rb +117 -0
- data/lib/tecsgen/plugin/HRP2KernelObjectPlugin.rb +372 -0
- data/lib/tecsgen/plugin/HRP2ObjectPlugin.rb +94 -0
- data/lib/tecsgen/plugin/HRP2Plugin.rb +140 -0
- data/lib/tecsgen/plugin/HRP2PostHook.rb +111 -0
- data/lib/tecsgen/plugin/HRP2PriorityDataqueuePlugin.rb +66 -0
- data/lib/tecsgen/plugin/HRP2RPCPlugin.rb +319 -0
- data/lib/tecsgen/plugin/HRP2SVCPlugin.rb +473 -0
- data/lib/tecsgen/plugin/HRP2SemaphorePlugin.rb +67 -0
- data/lib/tecsgen/plugin/HRP2TaskPlugin.rb +200 -0
- data/lib/tecsgen/plugin/HRPHandlerPlugin.rb +125 -0
- data/lib/tecsgen/plugin/HRPKernelObjectManager.rb +72 -0
- data/lib/tecsgen/plugin/HRPKernelObjectPlugin.rb +333 -0
- data/lib/tecsgen/plugin/HRPObjectPlugin.rb +93 -0
- data/lib/tecsgen/plugin/HRPPlugin.rb +356 -0
- data/lib/tecsgen/plugin/HRPRPCPlugin.rb +407 -0
- data/lib/tecsgen/plugin/HRPSVCPlugin.rb +859 -0
- data/lib/tecsgen/plugin/HRPTaskPlugin.rb +107 -0
- data/lib/tecsgen/plugin/Mruby2CBridgePlugin.rb +86 -0
- data/lib/tecsgen/plugin/MrubyBridgeCellPlugin.rb +264 -0
- data/lib/tecsgen/plugin/MrubyBridgeCelltypePlugin.rb +293 -0
- data/lib/tecsgen/plugin/MrubyBridgeCompositePlugin.rb +49 -0
- data/lib/tecsgen/plugin/MrubyBridgePlugin.rb +67 -0
- data/lib/tecsgen/plugin/MrubyBridgeSignaturePlugin.rb +1307 -0
- data/lib/tecsgen/plugin/MrubyInfoBridgePlugin.rb +14 -0
- data/lib/tecsgen/plugin/MrubyInfoBridgeSignaturePlugin.rb +994 -0
- data/lib/tecsgen/plugin/MultiPlugin.rb +57 -0
- data/lib/tecsgen/plugin/NotifierPlugin.rb +1217 -0
- data/lib/tecsgen/plugin/OpaqueMarshalerPlugin.rb +81 -0
- data/lib/tecsgen/plugin/OpaqueRPCPlugin.rb +323 -0
- data/lib/tecsgen/plugin/RPCPlugin.rb +266 -0
- data/lib/tecsgen/plugin/RepeatCellPlugin.rb +166 -0
- data/lib/tecsgen/plugin/RepeatJoinPlugin.rb +130 -0
- data/lib/tecsgen/plugin/SharedOpaqueRPCPlugin.rb +357 -0
- data/lib/tecsgen/plugin/SharedRPCPlugin.rb +329 -0
- data/lib/tecsgen/plugin/SignaturePlugin.rb +77 -0
- data/lib/tecsgen/plugin/TECS2CBridgePlugin.rb +178 -0
- data/lib/tecsgen/plugin/TECSInfoPlugin.rb +280 -0
- data/lib/tecsgen/plugin/ThroughPlugin.rb +333 -0
- data/lib/tecsgen/plugin/TracePlugin.rb +484 -0
- data/lib/tecsgen/plugin/lib/GenHRP2Marshaler.rb +761 -0
- data/lib/tecsgen/plugin/lib/GenOpaqueMarshaler.rb +1107 -0
- data/lib/tecsgen/plugin/lib/GenParamCopy.rb +365 -0
- data/lib/tecsgen/plugin/lib/GenTransparentMarshaler.rb +683 -0
- data/lib/tecsgen/plugin/lib/MrubyBridgeCelltypePluginModule.rb +283 -0
- data/lib/tecsgen/plugin/lib/MrubyBridgeSignaturePluginModule.rb +277 -0
- data/lib/tecsgen/version.rb +6 -0
- data/samples/FigureSamples/active/active.cde +104 -0
- data/samples/FigureSamples/active/active.cdl +20 -0
- data/samples/FigureSamples/active/active.pdf +0 -0
- data/samples/FigureSamples/active/active.png +0 -0
- data/samples/FigureSamples/active/gen/tmp_C_src.c +36 -0
- data/samples/FigureSamples/active/gen/tmp_cygwin_tecs.h +1908 -0
- data/samples/FigureSamples/active/gen/tmp_plugin_post_code.cdl +0 -0
- data/samples/FigureSamples/allocator/allocator-internal.png +0 -0
- data/samples/FigureSamples/allocator/allocator.cde +171 -0
- data/samples/FigureSamples/allocator/allocator.cdl +58 -0
- data/samples/FigureSamples/allocator/allocator.png +0 -0
- data/samples/FigureSamples/basic/Makefile +87 -0
- data/samples/FigureSamples/basic/SimpleSample-trace.cdl +50 -0
- data/samples/FigureSamples/basic/SimpleSample.cde +91 -0
- data/samples/FigureSamples/basic/SimpleSample.cdl +47 -0
- data/samples/FigureSamples/basic/basic.cde +93 -0
- data/samples/FigureSamples/basic/basic.cdl +46 -0
- data/samples/FigureSamples/basic/basic.png +0 -0
- data/samples/FigureSamples/callback/callback.cde +130 -0
- data/samples/FigureSamples/callback/callback.cdl +29 -0
- data/samples/FigureSamples/callback/callback.png +0 -0
- data/samples/FigureSamples/carray/carray.cde +144 -0
- data/samples/FigureSamples/carray/carray.cdl +38 -0
- data/samples/FigureSamples/carray/carray.png +0 -0
- data/samples/FigureSamples/cearray/cearray.cde +314 -0
- data/samples/FigureSamples/cearray/cearray.cdl +60 -0
- data/samples/FigureSamples/cearray/cearray.png +0 -0
- data/samples/FigureSamples/composite/composite-internal.png +0 -0
- data/samples/FigureSamples/composite/composite.cde +216 -0
- data/samples/FigureSamples/composite/composite.cdl +95 -0
- data/samples/FigureSamples/composite/composite.png +0 -0
- data/samples/FigureSamples/earray/earray.cde +142 -0
- data/samples/FigureSamples/earray/earray.cdl +38 -0
- data/samples/FigureSamples/earray/earray.png +0 -0
- data/samples/FigureSamples/join/Makefile +87 -0
- data/samples/FigureSamples/join/join.cde +132 -0
- data/samples/FigureSamples/join/join.cdl +40 -0
- data/samples/FigureSamples/join/join.png +0 -0
- data/samples/FigureSamples/relay/Makefile +99 -0
- data/samples/FigureSamples/relay/relay-internal.png +0 -0
- data/samples/FigureSamples/relay/relay.cde +284 -0
- data/samples/FigureSamples/relay/relay.cdl +52 -0
- data/samples/FigureSamples/relay/relay.png +0 -0
- data/samples/FigureSamples/rpc/Makefile +123 -0
- data/samples/FigureSamples/rpc/rpc-expand.png +0 -0
- data/samples/FigureSamples/rpc/rpc.cde +245 -0
- data/samples/FigureSamples/rpc/rpc.png +0 -0
- data/samples/FigureSamples/rpc/rpc_sample.cdl +53 -0
- data/samples/SimpleSample/Makefile +25 -0
- data/samples/SimpleSample/SimpleSample/Makefile +86 -0
- data/samples/SimpleSample/SimpleSample/Makefile-trace +91 -0
- data/samples/SimpleSample/SimpleSample/README.txt +106 -0
- data/samples/SimpleSample/SimpleSample/SimpleSample-trace.cdl +50 -0
- data/samples/SimpleSample/SimpleSample/SimpleSample.cdl +45 -0
- data/samples/SimpleSample/SimpleSample/src/tSample.c +77 -0
- data/samples/SimpleSample/SimpleSample/src/tSimple.c +48 -0
- data/samples/SimpleSample/SimpleSample/src/tecs-types.h +27 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile +51 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile-trace +91 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/README.txt +106 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample-trace.cdl +80 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample.cdl +77 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSample/Makefile +112 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSimple/Makefile +109 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSample.c +80 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSimple.c +47 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tTaskMain.c +66 -0
- data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tecs-types.h +27 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile +125 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile-trace +130 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample-trace.cdl +54 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample.cdl +53 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSample.c +80 -0
- data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSimple.c +54 -0
- data/tecscde.gemspec +41 -0
- metadata +353 -0
data/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# TECSCDE
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tecscde`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'tecscde'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install tecscde
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hiro22022/TECSCDE.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
2
|
+
require "rake/clean"
|
|
3
|
+
require "rdoc/task"
|
|
4
|
+
task :default => :test
|
|
5
|
+
|
|
6
|
+
CLEAN.concat(FileList["lib/tecsgen/core/*.tab.rb"])
|
|
7
|
+
CLEAN.concat(FileList["lib/tecsgen/core/*.log"])
|
|
8
|
+
|
|
9
|
+
desc "Generate files"
|
|
10
|
+
task :generate => [:bnf, :yydebug, :c_parser]
|
|
11
|
+
|
|
12
|
+
task :bnf => ["lib/tecsgen/core/bnf.tab.rb"]
|
|
13
|
+
task :yydebug => ["lib/tecsgen/core/bnf-deb.tab.rb"]
|
|
14
|
+
task :c_parser => ["lib/tecsgen/core/C_parser.tab.rb"]
|
|
15
|
+
|
|
16
|
+
file "lib/tecsgen/core/bnf-deb.tab.rb" => ["lib/tecsgen/core/bnf.y"] do |t|
|
|
17
|
+
sh "bundle exec racc -O #{t.name}.log -v -g -o #{t.name} #{t.prerequisites.join(" ")}"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
rule ".tab.rb" => [".y"] do |t|
|
|
21
|
+
sh "bundle exec racc -O #{t.name}.log -v -o #{t.name} #{t.source}"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
RDoc::Task.new do |rdoc|
|
|
25
|
+
rdoc.main = "README.md"
|
|
26
|
+
rdoc.rdoc_files.include("README.md", "README.ja.md", "lib/**/*.rb")
|
|
27
|
+
end
|
data/bin/tecscde
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#
|
|
3
|
+
# TECSCDE - TECS Component Diagram Editor
|
|
4
|
+
#
|
|
5
|
+
# Copyright (C) 2014-2015 by TOPPERS Project
|
|
6
|
+
#
|
|
7
|
+
# The above copyright holders grant permission gratis to use,
|
|
8
|
+
# duplicate, modify, or redistribute (hereafter called use) this
|
|
9
|
+
# software (including the one made by modifying this software),
|
|
10
|
+
# provided that the following four conditions (1) through (4) are
|
|
11
|
+
# satisfied.
|
|
12
|
+
#
|
|
13
|
+
# (1) When this software is used in the form of source code, the above
|
|
14
|
+
# copyright notice, this use conditions, and the disclaimer shown
|
|
15
|
+
# below must be retained in the source code without modification.
|
|
16
|
+
#
|
|
17
|
+
# (2) When this software is redistributed in the forms usable for the
|
|
18
|
+
# development of other software, such as in library form, the above
|
|
19
|
+
# copyright notice, this use conditions, and the disclaimer shown
|
|
20
|
+
# below must be shown without modification in the document provided
|
|
21
|
+
# with the redistributed software, such as the user manual.
|
|
22
|
+
#
|
|
23
|
+
# (3) When this software is redistributed in the forms unusable for the
|
|
24
|
+
# development of other software, such as the case when the software
|
|
25
|
+
# is embedded in a piece of equipment, either of the following two
|
|
26
|
+
# conditions must be satisfied:
|
|
27
|
+
#
|
|
28
|
+
# (a) The above copyright notice, this use conditions, and the
|
|
29
|
+
# disclaimer shown below must be shown without modification in
|
|
30
|
+
# the document provided with the redistributed software, such as
|
|
31
|
+
# the user manual.
|
|
32
|
+
#
|
|
33
|
+
# (b) How the software is to be redistributed must be reported to the
|
|
34
|
+
# TOPPERS Project according to the procedure described
|
|
35
|
+
# separately.
|
|
36
|
+
#
|
|
37
|
+
# (4) The above copyright holders and the TOPPERS Project are exempt
|
|
38
|
+
# from responsibility for any type of damage directly or indirectly
|
|
39
|
+
# caused from the use of this software and are indemnified by any
|
|
40
|
+
# users or end users of this software from any and all causes of
|
|
41
|
+
# action whatsoever.
|
|
42
|
+
#
|
|
43
|
+
# THIS SOFTWARE IS PROVIDED "AS IS." THE ABOVE COPYRIGHT HOLDERS AND
|
|
44
|
+
# THE TOPPERS PROJECT DISCLAIM ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
45
|
+
# INCLUDING, BUT NOT LIMITED TO, ITS APPLICABILITY TO A PARTICULAR
|
|
46
|
+
# PURPOSE. IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS AND THE
|
|
47
|
+
# TOPPERS PROJECT BE LIABLE FOR ANY TYPE OF DAMAGE DIRECTLY OR
|
|
48
|
+
# INDIRECTLY CAUSED FROM THE USE OF THIS SOFTWARE.
|
|
49
|
+
#
|
|
50
|
+
# $Id: tecscde.rb 2640 2017-06-03 11:27:12Z okuma-top $
|
|
51
|
+
#
|
|
52
|
+
|
|
53
|
+
#= TECSCDE - TECS Component Diagram Editor
|
|
54
|
+
# Authors:: Hiroshi OYAMA
|
|
55
|
+
# Copyright:: TOPPERS Project, 2014. All rights reserved.
|
|
56
|
+
# License:: TOPPERS License (written above and each file)
|
|
57
|
+
|
|
58
|
+
# tecsgen.rb, tecscde.rb, tecslib & cdelib must be in the same directory
|
|
59
|
+
$tecsgen_base_path = File.dirname(File.expand_path(__FILE__))
|
|
60
|
+
|
|
61
|
+
require "tecscde"
|
|
62
|
+
require "tecscde/command"
|
|
63
|
+
|
|
64
|
+
TECSCDE::Command.new.run(ARGV)
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<interface>
|
|
3
|
+
<requires lib="gtk+" version="2.16"/>
|
|
4
|
+
<!-- interface-naming-policy project-wide -->
|
|
5
|
+
<object class="GtkListStore" id="liststore1"/>
|
|
6
|
+
<object class="GtkDialog" id="dialog_cell_property">
|
|
7
|
+
<property name="border_width">5</property>
|
|
8
|
+
<property name="type_hint">normal</property>
|
|
9
|
+
<property name="has_separator">False</property>
|
|
10
|
+
<child internal-child="vbox">
|
|
11
|
+
<object class="GtkVBox" id="dialog-vbox1">
|
|
12
|
+
<property name="visible">True</property>
|
|
13
|
+
<property name="orientation">vertical</property>
|
|
14
|
+
<property name="spacing">2</property>
|
|
15
|
+
<child>
|
|
16
|
+
<object class="GtkFrame" id="frame_cell">
|
|
17
|
+
<property name="visible">True</property>
|
|
18
|
+
<property name="label_xalign">0</property>
|
|
19
|
+
<property name="shadow_type">in</property>
|
|
20
|
+
<child>
|
|
21
|
+
<object class="GtkVBox" id="vbox1">
|
|
22
|
+
<property name="visible">True</property>
|
|
23
|
+
<property name="orientation">vertical</property>
|
|
24
|
+
<child>
|
|
25
|
+
<object class="GtkHBox" id="hbox1">
|
|
26
|
+
<property name="visible">True</property>
|
|
27
|
+
<child>
|
|
28
|
+
<object class="GtkLabel" id="label3">
|
|
29
|
+
<property name="visible">True</property>
|
|
30
|
+
<property name="xalign">1</property>
|
|
31
|
+
<property name="xpad">5</property>
|
|
32
|
+
<property name="label" translatable="yes">name:</property>
|
|
33
|
+
</object>
|
|
34
|
+
<packing>
|
|
35
|
+
<property name="expand">False</property>
|
|
36
|
+
<property name="position">0</property>
|
|
37
|
+
</packing>
|
|
38
|
+
</child>
|
|
39
|
+
<child>
|
|
40
|
+
<object class="GtkEntry" id="entry_cell_name">
|
|
41
|
+
<property name="visible">True</property>
|
|
42
|
+
<property name="can_focus">True</property>
|
|
43
|
+
<property name="invisible_char">●</property>
|
|
44
|
+
</object>
|
|
45
|
+
<packing>
|
|
46
|
+
<property name="position">1</property>
|
|
47
|
+
</packing>
|
|
48
|
+
</child>
|
|
49
|
+
</object>
|
|
50
|
+
<packing>
|
|
51
|
+
<property name="expand">False</property>
|
|
52
|
+
<property name="position">0</property>
|
|
53
|
+
</packing>
|
|
54
|
+
</child>
|
|
55
|
+
<child>
|
|
56
|
+
<object class="GtkHBox" id="hbox2">
|
|
57
|
+
<property name="visible">True</property>
|
|
58
|
+
<child>
|
|
59
|
+
<object class="GtkLabel" id="label2">
|
|
60
|
+
<property name="visible">True</property>
|
|
61
|
+
<property name="xalign">1</property>
|
|
62
|
+
<property name="xpad">5</property>
|
|
63
|
+
<property name="label" translatable="yes">celltype:</property>
|
|
64
|
+
<property name="justify">right</property>
|
|
65
|
+
</object>
|
|
66
|
+
<packing>
|
|
67
|
+
<property name="expand">False</property>
|
|
68
|
+
<property name="position">0</property>
|
|
69
|
+
</packing>
|
|
70
|
+
</child>
|
|
71
|
+
<child>
|
|
72
|
+
<object class="GtkEntry" id="entry_celltype_name">
|
|
73
|
+
<property name="visible">True</property>
|
|
74
|
+
<property name="can_focus">True</property>
|
|
75
|
+
<property name="editable">False</property>
|
|
76
|
+
<property name="invisible_char">●</property>
|
|
77
|
+
</object>
|
|
78
|
+
<packing>
|
|
79
|
+
<property name="position">1</property>
|
|
80
|
+
</packing>
|
|
81
|
+
</child>
|
|
82
|
+
<child>
|
|
83
|
+
<object class="GtkButton" id="button_celltype_property">
|
|
84
|
+
<property name="label" translatable="yes">property</property>
|
|
85
|
+
<property name="visible">True</property>
|
|
86
|
+
<property name="can_focus">True</property>
|
|
87
|
+
<property name="receives_default">True</property>
|
|
88
|
+
</object>
|
|
89
|
+
<packing>
|
|
90
|
+
<property name="expand">False</property>
|
|
91
|
+
<property name="position">2</property>
|
|
92
|
+
</packing>
|
|
93
|
+
</child>
|
|
94
|
+
</object>
|
|
95
|
+
<packing>
|
|
96
|
+
<property name="expand">False</property>
|
|
97
|
+
<property name="position">1</property>
|
|
98
|
+
</packing>
|
|
99
|
+
</child>
|
|
100
|
+
<child>
|
|
101
|
+
<object class="GtkFrame" id="frame2">
|
|
102
|
+
<property name="visible">True</property>
|
|
103
|
+
<property name="label_xalign">0</property>
|
|
104
|
+
<property name="shadow_type">none</property>
|
|
105
|
+
<child>
|
|
106
|
+
<object class="GtkTreeView" id="treeview_cell_property">
|
|
107
|
+
<property name="visible">True</property>
|
|
108
|
+
<property name="can_focus">True</property>
|
|
109
|
+
<property name="model">liststore1</property>
|
|
110
|
+
</object>
|
|
111
|
+
</child>
|
|
112
|
+
<child type="label">
|
|
113
|
+
<object class="GtkLabel" id="label5">
|
|
114
|
+
<property name="visible">True</property>
|
|
115
|
+
<property name="label" translatable="yes"><b>properties</b></property>
|
|
116
|
+
<property name="use_markup">True</property>
|
|
117
|
+
</object>
|
|
118
|
+
</child>
|
|
119
|
+
</object>
|
|
120
|
+
<packing>
|
|
121
|
+
<property name="position">2</property>
|
|
122
|
+
</packing>
|
|
123
|
+
</child>
|
|
124
|
+
<child>
|
|
125
|
+
<object class="GtkFrame" id="frame1">
|
|
126
|
+
<property name="visible">True</property>
|
|
127
|
+
<property name="label_xalign">0</property>
|
|
128
|
+
<property name="shadow_type">none</property>
|
|
129
|
+
<child>
|
|
130
|
+
<object class="GtkTextView" id="textview_cell_description">
|
|
131
|
+
<property name="visible">True</property>
|
|
132
|
+
<property name="can_focus">True</property>
|
|
133
|
+
</object>
|
|
134
|
+
</child>
|
|
135
|
+
<child type="label">
|
|
136
|
+
<object class="GtkLabel" id="label4">
|
|
137
|
+
<property name="visible">True</property>
|
|
138
|
+
<property name="label" translatable="yes"><b>description</b></property>
|
|
139
|
+
<property name="use_markup">True</property>
|
|
140
|
+
</object>
|
|
141
|
+
</child>
|
|
142
|
+
</object>
|
|
143
|
+
<packing>
|
|
144
|
+
<property name="position">3</property>
|
|
145
|
+
</packing>
|
|
146
|
+
</child>
|
|
147
|
+
</object>
|
|
148
|
+
</child>
|
|
149
|
+
<child type="label">
|
|
150
|
+
<object class="GtkLabel" id="label1">
|
|
151
|
+
<property name="visible">True</property>
|
|
152
|
+
<property name="label" translatable="yes"><b>cell</b></property>
|
|
153
|
+
<property name="use_markup">True</property>
|
|
154
|
+
</object>
|
|
155
|
+
</child>
|
|
156
|
+
</object>
|
|
157
|
+
<packing>
|
|
158
|
+
<property name="position">1</property>
|
|
159
|
+
</packing>
|
|
160
|
+
</child>
|
|
161
|
+
<child internal-child="action_area">
|
|
162
|
+
<object class="GtkHButtonBox" id="dialog-action_area1">
|
|
163
|
+
<property name="visible">True</property>
|
|
164
|
+
<property name="layout_style">end</property>
|
|
165
|
+
<child>
|
|
166
|
+
<object class="GtkButton" id="button1">
|
|
167
|
+
<property name="label" translatable="yes">OK</property>
|
|
168
|
+
<property name="visible">True</property>
|
|
169
|
+
<property name="can_focus">True</property>
|
|
170
|
+
<property name="receives_default">True</property>
|
|
171
|
+
</object>
|
|
172
|
+
<packing>
|
|
173
|
+
<property name="expand">False</property>
|
|
174
|
+
<property name="fill">False</property>
|
|
175
|
+
<property name="position">0</property>
|
|
176
|
+
</packing>
|
|
177
|
+
</child>
|
|
178
|
+
<child>
|
|
179
|
+
<object class="GtkButton" id="button2">
|
|
180
|
+
<property name="label" translatable="yes">CANCEL</property>
|
|
181
|
+
<property name="visible">True</property>
|
|
182
|
+
<property name="can_focus">True</property>
|
|
183
|
+
<property name="receives_default">True</property>
|
|
184
|
+
</object>
|
|
185
|
+
<packing>
|
|
186
|
+
<property name="expand">False</property>
|
|
187
|
+
<property name="fill">False</property>
|
|
188
|
+
<property name="position">1</property>
|
|
189
|
+
</packing>
|
|
190
|
+
</child>
|
|
191
|
+
</object>
|
|
192
|
+
<packing>
|
|
193
|
+
<property name="expand">False</property>
|
|
194
|
+
<property name="pack_type">end</property>
|
|
195
|
+
<property name="position">0</property>
|
|
196
|
+
</packing>
|
|
197
|
+
</child>
|
|
198
|
+
</object>
|
|
199
|
+
</child>
|
|
200
|
+
<action-widgets>
|
|
201
|
+
<action-widget response="0">button1</action-widget>
|
|
202
|
+
<action-widget response="0">button2</action-widget>
|
|
203
|
+
</action-widgets>
|
|
204
|
+
</object>
|
|
205
|
+
</interface>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<interface>
|
|
3
|
+
<requires lib="gtk+" version="2.16"/>
|
|
4
|
+
<!-- interface-naming-policy project-wide -->
|
|
5
|
+
<object class="GtkDialog" id="dialog1">
|
|
6
|
+
<property name="border_width">5</property>
|
|
7
|
+
<property name="type_hint">normal</property>
|
|
8
|
+
<property name="has_separator">False</property>
|
|
9
|
+
<child internal-child="vbox">
|
|
10
|
+
<object class="GtkVBox" id="dialog-vbox1">
|
|
11
|
+
<property name="visible">True</property>
|
|
12
|
+
<property name="orientation">vertical</property>
|
|
13
|
+
<property name="spacing">2</property>
|
|
14
|
+
<child>
|
|
15
|
+
<object class="GtkFrame" id="frame1">
|
|
16
|
+
<property name="visible">True</property>
|
|
17
|
+
<property name="label_xalign">0</property>
|
|
18
|
+
<property name="shadow_type">in</property>
|
|
19
|
+
<child>
|
|
20
|
+
<object class="GtkVBox" id="vbox1">
|
|
21
|
+
<property name="visible">True</property>
|
|
22
|
+
<property name="orientation">vertical</property>
|
|
23
|
+
<child>
|
|
24
|
+
<object class="GtkHBox" id="hbox1">
|
|
25
|
+
<property name="visible">True</property>
|
|
26
|
+
<child>
|
|
27
|
+
<object class="GtkLabel" id="label2">
|
|
28
|
+
<property name="visible">True</property>
|
|
29
|
+
<property name="xalign">1</property>
|
|
30
|
+
<property name="xpad">5</property>
|
|
31
|
+
<property name="label" translatable="yes">name:</property>
|
|
32
|
+
</object>
|
|
33
|
+
<packing>
|
|
34
|
+
<property name="expand">False</property>
|
|
35
|
+
<property name="position">0</property>
|
|
36
|
+
</packing>
|
|
37
|
+
</child>
|
|
38
|
+
<child>
|
|
39
|
+
<object class="GtkEntry" id="entry1">
|
|
40
|
+
<property name="visible">True</property>
|
|
41
|
+
<property name="can_focus">True</property>
|
|
42
|
+
<property name="invisible_char">●</property>
|
|
43
|
+
</object>
|
|
44
|
+
<packing>
|
|
45
|
+
<property name="position">1</property>
|
|
46
|
+
</packing>
|
|
47
|
+
</child>
|
|
48
|
+
</object>
|
|
49
|
+
<packing>
|
|
50
|
+
<property name="expand">False</property>
|
|
51
|
+
<property name="position">0</property>
|
|
52
|
+
</packing>
|
|
53
|
+
</child>
|
|
54
|
+
<child>
|
|
55
|
+
<object class="GtkFrame" id="frame2">
|
|
56
|
+
<property name="visible">True</property>
|
|
57
|
+
<property name="label_xalign">0</property>
|
|
58
|
+
<property name="shadow_type">none</property>
|
|
59
|
+
<child>
|
|
60
|
+
<object class="GtkAlignment" id="alignment2">
|
|
61
|
+
<property name="visible">True</property>
|
|
62
|
+
<property name="left_padding">12</property>
|
|
63
|
+
<child>
|
|
64
|
+
<object class="GtkTreeView" id="treeview1">
|
|
65
|
+
<property name="visible">True</property>
|
|
66
|
+
<property name="can_focus">True</property>
|
|
67
|
+
<property name="model">liststore1</property>
|
|
68
|
+
</object>
|
|
69
|
+
</child>
|
|
70
|
+
</object>
|
|
71
|
+
</child>
|
|
72
|
+
<child type="label">
|
|
73
|
+
<object class="GtkLabel" id="label3">
|
|
74
|
+
<property name="visible">True</property>
|
|
75
|
+
<property name="label" translatable="yes"><b>properties</b></property>
|
|
76
|
+
<property name="use_markup">True</property>
|
|
77
|
+
</object>
|
|
78
|
+
</child>
|
|
79
|
+
</object>
|
|
80
|
+
<packing>
|
|
81
|
+
<property name="position">1</property>
|
|
82
|
+
</packing>
|
|
83
|
+
</child>
|
|
84
|
+
<child>
|
|
85
|
+
<object class="GtkFrame" id="frame3">
|
|
86
|
+
<property name="visible">True</property>
|
|
87
|
+
<property name="label_xalign">0</property>
|
|
88
|
+
<property name="shadow_type">none</property>
|
|
89
|
+
<child>
|
|
90
|
+
<object class="GtkAlignment" id="alignment1">
|
|
91
|
+
<property name="visible">True</property>
|
|
92
|
+
<property name="left_padding">12</property>
|
|
93
|
+
<child>
|
|
94
|
+
<object class="GtkTextView" id="textview1">
|
|
95
|
+
<property name="visible">True</property>
|
|
96
|
+
<property name="can_focus">True</property>
|
|
97
|
+
</object>
|
|
98
|
+
</child>
|
|
99
|
+
</object>
|
|
100
|
+
</child>
|
|
101
|
+
<child type="label">
|
|
102
|
+
<object class="GtkLabel" id="label4">
|
|
103
|
+
<property name="visible">True</property>
|
|
104
|
+
<property name="label" translatable="yes"><b>description</b></property>
|
|
105
|
+
<property name="use_markup">True</property>
|
|
106
|
+
</object>
|
|
107
|
+
</child>
|
|
108
|
+
</object>
|
|
109
|
+
<packing>
|
|
110
|
+
<property name="position">2</property>
|
|
111
|
+
</packing>
|
|
112
|
+
</child>
|
|
113
|
+
</object>
|
|
114
|
+
</child>
|
|
115
|
+
<child type="label">
|
|
116
|
+
<object class="GtkLabel" id="label1">
|
|
117
|
+
<property name="visible">True</property>
|
|
118
|
+
<property name="label" translatable="yes"><b>celltype</b></property>
|
|
119
|
+
<property name="use_markup">True</property>
|
|
120
|
+
</object>
|
|
121
|
+
</child>
|
|
122
|
+
</object>
|
|
123
|
+
<packing>
|
|
124
|
+
<property name="position">1</property>
|
|
125
|
+
</packing>
|
|
126
|
+
</child>
|
|
127
|
+
<child internal-child="action_area">
|
|
128
|
+
<object class="GtkHButtonBox" id="dialog-action_area1">
|
|
129
|
+
<property name="visible">True</property>
|
|
130
|
+
<property name="layout_style">end</property>
|
|
131
|
+
<child>
|
|
132
|
+
<object class="GtkButton" id="button1">
|
|
133
|
+
<property name="label" translatable="yes">OK</property>
|
|
134
|
+
<property name="visible">True</property>
|
|
135
|
+
<property name="can_focus">True</property>
|
|
136
|
+
<property name="receives_default">True</property>
|
|
137
|
+
</object>
|
|
138
|
+
<packing>
|
|
139
|
+
<property name="expand">False</property>
|
|
140
|
+
<property name="fill">False</property>
|
|
141
|
+
<property name="position">0</property>
|
|
142
|
+
</packing>
|
|
143
|
+
</child>
|
|
144
|
+
<child>
|
|
145
|
+
<object class="GtkButton" id="button2">
|
|
146
|
+
<property name="label" translatable="yes">CANCEL</property>
|
|
147
|
+
<property name="visible">True</property>
|
|
148
|
+
<property name="can_focus">True</property>
|
|
149
|
+
<property name="receives_default">True</property>
|
|
150
|
+
</object>
|
|
151
|
+
<packing>
|
|
152
|
+
<property name="expand">False</property>
|
|
153
|
+
<property name="fill">False</property>
|
|
154
|
+
<property name="position">1</property>
|
|
155
|
+
</packing>
|
|
156
|
+
</child>
|
|
157
|
+
</object>
|
|
158
|
+
<packing>
|
|
159
|
+
<property name="expand">False</property>
|
|
160
|
+
<property name="pack_type">end</property>
|
|
161
|
+
<property name="position">0</property>
|
|
162
|
+
</packing>
|
|
163
|
+
</child>
|
|
164
|
+
</object>
|
|
165
|
+
</child>
|
|
166
|
+
<action-widgets>
|
|
167
|
+
<action-widget response="0">button1</action-widget>
|
|
168
|
+
<action-widget response="0">button2</action-widget>
|
|
169
|
+
</action-widgets>
|
|
170
|
+
</object>
|
|
171
|
+
<object class="GtkListStore" id="liststore1"/>
|
|
172
|
+
</interface>
|