Skip to content

RobertJansson/CalculatorFX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

CalculatorFX

Uppsala University P2 - Lab4
JavaFX8-version of my calculator using MVC and FXML

CalculatorFX has been compiled into a program:
OS X: CalculatorFX.dmg

Controller
CalculatorFX.java - The main controller.

View
RootLayout.fxml -> CMenuController.java
RootLayout set up the window and menu-bar as the program start.
CNormal.fxml -> CNormalController.java
CNormal is always loaded with its normal keypad and display
CAdvanced.fxml -> CAdvancedController.java
CAdvanced can be toggled on/off in the File-menu. (The buttons in the advanced part are not wired yet, layout may also change).

Model
ModelBrain.java - The model of CalculatorFX.
Evaluation.java - A backtracking recursive descent, called by the model to perform an evaluation.

Note: Evaluations start at CNormalController <-> CNormalController <-> ModelBrain <-> Evaluation (where dive begins)

Tooling: Java 8 and an IDE with JavaFX. For Eclipse, update everything and go here for e(fx)clipse toolset:
http://www.eclipse.org/efxclipse/install.html
You would also want to install SceneBuilder. Oracle messed up the distribution but here is a better source:
http://gluonhq.com/open-source/scene-builder/

CalculatorFX is also using aguafx (http://aquafx-project.com). That move the programs menubar from its window into the menubar of the computer. The constructor in CalculatorFX.java (or FX8-start method) has a note what to change if that is not used. Menu bar height of 29 pixels must be added to viewer.

About

Uppsala University P2 - Lab4 (JavaFX)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors