Download presentation
Presentation is loading. Please wait.
Published byKathleen Nelson Modified over 9 years ago
1
The GUI Burden ATS 315 Stephenson, 118-125
2
Booting Your PC Starts off with some text with lots of cryptic messages. Next, the ugly windows logo…
3
Then the Beautiful GUI
4
Why start off in a text mode? Thousands of possible monitors Thousands of possible video cards = Millions of possible combinations All they have in command is “VGA” mode.
5
Drivers Translate the computers instructions into instructions for the specific brands of peripherals on your computer. The computer itself cannot care about the brand of hardware attached—it just talks to the drivers and the drivers sort it out.
6
Where are the drivers? Buried. In binary. You can set some of the features of these drivers in the Display dialog box…
8
Macintosh Never see text at boot A lovely “welcome screen” Why so different?
9
Unix At log in, you are on a glass teletype (tty) –Why? –Server knows NOTHING about your computer’s hardware –…or its own hardware!
10
Starting Xwindows Log in on wx-sun1 itself
11
XWindows A set of programs that reproduces the graphical metaphors in Unix XWindows itself is extremely ugly…
12
Window Managers A set of programs and settings that gives XWindows a coherent, modern “look and feel”. In cygwin, we are running XWin, which makes the windows look just like WindowsXP windows. (startxwin.sh)
13
CDE Common Desktop Environment
15
GNOME
17
KDE
19
Redmond98
21
Aqua
23
Transparent
25
Enlightenment
28
And Many More!
29
Developing Programs for a GUI A simple program: grep –grep simply searches files for the requested string. –grep fopen *.c
30
grep.c Is probably very simple and short: while(!feof(fin)) { –fscanf(fin, “%s”,&string2); –if (!strcmp(string1,string2)) printf (“%s”,string1); }
31
A grep XWindows Program Would have to open a window:
32
A grep XWindows Program Would have to prompt the user for the string to search for and the files to search in. Requires loading fonts, choosing colors for the fonts, etc. (i.e., the attributes of the text) What text are you looking for? In which file should I look?
33
A grep XWindows Program Would have to set up dialog boxes in which the user could enter text. What text are you looking for? In which file should I look?
34
A grep XWindows Program Would have to know how to work with the mouse, mousebuttons, etc. What text are you looking for? In which file should I look?
35
A grep XWindows Program Would need buttons for Search and probably for Cancel. What text are you looking for? In which file should I look? Search Cancel
36
A grep XWindows Program All of this is BEFORE you write the part of the program that actually searches for the text! What text are you looking for? In which file should I look? Search Cancel
37
A grep XWindows Program This program would be thousands of lines long! Hardly worth the work! What text are you looking for? In which file should I look? Search Cancel
38
Omnibus Programs Microsoft Office Microsoft Windows Explorer
39
Microsoft Office File Open Tools Search
40
Microsoft Office
41
Microsoft Windows Explorer Press Windows-F
42
Microsoft Windows Explorer
43
Microsoft Office Becomes full of “features” –= rand(5,4) dd
44
Microsoft Windows Explorer Becomes full of “features”
45
Big Programs have bugs that are hard to find!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.