Documentation Home
> Solaris Common Desktop Environment: Programmer's Guide
Solaris Common Desktop Environment: Programmer's Guide
Book Information
Preface
Part I Basic Integration
Chapter 1 Basic Application Integration
Basic Integration Features
Organization of Basic Integration Information
Basic Integration Tasks
Levels of Printing
Complete Print Integration
Desktop Printing Environment Variables
A Fully Integrated Print Action
Creating Print Actions for Filtered Data or Data Ready to Print
Partial Print Integration
Providing the Print Command for Partial Integration
Turning Environment Variables into Command-Line Switches
Nonintegrated Printing
Creating a Registration Package for Your Application
Part II Recommended Integration
Chapter 2 Integrating Fonts
Standard Interface Fonts
Default Font Names
Point Sizes for Standard Interface Fonts
Patterns for the Standard Interface Font Names
Using Fonts in CDE Configuration Files
Standard Application Fonts
Default Font Names
Point Sizes for Standard Application Fonts
Standard Application Font Names in app-defaults Files
Chapter 3 Displaying Errors from Your Application
How to Present Error Messages
Information to Present in Error Dialogs
Linking Message Dialogs to Online Help
Recovery Routines
Chapter 4 Integrating with Session Manager
How Session Manager Saves Sessions and Applications
How to Program the Application for Session Management
Setting the Program Environment
Setting the WM_SAVE_YOURSELF Atom
Prepare to Receive the WM_SAVE_YOURSELF Message
Processing the WM_SAVE_YOURSELF Message
Setting the WM_COMMAND Property
How Session Manager Restores a Session
Chapter 5 Integrating with Drag and Drop
Summary
Library and Header Files
Demo Program
Using Drag and Drop
To Integrate with Drag and Drop
Drag-and-Drop User Model
Drag and Drop Capability
Drag Icons
Parts of the Drag Icon
Drags from Inside Windows
Visual Feedback
Drop Zone Feedback
Transition Effects
Drag-and-Drop Sources
Drag-and-Drop Destinations
Drag-and-Drop Convenience API
Simplify Use for Developers
Establish Policy
Provide Common Functionality
Leverage Existing Motif API
Drag-and-Drop Transaction
Integration Action Plan
Review Drag-and-Drop API and Sample Code
Review Your Application for Possible Drop Zones
Review Your Application for Possible Drag Sources
API Overview
DtSvc Library and Header File
Functions
The DtDndContext Structure
Protocols
Operations
How Drag Sources Are Used
Starting a Drag
Dragging from Lists or Icons
Drag Threshold
Btransfer or Badjust
Initiating a Drag
Using Convert Callbacks
How Drop Zones Are Used
Registering a Drop Zone
Using the Transfer Callback
Using Data Typing
Part III Optional Integration
Chapter 6 Integrating with the Workspace Manager
Communicating with the Workspace Manager
Placing an Application Window in Workspaces
To Place an Application Window in All Workspaces
To Place an Application Window in Specified Workspaces
Identifying Workspaces Containing the Application Windows
To Identify Workspaces That Contain the Application Window
Preventing Application Movement Among Workspaces
To Prevent Movement to Another Workspace
Monitoring Workspace Changes
To Monitor Workspace Switching
To Monitor Other Workspace Changes
Chapter 7 Common Desktop Environment Motif Widgets
Menu Button Widget (DtMenuButton)
Library and Header Files
Demo Program
Convenience Functions
Classes
Resources
Callback Structures
Example of DtMenuButton Widget
Text Editor Widget (DtEditor)
Library and Header Files
Demo Program
Classes
Convenience Functions
Life Cycle Functions
Input/Output Functions
Selection Functions
Format Functions
Find and Change Functions
Auxiliary Functions
Resources
Inherited Resources
Localization Resources
Callback Functions
Chapter 8 Invoking Actions from Applications
Mechanisms for Invoking Actions from an Application
Types of Actions
Action Invocation API
Related Information
actions.c Example Program
Loading the Database of Actions and Data Types
To Initialize the Desktop Services Library
DtInitialize() Example
To Load the Actions and Data-Typing Database
To Request Notification of Reload Events
Checking the Actions Database
To Determine Whether a Specified Action Definition Exists
To Obtain the Icon Image Information for a Specified Action
To Get the Localized Label for an Action
Invoking Actions
To Invoke an Action
Listing for actions.c
Chapter 9 Accessing the Data-Typing Database
Summary
Library and Header Files
Demo Program
Data Criteria and Data Attributes
Data-Typing Functions
Simple Data Typing
Intermediate Data Typing
Advanced Data Typing
Data Types That Are Actions (DtDtsDataTypeIsAction)
Registering Objects as Drop Zones
Example of Using the Data-Typing Database
Chapter 10 Integrating with Calendar
Library and Header Files
Demo Program
Using the Calendar API
How to Integrate with Calendar
Overview of the CSA API
C Naming Conventions
Functional Architecture
Implementation Model
Data Model
Calendar Entities
Access Rights
Functional Overview
Administration
Calendar Management
Entry Management
Extensions
About the CDE Implementation
Access models supported
Data Structures
Calendar Attributes
Entry Attributes
CDE Entry Attributes
Entry Attributes for Recurrence Information
Supported Values by Data Version
General Information About Functions
Function Extensions Supported
Administration Functions
Calendar Management Functions
Entry Management Functions
Code Examples
Listing and Printing Calendars
Adding a Calendar
Logging on to a Calendar
Terminating a Calendar Session
Deleting a Calendar
Adding a Calendar Entry
Looking Up Entries in a Calendar
Updating a Calendar Entry
Registering Callback and Keep Reminders
Glossary
Index
A
B
C
D
E
F
H
I
L
M
N
O
P
R
S
T
U
V
W
© 2010, Oracle Corporation and/or its affiliates