![]() |
![]() |
| |
Chapter 4Development Environment Transition IssuesIf you want to port an OPEN LOOK or Motif application to the Solaris CDE desktop, you need to consider the development environment transition as well as the graphical user interface (GUI) transition. The OpenWindows and Solaris CDE development environments are different in many ways but similar in others. This chapter compares and contrasts the two development environments. The Solaris CDE desktop is based on the same X server as is part of the OpenWindows environment. For example, you can access Display PostScript (DPS), and the XIL and XGL libraries from Solaris CDE. Features Exclusive to Solaris CDEThis section briefly describes the features of the Solaris CDE development environment that do not appear in the OpenWindows environment in any analogous form.
OpenWindows Versus Solaris CDE Development EnvironmentsThis section contrasts some of the functionality that OpenWindows and Solaris CDE development environments have in common, but that might be implemented differently. GUI Application BuildersBoth the OpenWindows and Solaris CDE development environments contain GUI application builders.
If you have used Devguide to build an application, the CDE Application Builder will feel very familiar to you. The palette is visually similar. Much of the Devguide functionality is retained, such as the Build and Test feature and the ability to build projects. See Common Desktop Environment: Programmer's Overview and Common Desktop Environment: Application Builder User's Guide for more information on App Builder. Drag and DropThe underlying basic functionality of OpenWindows drag and drop and CDE drag and drop are similar. Both versions of drag and drop contain general purpose APIs that provide the same outcome from a user's perspective. However, CDE drag and drop also provides a convenience API that serves two purposes:
The OpenWindows environment has conventions for drag and drop policies, but it is up to the developer to implement the policies. If you use drag and drop in your OPEN LOOK application, much of the data transfer code you wrote can be condensed by using the CDE convenience APIs. See Common Desktop Environment: Programmer's Overview and Solaris Common Desktop Environment: Programmer's Guide for more information on CDE drag and drop. ToolTalk MessagingOpenWindows ToolTalk messaging is compatible with the CDE ToolTalk Messaging Service. In addition to the OpenWindows ToolTalk functionality, the CDE ToolTalk Messaging Service provides:
See Common Desktop Environment: Programmer's Overview, Common Desktop Environment: ToolTalk Messaging Overview, and the tttrace(1) and ttsnoop(1) man pages for more information on the CDE extensions of ToolTalk. TypingThe OpenWindows classing engine identifies the characteristics, or attributes, of files. The classing engine specifies attributes such as print method, icons, and open commands for specific file types. The classing engine consists of two parts:
The Solaris CDE data typing and actions form the analog of the classing engine. The data-typing mechanism consists of two tables (DATA_ATTRIBUTES and DATA_CRITERIA) that specify attributes such as icons, actions, and commands for specific file types. DATA_CRITERIA corresponds to the classing engine's File name space. DATA_ATTRIBUTES corresponds to the classing engine's Type name space. The actions field in the DATA_ATTRIBUTES table corresponds to the former print and open methods in the classing engine. In the Solaris CDE development environment, it acts as a reference to another table called ACTION, and is greatly enhanced over the former classing engine methods. See Common Desktop Environment: Programmer's Overview and Solaris Common Desktop Environment: Programmer's Guide for more information on data typing and actions. HelpCDE help differs from OpenWindows help in three areas:
See Common Desktop Environment: Programmer's Overview and Common Desktop Environment: Help System Author's and Programmer's Guide for more information on the CDE help system. | |
| |