2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
25 * $XConsortium: proj.h /main/3 1995/11/06 17:45:59 rswiston $
27 * @(#)proj.h 1.11 16 Feb 1994 cde_app_builder/src/
29 * RESTRICTED CONFIDENTIAL INFORMATION:
31 * The information in this document is subject to special
32 * restrictions in a confidential disclosure agreement between
33 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
34 * document outside HP, IBM, Sun, USL, SCO, or Univel without
35 * Sun's specific written approval. This document and all copies
36 * and derivative works thereof must be returned or destroyed at
39 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
45 * Header file for the project window
52 #include <ab_private/ui_util.h>
53 #include "dtb_utils.h"
55 #define IMPORT_BY_REF 0
56 #define IMPORT_BY_COPY 1
57 #define IMPORT_AS_BIL 2
58 #define IMPORT_AS_UIL 3
61 AB_OPEN_PROJ_CHOOSER = 0,
62 AB_SAVE_PROJ_AS_CHOOSER,
65 AB_SAVE_MOD_AS_CHOOSER,
66 AB_CHOOSER_TYPE_NUM_VALUES
72 PROJ_STATUS_PROJ_PATH, /* number of valid values - MUST BE LAST */
73 PROJ_STATUS_NUM_VALUES
74 /* ANSI: no comma after last enum item! */
79 AB_CHOOSER_TYPE chooser_type;
82 BOOL writeEncapsulated;
83 } ChooserInfoRec, *ChooserInfo;
87 * This is only used for projects right now, but it can be used for other
88 * types of saves, as well.
90 #define AB_SAVE_CANCELLED (-1) /* errors are negative */
91 #define AB_SAVE_NORMAL 1
92 #define AB_SAVE_SAVE_AS 2
94 typedef int ProjSaveCallbackFuncRec(int status);
95 typedef ProjSaveCallbackFuncRec *ProjSaveCallbackFunc;
99 void proj_add_objects(
103 void proj_delete_objects(
107 void proj_register_actions(
119 void proj_toggle_select(
123 extern int proj_set_project(
127 extern int proj_destroy_project(
131 extern ABObj proj_get_project(
134 extern int proj_set_cur_module(
138 extern ABObj proj_get_cur_module(
141 extern int proj_rename_module(
146 extern void proj_update_node(
150 extern int proj_update_stat_region(
151 PROJ_STATUS_INFO type,
155 extern BOOL proj_check_unsaved_edits(
159 extern void proj_create_new_proj(
163 extern void proj_name_proj( void );
165 extern int proj_set_files_exploded(ABObj project);
167 extern int proj_unset_files_exploded(ABObj project);
169 extern void proj_show_save_as_proj_chooser(
173 extern void proj_show_name_dlg(
178 extern void proj_show_export_bil_chooser(
183 extern BOOL proj_is_exploded(ABObj project);
185 extern int proj_overwrite_existing_file(
192 DTB_MODAL_ANSWER *answer
195 extern void proj_save_needed(
196 ProjSaveCallbackFunc saveDoneCB /* may be NULL */
199 extern int proj_save_encapsulated(
204 extern int proj_save_exploded( /* one file per module */
211 extern int proj_show_proj_dir(void);
214 extern void proj_open_proj_okCB(
216 XtPointer client_data,
217 XmSelectionBoxCallbackStruct *call_data
220 extern void proj_cancelCB(
222 XtPointer client_data,
223 XmSelectionBoxCallbackStruct *call_data
227 extern void proj_unmap_chooserCB(
229 XtPointer client_data,
233 extern void proj_show_save_proj_as_chooser(
235 ProjSaveCallbackFunc saveDoneCB
238 extern void proj_show_dialog(void);
240 extern void proj_import_okCB(
242 XtPointer client_data,
243 XmSelectionBoxCallbackStruct *call_data
246 extern STRING proj_cvt_mod_file_to_rel_path(
251 extern void proj_set_menus(
252 AB_CHOOSER_TYPE chooser_type,
256 extern Boolean proj_verify_name(
259 DtbMessageData msgData,
264 #endif /* _PROJ_H_ */