Before you integrate your application into the desktop, you should have a basic understanding of how the desktop works. Install the Common Desktop Environment on your platform and familiarize yourself with its features. For an introduction to the desktop, see the CDE User's Guide or the Desktop Introduction online help volume.
Because the Common Desktop Environment targets end users as its primary customers, providing an application that hides UNIX as much as possible is a key ingredient to a successful product.
Successful applications in the Common Desktop Environment share look-and-feel characteristics with other applications on the desktop. Follow the style and other guidelines (such as the Common Desktop Environment standard font names) so that your application encompasses the Common Desktop Environment Motif look and feel.
Provide an easily readable default font size, and provide keyboard accelerators for mouse-oriented actions. Use the desktop online help component to integrate a complete Help system into your application. Basic computer interaction styles should be consistent across platforms wherever possible.
The Common Desktop Environment provides a set of desktop integration services that enable applications to be well-integrated into the desktop. Users benefit because they do not have to know whether an application is running on a local machine or somewhere on the network, or which toolkit (if any) was used to write the application they are running. Provide mechanisms in your application that enable it to be launched from the desktop and to communicate with other Common Desktop Environment applications. Use the online Help system to provide users with quick information. Use drag and drop to provide users with a more predictable way to use their systems.
By following the Common Desktop Environment conventions and policies, your application will naturally provide for smooth, consistent, and appropriate customization of:
To run properly, Common Desktop Environment-based applications require an environment in which some files from the following run-time directories are installed:
For a listing of the minimum run-time environment required to run a Common Desktop Environment application, see the dtfilsys(5) man page.
The run-time environment includes Common Desktop Environment Motif, which is Motif 1.2.3 with bug fixes and enhancements. (For a description of these enhancements, see Appendix A, "Common Desktop Environment Motif.") For more information on the Common Desktop Environment run-time environment, see the run-time documentation set.
Characteristics of Existing X-based Applications | Interoperability Status with Desktop |
Motif 1.2 (and later) drag and drop (using preregister protocol) | Yes |
Motif 1.2 (and later) drag and drop (using dynamic protocol) | No1 |
Cut and paste (all applications) | Yes |
OPEN LOOK Drag and drop | Yes (except multiple-item drag and drop)2 |
ToolTalk Media Exchange and Desktop protocols | Yes |
1. This is a Motif 1.2 drag-and-drop dynamic protocol interoperability problem, and it is not due to the Common Desktop Environment. [Return to text]
2. This is implemented through a protocol translation mechanism in the
drop sited database manager (dsdm
). [Return to text]
If you want to recompile and relink an existing Motif application with the Common Desktop Environment Motif shared libraries, the application must be compatible with Motif 1.2.
Each demo subdirectory contains source files for one or more demo programs, along with makefiles for the programs. It also contains a README file that describes the demos.
The demo whose source is in the template subdirectory is a simple drawing program. This demo illustrates the basic structure of a Common Desktop Environment application that is integrated with the desktop. It is internationalized and contains all localized components in a separate subdirectory. You can use the drawing program source as a template for your application.
MANPATH = $MANPATH:/usr/dt/man
For a listing of the /usr/dt/man subdirectories and contents, see Table 2-2. For more information on the man() command, see the man(1) man page.
Directory | Subdirectory | Contents |
examples |
Subdirectories that contain source code for development environment
component demo programs
README file |
|
dtaction |
Action invocation API demos | |
dtbuilder |
Application Builder examples | |
dtcalendar |
Calendar API demos | |
dtdnd |
Drag-and-drop API demos | |
dtdts |
Data-typing API demos | |
dthelp |
Help API demos | |
dtksh |
dtksh example scripts |
|
dtsession |
Session Manager API demos | |
dtterm |
Terminal Emulator widget API demos | |
dtwidget |
Common Desktop Environment Motif widgets demos | |
dtwsm |
Workspace Manager API demos | |
template |
Template Common Desktop Environment application | |
motif |
Motif 1.2 API demos | |
motif/clipboard |
XmClipboard API demo |
|
motif/dogs |
Widget binary compatibility mechanism demo | |
motif/draganddrop |
Motif 1.2 drag-and-drop API demo | |
motif/periodic |
Motif widgets demo | |
tt |
ToolTalk Messaging Service demos | |
include |
Development environment library header files | |
csa |
Calendar header files | |
Dt |
Header files for DtSvc , DtWidget ,
DtHelp , and DtTerm |
|
Mrm |
Motif 1.2 resource manager header files | |
Tt |
ToolTalk Messaging Service header files | |
Xm |
Motif 1.2 toolkit header files | |
uil |
Motif 1.2-callable UIL compiler header files | |
lib |
Library files for libcsa (Calendar),
libDtHelp (Help system),
libDtSvc (actions, data typing, drag and drop, Session
Manager, Workspace Manager),
libDtTerm (Terminal Emulator),
libDtWidget (Common Desktop Environment Motif control and
editor widgets),
libMrm (Motif 1.2 resource manager),
libUil (Motif 1.2-callable UIL compiler),
libXm (Motif 1.2 toolkit),
libtt (ToolTalk) |
|
man |
Development environment man pages | |
man1 |
Client and utility man pages | |
man3 |
API man pages | |
man4 |
Data formats | |
man5 |
Header file and action man pages |