1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941
|
/*******************************************************************************
applicationShell1.c
Associated Header file: applicationShell1.h
*******************************************************************************/
#include <stdio.h>
#include <Xm/Xm.h>
#include <Xm/MwmUtil.h>
#include <Xm/MenuShell.h>
#include "UxXt.h"
#include <Xm/List.h>
#include <Xm/Text.h>
#include <Xm/ScrolledW.h>
#include <Xm/Frame.h>
#include <Xm/TextF.h>
#include <Xm/Separator.h>
#include <Xm/Form.h>
#include <Xm/CascadeB.h>
#include <Xm/PushB.h>
#include <Xm/RowColumn.h>
#include <Xm/MainW.h>
#include <X11/Shell.h>
/*******************************************************************************
Includes, Defines, and Global variables from the Declarations Editor:
*******************************************************************************/
/*
Copyright (C) 1993, 1994, RSNA and Washington University
The software and supporting documentation for the Radiological
Society of North America (RSNA) 1993, 1994 Digital Imaging and
Communications in Medicine (DICOM) Demonstration were developed
at the
Electronic Radiology Laboratory
Mallinckrodt Institute of Radiology
Washington University School of Medicine
510 S. Kingshighway Blvd.
St. Louis, MO 63110
as part of the 1993, 1994 DICOM Central Test Node project for, and
under contract with, the Radiological Society of North America.
THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND NEITHER RSNA NOR
WASHINGTON UNIVERSITY MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS
PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY
SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF
THE SOFTWARE IS WITH THE USER.
Copyright of the software and supporting documentation is
jointly owned by RSNA and Washington University, and free access
is hereby granted as a license to use this software, copy this
software and prepare derivative works based upon this software.
However, any distribution of this software source code or
supporting documentation or derivative works (source code and
supporting documentation) must include the three paragraphs of
the copyright notice.
*/
/* Copyright marker. Copyright will be inserted above. Do not remove */
/*
** Electronic Radiology Laboratory
** Mallinckrodt Institute of Radiology
** Washington University School of Medicine
**
** Module Name(s): create_applicationShell1
** loadPatientStudyList
** Author, Date: Steve Moore, Summer 1994
** Intent: This file contains the code that defines the
** user interface for the rsa_ui application. This
** includes the code that creates the UI (by creating
** widgets), the code that loads data into the
** interface and the callback functions for user
** events (like list selection and button presses).
** The public interfaces create the widget
** hierarchy and loads the scrolled list of
** studies (for user selection from the event loop).
** Last Update: $Author: smm $, $Date: 1995-12-21 20:45:43 $
** Source File: $RCSfile: applicationShell1.c,v $
** Revision: $Revision: 1.6 $
** Status: $State: Exp $
*/
static char rcsid[] = "$Revision: 1.6 $ $RCSfile: applicationShell1.c,v $";
#include "dicom.h"
#include "condition.h"
#include "lst.h"
#include "dicom_objects.h"
#include "tbl.h"
#include "manage.h"
#include "fis.h"
#include "mut.h"
#include "rsa.h"
#include "format.h"
extern FIS_HANDLE *fisHandle;
extern DMAN_HANDLE *dmanHandle;
extern char applicationTitle[];
extern char *eventDestinations;
static LST_HEAD *patientList = NULL;
static LST_HEAD *patientStudyList = NULL;
static FIS_RESULTSRECORD results;
static FIS_INTERPRETATIONRECORD interpretation;
/*******************************************************************************
The following header file defines the context structure.
*******************************************************************************/
#define CONTEXT_MACRO_ACCESS 1
#include "applicationShell1.h"
#undef CONTEXT_MACRO_ACCESS
/*******************************************************************************
Auxiliary code from the Declarations Editor:
*******************************************************************************/
void
loadPatientStudyList()
{
CONDITION cond;
char b[256];
RSA_PATIENTSTUDY *p;
if (patientStudyList == NULL)
patientStudyList = LST_Create();
if (patientList == NULL)
patientList = LST_Create();
cond = FIS_Get(&fisHandle, FIS_K_PATIENT, FIS_K_PATIENT,
NULL, FIS_K_PAT_STUDYLIST, patientList);
if (cond != FIS_NORMAL) {
COND_DumpConditions();
return;
}
expandPatientStudy(patientList, patientStudyList);
MUT_LoadList(wPatientStudyList, patientStudyList, formatPatientStudy, b);
p = LST_Head(&patientStudyList);
if (p != NULL)
(void) LST_Position(&patientStudyList, p);
}
static void
displayImpressionsInterpretation()
{
CONDITION cond;
RSA_PATIENTSTUDY *p;
XmTextSetString(text1, "");
p = LST_Current(&patientStudyList);
if (p == NULL)
return;
memset(&results, 0, sizeof(results));
results.Type = FIS_K_RESULTS;
memset(&interpretation, 0, sizeof(interpretation));
interpretation.Type = FIS_K_INTERPRETATION;
cond = FIS_GetOne(&fisHandle, FIS_K_RESULTS, FIS_K_STUDY,
p->Study.StuInsUID, 0, &results);
if (cond != FIS_NORMAL) {
XmTextSetString(text1, "Failed to retrieve results record");
COND_DumpConditions();
return;
}
if (results.Flag & FIS_K_RESULTS_IMP)
XmTextSetString(wImpressionsTxt, results.Imp);
else
XmTextSetString(wImpressionsTxt, "<None>");
cond = FIS_GetOne(&fisHandle, FIS_K_INTERPRETATION, FIS_K_RESULTS,
results.ResUID, 0, &interpretation);
if (cond != FIS_NORMAL) {
XmTextSetString(text1, "Failed to retrieve interpretation record");
COND_DumpConditions();
return;
}
if (interpretation.Flag & FIS_K_INTERP_INTTEX)
XmTextSetString(wReportTxt, interpretation.IntTex);
else
XmTextSetString(wReportTxt, "<None>");
}
static void
updateImpressions()
{
CONDITION cond;
FIS_RESULTSRECORD localResults;
XmTextSetString(text1, "");
memcpy(&localResults, &results, sizeof(results));
localResults.Flag = FIS_K_RESULTS_IMP;
cond = FIS_Update(&fisHandle, FIS_K_RESULTS, &localResults);
if (cond != FIS_NORMAL) {
(void) MUT_DisplayConditionText(text1);
(void) COND_PopCondition(TRUE);
}
}
static void
updateInterpretation()
{
CONDITION cond;
FIS_INTERPRETATIONRECORD localInterpretation;
XmTextSetString(text1, "");
memcpy(&localInterpretation, &interpretation, sizeof(interpretation));
localInterpretation.Flag = FIS_K_INTERP_INTTEX;
cond = FIS_Update(&fisHandle, FIS_K_INTERPRETATION, &localInterpretation);
if (cond != FIS_NORMAL) {
(void) MUT_DisplayConditionText(text1);
(void) COND_PopCondition(TRUE);
}
}
/*******************************************************************************
The following are callback functions.
*******************************************************************************/
static void
activateCB_menu1_p1_b1(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
exit(0);
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_wClearReportButton(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
XmTextSetString(wReportTxt, "");
interpretation.IntTex[0] = '\0';
updateInterpretation();
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_wUpdateReportButton(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
CONDITION cond;
CTNBOOLEAN nullFlag;
cond = MUT_ScanWidget(wReportTxt, MUT_TEXT, &nullFlag,
interpretation.IntTex);
if (cond != MUT_NORMAL) {
MUT_DisplayConditionText(text1);
(void) COND_PopCondition(TRUE);
return;
}
if (nullFlag)
interpretation.IntTex[0] = '\0';
updateInterpretation();
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_pushButton3(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
CONDITION cond;
RSA_PATIENTSTUDY *p;
XmTextSetString(text1, "");
p = LST_Current(&patientStudyList);
if (p == NULL) {
XmTextSetString(text1, "No current study selected");
return;
}
cond = distributeEvent(&fisHandle, &dmanHandle, FIS_K_STUDY,
&p->Study, FIS_K_STUDY_SCHEDULED, applicationTitle,
eventDestinations);
if (cond != 1) {
(void) MUT_DisplayConditionText(text1);
(void) COND_PopCondition(TRUE);
} else {
XmTextSetString(text1, "Study Scheduled Event delivered");
}
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_pushButton4(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
CONDITION cond;
RSA_PATIENTSTUDY *p;
XmTextSetString(text1, "");
p = LST_Current(&patientStudyList);
if (p == NULL) {
XmTextSetString(text1, "No current study selected");
return;
}
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_pushButton5(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
CONDITION cond;
RSA_PATIENTSTUDY *p;
XmTextSetString(text1, "");
p = LST_Current(&patientStudyList);
if (p == NULL) {
XmTextSetString(text1, "No current study selected");
return;
}
UTL_GetDicomDate(p->Study.StuReaDat);
UTL_GetDicomTime(p->Study.StuReaTim);
p->Study.Flag |= FIS_K_STU_STUREADAT | FIS_K_STU_STUREATIM;
cond = distributeEvent(&fisHandle, &dmanHandle, FIS_K_STUDY,
&p->Study, FIS_K_STUDY_READ, applicationTitle,
eventDestinations);
if (cond != 1) {
(void) MUT_DisplayConditionText(text1);
(void) COND_PopCondition(TRUE);
} else {
XmTextSetString(text1, "Study Read Event delivered");
}
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
browseSelectionCB_wPatientStudyList(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
XmListCallbackStruct *listStruct;
RSA_PATIENTSTUDY *p;
char buf[256];
listStruct = (XmListCallbackStruct *) UxCallbackArg;
p = LST_Index(&patientStudyList, listStruct->item_position);
formatPatientStudy(p, 0, buf);
XmTextSetString(wPatientStudyTxt, buf);
displayImpressionsInterpretation(p);
XtSetSensitive(wClearImpressionsButton, TRUE);
XtSetSensitive(wUpdateImpressionsButton, TRUE);
XtSetSensitive(wClearReportButton, TRUE);
XtSetSensitive(wUpdateReportButton, TRUE);
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_wClearImpressionsButton(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
XmTextSetString(wImpressionsTxt, "");
results.Imp[0] = '\0';
updateImpressions();
}
UxApplicationShell1Context = UxSaveCtx;
}
static void
activateCB_wUpdateImpressionsButton(
Widget wgt,
XtPointer cd,
XtPointer cb)
{
_UxCapplicationShell1 *UxSaveCtx,
*UxContext;
Widget UxWidget = wgt;
XtPointer UxClientData = cd;
XtPointer UxCallbackArg = cb;
UxSaveCtx = UxApplicationShell1Context;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxGetContext(UxWidget);
{
CONDITION cond;
CTNBOOLEAN nullFlag;
cond = MUT_ScanWidget(wImpressionsTxt, MUT_TEXT, &nullFlag, results.Imp);
if (cond != MUT_NORMAL) {
MUT_DisplayConditionText(text1);
(void) COND_PopCondition(TRUE);
return;
}
if (nullFlag)
results.Imp[0] = '\0';
updateImpressions();
}
UxApplicationShell1Context = UxSaveCtx;
}
/*******************************************************************************
The 'build_' function creates all the widgets
using the resource values specified in the Property Editor.
*******************************************************************************/
static Widget
_Uxbuild_applicationShell1()
{
Widget _UxParent;
Widget menu1_p1_shell;
/* Creation of applicationShell1 */
_UxParent = UxParent;
if (_UxParent == NULL) {
_UxParent = UxTopLevel;
}
applicationShell1 = XtVaCreatePopupShell("applicationShell1",
applicationShellWidgetClass,
_UxParent,
XmNwidth, 900,
XmNheight, 780,
XmNx, 67,
XmNy, 92,
NULL);
UxPutContext(applicationShell1, (char *) UxApplicationShell1Context);
/* Creation of mainWindow1 */
mainWindow1 = XtVaCreateManagedWidget("mainWindow1",
xmMainWindowWidgetClass,
applicationShell1,
XmNwidth, 900,
XmNheight, 780,
XmNx, 0,
XmNy, 0,
XmNunitType, XmPIXELS,
NULL);
UxPutContext(mainWindow1, (char *) UxApplicationShell1Context);
/* Creation of menu1 */
menu1 = XtVaCreateManagedWidget("menu1",
xmRowColumnWidgetClass,
mainWindow1,
XmNrowColumnType, XmMENU_BAR,
NULL);
UxPutContext(menu1, (char *) UxApplicationShell1Context);
/* Creation of menu1_p1 */
menu1_p1_shell = XtVaCreatePopupShell("menu1_p1_shell",
xmMenuShellWidgetClass, menu1,
XmNwidth, 1,
XmNheight, 1,
XmNallowShellResize, TRUE,
XmNoverrideRedirect, TRUE,
NULL);
menu1_p1 = XtVaCreateWidget("menu1_p1",
xmRowColumnWidgetClass,
menu1_p1_shell,
XmNrowColumnType, XmMENU_PULLDOWN,
NULL);
UxPutContext(menu1_p1, (char *) UxApplicationShell1Context);
/* Creation of menu1_p1_b1 */
menu1_p1_b1 = XtVaCreateManagedWidget("menu1_p1_b1",
xmPushButtonWidgetClass,
menu1_p1,
RES_CONVERT(XmNlabelString, "Quit"),
NULL);
XtAddCallback(menu1_p1_b1, XmNactivateCallback,
(XtCallbackProc) activateCB_menu1_p1_b1,
(XtPointer) UxApplicationShell1Context);
UxPutContext(menu1_p1_b1, (char *) UxApplicationShell1Context);
/* Creation of menu1_top_b1 */
menu1_top_b1 = XtVaCreateManagedWidget("menu1_top_b1",
xmCascadeButtonWidgetClass,
menu1,
RES_CONVERT(XmNlabelString, "Control"),
XmNsubMenuId, menu1_p1,
NULL);
UxPutContext(menu1_top_b1, (char *) UxApplicationShell1Context);
/* Creation of form1 */
form1 = XtVaCreateManagedWidget("form1",
xmFormWidgetClass,
mainWindow1,
NULL);
UxPutContext(form1, (char *) UxApplicationShell1Context);
/* Creation of wClearReportButton */
wClearReportButton = XtVaCreateManagedWidget("wClearReportButton",
xmPushButtonWidgetClass,
form1,
XmNx, 770,
XmNy, 370,
XmNwidth, 130,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Clear Report"),
XmNsensitive, FALSE,
NULL);
XtAddCallback(wClearReportButton, XmNactivateCallback,
(XtCallbackProc) activateCB_wClearReportButton,
(XtPointer) UxApplicationShell1Context);
UxPutContext(wClearReportButton, (char *) UxApplicationShell1Context);
/* Creation of wUpdateReportButton */
wUpdateReportButton = XtVaCreateManagedWidget("wUpdateReportButton",
xmPushButtonWidgetClass,
form1,
XmNx, 770,
XmNy, 460,
XmNwidth, 130,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Update Report"),
XmNsensitive, FALSE,
NULL);
XtAddCallback(wUpdateReportButton, XmNactivateCallback,
(XtCallbackProc) activateCB_wUpdateReportButton,
(XtPointer) UxApplicationShell1Context);
UxPutContext(wUpdateReportButton, (char *) UxApplicationShell1Context);
/* Creation of pushButton3 */
pushButton3 = XtVaCreateManagedWidget("pushButton3",
xmPushButtonWidgetClass,
form1,
XmNx, 80,
XmNy, 590,
XmNwidth, 120,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Study Scheduled"),
NULL);
XtAddCallback(pushButton3, XmNactivateCallback,
(XtCallbackProc) activateCB_pushButton3,
(XtPointer) UxApplicationShell1Context);
UxPutContext(pushButton3, (char *) UxApplicationShell1Context);
/* Creation of pushButton4 */
pushButton4 = XtVaCreateManagedWidget("pushButton4",
xmPushButtonWidgetClass,
form1,
XmNx, 360,
XmNy, 590,
XmNwidth, 120,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Study Completed"),
XmNsensitive, FALSE,
NULL);
XtAddCallback(pushButton4, XmNactivateCallback,
(XtCallbackProc) activateCB_pushButton4,
(XtPointer) UxApplicationShell1Context);
UxPutContext(pushButton4, (char *) UxApplicationShell1Context);
/* Creation of pushButton5 */
pushButton5 = XtVaCreateManagedWidget("pushButton5",
xmPushButtonWidgetClass,
form1,
XmNx, 600,
XmNy, 590,
XmNwidth, 120,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Study Read"),
NULL);
XtAddCallback(pushButton5, XmNactivateCallback,
(XtCallbackProc) activateCB_pushButton5,
(XtPointer) UxApplicationShell1Context);
UxPutContext(pushButton5, (char *) UxApplicationShell1Context);
/* Creation of separator1 */
separator1 = XtVaCreateManagedWidget("separator1",
xmSeparatorWidgetClass,
form1,
XmNwidth, 840,
XmNheight, 10,
XmNx, 20,
XmNy, 560,
NULL);
UxPutContext(separator1, (char *) UxApplicationShell1Context);
/* Creation of wPatientStudyTxt */
wPatientStudyTxt = XtVaCreateManagedWidget("wPatientStudyTxt",
xmTextFieldWidgetClass,
form1,
XmNwidth, 790,
XmNx, 10,
XmNy, 0,
XmNheight, 40,
XmNeditable, FALSE,
XmNfontList, UxConvertFontList("courier-bold"),
NULL);
UxPutContext(wPatientStudyTxt, (char *) UxApplicationShell1Context);
/* Creation of frame1 */
frame1 = XtVaCreateManagedWidget("frame1",
xmFrameWidgetClass,
form1,
XmNwidth, 740,
XmNheight, 200,
XmNx, 20,
XmNy, 340,
NULL);
UxPutContext(frame1, (char *) UxApplicationShell1Context);
/* Creation of scrolledWindowText1 */
scrolledWindowText1 = XtVaCreateManagedWidget("scrolledWindowText1",
xmScrolledWindowWidgetClass,
frame1,
XmNscrollingPolicy, XmAPPLICATION_DEFINED,
XmNvisualPolicy, XmVARIABLE,
XmNscrollBarDisplayPolicy, XmSTATIC,
XmNx, 200,
XmNy, 60,
NULL);
UxPutContext(scrolledWindowText1, (char *) UxApplicationShell1Context);
/* Creation of wReportTxt */
wReportTxt = XtVaCreateManagedWidget("wReportTxt",
xmTextWidgetClass,
scrolledWindowText1,
XmNwidth, 260,
XmNheight, 50,
XmNeditMode, XmMULTI_LINE_EDIT,
XmNfontList, UxConvertFontList("-adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1"),
NULL);
UxPutContext(wReportTxt, (char *) UxApplicationShell1Context);
/* Creation of frame2 */
frame2 = XtVaCreateManagedWidget("frame2",
xmFrameWidgetClass,
form1,
XmNwidth, 790,
XmNheight, 160,
XmNx, 10,
XmNy, 50,
XmNresizable, FALSE,
NULL);
UxPutContext(frame2, (char *) UxApplicationShell1Context);
/* Creation of scrolledWindowList1 */
scrolledWindowList1 = XtVaCreateManagedWidget("scrolledWindowList1",
xmScrolledWindowWidgetClass,
frame2,
XmNscrollingPolicy, XmAPPLICATION_DEFINED,
XmNvisualPolicy, XmVARIABLE,
XmNscrollBarDisplayPolicy, XmSTATIC,
XmNshadowThickness, 0,
XmNx, 330,
XmNy, 0,
NULL);
UxPutContext(scrolledWindowList1, (char *) UxApplicationShell1Context);
/* Creation of wPatientStudyList */
wPatientStudyList = XtVaCreateManagedWidget("wPatientStudyList",
xmListWidgetClass,
scrolledWindowList1,
XmNwidth, 90,
XmNheight, 156,
XmNfontList, UxConvertFontList("courier-bold"),
NULL);
XtAddCallback(wPatientStudyList, XmNbrowseSelectionCallback,
(XtCallbackProc) browseSelectionCB_wPatientStudyList,
(XtPointer) UxApplicationShell1Context);
UxPutContext(wPatientStudyList, (char *) UxApplicationShell1Context);
/* Creation of frame3 */
frame3 = XtVaCreateManagedWidget("frame3",
xmFrameWidgetClass,
form1,
XmNwidth, 740,
XmNheight, 90,
XmNx, 20,
XmNy, 230,
NULL);
UxPutContext(frame3, (char *) UxApplicationShell1Context);
/* Creation of scrolledWindowText2 */
scrolledWindowText2 = XtVaCreateManagedWidget("scrolledWindowText2",
xmScrolledWindowWidgetClass,
frame3,
XmNscrollingPolicy, XmAPPLICATION_DEFINED,
XmNvisualPolicy, XmVARIABLE,
XmNscrollBarDisplayPolicy, XmSTATIC,
XmNx, 200,
XmNy, -10,
XmNheight, 156,
NULL);
UxPutContext(scrolledWindowText2, (char *) UxApplicationShell1Context);
/* Creation of wImpressionsTxt */
wImpressionsTxt = XtVaCreateManagedWidget("wImpressionsTxt",
xmTextWidgetClass,
scrolledWindowText2,
XmNwidth, 430,
XmNheight, 137,
XmNeditMode, XmMULTI_LINE_EDIT,
XmNfontList, UxConvertFontList("-adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1"),
NULL);
UxPutContext(wImpressionsTxt, (char *) UxApplicationShell1Context);
/* Creation of wClearImpressionsButton */
wClearImpressionsButton = XtVaCreateManagedWidget("wClearImpressionsButton",
xmPushButtonWidgetClass,
form1,
XmNx, 770,
XmNy, 230,
XmNwidth, 130,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Clear Impressions"),
XmNsensitive, FALSE,
NULL);
XtAddCallback(wClearImpressionsButton, XmNactivateCallback,
(XtCallbackProc) activateCB_wClearImpressionsButton,
(XtPointer) UxApplicationShell1Context);
UxPutContext(wClearImpressionsButton, (char *) UxApplicationShell1Context);
/* Creation of wUpdateImpressionsButton */
wUpdateImpressionsButton = XtVaCreateManagedWidget("wUpdateImpressionsButton",
xmPushButtonWidgetClass,
form1,
XmNx, 770,
XmNy, 280,
XmNwidth, 130,
XmNheight, 40,
RES_CONVERT(XmNlabelString, "Update Impressions"),
XmNsensitive, FALSE,
NULL);
XtAddCallback(wUpdateImpressionsButton, XmNactivateCallback,
(XtCallbackProc) activateCB_wUpdateImpressionsButton,
(XtPointer) UxApplicationShell1Context);
UxPutContext(wUpdateImpressionsButton, (char *) UxApplicationShell1Context);
/* Creation of frame4 */
frame4 = XtVaCreateManagedWidget("frame4",
xmFrameWidgetClass,
form1,
XmNwidth, 870,
XmNheight, 90,
XmNx, 6,
XmNy, 646,
XmNresizable, FALSE,
NULL);
UxPutContext(frame4, (char *) UxApplicationShell1Context);
/* Creation of scrolledWindowText3 */
scrolledWindowText3 = XtVaCreateManagedWidget("scrolledWindowText3",
xmScrolledWindowWidgetClass,
frame4,
XmNscrollingPolicy, XmAPPLICATION_DEFINED,
XmNvisualPolicy, XmVARIABLE,
XmNscrollBarDisplayPolicy, XmSTATIC,
XmNx, 430,
XmNy, 10,
NULL);
UxPutContext(scrolledWindowText3, (char *) UxApplicationShell1Context);
/* Creation of text1 */
text1 = XtVaCreateManagedWidget("text1",
xmTextWidgetClass,
scrolledWindowText3,
XmNwidth, 140,
XmNheight, 60,
XmNeditable, FALSE,
XmNfontList, UxConvertFontList("-adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1"),
NULL);
UxPutContext(text1, (char *) UxApplicationShell1Context);
XtAddCallback(applicationShell1, XmNdestroyCallback,
(XtCallbackProc) UxDestroyContextCB,
(XtPointer) UxApplicationShell1Context);
XmMainWindowSetAreas(mainWindow1, menu1, (Widget) NULL,
(Widget) NULL, (Widget) NULL, form1);
return (applicationShell1);
}
/*******************************************************************************
The following is the 'Interface function' which is the
external entry point for creating this interface.
This function should be called from your application or from
a callback function.
*******************************************************************************/
Widget
create_applicationShell1(swidget _UxUxParent)
{
Widget rtrn;
_UxCapplicationShell1 *UxContext;
UxApplicationShell1Context = UxContext =
(_UxCapplicationShell1 *) UxNewContext(sizeof(_UxCapplicationShell1), False);
UxParent = _UxUxParent;
rtrn = _Uxbuild_applicationShell1();
return (rtrn);
}
/*******************************************************************************
END OF FILE
*******************************************************************************/
|