Professional Documents
Culture Documents
Assignment
1. Complete the lines of code in file glpanel.cpp that are indicated by comments
/*** COMPLETE HERE - GLPANEL: XX ***/.
2. Add the following buttons to the tool bar of the program:
Fit: fit object image on program canvas.
Zoom in: zoom in (increase) object image on program canvas.
Zoom out: zoom out (reduce) object image on program canvas.
Pan left: move object image left on program canvas.
Pan right: move object image right on program canvas.
Pan down: move object image down on program canvas.
Pan up: move object image up on program canvas.
It is required to create icon imagens for each of these buttons.
3. Modify files myapp.h and myapp.cpp to treat actions associated to these buttons.
2. Edition of action name and tip text, and selection of image file with button icon:
Drag