![[Book Cover]](../covergif/ph_bkcvr.gif)
|
Object Oriented Programming with C++ and OSF/Motif, 2/e
Douglas A. Young, Mountain View, CA
Published June, 1995 by Prentice Hall PTR (ECS Professional)
Copyright 1995, 464 pp.
Paper
ISBN 0-13-209255-7
|
Sign up for future mailings on this subject.
See other books about:
User Interface Design-Computer Science
X-Windows/OSF Motif-Computer Science
|

Completely updated to cover Motif Release 1.2 and
2.0, this second edition shows how to design reusable user interface
components based on Motif, and how C++ and Motif can be used together
effectively.
part I introduces the mechanics of using C++ and Motif with
an emphasis on object-oriented techniques.
part II explores additional ideas for using Motif and C++,
while developing a small library of useful classes that support
applications based on Motif.
I. INTRODUCTION TO C++ AND MOTIF 1.
1. An X/Motif Tutorial Using C++ 7.
The X/Motif Architecture 7. Mixing C and C++ 12. Programming
with Motif and the Xt Intrinsics 15. The Motif Widget Set 31.
Customization and Resources 50. Summary 53.
2. C++ Classes and Widgets 54.
User Interface Components 56. Encapsulation and Class Design
69. Supporting Components with Base Classes 74. The UIComponent Class
95. User Interface Component Guidelines 111. Writing Components vs.
Writing Widgets 112. C++ Tricks and Techniques 113. Summary 118.
3. Designing with Objects 119.
Object-oriented Design and Development 120. CRC:
Classes/Responsibilities/Collaborators 123. A Design Notation 127.
Designing for Reusability 136. Summary 145.
4. TicTacToe: Design 146.
Defining the Problem 147. Finding the Objects 147. Developing
Initial Class Cards 149. Finalizing the Design 153. Designing the
TicTacToe User Interface 161. Summary 167.
5. TicTacToe: Implementation 168.
The TicTacToe Class 169. The GameBoard Class 174. The Message
Class 186. The Command Class 188. The Engine Subsystem 192. Putting It
All Together 205. Summary 208.
II. APPLICATION FRAMEWORKS 210.
6. The MotifApp Application Framework 21.
An Overview 215. A Simple List Template 219. The Application
Class 221. The MainWindow Class 229. The MotifApp main() Function 234.
The MotifApp Library 235. Using the Application Framework 236. Summary
240.
7. Dialogs 241.
Using Dialogs 241. The DialogManager Class 248. The
InfoDialogManager Class 256. The QuestionDialogManager Class 261.
Summary 265.
8. Command Classes 266.
The Cmd Class 267. The CmdInterface Class 278. The NoUndoCmd
Class 281. The UndoCmd Class 282. The AskFirstCmd Class 284. The
WarnNoUndoCmd Class 286. Summary 289.
9. A Simple Menu System 290.
The ButtonInterface Class 291. The MenuBar Class 292. The
MenuWindow Class 295. A MenuBar Example 297. Summary 310.
10. Lengthy Tasks 311.
Strategies for Busy Applications 312. The
WorkingDialogManager Class 317. The InterruptibleCmd Class 330.
An Example Program 337. Summary 357.
11. A Color Chooser 358.
Models and Views 358. A ColorChooser Dialog 361. Summary 391.
12. A MotifApp Application 393.
An Overview of Bounce 393. The Stage Class 396. Driving the
Animation 402. The Control Panel 409. Actors 417. The AddBallCmd Class
424. The BounceWindow Class 425. Building and Running Bounce 430.
Summary 433.
Bibliography 435.
Getting Source Code 437.
Index 439.
|