dtkcmds.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  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)
  10. * any later version.
  11. *
  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
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: dtkcmds.h /main/6 1996/04/01 17:54:01 rswiston $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. **
  27. ** File: dtkcmds.h
  28. **
  29. ** Project: CDE
  30. **
  31. ** Description: Public include file for dtkcmds.c
  32. **
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
  35. ** by Hewlett-Packard Company
  36. **
  37. **
  38. **
  39. ****************************************************************************
  40. ************************************<+>*************************************/
  41. #ifndef _Dtksh_dtkcmds_h
  42. #define _Dtksh_dtkcmds_h
  43. #include <Dt/Wsm.h>
  44. #include <Dt/Print.h>
  45. #include "name.h"
  46. #define CONVERT_SUCCEEDED 1
  47. #define CONVERT_POSTPONED 0
  48. #define CONVERT_FAILED -1
  49. extern Widget Toplevel;
  50. extern char str_nill[];
  51. extern wtab_t * DTKSHConversionWidget;
  52. extern classtab_t * DTKSHConversionClass;
  53. extern char * DTKSHConversionResource;
  54. extern wtab_t * set_up_w(
  55. Widget wid,
  56. wtab_t *parent,
  57. char *var,
  58. char *name,
  59. classtab_t *class) ;
  60. extern void parse_args(
  61. char *arg0,
  62. int argc,
  63. char **argv,
  64. wtab_t *w,
  65. wtab_t *parent,
  66. classtab_t *class,
  67. int *n,
  68. Arg *args,
  69. int * pargc,
  70. char ** pargv,
  71. Boolean postponePixmaps ) ;
  72. extern void free_args(
  73. int n,
  74. Arg *args) ;
  75. extern int do_XtInitialize(
  76. int argc,
  77. char *argv[]) ;
  78. extern int do_XtCreateApplicationShell(
  79. int argc,
  80. char *argv[]) ;
  81. extern int do_XtCreatePopupShell(
  82. int argc,
  83. char *argv[]) ;
  84. extern int do_XtCreateManagedWidget(
  85. int argc,
  86. char *argv[]) ;
  87. extern int do_XtCreateWidget(
  88. int argc,
  89. char *argv[]) ;
  90. extern int do_XtPopup(
  91. int argc,
  92. char *argv[]) ;
  93. extern int do_XtDestroyWidget(
  94. int argc,
  95. char *argv[]) ;
  96. extern int do_single_widget_test_func(
  97. int (*func)(),
  98. int argc,
  99. char **argv) ;
  100. extern int do_XtIsSensitive(
  101. int argc,
  102. char *argv[]) ;
  103. extern int do_XtIsShell(
  104. int argc,
  105. char *argv[]) ;
  106. extern int do_XtIsManaged(
  107. int argc,
  108. char *argv[]) ;
  109. extern int do_XtIsRealized(
  110. int argc,
  111. char *argv[]) ;
  112. extern int do_XtRealizeWidget(
  113. int argc,
  114. char *argv[]) ;
  115. extern int do_XtUnrealizeWidget(
  116. int argc,
  117. char *argv[]) ;
  118. extern int do_XtMapWidget(
  119. int argc,
  120. char *argv[]) ;
  121. extern int do_XtUnmapWidget(
  122. int argc,
  123. char **argv) ;
  124. extern int do_XtPopdown(
  125. int argc,
  126. char **argv) ;
  127. extern int do_XtMainLoop(
  128. int argc,
  129. char **argv) ;
  130. extern int do_XtDisplay(
  131. int argc,
  132. char **argv) ;
  133. extern int do_XtDisplayOfObject(
  134. int argc,
  135. char **argv) ;
  136. extern int do_XtNameToWidget(
  137. int argc,
  138. char **argv) ;
  139. extern int do_XtScreen(
  140. int argc,
  141. char **argv) ;
  142. extern int do_XtWindow(
  143. int argc,
  144. char **argv) ;
  145. extern int do_XtCallCallbacks(
  146. int argc,
  147. char **argv) ;
  148. extern int do_XtHasCallbacks(
  149. int argc,
  150. char **argv) ;
  151. extern int do_XtAddCallback(
  152. int argc,
  153. char **argv) ;
  154. extern int AddOneCallback(
  155. char *cmd,
  156. char *widget,
  157. char *cbName,
  158. char *kshcmd,
  159. char *propAtomStr) ;
  160. extern int do_XtRemoveCallback(
  161. int argc,
  162. char **argv) ;
  163. extern int RemoveOneCallback(
  164. char *cmd,
  165. char *widget,
  166. char *cbName,
  167. char *kshcmd,
  168. char *propAtomStr,
  169. char *handleStr) ;
  170. extern int do_XtAddEventHandler(
  171. int argc,
  172. char **argv) ;
  173. extern int do_XtRemoveEventHandler(
  174. int argc,
  175. char **argv) ;
  176. extern int do_XtGetValues(
  177. int argc,
  178. char **argv) ;
  179. extern int do_XtSetValues(
  180. int argc,
  181. char **argv) ;
  182. extern int do_XtAddWorkProc(
  183. int argc,
  184. char *argv[]) ;
  185. extern int do_XtRemoveWorkProc(
  186. int argc,
  187. char *argv[]) ;
  188. extern int do_XtAddTimeOut(
  189. int argc,
  190. char *argv[]) ;
  191. extern int do_XtRemoveTimeOut(
  192. int argc,
  193. char *argv[]) ;
  194. extern int do_XtUnmanageChildren(
  195. int argc,
  196. char *argv[]) ;
  197. extern int do_XtManageChildren(
  198. int argc,
  199. char *argv[]) ;
  200. extern int do_XtIsSubclass(
  201. int argc,
  202. char *argv[]) ;
  203. extern int do_XtClass(
  204. int argc,
  205. char *argv[]) ;
  206. extern int do_managelist_func(
  207. int argc,
  208. char *argv[],
  209. int (*func)()) ;
  210. extern int create_standard_gc(
  211. Display *display,
  212. Window drawable) ;
  213. extern int do_XBell(
  214. int argc,
  215. char *argv[]) ;
  216. extern int do_XRootWindowOfScreen(
  217. int argc,
  218. char *argv[]) ;
  219. extern int do_XWidthOfScreen(
  220. int argc,
  221. char *argv[]) ;
  222. extern int do_XHeightOfScreen(
  223. int argc,
  224. char *argv[]) ;
  225. extern int do_XDefineCursor(
  226. int argc,
  227. char *argv[]) ;
  228. extern int do_XUndefineCursor(
  229. int argc,
  230. char *argv[]) ;
  231. extern int do_XtRemoveAllCallbacks(
  232. int argc,
  233. char *argv[]) ;
  234. extern int do_XTextWidth(
  235. int argc,
  236. char *argv[]) ;
  237. extern int do_XDrawArc(
  238. int argc,
  239. char *argv[]) ;
  240. extern int do_XDrawImageString(
  241. int argc,
  242. char *argv[]) ;
  243. extern int do_XDrawLine(
  244. int argc,
  245. char *argv[]) ;
  246. extern int do_XDrawLines(
  247. int argc,
  248. char *argv[]) ;
  249. extern int do_XDrawPoint(
  250. int argc,
  251. char *argv[]) ;
  252. extern int do_XDrawPoints(
  253. int argc,
  254. char *argv[]) ;
  255. extern int do_XDrawRectangle(
  256. int argc,
  257. char *argv[]) ;
  258. extern int do_XCopyArea(
  259. int argc,
  260. char *argv[]) ;
  261. extern int do_XDrawSegments(
  262. int argc,
  263. char *argv[]) ;
  264. extern int do_XDrawString(
  265. int argc,
  266. char *argv[]) ;
  267. extern int do_XFillArc(
  268. int argc,
  269. char *argv[]) ;
  270. extern int do_XFillPolygon(
  271. int argc,
  272. char *argv[]) ;
  273. extern int do_XFillRectangle(
  274. int argc,
  275. char *argv[]) ;
  276. extern int do_XClearArea(
  277. int argc,
  278. char *argv[]) ;
  279. extern int do_XClearWindow(
  280. int argc,
  281. char *argv[]) ;
  282. extern int ConvertTypeToString(
  283. char *arg0,
  284. classtab_t *class,
  285. wtab_t *w,
  286. wtab_t *parent,
  287. char *resource,
  288. XtArgVal val,
  289. char **ret) ;
  290. extern int ConvertStringToType(
  291. char *arg0,
  292. wtab_t *w,
  293. wtab_t *parent,
  294. classtab_t *class,
  295. char *resource,
  296. char *val,
  297. XtArgVal *ret,
  298. int *freeit,
  299. Boolean postponePixmaps) ;
  300. extern int do_XtAddInput(
  301. int argc,
  302. char *argv[]) ;
  303. extern int do_XtRemoveInput(
  304. int argc,
  305. char *argv[]) ;
  306. extern void Translation_ksh_eval(
  307. Widget w,
  308. XEvent *event,
  309. String *params,
  310. Cardinal *num_params) ;
  311. extern void RestorePriorEnvVarValues(
  312. Namval_t *np1,
  313. char *value1,
  314. Namval_t *np2,
  315. char *value2) ;
  316. extern void stdCB(
  317. void *widget,
  318. caddr_t clientData,
  319. caddr_t callData) ;
  320. extern void stdWSCB(
  321. void *widget,
  322. Atom atom,
  323. caddr_t clientData) ;
  324. extern void stdInputCB(
  325. inputrec_t *inp,
  326. int *source,
  327. XtInputId *id) ;
  328. extern int stdWorkProcCB(
  329. char *clientData) ;
  330. extern void stdTimerCB(
  331. char *clientData,
  332. long *id) ;
  333. extern void stdPrintSetupProc(
  334. int proctype,
  335. void *widget,
  336. DtPrintSetupData *callData);
  337. extern void stdPrinterInfoProc(
  338. void *widget,
  339. DtPrintSetupData *callData);
  340. extern void stdSelectFileProc(
  341. void *widget,
  342. DtPrintSetupData *callData);
  343. extern void stdSelectPrinterProc(
  344. void *widget,
  345. DtPrintSetupData *callData);
  346. extern void stdSetupProc(
  347. void *widget,
  348. DtPrintSetupData *callData);
  349. extern void stdVerifyPrinterProc(
  350. void *widget,
  351. DtPrintSetupData *callData);
  352. extern int do_VerifyString(
  353. int argc,
  354. char *argv[]) ;
  355. extern int do_XFlush(
  356. int argc,
  357. char *argv[]) ;
  358. extern int do_XSync(
  359. int argc,
  360. char *argv[]) ;
  361. extern int do_XRaiseWindow(
  362. int argc,
  363. char *argv[]) ;
  364. extern int do_XtSetSensitive(
  365. int argc,
  366. char *argv[]) ;
  367. extern int do_XtOverrideTranslations(
  368. int argc,
  369. char **argv) ;
  370. extern int do_XtAugmentTranslations(
  371. int argc,
  372. char **argv) ;
  373. extern int do_XtUninstallTranslations(
  374. int argc,
  375. char *argv[]) ;
  376. extern int do_XtParent(
  377. int argc,
  378. char **argv) ;
  379. extern int do_XtLastTimestampProcessed(
  380. int argc,
  381. char **argv) ;
  382. extern dtksh_client_data_t * GetNewCBData(
  383. char *ksh_cmd,
  384. wtab_t *w,
  385. char *cbname,
  386. Atom propAtom) ;
  387. extern int LocateCBRecord(
  388. wtab_t *w,
  389. char *cbname,
  390. char *ksh_cmd,
  391. Atom propAtom,
  392. DtWsmCBContext handle) ;
  393. extern void stdEH(
  394. void *widget,
  395. caddr_t clientData,
  396. XEvent *event,
  397. Boolean *continueToDispatch) ;
  398. extern dtksh_event_handler_data_t * GetNewEHData(
  399. char *ksh_cmd,
  400. wtab_t *w,
  401. EventMask eventMask,
  402. Boolean nonMaskable) ;
  403. extern int do_DtSessionRestorePath(
  404. int argc,
  405. char *argv[]) ;
  406. extern int do_DtSessionSavePath(
  407. int argc,
  408. char *argv[]) ;
  409. extern int do_DtShellIsIconified(
  410. int argc,
  411. char *argv[]) ;
  412. extern int do_DtSetStartupCommand(
  413. int argc,
  414. char *argv[]) ;
  415. extern int do_DtSetIconifyHint(
  416. int argc,
  417. char *argv[]) ;
  418. extern int do_DtWsmAddWorkspaceFunctions(
  419. int argc,
  420. char *argv[]) ;
  421. extern int do_DtWsmRemoveWorkspaceFunctions(
  422. int argc,
  423. char *argv[]) ;
  424. extern int do_DtWsmGetCurrentWorkspace(
  425. int argc,
  426. char *argv[]) ;
  427. extern int do_DtWsmSetCurrentWorkspace(
  428. int argc,
  429. char *argv[]) ;
  430. extern int do_DtWsmGetWorkspaceList(
  431. int argc,
  432. char *argv[]) ;
  433. extern int do_DtWsmGetWorkspacesOccupied(
  434. int argc,
  435. char *argv[]) ;
  436. extern int do_DtWsmSetWorkspacesOccupied(
  437. int argc,
  438. char *argv[]) ;
  439. extern int do_DtWsmGetCurrentBackdropWindow(
  440. int argc,
  441. char *argv[]) ;
  442. extern int do_DtWsmOccupyAllWorkspaces(
  443. int argc,
  444. char *argv[]) ;
  445. extern int do__DtGetHourGlassCursor(
  446. int argc,
  447. char *argv[]) ;
  448. extern int do__DtTurnOnHourGlass(
  449. int argc,
  450. char *argv[]) ;
  451. extern int do__DtTurnOffHourGlass(
  452. int argc,
  453. char *argv[]) ;
  454. extern int do_DtWsmAddCurrentWorkspaceCallback(
  455. int argc,
  456. char **argv) ;
  457. extern int do_DtWsmRemoveWorkspaceCallback(
  458. int argc,
  459. char **argv) ;
  460. extern int do_DtDbLoad(
  461. int argc,
  462. char *argv[]) ;
  463. extern int do_DtDbReloadNotify(
  464. int argc,
  465. char *argv[]) ;
  466. extern int do_DtActionExists(
  467. int argc,
  468. char *argv[]) ;
  469. extern int do_DtActionLabel(
  470. int argc,
  471. char *argv[]) ;
  472. extern int do_DtActionDescription(
  473. int argc,
  474. char *argv[]) ;
  475. extern int do_DtActionInvoke(
  476. int argc,
  477. char *argv[]) ;
  478. extern int do_DtDtsLoadDataTypes(
  479. int argc,
  480. char *argv[] );
  481. extern int do_DtDtsFileToDataType(
  482. int argc,
  483. char *argv[] );
  484. extern int do_DtDtsFileToAttributeValue(
  485. int argc,
  486. char *argv[] );
  487. extern int do_DtDtsFileToAttributeList(
  488. int argc,
  489. char *argv[] );
  490. extern int do_DtDtsDataTypeToAttributeValue(
  491. int argc,
  492. char *argv[] );
  493. extern int do_DtDtsDataTypeToAttributeList(
  494. int argc,
  495. char *argv[] );
  496. extern int do_DtDtsFindAttribute(
  497. int argc,
  498. char *argv[] );
  499. extern int do_DtDtsDataTypeNames(
  500. int argc,
  501. char *argv[] );
  502. extern int do_DtDtsSetDataType(
  503. int argc,
  504. char *argv[] );
  505. extern int do_DtDtsDataTypeIsAction(
  506. int argc,
  507. char *argv[] );
  508. extern int do_ttdt_open(
  509. int argc,
  510. char *argv[] );
  511. extern int do_ttdt_close(
  512. int argc,
  513. char *argv[] );
  514. extern int do_tttk_Xt_input_handler(
  515. int argc,
  516. char *argv[] );
  517. extern int do_ttdt_session_join(
  518. int argc,
  519. char *argv[] );
  520. extern int do_ttdt_session_quit(
  521. int argc,
  522. char *argv[] );
  523. extern int do_ttdt_file_event(
  524. int argc,
  525. char *argv[] );
  526. extern int do_ttdt_file_join(
  527. int argc,
  528. char *argv[] );
  529. extern int do_ttdt_file_quit(
  530. int argc,
  531. char *argv[] );
  532. extern int do_ttdt_Get_Modified(
  533. int argc,
  534. char *argv[] );
  535. extern int do_ttdt_Save(
  536. int argc,
  537. char *argv[] );
  538. extern int do_ttdt_Revert(
  539. int argc,
  540. char *argv[] );
  541. extern int do_tt_error_pointer(
  542. int argc,
  543. char *argv[] );
  544. extern int do_tttk_message_destroy(
  545. int argc,
  546. char *argv[] );
  547. extern int do_tt_message_reply(
  548. int argc,
  549. char *argv[] );
  550. extern int do_tttk_message_reject(
  551. int argc,
  552. char *argv[] );
  553. extern int do_tttk_message_fail(
  554. int argc,
  555. char *argv[] );
  556. extern int do_tt_file_netfile(
  557. int argc,
  558. char *argv[] );
  559. extern int do_tt_netfile_file(
  560. int argc,
  561. char *argv[] );
  562. extern int do_tt_host_file_netfile(
  563. int argc,
  564. char *argv[] );
  565. extern int do_tt_host_netfile_file(
  566. int argc,
  567. char *argv[] );
  568. extern Namval_t * GetNameValuePair(
  569. char *name) ;
  570. extern void FreeNestedVariables( void ) ;
  571. extern Namval_t * nopCreateDisc(
  572. Namval_t *np,
  573. char *name,
  574. Namfun_t *fp) ;
  575. extern Namval_t * dftCreateDisc(
  576. Namval_t *np,
  577. char *name,
  578. Namfun_t *fp) ;
  579. extern Namval_t * ehCreateDisc(
  580. Namval_t *np,
  581. char *name,
  582. Namfun_t *fp) ;
  583. extern Namval_t * transCreateDisc(
  584. Namval_t *np,
  585. char *name,
  586. Namfun_t *fp) ;
  587. extern Namval_t * scaleCreateDisc(
  588. Namval_t *np,
  589. char *name,
  590. Namfun_t *fp) ;
  591. extern Namval_t * arrowCreateDisc(
  592. Namval_t *np,
  593. char *name,
  594. Namfun_t *fp) ;
  595. extern Namval_t * comboCreateDisc(
  596. Namval_t *np,
  597. char *name,
  598. Namfun_t *fp) ;
  599. extern Namval_t * cmdCreateDisc(
  600. Namval_t *np,
  601. char *name,
  602. Namfun_t *fp) ;
  603. extern Namval_t * dAreaCreateDisc(
  604. Namval_t *np,
  605. char *name,
  606. Namfun_t *fp) ;
  607. extern Namval_t * dbtnCreateDisc(
  608. Namval_t *np,
  609. char *name,
  610. Namfun_t *fp) ;
  611. extern Namval_t * dtPrintSetupProcDisc(
  612. Namval_t *np,
  613. char *name,
  614. Namfun_t *fp);
  615. extern Namval_t * fselCreateDisc(
  616. Namval_t *np,
  617. char *name,
  618. Namfun_t *fp) ;
  619. extern Namval_t * listCreateDisc(
  620. Namval_t *np,
  621. char *name,
  622. Namfun_t *fp) ;
  623. extern Namval_t * pbtnCreateDisc(
  624. Namval_t *np,
  625. char *name,
  626. Namfun_t *fp) ;
  627. extern Namval_t * rcCreateDisc(
  628. Namval_t *np,
  629. char *name,
  630. Namfun_t *fp) ;
  631. extern Namval_t * sbarCreateDisc(
  632. Namval_t *np,
  633. char *name,
  634. Namfun_t *fp) ;
  635. extern Namval_t * swinCreateDisc(
  636. Namval_t *np,
  637. char *name,
  638. Namfun_t *fp) ;
  639. extern Namval_t * sboxCreateDisc(
  640. Namval_t *np,
  641. char *name,
  642. Namfun_t *fp) ;
  643. extern Namval_t * tbtnCreateDisc(
  644. Namval_t *np,
  645. char *name,
  646. Namfun_t *fp) ;
  647. extern Namval_t * textCreateDisc(
  648. Namval_t *np,
  649. char *name,
  650. Namfun_t *fp) ;
  651. extern Namval_t * textCreateDisc2(
  652. Namval_t *np,
  653. char *name,
  654. Namfun_t *fp) ;
  655. extern Namval_t * helpCreateDisc(
  656. Namval_t *np,
  657. char *name,
  658. Namfun_t *fp) ;
  659. extern int * LockKshFileDescriptors( void ) ;
  660. extern void UnlockKshFileDescriptors(
  661. int * fdList) ;
  662. #endif /* _Dtksh_dtkcmds_h */
  663. /* DON'T ADD ANYTHING AFTER THIS #endif */