Topic: need help to review Object User Interface
Author: elejaya@nuscc.nus.sg (Jayasooriah)
Date: 30 Oct 91 07:36:54 GMT Raw View
I teach C++ to outside groups as part of our continueing education
programme. I would like to supplement the course material with a package
that I call the Object User Inteface (OUI) which I had developed and use
for my own programming. It consists of a set of class libraries
in which the display, pull-down/pop-up and dialog menus, keyboard, mouse
are all represented as objects which can be used by instantiation only
(i.e. the user does not need to derive any classes). The display driver
and menus interface is supported in both text and grahic modes (although
text mode and graphic mode classes cannot be intermixed in the same
program concurrently). I wrote it using Borland C++ 2.0.
The simple hello-world equivalent of the a pull-down menu progam is:
// ===========================================================================
// Contents
//
// Simple Exercise on OUI "tmenu.hpp" Usage.
//
// End of Contents
// ===========================================================================
// ===========================================================================
// Interface Dependencies
#include <stdlib.h>
#include <oui/tmenu.hpp>
// End of Interface Dependencies
// ===========================================================================
// exit handler function
inline int eventSignal(void)
{ return (EVENT_SIGNAL); }
// say something about this program
int
aboutProgram(void)
{
tmenuDialog menu;
menu << "Object User Interface (OUI)"
<< "Version 1.0 (\xe1)" << "by"
<< "Jayasooriah"
<< "National University of Singapore";
while (menu.event() < EVENT_ESCAPE)
;
return (EVENT_ACCEPT);
} // aboutProgram(void)
main()
{
// set up program menu
tmenuProgram Program;
Program << tmenuEntry (aboutProgram, "\x15", 0)
<< tmenuEntry (eventSignal, "Exit", 1);
// install program menu
Program.install();
// dispatch events from program menu
while (Program.event() < EVENT_SIGNAL)
;
// delete program menu
Program.destroy();
return (EXIT_SUCCESS);
} // main()
// ===========================================================================
I would like to make it freely available to everyone through the net.
While I have no doubts that the package is efficient and suitable for
use by any C++ programmer who hasnt already developed the user interface
(mouse/keyboard/display) as it stands, I am a bit hesitant to distribute
it as a learning tool without passing the scrutiny of pundits in this
group who I think have had much more experience and famililiarity with
the object oriented paradigm than I have had. Thus I need volunteers.
If you like to help, you should have a PC with Borland C++ 2.0 and space
time to review the header files (about 2000 LOC). I will provide the
object user library and a very brief example file for each of the header
file which you can compile and run without having to do any
modifications. Unfortunately, the documentation is not ready yet.
I do this for free (being a teacher by profession, I am a sucker for anyone
who approcaches me saying he wants to learn something I know about) and
thus I cannot afford to pay you for your service. I am doing this as a
voluntary service and I need your comments to satisfy me that what I am
thinking of releasing to public doman is the right thing to do.
I must say that the contributions to this group by many people have
infleunced the conversion of my C user interface library to C++,
particularly Josh (IBM I think) whose oo-solution to every question
people have asked on the net has been a silent contributer to OUI as it
stands now.
If there are any volunteers, please contact me by email. I am prepared
to consider requests for full source for those can assist me.
Jaya
--
Jayasooriah Department of Electrical Engineering
Voice: +65 772-2295 National University of Singapore
TeleFax: +65 772-1103 10 Kent Ridge Crescent
Internet: elejaya@nuscc.nus.sg Singapore 0511
Author: elejaya@nuscc.nus.sg (Jayasooriah)
Date: 3 Nov 91 15:05:51 GMT Raw View
Thanks to the many of you who responded to my earlier request for
reviewers for my OUI package. I have acknowledged you individually.
If you havent got my acknowledgement yet, please mail me again (I might
have mistyped your addresses in my mailing list.
I will revert back to the net when the first round of reviews are
completed.
Many thanks again.
Jaya
--
Jayasooriah Department of Electrical Engineering
Voice: +65 772-2295 National University of Singapore
TeleFax: +65 772-1103 10 Kent Ridge Crescent
Internet: elejaya@nuscc.nus.sg Singapore 0511