Professional Documents
Culture Documents
Standard
9 Feb 2009
Standard C++ Library does include some standard exception classes for you to subclass:
#include
<stdexcept>
9 Feb 2009
example
9 Feb 2009
Ph.D. thesis at MIT manipulate graphical objects on screen master diagram once
multiple copies, tweak (OO design) system (e.g., keep two lines at fixed angle)
CMPT166: GUI, FLTK 9 Feb 2009 5
Constraint-based
system
9 Feb 2009
Microcomputers: WIMP
Desktop Smalltalk
Pure Integrated
OO language
to open/run
Macintosh (1984):
Much
Accessible
Mass-marketing
windows
Popularity
transparency (Xwin32)
that provide a way to build a GUI that look just like Windows:
Menus/windows
Link
Other
Cross-platform:
Dynamic
Need
FLTK-1
a button a key the mouse the window when user clicks Ok bye! a circle where the user clicks the mouse
in a text box
Press Move
9 Feb 2009
13
Using Fluid
Fluid is FLTK's interactive GUI
designer
Drag Write
Saves *.fl Fluid files; exports *.cxx/*.h code Compile and link this code into your program It is possible to write a whole program in Fluid But better to separate GUI from main program
Akin
Minimal
But
BankInterest:
Main
program functionality
Provides
calc_balance()
CMPT166: GUI, FLTK 9 Feb 2009 15
which which
CubeMain.cxx:
main()
instantiates a CubeViewUI
CMPT166: GUI, FLTK 9 Feb 2009 16