-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
2,888 additions
and
695 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ A embedded engineering calculator suite for doing calculations in a breeze. | |
|
||
- Author: gbmhunter <[email protected]> (http://www.mbedded.ninja) | ||
- Created: 2015-11-02 | ||
- Last Modified: 2016-01-31 | ||
- Version: v1.0.0 | ||
- Last Modified: 2016-03-27 | ||
- Version: v1.1.0 | ||
- Company: mbedded.ninja | ||
- Project: NinjaTerm | ||
- Language: Java | ||
|
@@ -24,14 +24,15 @@ A embedded engineering calculator suite for doing calculations in a breeze. | |
Motivation | ||
========== | ||
|
||
The goal of this is to provide a easy-to-use desktop application to help you with all those small, frequent calculations you do while doing embedded engineering (or other forms of engineering). Whether it be a low-pass LC filter, a resistor divider, or even just Ohm's law (o.k., I hope you don't forget that one, but it is included none-the-less), this app makes them easy to find, use, and have confidence in the answers. | ||
The goal of this is to provide a easy-to-use desktop application to help you with all those small, frequent calculations you do while doing embedded engineering (or other forms of engineering). Whether it be a low-pass LC filter, a resistor divider, trying to find PCB track current, or even just Ohm's law (o.k., I hope you don't forget that one, but it is included none-the-less), this app makes them easy to find, use, and have confidence in the answers. | ||
|
||
|
||
Features | ||
-------- | ||
======== | ||
|
||
See the `project home page`_ for a list of features. | ||
|
||
|
||
Installation | ||
============ | ||
|
||
|
@@ -45,7 +46,7 @@ Developing | |
========== | ||
|
||
#. Download/clone this repository into a folder on your computer. | ||
#. Open the project in Visual Studio. | ||
#. Open the project in IntelliJ (:code:`.idea/workspace.xml` file included in repo). | ||
#. Develop! | ||
|
||
Making Your Own Calculators | ||
|
@@ -63,8 +64,8 @@ Creating a static diagram image and laying the calculator variable UI elements o | |
|
||
All calculators that use static images for their background diagrams have a Visio file called :code:`diagram.vsd` in their respective folder. Microsoft Visio is used to create the diagram, which is then exported as an image and used inside the NinjaCalc application. | ||
|
||
Creating An Installable Package | ||
------------------------------- | ||
Creating Installable Packages | ||
----------------------------- | ||
|
||
The team at `ej-technologies <https://www.ej-technologies.com/>`_ have graciously donated me an open-source licensed version of |install4j|, `the multi-platform installer builder for Java applications | ||
<http://www.ej-technologies.com/products/install4j/overview.html>`_. | ||
|
@@ -75,16 +76,33 @@ The install4j script is located at :code:`/NinjaCalc.install4j`. | |
|
||
.. |install4j| image:: https://www.ej-technologies.com/images/product_banners/install4j_small.png | ||
|
||
#. Open the :code:`/NinjaCalc.install4j` file in "install4j Multi-Platform Edition". | ||
#. Update the "Version" field as appropriate. | ||
#. Click the "Build Project" button. | ||
#. Wait until build completes. install4j should have created installer files for each supported platform (currently Windows and Mac OS) in the :code:`install` directory. | ||
#. Upload the installable packages to GitHub as a new release (if appropriate). | ||
#. Update the download button links on the homepage in the :code:`gh-pages` branch of the repo to point to the new release files. | ||
|
||
|
||
File Structure | ||
============== | ||
|
||
Sorted by alphabetical order. | ||
|
||
(root level) | ||
------------ | ||
|
||
Contains the install4j script for generating single-file installable packages for the various operating systems. | ||
|
||
install/ | ||
-------- | ||
|
||
Contains the Inno Setup script for generating a single-file installable package (.exe). When this .exe is generated, it is placed into :code:`install/Output/` by the setup script. | ||
The install4j script in the repo's root directory will instruct install4j to place deployment-ready NinjaCalc installers for the various operating systems here. | ||
|
||
out/ | ||
---- | ||
|
||
IntelliJ IDEA will place output Java files when debugging/building in this directory. | ||
|
||
src/ | ||
---- | ||
|
@@ -93,11 +111,20 @@ Contains the source code. This is split into the following sub-directories: | |
|
||
calculators/ - Contains all of the data to create each calculator type. | ||
|
||
core/ - Contains all the "core", non-calculator specific classes that make up the Calculator app. | ||
Core/ - Contains all the "core", non-calculator specific classes that make up the backend calculator engine and front-end visual elements. | ||
|
||
Img/ - Contains images which are incorporated into the app. | ||
|
||
img/ - Contains images which are incorporated into the app. | ||
MainWindow/ - Contains the Java code and .fxml file describing the main window of NinjaCalc. | ||
|
||
test/ - Unit tests for each of the calculators, core modules and utility modules. The unit tests include the testing of the UI (more on this below). | ||
|
||
Utility/ - Contains helper Java classes which are not considered "core", but still used by multiple calculators. This includes things such as a library to help you find the closest standard E-series resistance (preferred value), and a library to convert from doubles to strings with metric prefixes and back again. | ||
|
||
Unit Tests | ||
========== | ||
|
||
Unit tests are under the :code:`src/test/` directory. They use the `TestFX library<https://github.com/TestFX/TestFX>`_ to test the JavaFX UI for each calculator. | ||
|
||
Changelog | ||
========= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.