Skip to content

Commit

Permalink
pull request comments considered
Browse files Browse the repository at this point in the history
reacting to comments, most have been accepted, one actively rejected
  • Loading branch information
stissing committed Mar 2, 2016
1 parent 425fa9a commit 67c59e9
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions scripts/screen_tool/README.md
@@ -0,0 +1,36 @@
# screen.rb

Script to generate a TouchGFX View and Presenter pair.
The script will generate new header and source files for these and
update the FrontendHeap and FrontendApplication accordingly.
Visual Studio project files will be updated to include the new files.

# Usage

Copy the screen_tool folder to your application root.
Run the tool from touchgfx-env by invoking the command

```
./screen_tool/screen.rb ScreenName
```

Replace ScreenName with the desired name of your screen.

# Example

```
cd app/template/EmptyApplication
./screen_tool/screen.rb Temperature
```

This will result in the following files being added and changed

* gui/include/gui/temperature_screen/TemperaturePresenter.hpp
* gui/include/gui/temperature_screen/TemperatureView.hpp
* gui/src/temperature_screen/TemperaturePresenter.cpp
* gui/src/temperature_screen/TemperatureView.cpp
* gui/include/gui/common/FrontendApplication.hpp
* gui/include/gui/common/FrontendHeap.hpp
* gui/src/common/FrontendApplication.cpp
* simulator/msvs/Application.vcxproj
* simulator/msvs/Application.vcxproj.filters
Expand Up @@ -61,7 +61,7 @@ def change_file(file_name, output = true)
name = ARGV.shift

if name.match(/[^A-Za-z]/)
puts "screen name should contain A-Z, a-z characters"; exit
puts "screen name must consist of characters A-Z and a-z only"; exit
end

the_name = name.snake_case
Expand Down

0 comments on commit 67c59e9

Please sign in to comment.