示例#1
0
static Widget   _Uxbuild_openCeDialog()
{
        Widget  openCeDialog_shell;

        openCeDialog_shell = XtVaCreatePopupShell( "openCeDialog_shell",
                        xmDialogShellWidgetClass, save_parent,
                        XmNwidth, 355,
                        XmNheight, 435,
                        XmNtitle, "openCeDialog",
                        NULL );

        openCeDialog = XtVaCreateWidget( "openCeDialog",
                        xmFileSelectionBoxWidgetClass, openCeDialog_shell,
                      RES_CONVERT( XmNselectionLabelString, "Enter File Name" ),
                        RES_CONVERT( XmNpattern, "*.cuts" ),
                        RES_CONVERT( XmNdialogTitle, "Open Cuts File" ),
                        XmNheight, 435,
                        XmNwidth, 355,
                        NULL );

        UxPutContext( openCeDialog, (char *) UxOpenCeDialogContext );

        XtAddCallback( openCeDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxOpenCeDialogContext );



        return ( openCeDialog );
}
示例#2
0
static Widget   _Uxbuild_styleOpenDialog()
{
        Widget  styleOpenDialog_shell;

        styleOpenDialog_shell = XtVaCreatePopupShell( "styleOpenDialog_shell",
                        xmDialogShellWidgetClass, histoStyle,
                        XmNshellUnitType, XmPIXELS,
                        XmNtitle, "styleOpenDialog",
                        NULL );

        styleOpenDialog = XtVaCreateWidget( "styleOpenDialog",
                        xmFileSelectionBoxWidgetClass, styleOpenDialog_shell,
           RES_CONVERT( XmNselectionLabelString, "Enter the style file name" ),
                        RES_CONVERT( XmNpattern, "*.style" ),
                        RES_CONVERT( XmNdialogTitle, "Open Style" ),
                        XmNunitType, XmPIXELS,
                        NULL );

        UxPutContext( styleOpenDialog, (char *) UxStyleOpenDialogContext );

        XtAddCallback( styleOpenDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxStyleOpenDialogContext );



        return ( styleOpenDialog );
}
示例#3
0
static Widget   _Uxbuild_execDialog()
{
        Widget  execDialog_shell;

        execDialog_shell = XtVaCreatePopupShell( "execDialog_shell",
                        xmDialogShellWidgetClass, exec_parent,
                        XmNx, 231,
                        XmNy, 193,
                        XmNwidth, 390,
                        XmNheight, 416,
                        XmNtitle, "execDialog",
                        NULL );

        execDialog = XtVaCreateWidget( "execDialog",
                        xmFileSelectionBoxWidgetClass, execDialog_shell,
                        RES_CONVERT( XmNdirMask, "*.kumac" ),
                   RES_CONVERT( XmNselectionLabelString, "Execute PAW Macro" ),
                        RES_CONVERT( XmNdialogTitle, "Exec Arguments" ),
                        XmNheight, 416,
                        XmNwidth, 390,
                        NULL );

        UxPutContext( execDialog, (char *) UxExecDialogContext );

        XtAddCallback( execDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxExecDialogContext );



        return ( execDialog );
}
示例#4
0
static Widget   _Uxbuild_OpenFile(void)
{
        Widget          _UxParent;

        /* Creation of OpenFile */
        _UxParent = XtVaCreatePopupShell( "OpenFile_shell",
                        xmDialogShellWidgetClass, UxTopLevel,
                        XmNx, 200,
                        XmNy, 290,
                        XmNwidth, 398,
                        XmNheight, 500,
                        XmNallowShellResize, TRUE,
                        XmNshellUnitType, XmPIXELS,
                        XmNtitle, GETMESSAGE(12, 25, "Create Action - Open"),
                        NULL );

        OpenFile = XtVaCreateWidget( "OpenFile",
                        xmFileSelectionBoxWidgetClass,
                        _UxParent,
                        XmNresizePolicy, XmRESIZE_GROW,
                        XmNunitType, XmPIXELS,
                        XmNwidth, 398,
                        XmNheight, 500,
                        RES_CONVERT( XmNdialogTitle, GETMESSAGE(12, 25, "Create Action - Open")),
                        RES_CONVERT( XmNdirectory, "" ),
                        RES_CONVERT( XmNtextString, "" ),
                        RES_CONVERT( XmNdirSpec, "" ),
                        XmNdialogType, XmDIALOG_FILE_SELECTION,
                        XmNtextColumns, 20,
                        XmNdialogStyle, XmDIALOG_FULL_APPLICATION_MODAL,
                        XmNallowOverlap, FALSE,
                        RES_CONVERT( XmNchildPlacement, "place_below_selection" ),
                        XmNdefaultPosition, FALSE,
                        RES_CONVERT( XmNdirMask, "" ),
                        RES_CONVERT( XmNpattern, "" ),
                        NULL );
        XtAddCallback( OpenFile, XmNcancelCallback,
                (XtCallbackProc) cancelCB_OpenFile,
                (XtPointer) UxOpenFileContext );
        XtAddCallback( OpenFile, XmNokCallback,
                (XtCallbackProc) okCallback_OpenFile,
                (XtPointer) UxOpenFileContext );
        XtAddCallback( OpenFile, XmNhelpCallback,
                (XtCallbackProc) helpCallback_OpenFile,
                (XtPointer) UxOpenFileContext );
        XtVaSetValues(OpenFile, XmNuserData, OpenFile, NULL);

        UxPutContext( OpenFile, (char *) UxOpenFileContext );

        XtAddCallback( OpenFile, XmNdestroyCallback,
                (XtCallbackProc) UxDestroyContextCB,
                (XtPointer) UxOpenFileContext);

        return ( OpenFile );
}
示例#5
0
static Widget
_Uxbuild_BasicFilmBox_Standard()
{
    Widget _UxParent;


    /* Creation of BasicFilmBox_Standard */
    _UxParent = UxParent;
    if (_UxParent == NULL) {
	_UxParent = UxTopLevel;
    }
    _UxParent = XtVaCreatePopupShell("BasicFilmBox_Standard_shell",
				     xmDialogShellWidgetClass, _UxParent,
				     XmNx, 490,
				     XmNy, 420,
				     XmNwidth, 330,
				     XmNheight, 337,
				     XmNallowShellResize, TRUE,
				     XmNshellUnitType, XmPIXELS,
				     XmNtitle, "BasicFilmBox_Standard",
				     NULL);

    BasicFilmBox_Standard = XtVaCreateWidget("BasicFilmBox_Standard",
					     xmFormWidgetClass,
					     _UxParent,
					     XmNwidth, 330,
					     XmNheight, 337,
					     XmNunitType, XmPIXELS,
					     XmNnoResize, FALSE,
					     XmNautoUnmanage, FALSE,
					     NULL);
    UxPutContext(BasicFilmBox_Standard, (char *) UxBasicFilmBox_StandardContext);


    XtAddCallback(BasicFilmBox_Standard, XmNdestroyCallback,
		  (XtCallbackProc) UxDestroyContextCB,
		  (XtPointer) UxBasicFilmBox_StandardContext);


    return (BasicFilmBox_Standard);
}
static swidget	_Uxbuild_buttonbar_rowcol()
{
	/* Create the swidgets */

	buttonbar_rowcol = UxCreateRowColumn( "buttonbar_rowcol", parent );
	UxPutContext( buttonbar_rowcol, UxButtonbar_rowcolContext );
	UxPutDefaultShell( buttonbar_rowcol, "transientShell" );


	_Uxinit_buttonbar_rowcol();

	/* Create the X widgets */

	UxCreateWidget( buttonbar_rowcol );


	/* Finally, call UxRealizeInterface to create the X windows
	   for the widgets created above. */

	UxRealizeInterface( buttonbar_rowcol );

	return ( buttonbar_rowcol );
}
示例#7
0
static Widget   _Uxbuild_axisFormDialog()
{
        Widget  axisFormDialog_shell;

        axisFormDialog_shell = XtVaCreatePopupShell( "axisFormDialog_shell",
                        xmDialogShellWidgetClass, histoStyle,
                        XmNx, 79,
                        XmNy, 154,
                        XmNwidth, 343,
                        XmNheight, 501,
                        XmNtitle, "axisFormDialog",
                        NULL );

        axisFormDialog = XtVaCreateWidget( "axisFormDialog",
                        xmFormWidgetClass, axisFormDialog_shell,
                        XmNresizePolicy, XmRESIZE_NONE,
                        XmNautoUnmanage, FALSE,
                        XmNfractionBase, 100,
                        XmNnoResize, TRUE,
                        RES_CONVERT( XmNdialogTitle, "Axis Settings" ),
                        XmNheight, 501,
                        XmNwidth, 343,
                        NULL );

        UxPutContext( axisFormDialog, (char *) UxAxisFormDialogContext );

        AxisApplyButton = XtVaCreateManagedWidget( "AxisApplyButton",
                        xmPushButtonGadgetClass, axisFormDialog,
                        XmNrightPosition, 25,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNleftPosition, 5,
                        XmNshowAsDefault, 1,
                        XmNleftAttachment, XmATTACH_POSITION,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Apply" ),
                        XmNheight, 30,
                        XmNwidth, 90,
                        XmNy, 565,
                        XmNx, 5,
                        NULL );

        UxPutContext( AxisApplyButton, (char *) UxAxisFormDialogContext );

        AxisResetButton = XtVaCreateManagedWidget( "AxisResetButton",
                        xmPushButtonGadgetClass, axisFormDialog,
                        XmNrightPosition, 60,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNleftPosition, 40,
                        XmNleftAttachment, XmATTACH_POSITION,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Reset" ),
                        XmNheight, 30,
                        XmNwidth, 90,
                        XmNy, 565,
                        XmNx, 125,
                        NULL );

        UxPutContext( AxisResetButton, (char *) UxAxisFormDialogContext );

        separatorGadget10 = XtVaCreateManagedWidget( "separatorGadget10",
                        xmSeparatorGadgetClass, axisFormDialog,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 50,
                        XmNbottomAttachment, XmATTACH_FORM,
                        NULL );

        UxPutContext( separatorGadget10, (char *) UxAxisFormDialogContext );

        AxisCloseButton = XtVaCreateManagedWidget( "AxisCloseButton",
                        xmPushButtonGadgetClass, axisFormDialog,
                        XmNrightPosition, 95,
                        XmNleftPosition, 75,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_POSITION,
                        RES_CONVERT( XmNlabelString, "Close" ),
                        XmNheight, 30,
                        XmNwidth, 90,
                        XmNy, 565,
                        XmNx, 245,
                        NULL );

        UxPutContext( AxisCloseButton, (char *) UxAxisFormDialogContext );

        frame1 = XtVaCreateManagedWidget( "frame1",
                        xmFrameWidgetClass, axisFormDialog,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNtopOffset, 5,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        NULL );

        UxPutContext( frame1, (char *) UxAxisFormDialogContext );

        rowColumn8 = XtVaCreateManagedWidget( "rowColumn8",
                        xmRowColumnWidgetClass, frame1,
                        XmNresizeWidth, FALSE,
                        XmNmarginWidth, 6,
                        XmNorientation, XmHORIZONTAL,
                        XmNspacing, 45,
                        XmNradioBehavior, TRUE,
                        NULL );

        UxPutContext( rowColumn8, (char *) UxAxisFormDialogContext );

XAxisToggleButtonGadget = XtVaCreateManagedWidget( "XAxisToggleButtonGadget",
                        xmToggleButtonGadgetClass, rowColumn8,
                        XmNset, TRUE,
                        RES_CONVERT( XmNlabelString, "X Axis" ),
                        XmNheight, 35,
                        XmNwidth, 60,
                        XmNy, 5,
                        XmNx, 0,
                        NULL );

UxPutContext( XAxisToggleButtonGadget, (char *) UxAxisFormDialogContext );

YAxisToggleButtonGadget = XtVaCreateManagedWidget( "YAxisToggleButtonGadget",
                        xmToggleButtonGadgetClass, rowColumn8,
                        RES_CONVERT( XmNlabelString, "Y Axis" ),
                        XmNheight, 29,
                        XmNwidth, 60,
                        XmNy, 32,
                        XmNx, 3,
                        NULL );

UxPutContext( YAxisToggleButtonGadget, (char *) UxAxisFormDialogContext );

ZAxisToggleButtonGadget = XtVaCreateManagedWidget( "ZAxisToggleButtonGadget",
                        xmToggleButtonGadgetClass, rowColumn8,
                        RES_CONVERT( XmNlabelString, "Z Axis" ),
                        XmNheight, 35,
                        XmNwidth, 245,
                        XmNy, 45,
                        XmNx, 13,
                        NULL );

UxPutContext( ZAxisToggleButtonGadget, (char *) UxAxisFormDialogContext );

        form3 = XtVaCreateManagedWidget( "form3",
                        xmFormWidgetClass, axisFormDialog,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNtopWidget, frame1,
                        XmNtopOffset, 15,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( form3, (char *) UxAxisFormDialogContext );

labelPushButtonGadget = XtVaCreateManagedWidget( "labelPushButtonGadget",
                        xmPushButtonGadgetClass, form3,
                        XmNtopOffset, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNwidth, 110,
                        XmNalignment, XmALIGNMENT_CENTER,
                        XmNy, 90,
                        XmNx, 145,
                        RES_CONVERT( XmNlabelString, "Labels..." ),
                        XmNheight, 30,
                        NULL );

        UxPutContext( labelPushButtonGadget, (char *) UxAxisFormDialogContext );

logtoggleButtonGadget = XtVaCreateManagedWidget( "logtoggleButtonGadget",
                        xmToggleButtonGadgetClass, form3,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "Logarithmic" ),
                        XmNheight, 25,
                        NULL );

        UxPutContext( logtoggleButtonGadget, (char *) UxAxisFormDialogContext );

gridtoggleButtonGadget = XtVaCreateManagedWidget( "gridtoggleButtonGadget",
                        xmToggleButtonGadgetClass, form3,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        XmNwidth, 100,
                        RES_CONVERT( XmNlabelString, "Grid" ),
                        XmNheight, 25,
                        NULL );

UxPutContext( gridtoggleButtonGadget, (char *) UxAxisFormDialogContext );

orienPushButtonGadget = XtVaCreateManagedWidget( "orienPushButtonGadget",
                        xmPushButtonGadgetClass, form3,
                        XmNy, 35,
                        XmNx, -5,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNtopWidget, labelPushButtonGadget,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNwidth, 110,
                        RES_CONVERT( XmNlabelString, "Orientation..." ),
                        XmNalignment, XmALIGNMENT_CENTER,
                        XmNheight, 30,
                        NULL );

        UxPutContext( orienPushButtonGadget, (char *) UxAxisFormDialogContext );

ticktoggleButtonGadget = XtVaCreateManagedWidget( "ticktoggleButtonGadget",
                        xmToggleButtonGadgetClass, form3,
                        XmNtopOffset, 20,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        XmNwidth, 100,
                        RES_CONVERT( XmNlabelString, "Ticks" ),
                        XmNheight, 25,
                        NULL );

UxPutContext( ticktoggleButtonGadget, (char *) UxAxisFormDialogContext );

        frame2 = XtVaCreateManagedWidget( "frame2",
                        xmFrameWidgetClass, axisFormDialog,
                        XmNbottomWidget, separatorGadget10,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_WIDGET,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        NULL );

        UxPutContext( frame2, (char *) UxAxisFormDialogContext );

        DivAxisform = XtVaCreateManagedWidget( "DivAxisform",
                        xmFormWidgetClass, frame2,
                        XmNfractionBase, 100,
                        XmNheight, 287,
                        XmNwidth, 329,
                        XmNy, 5,
                        XmNx, 2,
                        NULL );

        UxPutContext( DivAxisform, (char *) UxAxisFormDialogContext );

        labelGadget2 = XtVaCreateManagedWidget( "labelGadget2",
                        xmLabelGadgetClass, DivAxisform,
                        XmNx, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNtopOffset, 45,
                        XmNwidth, 210,
                        XmNy, 14,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
RES_CONVERT( XmNlabelString, "Number of Primary Divisions" ),
                        NULL );

        UxPutContext( labelGadget2, (char *) UxAxisFormDialogContext );

        AxisPrimaryText = XtVaCreateManagedWidget( "AxisPrimaryText",
                        xmTextWidgetClass, DivAxisform,
                        XmNcolumns, 7,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNtopPosition, 20,
                        XmNtopOffset, 40,
                        XmNheight, 30,
                        XmNvalue, "10",
                        XmNmarginHeight, 3,
                        NULL );

        UxPutContext( AxisPrimaryText, (char *) UxAxisFormDialogContext );

        AxisPrimaryScale = XtVaCreateManagedWidget( "AxisPrimaryScale",
                        xmScaleWidgetClass, DivAxisform,
                        XmNmaximum, 20,
                        XmNshowValue, TRUE,
                        XmNnavigationType, XmTAB_GROUP,
                        RES_CONVERT( XmNtitleString, "" ),
                        XmNresizable, FALSE,
                        XmNminimum, 1,
                        XmNvalue, 10,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNtopOffset, 5,
                        XmNtopWidget, AxisPrimaryText,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNorientation, XmHORIZONTAL,
                        NULL );

        UxPutContext( AxisPrimaryScale, (char *) UxAxisFormDialogContext );

        labelGadget3 = XtVaCreateManagedWidget( "labelGadget3",
                        xmLabelGadgetClass, DivAxisform,
                        XmNy, 14,
                        XmNx, 0,
                        XmNwidth, 230,
                        XmNheight, 21,
                        XmNtopWidget, AxisPrimaryScale,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
RES_CONVERT( XmNlabelString, "Number of Secondary Divisions" ),
                        NULL );

        UxPutContext( labelGadget3, (char *) UxAxisFormDialogContext );

        AxisSecondaryText = XtVaCreateManagedWidget( "AxisSecondaryText",
                        xmTextWidgetClass, DivAxisform,
                        XmNcolumns, 7,
                        XmNtopWidget, AxisPrimaryScale,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNvalue, "5",
                        XmNmarginHeight, 3,
                        XmNheight, 30,
                        NULL );

        UxPutContext( AxisSecondaryText, (char *) UxAxisFormDialogContext );

        AxisSecondaryScale = XtVaCreateManagedWidget( "AxisSecondaryScale",
                        xmScaleWidgetClass, DivAxisform,
                        XmNscaleMultiple, 1,
                        XmNmaximum, 10,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNwidth, 316,
                        XmNheight, 44,
                        XmNtopWidget, AxisSecondaryText,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNshowValue, TRUE,
                        XmNnavigationType, XmTAB_GROUP,
                        RES_CONVERT( XmNtitleString, "" ),
                        XmNminimum, 1,
                        XmNvalue, 5,
                        XmNorientation, XmHORIZONTAL,
                        NULL );

        UxPutContext( AxisSecondaryScale, (char *) UxAxisFormDialogContext );

        labelGadget4 = XtVaCreateManagedWidget( "labelGadget4",
                        xmLabelGadgetClass, DivAxisform,
                        XmNwidth, 210,
                        XmNtopWidget, AxisSecondaryScale,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNx, 45,
                        XmNy, 299,
                        XmNheight, 21,
RES_CONVERT( XmNlabelString, "Number of Tertiary Divisions" ),
                        NULL );

        UxPutContext( labelGadget4, (char *) UxAxisFormDialogContext );

        AxisTertiaryText = XtVaCreateManagedWidget( "AxisTertiaryText",
                        xmTextWidgetClass, DivAxisform,
                        XmNcolumns, 7,
                        XmNtopWidget, AxisSecondaryScale,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNvalue, "1",
                        XmNmarginHeight, 3,
                        XmNheight, 30,
                        XmNy, 195,
                        NULL );

        UxPutContext( AxisTertiaryText, (char *) UxAxisFormDialogContext );

        AxisTertiaryScale = XtVaCreateManagedWidget( "AxisTertiaryScale",
                        xmScaleWidgetClass, DivAxisform,
                        XmNscaleMultiple, 1,
                        XmNmaximum, 5,
                        XmNtopWidget, AxisTertiaryText,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNwidth, 316,
                        XmNheight, 44,
                        XmNshowValue, TRUE,
                        XmNnavigationType, XmTAB_GROUP,
                        RES_CONVERT( XmNtitleString, "" ),
                        XmNminimum, 1,
                        XmNvalue, 1,
                        XmNorientation, XmHORIZONTAL,
                        NULL );

        UxPutContext( AxisTertiaryScale, (char *) UxAxisFormDialogContext );

NoOptimiToggleButtonGadget =
                        XtVaCreateManagedWidget( "NoOptimiToggleButtonGadget",
                        xmToggleButtonGadgetClass, DivAxisform,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNtopOffset, 5,
                        XmNheight, 30,
                        XmNy, 135,
                        XmNx, 10,
                        RES_CONVERT( XmNlabelString, "No Optimization" ),
                        NULL );

UxPutContext( NoOptimiToggleButtonGadget, (char *) UxAxisFormDialogContext );

        XtAddCallback( axisFormDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxAxisFormDialogContext );

        XtVaSetValues(axisFormDialog,
                        XmNdefaultButton, AxisApplyButton,
                        NULL );



        return ( axisFormDialog );
}
示例#8
0
文件: kuxgra.c 项目: apc-llc/cernlib
static Widget        _Uxbuild_kuipGraphics()
{
        Widget                _UxParent;


        /* Creation of kuipGraphics */
        _UxParent = XtVaCreatePopupShell( "kuipGraphics_shell",
                        topLevelShellWidgetClass, UxTopLevel,
                        XmNx, 570,
                        XmNy, 10,
                        XmNwidth, 530,
                        XmNheight, 550,
                        XmNtitle, "kuipGraphics",
                        XmNiconName, "kuipGraphics",
                        NULL );

        kuipGraphics = XtVaCreateManagedWidget( "kuipGraphics",
                        xmMainWindowWidgetClass,
                        _UxParent,
                        XmNwidth, 530,
                        XmNheight, 550,
                        XmNmappedWhenManaged, TRUE,
                        XmNborderWidth, 0,
                        NULL );
        UxPutContext( kuipGraphics, (char *) UxKuipGraphicsContext );


        /* Creation of kuipGraphicsFrame */
        kuipGraphicsFrame = XtVaCreateManagedWidget( "kuipGraphicsFrame",
                        xmFrameWidgetClass,
                        kuipGraphics,
                        NULL );
        UxPutContext( kuipGraphicsFrame, (char *) UxKuipGraphicsContext );


        /* Creation of graphicsForm */
        graphicsForm = XtVaCreateManagedWidget( "graphicsForm",
                        xmFormWidgetClass,
                        kuipGraphicsFrame,
                        XmNautoUnmanage, FALSE,
                        XmNborderWidth, 0,
                        XmNmarginHeight, 0,
                        XmNmarginWidth, 0,
                        XmNhorizontalSpacing, 0,
                        XmNverticalSpacing, 0,
                        NULL );
        UxPutContext( graphicsForm, (char *) UxKuipGraphicsContext );


        /* Creation of km_graphicsDraw */
        km_graphicsDraw = XtVaCreateManagedWidget( "km_graphicsDraw",
                        xmDrawingAreaWidgetClass,
                        graphicsForm,
                        XmNresizePolicy, XmRESIZE_NONE,
                        XmNx, 0,
                        XmNy, 10,
                        XmNwidth, 530,
                        XmNheight, 540,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNtopOffset, 0,
                        XmNbottomOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        NULL );
        UxPutContext( km_graphicsDraw, (char *) UxKuipGraphicsContext );


        XtAddCallback( kuipGraphics, XmNdestroyCallback,
                (XtCallbackProc) UxDestroyContextCB,
                (XtPointer) UxKuipGraphicsContext);

        XmMainWindowSetAreas( kuipGraphics, (Widget) NULL, (Widget) NULL,
                        (Widget) NULL, (Widget) NULL, kuipGraphicsFrame );

        return ( kuipGraphics );
}
示例#9
0
static Widget
_Uxbuild_FISAccessForm()
{
    Widget _UxParent;


    /* Creation of FISAccessForm */
    _UxParent = UxParent;
    if (_UxParent == NULL) {
	_UxParent = XtVaCreatePopupShell("FISAccessForm_shell",
				       topLevelShellWidgetClass, UxTopLevel,
					 XmNx, 180,
					 XmNy, 306,
					 XmNwidth, 655,
					 XmNheight, 480,
					 XmNshellUnitType, XmPIXELS,
					 XmNtitle, "FISAccessForm",
					 XmNiconName, "FISAccessForm",
					 NULL);

    }
    FISAccessForm = XtVaCreateManagedWidget("FISAccessForm",
					    xmFormWidgetClass,
					    _UxParent,
					    XmNwidth, 655,
					    XmNheight, 480,
					    XmNresizePolicy, XmRESIZE_NONE,
					    XmNunitType, XmPIXELS,
					    NULL);
    UxPutContext(FISAccessForm, (char *) UxFISAccessFormContext);


    /* Creation of label12 */
    label12 = XtVaCreateManagedWidget("label12",
				      xmLabelWidgetClass,
				      FISAccessForm,
				      XmNx, 40,
				      XmNy, 160,
				      XmNwidth, 170,
				      XmNheight, 40,
				      RES_CONVERT(XmNlabelString, "Title"),
				      NULL);
    UxPutContext(label12, (char *) UxFISAccessFormContext);


    /* Creation of label13 */
    label13 = XtVaCreateManagedWidget("label13",
				      xmLabelWidgetClass,
				      FISAccessForm,
				      XmNx, 36,
				      XmNy, 186,
				      XmNwidth, 170,
				      XmNheight, 40,
				RES_CONVERT(XmNlabelString, "Database Key"),
				XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
				      XmNleftOffset, 0,
				      XmNleftWidget, label12,
				      XmNtopAttachment, XmATTACH_WIDGET,
				      XmNtopOffset, 15,
				      XmNtopWidget, label12,
				      NULL);
    UxPutContext(label13, (char *) UxFISAccessFormContext);


    /* Creation of label14 */
    label14 = XtVaCreateManagedWidget("label14",
				      xmLabelWidgetClass,
				      FISAccessForm,
				      XmNx, 23,
				      XmNy, 306,
				      XmNwidth, 170,
				      XmNheight, 40,
				      RES_CONVERT(XmNlabelString, "Group"),
				XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
				      XmNleftOffset, 0,
				      XmNleftWidget, label12,
				      XmNtopAttachment, XmATTACH_WIDGET,
				      XmNtopOffset, 15,
				      XmNtopWidget, label13,
				      NULL);
    UxPutContext(label14, (char *) UxFISAccessFormContext);


    /* Creation of label15 */
    label15 = XtVaCreateManagedWidget("label15",
				      xmLabelWidgetClass,
				      FISAccessForm,
				      XmNx, 23,
				      XmNy, 361,
				      XmNwidth, 170,
				      XmNheight, 40,
				      RES_CONVERT(XmNlabelString, "Comment"),
				XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
				      XmNleftOffset, 0,
				      XmNleftWidget, label12,
				      XmNtopAttachment, XmATTACH_WIDGET,
				      XmNtopOffset, 15,
				      XmNtopWidget, label14,
				      NULL);
    UxPutContext(label15, (char *) UxFISAccessFormContext);


    /* Creation of wGroupTxt */
    wGroupTxt = XtVaCreateManagedWidget("wGroupTxt",
					xmTextFieldWidgetClass,
					FISAccessForm,
					XmNwidth, 375,
					XmNx, 213,
					XmNy, 306,
					XmNheight, 40,
					XmNleftAttachment, XmATTACH_WIDGET,
					XmNleftOffset, 15,
					XmNleftWidget, label12,
				 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
					XmNtopOffset, 0,
					XmNtopWidget, label14,
					NULL);
    UxPutContext(wGroupTxt, (char *) UxFISAccessFormContext);


    /* Creation of wCommentTxt */
    wCommentTxt = XtVaCreateManagedWidget("wCommentTxt",
					  xmTextFieldWidgetClass,
					  FISAccessForm,
					  XmNwidth, 380,
					  XmNx, 263,
					  XmNy, 361,
					  XmNheight, 40,
					  XmNleftAttachment, XmATTACH_WIDGET,
					  XmNleftOffset, 15,
					  XmNleftWidget, label12,
				 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
					  XmNtopOffset, 0,
					  XmNtopWidget, label15,
					  NULL);
    UxPutContext(wCommentTxt, (char *) UxFISAccessFormContext);


    /* Creation of wTitleTxt */
    wTitleTxt = XtVaCreateManagedWidget("wTitleTxt",
					xmTextFieldWidgetClass,
					FISAccessForm,
					XmNwidth, 380,
					XmNx, 191,
					XmNy, 210,
					XmNheight, 40,
					XmNleftAttachment, XmATTACH_WIDGET,
					XmNleftOffset, 15,
					XmNleftWidget, label12,
				 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
					XmNtopOffset, 0,
					XmNtopWidget, label12,
					NULL);
    UxPutContext(wTitleTxt, (char *) UxFISAccessFormContext);


    /* Creation of wDatabaseKeyTxt */
    wDatabaseKeyTxt = XtVaCreateManagedWidget("wDatabaseKeyTxt",
					      xmTextFieldWidgetClass,
					      FISAccessForm,
					      XmNwidth, 380,
					      XmNx, 211,
					      XmNy, 260,
					      XmNheight, 40,
					 XmNleftAttachment, XmATTACH_WIDGET,
					      XmNleftOffset, 15,
					      XmNleftWidget, label12,
				 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
					      XmNtopOffset, 0,
					      XmNtopWidget, label13,
					      NULL);
    UxPutContext(wDatabaseKeyTxt, (char *) UxFISAccessFormContext);


    /* Creation of pushButton12 */
    pushButton12 = XtVaCreateManagedWidget("pushButton12",
					   xmPushButtonWidgetClass,
					   FISAccessForm,
					   XmNx, 41,
					   XmNy, 420,
					   XmNwidth, 140,
					   XmNheight, 40,
					 RES_CONVERT(XmNlabelString, "Add"),
					   NULL);
    XtAddCallback(pushButton12, XmNactivateCallback,
		  (XtCallbackProc) activateCB_pushButton12,
		  (XtPointer) UxFISAccessFormContext);

    UxPutContext(pushButton12, (char *) UxFISAccessFormContext);


    /* Creation of pushButton13 */
    pushButton13 = XtVaCreateManagedWidget("pushButton13",
					   xmPushButtonWidgetClass,
					   FISAccessForm,
					   XmNx, 231,
					   XmNy, 420,
					   XmNwidth, 140,
					   XmNheight, 40,
				      RES_CONVERT(XmNlabelString, "Update"),
					   XmNsensitive, FALSE,
					   NULL);
    UxPutContext(pushButton13, (char *) UxFISAccessFormContext);


    /* Creation of pushButton14 */
    pushButton14 = XtVaCreateManagedWidget("pushButton14",
					   xmPushButtonWidgetClass,
					   FISAccessForm,
					   XmNx, 421,
					   XmNy, 420,
					   XmNwidth, 140,
					   XmNheight, 40,
				      RES_CONVERT(XmNlabelString, "Delete"),
					   NULL);
    XtAddCallback(pushButton14, XmNactivateCallback,
		  (XtCallbackProc) activateCB_pushButton14,
		  (XtPointer) UxFISAccessFormContext);

    UxPutContext(pushButton14, (char *) UxFISAccessFormContext);


    /* Creation of frame4 */
    frame4 = XtVaCreateManagedWidget("frame4",
				     xmFrameWidgetClass,
				     FISAccessForm,
				     XmNwidth, 620,
				     XmNheight, 110,
				     XmNx, 20,
				     XmNy, 20,
				     NULL);
    UxPutContext(frame4, (char *) UxFISAccessFormContext);


    /* Creation of scrolledWindowList6 */
    scrolledWindowList6 = XtVaCreateManagedWidget("scrolledWindowList6",
						xmScrolledWindowWidgetClass,
						  frame4,
				  XmNscrollingPolicy, XmAPPLICATION_DEFINED,
						XmNvisualPolicy, XmVARIABLE,
					XmNscrollBarDisplayPolicy, XmSTATIC,
						  XmNshadowThickness, 0,
						  XmNx, 180,
						  XmNy, 10,
						  NULL);
    UxPutContext(scrolledWindowList6, (char *) UxFISAccessFormContext);


    /* Creation of wFISAccessList */
    wFISAccessList = XtVaCreateManagedWidget("wFISAccessList",
					     xmListWidgetClass,
					     scrolledWindowList6,
					     XmNwidth, 130,
					     XmNheight, 90,
					     NULL);
    UxPutContext(wFISAccessList, (char *) UxFISAccessFormContext);


    XtAddCallback(FISAccessForm, XmNdestroyCallback,
		  (XtCallbackProc) UxDestroyContextCB,
		  (XtPointer) UxFISAccessFormContext);


    return (FISAccessForm);
}
示例#10
0
static Widget   _Uxbuild_geometryDialog()
{
        Widget          _UxParent;


        /* Creation of geometryDialog */
        _UxParent = histoStyle;
        if ( _UxParent == NULL )
        {
                _UxParent = UxTopLevel;
        }

        _UxParent = XtVaCreatePopupShell( "geometryDialog_shell",
                        xmDialogShellWidgetClass, _UxParent,
                        XmNx, 730,
                        XmNy, 90,
                        XmNwidth, 400,
                        XmNheight, 760,
                        XmNallowShellResize, FALSE,
                        XmNshellUnitType, XmPIXELS,
                        XmNtitle, "geometryDialog",
                        NULL );

        geometryDialog = XtVaCreateWidget( "geometryDialog",
                        xmFormWidgetClass,
                        _UxParent,
                        XmNunitType, XmPIXELS,
                        XmNwidth, 400,
                        XmNheight, 760,
                        XmNautoUnmanage, FALSE,
                        RES_CONVERT( XmNdialogTitle, "Geometry Settings" ),
                        XmNnoResize, TRUE,
                        NULL );
        UxPutContext( geometryDialog, (char *) UxGeometryDialogContext );


        /* Creation of PixmapForm */
        PixmapForm = XtVaCreateManagedWidget( "PixmapForm",
                        xmFormWidgetClass,
                        geometryDialog,
                        XmNresizePolicy, XmRESIZE_NONE,
                        XmNx, 20,
                        XmNy, 30,
                        XmNwidth, 400,
                        XmNheight, 582,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNtopOffset, 0,
                        XmNborderWidth, 1,
                        RES_CONVERT( XmNbackground, "white" ),
                        RES_CONVERT( XmNforeground, "black" ),
                        XmNnoResize, TRUE,
                        NULL );
        UxPutContext( PixmapForm, (char *) UxGeometryDialogContext );


        /* Creation of Ywin */
        Ywin = XtVaCreateManagedWidget( "Ywin",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 209,
                        XmNy, 286,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ywin, (char *) UxGeometryDialogContext );


        /* Creation of Gsiz */
        Gsiz = XtVaCreateManagedWidget( "Gsiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 83,
                        XmNy, 7,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Gsiz, (char *) UxGeometryDialogContext );


        /* Creation of Xmgr */
        Xmgr = XtVaCreateManagedWidget( "Xmgr",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 366,
                        XmNy, 120,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xmgr, (char *) UxGeometryDialogContext );


        /* Creation of Xmgl */
        Xmgl = XtVaCreateManagedWidget( "Xmgl",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 11,
                        XmNy, 118,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xmgl, (char *) UxGeometryDialogContext );


        /* Creation of Ymgu */
        Ymgu = XtVaCreateManagedWidget( "Ymgu",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 31,
                        XmNy, 18,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ymgu, (char *) UxGeometryDialogContext );


        /* Creation of Ylab */
        Ylab = XtVaCreateManagedWidget( "Ylab",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 359,
                        XmNy, 553,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ylab, (char *) UxGeometryDialogContext );


        /* Creation of Xlab */
        Xlab = XtVaCreateManagedWidget( "Xlab",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 4,
                        XmNy, 297,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xlab, (char *) UxGeometryDialogContext );


        /* Creation of Ytic */
        Ytic = XtVaCreateManagedWidget( "Ytic",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 98,
                        XmNy, 366,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ytic, (char *) UxGeometryDialogContext );


        /* Creation of Xwin */
        Xwin = XtVaCreateManagedWidget( "Xwin",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 186,
                        XmNy, 118,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xwin, (char *) UxGeometryDialogContext );


        /* Creation of Ygti */
        Ygti = XtVaCreateManagedWidget( "Ygti",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 306,
                        XmNy, 24,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ygti, (char *) UxGeometryDialogContext );


        /* Creation of Asiz */
        Asiz = XtVaCreateManagedWidget( "Asiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 305,
                        XmNy, 563,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Asiz, (char *) UxGeometryDialogContext );


        /* Creation of Vsiz */
        Vsiz = XtVaCreateManagedWidget( "Vsiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 15,
                        XmNy, 486,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Vsiz, (char *) UxGeometryDialogContext );


        /* Creation of Xtic */
        Xtic = XtVaCreateManagedWidget( "Xtic",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 149,
                        XmNy, 492,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xtic, (char *) UxGeometryDialogContext );


        /* Creation of Xsiz */
        Xsiz = XtVaCreateManagedWidget( "Xsiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 215,
                        XmNy, 452,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xsiz, (char *) UxGeometryDialogContext );


        /* Creation of Ysiz */
        Ysiz = XtVaCreateManagedWidget( "Ysiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 373,
                        XmNy, 306,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ysiz, (char *) UxGeometryDialogContext );


        /* Creation of Ymgl */
        Ymgl = XtVaCreateManagedWidget( "Ymgl",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 60,
                        XmNy, 553,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Ymgl, (char *) UxGeometryDialogContext );


        /* Creation of Yhti */
        Yhti = XtVaCreateManagedWidget( "Yhti",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 265,
                        XmNy, 540,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Yhti, (char *) UxGeometryDialogContext );


        /* Creation of Xval */
        Xval = XtVaCreateManagedWidget( "Xval",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 94,
                        XmNy, 455,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Xval, (char *) UxGeometryDialogContext );


        /* Creation of Tsiz */
        Tsiz = XtVaCreateManagedWidget( "Tsiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 118,
                        XmNy, 558,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Tsiz, (char *) UxGeometryDialogContext );


        /* Creation of Errx */
        Errx = XtVaCreateManagedWidget( "Errx",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 85,
                        XmNy, 336,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Errx, (char *) UxGeometryDialogContext );


        /* Creation of Csiz */
        Csiz = XtVaCreateManagedWidget( "Csiz",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 288,
                        XmNy, 396,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Csiz, (char *) UxGeometryDialogContext );


        /* Creation of Hmax */
        Hmax = XtVaCreateManagedWidget( "Hmax",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 304,
                        XmNy, 55,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Hmax, (char *) UxGeometryDialogContext );


        /* Creation of Baro */
        Baro = XtVaCreateManagedWidget( "Baro",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 150,
                        XmNy, 98,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Baro, (char *) UxGeometryDialogContext );


        /* Creation of Barw */
        Barw = XtVaCreateManagedWidget( "Barw",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 109,
                        XmNy, 51,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Barw, (char *) UxGeometryDialogContext );


        /* Creation of Yval */
        Yval = XtVaCreateManagedWidget( "Yval",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 38,
                        XmNy, 545,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Yval, (char *) UxGeometryDialogContext );


        /* Creation of Smgu */
        Smgu = XtVaCreateManagedWidget( "Smgu",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 164,
                        XmNy, 316,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Smgu, (char *) UxGeometryDialogContext );


        /* Creation of Smgr */
        Smgr = XtVaCreateManagedWidget( "Smgr",
                        xmPushButtonWidgetClass,
                        PixmapForm,
                        XmNx, 338,
                        XmNy, 406,
                        XmNwidth, 10,
                        XmNheight, 10,
                        RES_CONVERT( XmNlabelString, "" ),
                        RES_CONVERT( XmNforeground, "#509f50" ),
                        XmNmarginWidth, 0,
                        XmNhighlightThickness, 0,
                        NULL );
        UxPutContext( Smgr, (char *) UxGeometryDialogContext );


        /* Creation of Scale */
        Scale = XtVaCreateManagedWidget( "Scale",
                        xmScaleWidgetClass,
                        geometryDialog,
                        XmNx, 2,
                        XmNy, 584,
                        XmNwidth, 396,
                        XmNheight, 63,
                        XmNorientation, XmHORIZONTAL,
                        XmNshowValue, TRUE,
                        RES_CONVERT( XmNtitleString, "" ),
                        XmNdecimalPoints, 2,
                        NULL );
        UxPutContext( Scale, (char *) UxGeometryDialogContext );


        /* Creation of separatorGadget4 */
        separatorGadget4 = XtVaCreateManagedWidget( "separatorGadget4",
                        xmSeparatorGadgetClass,
                        geometryDialog,
                        XmNx, 0,
                        XmNy, 280,
                        XmNwidth, 1220,
                        XmNheight, 20,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 50,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNtopAttachment, XmATTACH_NONE,
                        NULL );
        UxPutContext( separatorGadget4, (char *) UxGeometryDialogContext );


        /* Creation of ApplyGeometry */
        ApplyGeometry = XtVaCreateManagedWidget( "ApplyGeometry",
                        xmPushButtonGadgetClass,
                        geometryDialog,
                        XmNx, 20,
                        XmNy, 360,
                        XmNwidth, 90,
                        XmNheight, 30,
                        RES_CONVERT( XmNlabelString, "Apply" ),
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 10,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 25,
                        NULL );
        UxPutContext( ApplyGeometry, (char *) UxGeometryDialogContext );


        /* Creation of ResetGeometry */
        ResetGeometry = XtVaCreateManagedWidget( "ResetGeometry",
                        xmPushButtonGadgetClass,
                        geometryDialog,
                        XmNx, 154,
                        XmNy, 707,
                        XmNwidth, 90,
                        XmNheight, 30,
                        RES_CONVERT( XmNlabelString, "Reset" ),
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 10,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 25,
                        XmNleftWidget, ApplyGeometry,
                        NULL );
        UxPutContext( ResetGeometry, (char *) UxGeometryDialogContext );


        /* Creation of CloseGeometry */
        CloseGeometry = XtVaCreateManagedWidget( "CloseGeometry",
                        xmPushButtonGadgetClass,
                        geometryDialog,
                        XmNx, 290,
                        XmNy, 360,
                        XmNwidth, 90,
                        XmNheight, 30,
                        RES_CONVERT( XmNlabelString, "Close" ),
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 10,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 25,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNrightOffset, 25,
                        XmNleftWidget, ResetGeometry,
                        NULL );
        UxPutContext( CloseGeometry, (char *) UxGeometryDialogContext );


        /* Creation of form3 */
        form3 = XtVaCreateManagedWidget( "form3",
                        xmFormWidgetClass,
                        geometryDialog,
                        XmNresizePolicy, XmRESIZE_NONE,
                        XmNx, 5,
                        XmNy, 649,
                        XmNwidth, 384,
                        XmNheight, 45,
                        NULL );
        UxPutContext( form3, (char *) UxGeometryDialogContext );


        /* Creation of Label */
        Label = XtVaCreateManagedWidget( "Label",
                        xmLabelWidgetClass,
                        form3,
                        XmNx, 4,
                        XmNy, 645,
                        XmNwidth, 82,
                        XmNheight, 45,
                        RES_CONVERT( XmNlabelString, "YMGL : " ),
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        NULL );
        UxPutContext( Label, (char *) UxGeometryDialogContext );


        /* Creation of Text */
        Text = XtVaCreateManagedWidget( "Text",
                        xmTextWidgetClass,
                        form3,
                        XmNx, 86,
                        XmNy, 652,
                        XmNwidth, 100,
                        XmNheight, 30,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNtopOffset, 5,
                        NULL );
        UxPutContext( Text, (char *) UxGeometryDialogContext );


        /* Creation of ResetCurrentButton */
        ResetCurrentButton = XtVaCreateManagedWidget( "ResetCurrentButton",
                        xmPushButtonGadgetClass,
                        form3,
                        XmNx, 210,
                        XmNy, 3,
                        XmNwidth, 158,
                        XmNheight, 20,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Reset WWWW" ),
                        XmNbottomOffset, 5,
                        XmNtopOffset, 5,
                        XmNrecomputeSize, FALSE,
                        NULL );
        UxPutContext( ResetCurrentButton, (char *) UxGeometryDialogContext );

        XtVaSetValues(geometryDialog,
                        XmNdefaultButton, ApplyGeometry,
                        NULL );


        XtAddCallback( geometryDialog, XmNdestroyCallback,
                (XtCallbackProc) UxDestroyContextCB,
                (XtPointer) UxGeometryDialogContext);


        return ( geometryDialog );
}
示例#11
0
static Widget
_Uxbuild_studyListForm()
{
    Widget _UxParent;


    /* Creation of studyListForm */
    _UxParent = UxParent;
    if (_UxParent == NULL) {
	_UxParent = UxTopLevel;
    }
    _UxParent = XtVaCreatePopupShell("studyListForm_shell",
				     xmDialogShellWidgetClass, _UxParent,
				     XmNx, 550,
				     XmNy, 140,
				     XmNwidth, 330,
				     XmNheight, 320,
				     XmNshellUnitType, XmPIXELS,
				     XmNtitle, "studyListForm",
				     NULL);

    studyListForm = XtVaCreateWidget("studyListForm",
				     xmFormWidgetClass,
				     _UxParent,
				     XmNwidth, 330,
				     XmNheight, 320,
				     XmNunitType, XmPIXELS,
				     NULL);
    UxPutContext(studyListForm, (char *) UxStudyListFormContext);


    /* Creation of labelGadget1 */
    labelGadget1 = XtVaCreateManagedWidget("labelGadget1",
					   xmLabelGadgetClass,
					   studyListForm,
					   XmNx, 10,
					   XmNy, 10,
					   XmNwidth, 120,
					   XmNheight, 30,
			     RES_CONVERT(XmNlabelString, "List Of Studies"),
					   NULL);
    UxPutContext(labelGadget1, (char *) UxStudyListFormContext);


    /* Creation of scrolledWindowList1 */
    scrolledWindowList1 = XtVaCreateManagedWidget("scrolledWindowList1",
						xmScrolledWindowWidgetClass,
						  studyListForm,
				  XmNscrollingPolicy, XmAPPLICATION_DEFINED,
						XmNvisualPolicy, XmVARIABLE,
					XmNscrollBarDisplayPolicy, XmSTATIC,
						  XmNshadowThickness, 0,
						  XmNx, 20,
						  XmNy, 60,
						  NULL);
    UxPutContext(scrolledWindowList1, (char *) UxStudyListFormContext);


    /* Creation of wStudyList */
    wStudyList = XtVaCreateManagedWidget("wStudyList",
					 xmListWidgetClass,
					 scrolledWindowList1,
					 XmNwidth, 260,
					 XmNheight, 240,
					 XmNautomaticSelection, FALSE,
					 NULL);
    XtAddCallback(wStudyList, XmNbrowseSelectionCallback,
		  (XtCallbackProc) browseSelectionCB_wStudyList,
		  (XtPointer) UxStudyListFormContext);

    UxPutContext(wStudyList, (char *) UxStudyListFormContext);


    XtAddCallback(studyListForm, XmNdestroyCallback,
		  (XtCallbackProc) UxDestroyContextCB,
		  (XtPointer) UxStudyListFormContext);


    return (studyListForm);
}
示例#12
0
static Widget   _Uxbuild_colorDialog()
{
        Widget  colorDialog_shell;

        colorDialog_shell = XtVaCreatePopupShell( "colorDialog_shell",
                        xmDialogShellWidgetClass, attributesFormDialog,
                        XmNx, 365,
                        XmNy, 317,
                        XmNwidth, 333,
                        XmNheight, 200,
                        XmNshellUnitType, XmPIXELS,
                        XmNtitle, "colorDialog",
                        NULL );

        colorDialog = XtVaCreateWidget( "colorDialog",
                        xmFormWidgetClass, colorDialog_shell,
                        RES_CONVERT( XmNdialogTitle, "Object Color Setting" ),
                        XmNautoUnmanage, FALSE,
                        XmNnoResize, TRUE,
                        XmNheight, 200,
                        XmNwidth, 333,
                        XmNunitType, XmPIXELS,
                        NULL );

        UxPutContext( colorDialog, (char *) UxColorDialogContext );

        separatorGadget7 = XtVaCreateManagedWidget( "separatorGadget7",
                        xmSeparatorGadgetClass, colorDialog,
                        XmNseparatorType, XmSHADOW_ETCHED_IN,
                        XmNtopAttachment, XmATTACH_NONE,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 50,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 20,
                        XmNwidth, 329,
                        XmNy, 436,
                        XmNx, 3,
                        NULL );

        UxPutContext( separatorGadget7, (char *) UxColorDialogContext );

        ApplyAttColorBut = XtVaCreateManagedWidget( "ApplyAttColorBut",
                        xmPushButtonGadgetClass, colorDialog,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 10,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Apply" ),
                        XmNheight, 30,
                        XmNwidth, 90,
                        XmNy, 376,
                        XmNx, 13,
                        NULL );

        UxPutContext( ApplyAttColorBut, (char *) UxColorDialogContext );

        ResetAttColorButton = XtVaCreateManagedWidget( "ResetAttColorButton",
                        xmPushButtonGadgetClass, colorDialog,
                        XmNleftWidget, ApplyAttColorBut,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Reset" ),
                        XmNheight, 30,
                        XmNwidth, 86,
                        XmNy, 376,
                        XmNx, 147,
                        NULL );

        UxPutContext( ResetAttColorButton, (char *) UxColorDialogContext );

        CloseAttColorBut = XtVaCreateManagedWidget( "CloseAttColorBut",
                        xmPushButtonGadgetClass, colorDialog,
                        XmNleftWidget, ResetAttColorButton,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Close" ),
                        XmNheight, 30,
                        XmNwidth, 90,
                        XmNy, 376,
                        XmNx, 284,
                        NULL );

        UxPutContext( CloseAttColorBut, (char *) UxColorDialogContext );

        frame3 = XtVaCreateManagedWidget( "frame3",
                        xmFrameWidgetClass, colorDialog,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNheight, 78,
                        XmNwidth, 317,
                        XmNy, 100,
                        XmNx, 9,
                        NULL );

        UxPutContext( frame3, (char *) UxColorDialogContext );

        TargetRow = XtVaCreateManagedWidget( "TargetRow",
                        xmRowColumnWidgetClass, frame3,
                        XmNheight, 66,
                        XmNradioBehavior, TRUE,
                        XmNspacing, 0,
                        XmNpacking, XmPACK_NONE,
                        XmNorientation, XmHORIZONTAL,
                        XmNmarginWidth, 0,
                        XmNmarginHeight, 0,
                        XmNwidth, 313,
                        XmNy, 10,
                        XmNx, 2,
                        NULL );

        UxPutContext( TargetRow, (char *) UxColorDialogContext );

        SurfaceToggle = XtVaCreateManagedWidget( "SurfaceToggle",
                        xmToggleButtonGadgetClass, TargetRow,
                        RES_CONVERT( XmNlabelString, "Surface" ),
                        XmNheight, 1,
                        XmNwidth, 90,
                        XmNy, 7,
                        XmNx, 9,
                        NULL );

        UxPutContext( SurfaceToggle, (char *) UxColorDialogContext );

        StatToggle = XtVaCreateManagedWidget( "StatToggle",
                        xmToggleButtonGadgetClass, TargetRow,
                        RES_CONVERT( XmNlabelString, "Statistic box shadow" ),
                        XmNheight, 29,
                        XmNwidth, 154,
                        XmNy, 7,
                        XmNx, 130,
                        NULL );

        UxPutContext( StatToggle, (char *) UxColorDialogContext );

        ZoneToggle = XtVaCreateManagedWidget( "ZoneToggle",
                        xmToggleButtonGadgetClass, TargetRow,
                        RES_CONVERT( XmNlabelString, "Zone box shadow" ),
                        XmNheight, 20,
                        XmNwidth, 123,
                        XmNy, 41,
                        XmNx, 130,
                        NULL );

        UxPutContext( ZoneToggle, (char *) UxColorDialogContext );

        ContourToggle = XtVaCreateManagedWidget( "ContourToggle",
                        xmToggleButtonGadgetClass, TargetRow,
                        RES_CONVERT( XmNlabelString, "Contour" ),
                        XmNheight, 29,
                        XmNwidth, 188,
                        XmNy, 41,
                        XmNx, 9,
                        NULL );

        UxPutContext( ContourToggle, (char *) UxColorDialogContext );

        form6 = XtVaCreateManagedWidget( "form6",
                        xmFormWidgetClass, colorDialog,
                        XmNheight, 34,
                        XmNwidth, 260,
                        XmNy, 95,
                        XmNx, 7,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( form6, (char *) UxColorDialogContext );

        form5 = XtVaCreateManagedWidget( "form5",
                        xmFormWidgetClass, form6,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 34,
                        XmNwidth, 158,
                        XmNy, 94,
                        XmNx, 112,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( form5, (char *) UxColorDialogContext );

        AttColorText = XtVaCreateManagedWidget( "AttColorText",
                        xmTextWidgetClass, form5,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNvalue, "1",
                        XmNheight, 33,
                        XmNwidth, 46,
                        XmNy, -1,
                        XmNx, 53,
                        NULL );

        UxPutContext( AttColorText, (char *) UxColorDialogContext );

        ColorUpArrow = XtVaCreateManagedWidget( "ColorUpArrow",
                        xmArrowButtonWidgetClass, form5,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftWidget, AttColorText,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNshadowThickness, 0,
                        XmNarrowDirection, XmARROW_RIGHT,
                        RES_CONVERT( XmNforeground, "#9f9f50" ),
                        XmNheight, 35,
                        XmNwidth, 50,
                        XmNy, 0,
                        XmNx, 97,
                        NULL );

        UxPutContext( ColorUpArrow, (char *) UxColorDialogContext );

        ColorDownArrow = XtVaCreateManagedWidget( "ColorDownArrow",
                        xmArrowButtonWidgetClass, form5,
                        XmNrightWidget, AttColorText,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNshadowThickness, 0,
                        XmNarrowDirection, XmARROW_LEFT,
                        RES_CONVERT( XmNforeground, "#9f9f50" ),
                        XmNheight, 35,
                        XmNwidth, 49,
                        XmNy, -1,
                        XmNx, 7,
                        NULL );

        UxPutContext( ColorDownArrow, (char *) UxColorDialogContext );

        textcolorlabel1 = XtVaCreateManagedWidget( "textcolorlabel1",
                        xmLabelGadgetClass, form6,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "Color Index :" ),
                        XmNheight, 24,
                        XmNwidth, 100,
                        XmNy, 96,
                        XmNx, 21,
                        NULL );

        UxPutContext( textcolorlabel1, (char *) UxColorDialogContext );

        XtAddCallback( colorDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxColorDialogContext );

        XtVaSetValues(colorDialog,
                        XmNdefaultButton, ApplyAttColorBut,
                        NULL );



        return ( colorDialog );
}
示例#13
0
static Widget   _Uxbuild_fitFormDialog()
{
        Widget  fitFormDialog_shell;

        fitFormDialog_shell = XtVaCreatePopupShell( "fitFormDialog_shell",
                        xmDialogShellWidgetClass, histoStyle,
                        XmNx, 525,
                        XmNy, 483,
                        XmNwidth, 140,
                        XmNheight, 138,
                        XmNtitle, "fitFormDialog",
                        NULL );

        fitFormDialog = XtVaCreateWidget( "fitFormDialog",
                        xmFormWidgetClass, fitFormDialog_shell,
                        XmNnoResize, TRUE,
                        RES_CONVERT( XmNdialogTitle, "Fits" ),
                        XmNheight, 138,
                        XmNwidth, 140,
                        NULL );

        UxPutContext( fitFormDialog, (char *) UxFitFormDialogContext );

        FitPushButtonGadget = XtVaCreateManagedWidget( "FitPushButtonGadget",
                        xmPushButtonGadgetClass, fitFormDialog,
                        XmNrightPosition, 80,
                        XmNleftPosition, 20,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNleftAttachment, XmATTACH_POSITION,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, " Close " ),
                        XmNheight, 30,
                        NULL );

        UxPutContext( FitPushButtonGadget, (char *) UxFitFormDialogContext );

        separatorGadget3 = XtVaCreateManagedWidget( "separatorGadget3",
                        xmSeparatorGadgetClass, fitFormDialog,
                        XmNbottomWidget, FitPushButtonGadget,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_WIDGET,
                        NULL );

        UxPutContext( separatorGadget3, (char *) UxFitFormDialogContext );

        rowColumn4 = XtVaCreateManagedWidget( "rowColumn4",
                        xmRowColumnWidgetClass, fitFormDialog,
                        XmNbottomWidget, separatorGadget3,
                        XmNbottomAttachment, XmATTACH_WIDGET,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNspacing, 0,
                        NULL );

        UxPutContext( rowColumn4, (char *) UxFitFormDialogContext );

        ChiToggleButtonGadget =
                        XtVaCreateManagedWidget( "ChiToggleButtonGadget",
                        xmToggleButtonGadgetClass, rowColumn4,
                        XmNset, TRUE,
                        RES_CONVERT( XmNlabelString, "Chi Square" ),
                        XmNheight, 20,
                        XmNwidth, 100,
                        XmNy, 13,
                        XmNx, 13,
                        NULL );

        UxPutContext( ChiToggleButtonGadget, (char *) UxFitFormDialogContext );

        ErrorsToggleButtonGadget =
                        XtVaCreateManagedWidget( "ErrorsToggleButtonGadget",
                        xmToggleButtonGadgetClass, rowColumn4,
                        RES_CONVERT( XmNlabelString, "Errors" ),
                        XmNheight, 20,
                        XmNwidth, 100,
                        XmNy, 41,
                        XmNx, 13,
                        NULL );

      UxPutContext( ErrorsToggleButtonGadget, (char *) UxFitFormDialogContext );

        ParametersToggleButtonGadget =
                       XtVaCreateManagedWidget( "ParametersToggleButtonGadget",
                        xmToggleButtonGadgetClass, rowColumn4,
                        XmNset, TRUE,
                        RES_CONVERT( XmNlabelString, "Parameters" ),
                        XmNheight, 20,
                        XmNwidth, 100,
                        XmNy, 41,
                        XmNx, 13,
                        NULL );

  UxPutContext( ParametersToggleButtonGadget, (char *) UxFitFormDialogContext );

        XtAddCallback( fitFormDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxFitFormDialogContext );



        return ( fitFormDialog );
}
示例#14
0
static Widget   _Uxbuild_attributesFormDialog()
{
        Widget  attributesFormDialog_shell;

        attributesFormDialog_shell = XtVaCreatePopupShell(
                        "attributesFormDialog_shell",
                        xmDialogShellWidgetClass, histoStyle,
                        XmNx, 676,
                        XmNy, 222,
                        XmNwidth, 284,
                        XmNheight, 413,
                        XmNshellUnitType, XmPIXELS,
                        XmNtitle, "attributesFormDialog",
                        NULL );

        attributesFormDialog = XtVaCreateWidget( "attributesFormDialog",
                        xmFormWidgetClass, attributesFormDialog_shell,
                        XmNautoUnmanage, FALSE,
                        XmNnoResize, TRUE,
                        RES_CONVERT( XmNdialogTitle,
                        "Object Attributes Settings" ),
                        XmNheight, 413,
                        XmNwidth, 284,
                        XmNunitType, XmPIXELS,
                        NULL );

  UxPutContext( attributesFormDialog, (char *) UxAttributesFormDialogContext );

        separatorGadget1 = XtVaCreateManagedWidget( "separatorGadget1",
                        xmSeparatorGadgetClass, attributesFormDialog,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 50,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 20,
                        XmNwidth, 1220,
                        XmNy, 280,
                        XmNx, 0,
                        NULL );

    UxPutContext( separatorGadget1, (char *) UxAttributesFormDialogContext );

        ApplyAttributesBut = XtVaCreateManagedWidget( "ApplyAttributesBut",
                        xmPushButtonGadgetClass, attributesFormDialog,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 10,
                        RES_CONVERT( XmNlabelString, "Apply" ),
                        XmNheight, 30,
                        XmNwidth, 70,
                        XmNy, 376,
                        XmNx, 13,
                        NULL );

   UxPutContext( ApplyAttributesBut, (char *) UxAttributesFormDialogContext );

        ResetAttributesBut = XtVaCreateManagedWidget( "ResetAttributesBut",
                        xmPushButtonGadgetClass, attributesFormDialog,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNleftWidget, ApplyAttributesBut,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        RES_CONVERT( XmNlabelString, "Reset" ),
                        XmNheight, 30,
                        XmNwidth, 70,
                        XmNy, 376,
                        XmNx, 00147,
                        NULL );

   UxPutContext( ResetAttributesBut, (char *) UxAttributesFormDialogContext );

        CloseAttributesBut = XtVaCreateManagedWidget( "CloseAttributesBut",
                        xmPushButtonGadgetClass, attributesFormDialog,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNleftWidget, ResetAttributesBut,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        RES_CONVERT( XmNlabelString, "Close" ),
                        XmNheight, 30,
                        XmNwidth, 70,
                        XmNy, 376,
                        XmNx, 284,
                        NULL );

   UxPutContext( CloseAttributesBut, (char *) UxAttributesFormDialogContext );

        form9 = XtVaCreateManagedWidget( "form9",
                        xmFormWidgetClass, attributesFormDialog,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNtopOffset, 220,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNheight, 36,
                        XmNwidth, 180,
                        XmNy, 246,
                        XmNx, 18,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( form9, (char *) UxAttributesFormDialogContext );

        LineWidthUpArrow = XtVaCreateManagedWidget( "LineWidthUpArrow",
                        xmArrowButtonWidgetClass, form9,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNshadowThickness, 0,
                        XmNarrowDirection, XmARROW_RIGHT,
                        RES_CONVERT( XmNforeground, "#9f9abe" ),
                        XmNheight, 36,
                        XmNwidth, 42,
                        XmNy, 0,
                        XmNx, 232,
                        NULL );

    UxPutContext( LineWidthUpArrow, (char *) UxAttributesFormDialogContext );

        LineWidthDownArrow = XtVaCreateManagedWidget( "LineWidthDownArrow",
                        xmArrowButtonWidgetClass, form9,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNshadowThickness, 0,
                        XmNarrowDirection, XmARROW_LEFT,
                        RES_CONVERT( XmNforeground, "#9f9abe" ),
                        XmNheight, 36,
                        XmNwidth, 40,
                        XmNy, 0,
                        XmNx, 0,
                        NULL );

 UxPutContext( LineWidthDownArrow, (char *) UxAttributesFormDialogContext );

        LineWidthLabel = XtVaCreateManagedWidget( "LineWidthLabel",
                        xmLabelWidgetClass, form9,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNrecomputeSize, FALSE,
                      RES_CONVERT( XmNlabelString, "Histogram Line Width :" ),
                        XmNalignment, XmALIGNMENT_CENTER,
                        XmNheight, 17,
                        XmNwidth, 165,
                        XmNy, 8,
                        XmNx, 39,
                        NULL );

        UxPutContext( LineWidthLabel, (char *) UxAttributesFormDialogContext );

        LineWidthValueLabel = XtVaCreateManagedWidget( "LineWidthValueLabel",
                        xmLabelGadgetClass, form9,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "XX" ),
                        XmNheight, 17,
                        XmNwidth, 30,
                        XmNy, 3,
                        XmNx, 203,
                        NULL );

  UxPutContext( LineWidthValueLabel, (char *) UxAttributesFormDialogContext );

        EncadreForm1 = XtVaCreateManagedWidget( "EncadreForm1",
                        xmFormWidgetClass, attributesFormDialog,
                        XmNheight, 210,
                        XmNwidth, 115,
                        XmNy, 5,
                        XmNx, 5,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( EncadreForm1, (char *) UxAttributesFormDialogContext );

        Titre1 = XtVaCreateManagedWidget( "Titre1",
                        xmLabelGadgetClass, EncadreForm1,
                        XmNtopOffset, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNmarginWidth, 0,
                        XmNrecomputeSize, TRUE,
                        RES_CONVERT( XmNlabelString, "Object" ),
                        XmNheight, 20,
                        XmNwidth, 60,
                        XmNy, 0,
                        XmNx, 10,
                        NULL );

        UxPutContext( Titre1, (char *) UxAttributesFormDialogContext );

        UpperLeftSep1 = XtVaCreateManagedWidget( "UpperLeftSep1",
                        xmSeparatorGadgetClass, EncadreForm1,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightWidget, Titre1,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNheight, 2,
                        XmNwidth, 99,
                        XmNy, 200,
                        XmNx, 87,
                        NULL );

        UxPutContext( UpperLeftSep1, (char *) UxAttributesFormDialogContext );

        LeftSep1 = XtVaCreateManagedWidget( "LeftSep1",
                        xmSeparatorGadgetClass, EncadreForm1,
                        XmNtopOffset, 11,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNorientation, XmVERTICAL,
                        XmNheight, 116,
                        XmNwidth, 2,
                        XmNy, 201,
                        XmNx, 84,
                        NULL );

        UxPutContext( LeftSep1, (char *) UxAttributesFormDialogContext );

        BottomSep1 = XtVaCreateManagedWidget( "BottomSep1",
                        xmSeparatorGadgetClass, EncadreForm1,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 2,
                        XmNwidth, 292,
                        XmNy, 315,
                        XmNx, 86,
                        NULL );

        UxPutContext( BottomSep1, (char *) UxAttributesFormDialogContext );

        RightSep1 = XtVaCreateManagedWidget( "RightSep1",
                        xmSeparatorGadgetClass, EncadreForm1,
                        XmNtopOffset, 11,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_NONE,
                        XmNbottomOffset, 1,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNorientation, XmVERTICAL,
                        XmNheight, 116,
                        XmNwidth, 2,
                        XmNy, 201,
                        XmNx, 375,
                        NULL );

        UxPutContext( RightSep1, (char *) UxAttributesFormDialogContext );

        UpperRightSep1 = XtVaCreateManagedWidget( "UpperRightSep1",
                        xmSeparatorGadgetClass, EncadreForm1,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftWidget, Titre1,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNheight, 2,
                        XmNwidth, 106,
                        XmNy, 200,
                        XmNx, 274,
                        NULL );

        UxPutContext( UpperRightSep1, (char *) UxAttributesFormDialogContext );

        ObjectRow = XtVaCreateManagedWidget( "ObjectRow",
                        xmRowColumnWidgetClass, EncadreForm1,
                        XmNtopOffset, 17,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNradioAlwaysOne, TRUE,
                        XmNborderWidth, 0,
                        XmNradioBehavior, TRUE,
                        XmNheight, 170,
                        XmNwidth, 123,
                        XmNy, 21,
                        XmNx, 269,
                        NULL );

        UxPutContext( ObjectRow, (char *) UxAttributesFormDialogContext );

        BoxToggle = XtVaCreateManagedWidget( "BoxToggle",
                        xmToggleButtonGadgetClass, ObjectRow,
                        XmNuserData, (XtPointer) "B",
                        XmNindicatorType, XmONE_OF_MANY,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "Box" ),
                        XmNheight, 27,
                        XmNwidth, 113,
                        XmNy, 46,
                        XmNx, 276,
                        NULL );

        UxPutContext( BoxToggle, (char *) UxAttributesFormDialogContext );

        HistoToggle = XtVaCreateManagedWidget( "HistoToggle",
                        xmToggleButtonGadgetClass, ObjectRow,
                        XmNuserData, (XtPointer) "H",
                        XmNindicatorType, XmONE_OF_MANY,
                        RES_CONVERT( XmNlabelString, "Histogram" ),
                        XmNheight, 27,
                        XmNwidth, 113,
                        XmNy, 21,
                        XmNx, 275,
                        NULL );

        UxPutContext( HistoToggle, (char *) UxAttributesFormDialogContext );

        YAxisToggle = XtVaCreateManagedWidget( "YAxisToggle",
                        xmToggleButtonGadgetClass, ObjectRow,
                        XmNuserData, (XtPointer) "Y",
                        XmNindicatorType, XmONE_OF_MANY,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "Y Axis" ),
                        XmNheight, 27,
                        XmNwidth, 113,
                        XmNy, 168,
                        XmNx, 275,
                        NULL );

        UxPutContext( YAxisToggle, (char *) UxAttributesFormDialogContext );

        XAxisToggle = XtVaCreateManagedWidget( "XAxisToggle",
                        xmToggleButtonGadgetClass, ObjectRow,
                        XmNuserData, (XtPointer) "X",
                        XmNindicatorType, XmONE_OF_MANY,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "X Axis" ),
                        XmNheight, 27,
                        XmNwidth, 113,
                        XmNy, 141,
                        XmNx, 277,
                        NULL );

        UxPutContext( XAxisToggle, (char *) UxAttributesFormDialogContext );

        FunctionToggle = XtVaCreateManagedWidget( "FunctionToggle",
                        xmToggleButtonGadgetClass, ObjectRow,
                        XmNuserData, (XtPointer) "F",
                        XmNindicatorType, XmONE_OF_MANY,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "Function" ),
                        XmNheight, 27,
                        XmNwidth, 113,
                        XmNy, 112,
                        XmNx, 275,
                        NULL );

        UxPutContext( FunctionToggle, (char *) UxAttributesFormDialogContext );

        PictureToggle = XtVaCreateManagedWidget( "PictureToggle",
                        xmToggleButtonGadgetClass, ObjectRow,
                        XmNuserData, (XtPointer) "P",
                        XmNindicatorType, XmONE_OF_MANY,
                        XmNalignment, XmALIGNMENT_BEGINNING,
                        RES_CONVERT( XmNlabelString, "Picture" ),
                        XmNheight, 27,
                        XmNwidth, 113,
                        XmNy, 78,
                        XmNx, 275,
                        NULL );

        UxPutContext( PictureToggle, (char *) UxAttributesFormDialogContext );

        EncadreForm7 = XtVaCreateManagedWidget( "EncadreForm7",
                        xmFormWidgetClass, attributesFormDialog,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 10,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNheight, 210,
                        XmNwidth, 148,
                        XmNy, 17,
                        XmNx, 128,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( EncadreForm7, (char *) UxAttributesFormDialogContext );

        Titre7 = XtVaCreateManagedWidget( "Titre7",
                        xmLabelGadgetClass, EncadreForm7,
                        XmNtopOffset, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNmarginWidth, 0,
                        XmNrecomputeSize, TRUE,
                        RES_CONVERT( XmNlabelString, "Action" ),
                        XmNheight, 20,
                        XmNwidth, 60,
                        XmNy, 0,
                        XmNx, 10,
                        NULL );

        UxPutContext( Titre7, (char *) UxAttributesFormDialogContext );

        UpperLeftSep7 = XtVaCreateManagedWidget( "UpperLeftSep7",
                        xmSeparatorGadgetClass, EncadreForm7,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightWidget, Titre7,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNheight, 2,
                        XmNwidth, 99,
                        XmNy, 200,
                        XmNx, 87,
                        NULL );

        UxPutContext( UpperLeftSep7, (char *) UxAttributesFormDialogContext );

        LeftSep7 = XtVaCreateManagedWidget( "LeftSep7",
                        xmSeparatorGadgetClass, EncadreForm7,
                        XmNtopOffset, 11,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNorientation, XmVERTICAL,
                        XmNheight, 116,
                        XmNwidth, 2,
                        XmNy, 201,
                        XmNx, 84,
                        NULL );

        UxPutContext( LeftSep7, (char *) UxAttributesFormDialogContext );

        BottomSep7 = XtVaCreateManagedWidget( "BottomSep7",
                        xmSeparatorGadgetClass, EncadreForm7,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 2,
                        XmNwidth, 292,
                        XmNy, 315,
                        XmNx, 86,
                        NULL );

        UxPutContext( BottomSep7, (char *) UxAttributesFormDialogContext );

        RightSep7 = XtVaCreateManagedWidget( "RightSep7",
                        xmSeparatorGadgetClass, EncadreForm7,
                        XmNtopOffset, 11,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_NONE,
                        XmNbottomOffset, 1,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNorientation, XmVERTICAL,
                        XmNheight, 116,
                        XmNwidth, 2,
                        XmNy, 201,
                        XmNx, 375,
                        NULL );

        UxPutContext( RightSep7, (char *) UxAttributesFormDialogContext );

        UpperRightSep7 = XtVaCreateManagedWidget( "UpperRightSep7",
                        xmSeparatorGadgetClass, EncadreForm7,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftWidget, Titre7,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNheight, 2,
                        XmNwidth, 106,
                        XmNy, 200,
                        XmNx, 274,
                        NULL );

        UxPutContext( UpperRightSep7, (char *) UxAttributesFormDialogContext );

        form2 = XtVaCreateManagedWidget( "form2",
                        xmFormWidgetClass, EncadreForm7,
                        XmNbottomOffset, 10,
                        XmNtopOffset, 15,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 110,
                        XmNwidth, 150,
                        XmNy, 110,
                        XmNx, 130,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( form2, (char *) UxAttributesFormDialogContext );

        HatchStyleButton = XtVaCreateManagedWidget( "HatchStyleButton",
                        xmPushButtonGadgetClass, form2,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_NONE,
                        XmNrightOffset, 10,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Hatch Style..." ),
                        XmNheight, 30,
                        XmNwidth, 126,
                        XmNy, 21,
                        XmNx, 11,
                        NULL );

    UxPutContext( HatchStyleButton, (char *) UxAttributesFormDialogContext );

        ColorButton = XtVaCreateManagedWidget( "ColorButton",
                        xmPushButtonGadgetClass, form2,
                        XmNtopWidget, HatchStyleButton,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_NONE,
                        XmNrightOffset, 10,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Color..." ),
                        XmNheight, 30,
                        XmNwidth, 130,
                        XmNy, 78,
                        XmNx, 9,
                        NULL );

        UxPutContext( ColorButton, (char *) UxAttributesFormDialogContext );

        ResetObjectBut = XtVaCreateManagedWidget( "ResetObjectBut",
                        xmPushButtonGadgetClass, form2,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNrightOffset, 10,
                        XmNrightAttachment, XmATTACH_FORM,
                        RES_CONVERT( XmNlabelString, "Reset Object" ),
                        XmNheight, 30,
                        XmNwidth, 130,
                        XmNy, 139,
                        XmNx, 10,
                        NULL );

        UxPutContext( ResetObjectBut, (char *) UxAttributesFormDialogContext );

        TitleForm = XtVaCreateManagedWidget( "TitleForm",
                        xmFormWidgetClass, attributesFormDialog,
                        XmNtopOffset, 260,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNheight, 73,
                        XmNwidth, 251,
                        XmNy, 285,
                        XmNx, 20,
                        XmNresizePolicy, XmRESIZE_NONE,
                        NULL );

        UxPutContext( TitleForm, (char *) UxAttributesFormDialogContext );

        TitleLabel = XtVaCreateManagedWidget( "TitleLabel",
                        xmLabelGadgetClass, TitleForm,
                        XmNtopOffset, 0,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNmarginWidth, 0,
                        RES_CONVERT( XmNlabelString, "Histogram Title" ),
                        XmNheight, 22,
                        XmNwidth, 120,
                        XmNy, 0,
                        XmNx, 10,
                        NULL );

        UxPutContext( TitleLabel, (char *) UxAttributesFormDialogContext );

        UpperLeftSep9 = XtVaCreateManagedWidget( "UpperLeftSep9",
                        xmSeparatorGadgetClass, TitleForm,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightWidget, TitleLabel,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNheight, 2,
                        XmNwidth, 10,
                        XmNy, 11,
                        XmNx, 0,
                        NULL );

        UxPutContext( UpperLeftSep9, (char *) UxAttributesFormDialogContext );

        LeftSep9 = XtVaCreateManagedWidget( "LeftSep9",
                        xmSeparatorGadgetClass, TitleForm,
                        XmNtopOffset, 11,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNorientation, XmVERTICAL,
                        XmNheight, 60,
                        XmNwidth, 2,
                        XmNy, 12,
                        XmNx, 0,
                        NULL );

        UxPutContext( LeftSep9, (char *) UxAttributesFormDialogContext );

        BottomSep9 = XtVaCreateManagedWidget( "BottomSep9",
                        xmSeparatorGadgetClass, TitleForm,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 0,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 2,
                        XmNwidth, 251,
                        XmNy, 70,
                        XmNx, 0,
                        NULL );

        UxPutContext( BottomSep9, (char *) UxAttributesFormDialogContext );

        RightSep9 = XtVaCreateManagedWidget( "RightSep9",
                        xmSeparatorGadgetClass, TitleForm,
                        XmNtopOffset, 11,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_NONE,
                        XmNbottomOffset, 1,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNorientation, XmVERTICAL,
                        XmNheight, 59,
                        XmNwidth, 2,
                        XmNy, 12,
                        XmNx, 249,
                        NULL );

        UxPutContext( RightSep9, (char *) UxAttributesFormDialogContext );

        UpperRightSep9 = XtVaCreateManagedWidget( "UpperRightSep9",
                        xmSeparatorGadgetClass, TitleForm,
                        XmNtopOffset, 10,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftWidget, TitleLabel,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNheight, 2,
                        XmNwidth, 193,
                        XmNy, 11,
                        XmNx, 58,
                        NULL );

        UxPutContext( UpperRightSep9, (char *) UxAttributesFormDialogContext );

        TitleText = XtVaCreateManagedWidget( "TitleText",
                        xmTextWidgetClass, TitleForm,
                        XmNrightOffset, 10,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 10,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 35,
                        XmNwidth, 160,
                        XmNy, 303,
                        XmNx, 65,
                        NULL );

        UxPutContext( TitleText, (char *) UxAttributesFormDialogContext );

        XtAddCallback( attributesFormDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxAttributesFormDialogContext );

        XtVaSetValues(attributesFormDialog,
                        XmNdefaultButton, ApplyAttributesBut,
                        NULL );



        return ( attributesFormDialog );
}
示例#15
0
文件: kuxcmp.c 项目: apc-llc/cernlib
static Widget        _Uxbuild_kuipCommandP()
{
        Widget                _UxParent;


        /* Creation of kuipCommandP */
        _UxParent = XtVaCreatePopupShell( "kuipCommandP_shell",
                        xmDialogShellWidgetClass, UxTopLevel,
                        XmNallowShellResize, TRUE,
                        XmNtitle, "kuipCommandP",
                        NULL );

        kuipCommandP = XtVaCreateWidget( "kuipCommandP",
                        xmFormWidgetClass,
                        _UxParent,
                        XmNautoUnmanage, FALSE,
                        RES_CONVERT( XmNdialogTitle, "Command" ),
                        XmNdefaultPosition, FALSE,
                        XmNresizePolicy, XmRESIZE_ANY,
                        NULL );
        UxPutContext( kuipCommandP, (char *) UxKuipCommandPContext );


        /* Creation of commandSep */
        commandSep = XtVaCreateManagedWidget( "commandSep",
                        xmSeparatorGadgetClass,
                        kuipCommandP,
                        XmNheight, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 45,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNrightOffset, 0,
                        NULL );
        UxPutContext( commandSep, (char *) UxKuipCommandPContext );


        /* Creation of km_cmdOK */
        km_cmdOK = XtVaCreateManagedWidget( "km_cmdOK",
                        xmPushButtonGadgetClass,
                        kuipCommandP,
                        XmNwidth, 80,
                        XmNheight, 30,
                        RES_CONVERT( XmNlabelString, "OK" ),
                        XmNshowAsDefault, 1,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNtopAttachment, XmATTACH_NONE,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNrightOffset, 5,
                        XmNrightPosition, 20,
                        XmNmnemonicCharSet, "O",
                        NULL );
        UxPutContext( km_cmdOK, (char *) UxKuipCommandPContext );


        /* Creation of km_cmdEX */
        km_cmdEX = XtVaCreateManagedWidget( "km_cmdEX",
                        xmPushButtonGadgetClass,
                        kuipCommandP,
                        XmNwidth, 80,
                        XmNheight, 30,
                        RES_CONVERT( XmNlabelString, "Execute" ),
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 5,
                        XmNleftWidget, km_cmdOK,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNrightOffset, 5,
                        XmNrightPosition, 40,
                        RES_CONVERT( XmNmnemonic, "E" ),
                        NULL );
        UxPutContext( km_cmdEX, (char *) UxKuipCommandPContext );


        /* Creation of km_cmdRE */
        km_cmdRE = XtVaCreateManagedWidget( "km_cmdRE",
                        xmPushButtonGadgetClass,
                        kuipCommandP,
                        XmNwidth, 80,
                        XmNheight, 30,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 5,
                        XmNleftWidget, km_cmdEX,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNrightOffset, 5,
                        XmNrightPosition, 60,
                        XmNtopAttachment, XmATTACH_NONE,
                        RES_CONVERT( XmNlabelString, "Reset" ),
                        RES_CONVERT( XmNmnemonic, "R" ),
                        NULL );
        UxPutContext( km_cmdRE, (char *) UxKuipCommandPContext );


        /* Creation of km_cmdCA */
        km_cmdCA = XtVaCreateManagedWidget( "km_cmdCA",
                        xmPushButtonGadgetClass,
                        kuipCommandP,
                        XmNwidth, 80,
                        XmNheight, 30,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 5,
                        XmNleftWidget, km_cmdRE,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNrightOffset, 5,
                        XmNrightPosition, 80,
                        RES_CONVERT( XmNlabelString, "Cancel" ),
                        RES_CONVERT( XmNmnemonic, "C" ),
                        NULL );
        UxPutContext( km_cmdCA, (char *) UxKuipCommandPContext );


        /* Creation of km_cmdHE */
        km_cmdHE = XtVaCreateManagedWidget( "km_cmdHE",
                        xmPushButtonGadgetClass,
                        kuipCommandP,
                        XmNwidth, 80,
                        XmNheight, 30,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 5,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNrightOffset, 5,
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftOffset, 5,
                        XmNleftWidget, km_cmdCA,
                        XmNrightPosition, 100,
                        RES_CONVERT( XmNlabelString, "Help" ),
                        RES_CONVERT( XmNmnemonic, "H" ),
                        NULL );
        UxPutContext( km_cmdHE, (char *) UxKuipCommandPContext );

        XtVaSetValues(kuipCommandP,
                        XmNdefaultButton, km_cmdOK,
                        NULL );


        XtAddCallback( kuipCommandP, XmNdestroyCallback,
                (XtCallbackProc) UxDestroyContextCB,
                (XtPointer) UxKuipCommandPContext);


        return ( kuipCommandP );
}
示例#16
0
static Widget   _Uxbuild_inputTrDialog()
{
        Widget  inputTrDialog_shell;

        inputTrDialog_shell = XtVaCreatePopupShell( "inputTrDialog_shell",
                        xmDialogShellWidgetClass, kuipIo,
                        XmNwidth, 520,
                        XmNheight, 315,
                        XmNshellUnitType, XmPIXELS,
                        XmNtitle, "inputTrDialog",
                        NULL );

        inputTrDialog = XtVaCreateWidget( "inputTrDialog",
                        xmFormWidgetClass, inputTrDialog_shell,
                        XmNdefaultPosition, FALSE,
                        XmNautoUnmanage, FALSE,
                        RES_CONVERT( XmNdialogTitle, "Input Transcript" ),
                        XmNheight, 315,
                        XmNwidth, 520,
                        XmNunitType, XmPIXELS,
                        NULL );

        UxPutContext( inputTrDialog, (char *) UxInputTrDialogContext );

        closeInputTrButton = XtVaCreateManagedWidget( "closeInputTrButton",
                        xmPushButtonWidgetClass, inputTrDialog,
                        XmNrightPosition, 60,
                        XmNrightAttachment, XmATTACH_POSITION,
                        XmNleftPosition, 40,
                        XmNleftAttachment, XmATTACH_POSITION,
                        RES_CONVERT( XmNlabelString, "Close" ),
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 30,
                        XmNwidth, 60,
                        NULL );

        UxPutContext( closeInputTrButton, (char *) UxInputTrDialogContext );

        separator2 = XtVaCreateManagedWidget( "separator2",
                        xmSeparatorWidgetClass, inputTrDialog,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomWidget, closeInputTrButton,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_WIDGET,
                        NULL );

        UxPutContext( separator2, (char *) UxInputTrDialogContext );

        scrolledWindow = XtVaCreateManagedWidget( "scrolledWindow",
                        xmScrolledWindowWidgetClass, inputTrDialog,
                        XmNbottomWidget, separator2,
                        XmNbottomOffset, 5,
                        XmNbottomAttachment, XmATTACH_WIDGET,
                        XmNtopOffset, 5,
                        XmNrightOffset, 5,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNshadowThickness, 0,
                        XmNscrollBarDisplayPolicy, XmSTATIC,
                        XmNvisualPolicy, XmVARIABLE,
                        XmNscrollingPolicy, XmAPPLICATION_DEFINED,
                        NULL );

        UxPutContext( scrolledWindow, (char *) UxInputTrDialogContext );

        inputTrText = XtVaCreateManagedWidget( "inputTrText",
                        xmTextWidgetClass, scrolledWindow,
                        XmNeditable, FALSE,
                        XmNeditMode, XmMULTI_LINE_EDIT ,
                        XmNheight, 210,
                        XmNwidth, 495,
                        NULL );

        UxPutContext( inputTrText, (char *) UxInputTrDialogContext );

        XtAddCallback( inputTrDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxInputTrDialogContext );

        XtVaSetValues(inputTrDialog,
                        XmNdefaultButton, closeInputTrButton,
                        NULL );



        return ( inputTrDialog );
}
示例#17
0
static Widget   _Uxbuild_parHeaderForm()
{
        Widget          _UxParent;


        /* Creation of parHeaderForm */
        _UxParent = UxParent;
        if ( _UxParent == NULL )
        {
                _UxParent = XtVaCreatePopupShell( "parHeaderForm_shell",
                        topLevelShellWidgetClass, UxTopLevel,
                        XmNshellUnitType, Xm100TH_FONT_UNITS,
                        XmNtitle, "parHeaderForm",
                        XmNiconName, "parHeaderForm",
                        NULL );

        }

        parHeaderForm = XtVaCreateManagedWidget( "parHeaderForm",
                        xmFormWidgetClass,
                        _UxParent,
                        XmNresizePolicy, XmRESIZE_ANY,
                        XmNunitType, Xm100TH_FONT_UNITS,
                        XmNmarginHeight, 0,
                        XmNmarginWidth, 0,
                        RES_CONVERT( XmNforeground, "Red" ),
                        NULL );
        UxPutContext( parHeaderForm, (char *) UxParHeaderFormContext );


        /* Creation of parHeaderRightForm */
        parHeaderRightForm = XtVaCreateManagedWidget( "parHeaderRightForm",
                        xmFormWidgetClass,
                        parHeaderForm,
                        XmNresizePolicy, XmRESIZE_ANY,
                        XmNunitType, Xm100TH_FONT_UNITS,
                        XmNallowOverlap, FALSE,
                        XmNshadowThickness, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        NULL );
        UxPutContext( parHeaderRightForm, (char *) UxParHeaderFormContext );


        /* Creation of parValueLabel */
        parValueLabel = XtVaCreateManagedWidget( "parValueLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Value" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        XmNleftAttachment, XmATTACH_FORM,
                        NULL );
        UxPutContext( parValueLabel, (char *) UxParHeaderFormContext );


        /* Creation of parFixLabel */
        parFixLabel = XtVaCreateManagedWidget( "parFixLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "F/R" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftWidget, parValueLabel,
                        NULL );
        UxPutContext( parFixLabel, (char *) UxParHeaderFormContext );


        /* Creation of parLowLimitLabel */
        parLowLimitLabel = XtVaCreateWidget( "parLowLimitLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Lower limit" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        NULL );
        UxPutContext( parLowLimitLabel, (char *) UxParHeaderFormContext );


        /* Creation of parUppLimitLabel */
        parUppLimitLabel = XtVaCreateWidget( "parUppLimitLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Upper limit" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftWidget, parLowLimitLabel,
                        NULL );
        UxPutContext( parUppLimitLabel, (char *) UxParHeaderFormContext );


        /* Creation of parStepLabel */
        parStepLabel = XtVaCreateWidget( "parStepLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Step" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        NULL );
        UxPutContext( parStepLabel, (char *) UxParHeaderFormContext );


        /* Creation of parEparabLabel */
        parEparabLabel = XtVaCreateWidget( "parEparabLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Eparab" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        NULL );
        UxPutContext( parEparabLabel, (char *) UxParHeaderFormContext );


        /* Creation of parEminusLabel */
        parEminusLabel = XtVaCreateWidget( "parEminusLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Eminus" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        NULL );
        UxPutContext( parEminusLabel, (char *) UxParHeaderFormContext );


        /* Creation of parEplusLabel */
        parEplusLabel = XtVaCreateWidget( "parEplusLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Eplus" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftWidget, parEminusLabel,
                        NULL );
        UxPutContext( parEplusLabel, (char *) UxParHeaderFormContext );


        /* Creation of parGlobccLabel */
        parGlobccLabel = XtVaCreateWidget( "parGlobccLabel",
                        xmLabelWidgetClass,
                        parHeaderRightForm,
                        RES_CONVERT( XmNlabelString, "Globcc" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        NULL );
        UxPutContext( parGlobccLabel, (char *) UxParHeaderFormContext );


        /* Creation of parHeaderLeftForm */
        parHeaderLeftForm = XtVaCreateManagedWidget( "parHeaderLeftForm",
                        xmFormWidgetClass,
                        parHeaderForm,
                        XmNresizePolicy, XmRESIZE_ANY,
                        XmNunitType, Xm100TH_FONT_UNITS,
                        XmNallowOverlap, FALSE,
                        XmNshadowThickness, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        NULL );
        UxPutContext( parHeaderLeftForm, (char *) UxParHeaderFormContext );


        /* Creation of parNumberLabel */
        parNumberLabel = XtVaCreateManagedWidget( "parNumberLabel",
                        xmLabelWidgetClass,
                        parHeaderLeftForm,
                        RES_CONVERT( XmNlabelString, "No" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        NULL );
        UxPutContext( parNumberLabel, (char *) UxParHeaderFormContext );


        /* Creation of parNameLabel */
        parNameLabel = XtVaCreateManagedWidget( "parNameLabel",
                        xmLabelWidgetClass,
                        parHeaderLeftForm,
                        RES_CONVERT( XmNlabelString, "Name" ),
                        XmNrecomputeSize, FALSE,
                        RES_CONVERT( XmNforeground, "red" ),
                        XmNleftAttachment, XmATTACH_WIDGET,
                        XmNleftWidget, parNumberLabel,
                        NULL );
        UxPutContext( parNameLabel, (char *) UxParHeaderFormContext );


        /* Creation of parTopSeparator */
        parTopSeparator = XtVaCreateManagedWidget( "parTopSeparator",
                        xmSeparatorGadgetClass,
                        parHeaderForm,
                        XmNseparatorType, XmSHADOW_ETCHED_OUT,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNtopWidget, parHeaderRightForm,
                        NULL );
        UxPutContext( parTopSeparator, (char *) UxParHeaderFormContext );


        XtAddCallback( parHeaderForm, XmNdestroyCallback,
                (XtCallbackProc) UxDestroyContextCB,
                (XtPointer) UxParHeaderFormContext);


        return ( parHeaderForm );
}
示例#18
0
static Widget   _Uxbuild_helpDialog()
{
        Widget  helpDialog_shell;

        helpDialog_shell = XtVaCreatePopupShell( "helpDialog_shell",
                        xmDialogShellWidgetClass, UxTopLevel,
                        XmNx, 441,
                        XmNy, 211,
                        XmNwidth, 650,
                        XmNheight, 410,
                        XmNtitle, "helpDialog",
                        NULL );

        helpDialog = XtVaCreateWidget( "helpDialog",
                        xmFormWidgetClass, helpDialog_shell,
                        RES_CONVERT( XmNdialogTitle, "Help" ),
                        XmNautoUnmanage, FALSE,
                        XmNheight, 410,
                        XmNwidth, 650,
                        NULL );

        UxPutContext( helpDialog, (char *) UxHelpDialogContext );

        helpScWindow = XtVaCreateManagedWidget( "helpScWindow",
                        xmScrolledWindowWidgetClass, helpDialog,
                        XmNtopOffset, 5,
                        XmNtopAttachment, XmATTACH_FORM,
                        XmNrightOffset, 5,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 5,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomPosition, 80,
                        XmNbottomOffset, 80,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNvisualPolicy, XmVARIABLE,
                        XmNscrollingPolicy, XmAPPLICATION_DEFINED,
                        XmNscrollBarDisplayPolicy, XmSTATIC,
                        XmNshadowThickness, 0,
                        XmNy, 20,
                        XmNx, 20,
                        NULL );

        UxPutContext( helpScWindow, (char *) UxHelpDialogContext );

        helpText = XtVaCreateManagedWidget( "helpText",
                        xmTextWidgetClass, helpScWindow,
                        XmNeditMode, XmMULTI_LINE_EDIT ,
                        XmNeditable, FALSE,
                        XmNheight, 300,
                        XmNwidth, 560,
                        XmNy, 0,
                        XmNx, 68,
                        NULL );

        UxPutContext( helpText, (char *) UxHelpDialogContext );

        helpOK = XtVaCreateManagedWidget( "helpOK",
                        xmPushButtonGadgetClass, helpDialog,
                        XmNtopAttachment, XmATTACH_NONE,
                        XmNrightPosition, 55,
                        XmNleftPosition, 50,
                        XmNleftOffset, -30,
                        XmNleftAttachment, XmATTACH_POSITION,
                        XmNbottomOffset, 10,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNshowAsDefault, 1,
                        RES_CONVERT( XmNlabelString, "OK" ),
                        XmNheight, 30,
                        XmNwidth, 60,
                        XmNy, 370,
                        XmNx, 292,
                        NULL );

        UxPutContext( helpOK, (char *) UxHelpDialogContext );

        helpSep = XtVaCreateManagedWidget( "helpSep",
                        xmSeparatorGadgetClass, helpDialog,
                        XmNrightOffset, 0,
                        XmNrightAttachment, XmATTACH_FORM,
                        XmNleftOffset, 0,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNbottomOffset, 60,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNheight, 10,
                        XmNwidth, 510,
                        XmNy, 330,
                        XmNx, 70,
                        NULL );

        UxPutContext( helpSep, (char *) UxHelpDialogContext );

        XtAddCallback( helpDialog, XmNdestroyCallback,
                        UxFreeClientDataCB,
                        (XtPointer) UxHelpDialogContext );

        XtVaSetValues(helpDialog,
                        XmNdefaultButton, helpOK,
                        NULL );



        return ( helpDialog );
}
示例#19
0
static Widget
_Uxbuild_groupNamesForm()
{
    Widget _UxParent;


    /* Creation of groupNamesForm */
    _UxParent = UxParent;
    if (_UxParent == NULL) {
	_UxParent = XtVaCreatePopupShell("groupNamesForm_shell",
				       topLevelShellWidgetClass, UxTopLevel,
					 XmNx, 330,
					 XmNy, 380,
					 XmNwidth, 620,
					 XmNheight, 300,
					 XmNshellUnitType, XmPIXELS,
					 XmNtitle, "groupNamesForm",
					 XmNiconName, "groupNamesForm",
					 NULL);

    }
    groupNamesForm = XtVaCreateManagedWidget("groupNamesForm",
					     xmFormWidgetClass,
					     _UxParent,
					     XmNwidth, 620,
					     XmNheight, 300,
					     XmNresizePolicy, XmRESIZE_NONE,
					     XmNunitType, XmPIXELS,
					     NULL);
    UxPutContext(groupNamesForm, (char *) UxGroupNamesFormContext);


    /* Creation of label10 */
    label10 = XtVaCreateManagedWidget("label10",
				      xmLabelWidgetClass,
				      groupNamesForm,
				      XmNx, 30,
				      XmNy, 140,
				      XmNwidth, 190,
				      XmNheight, 30,
				      RES_CONVERT(XmNlabelString, "Group"),
				      NULL);
    UxPutContext(label10, (char *) UxGroupNamesFormContext);


    /* Creation of label11 */
    label11 = XtVaCreateManagedWidget("label11",
				      xmLabelWidgetClass,
				      groupNamesForm,
				      XmNx, 30,
				      XmNy, 180,
				      XmNwidth, 190,
				      XmNheight, 30,
				XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
				      XmNleftOffset, 0,
				      XmNleftWidget, label10,
				      XmNtopAttachment, XmATTACH_WIDGET,
				      XmNtopOffset, 15,
				      XmNtopWidget, label10,
			 RES_CONVERT(XmNlabelString, "Application (Title)"),
				      NULL);
    UxPutContext(label11, (char *) UxGroupNamesFormContext);


    /* Creation of wGroupTxt */
    wGroupTxt = XtVaCreateManagedWidget("wGroupTxt",
					xmTextFieldWidgetClass,
					groupNamesForm,
					XmNwidth, 340,
					XmNx, 260,
					XmNy, 120,
					XmNheight, 40,
					XmNleftAttachment, XmATTACH_WIDGET,
					XmNleftOffset, 15,
					XmNleftWidget, label10,
				 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
					XmNtopOffset, 0,
					XmNtopWidget, label10,
					NULL);
    UxPutContext(wGroupTxt, (char *) UxGroupNamesFormContext);


    /* Creation of wApplicationTxt */
    wApplicationTxt = XtVaCreateManagedWidget("wApplicationTxt",
					      xmTextFieldWidgetClass,
					      groupNamesForm,
					      XmNwidth, 340,
					      XmNx, 260,
					      XmNy, 180,
					      XmNheight, 40,
					 XmNleftAttachment, XmATTACH_WIDGET,
					      XmNleftOffset, 15,
					      XmNleftWidget, label10,
				 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
					      XmNtopOffset, 0,
					      XmNtopWidget, label11,
					      NULL);
    UxPutContext(wApplicationTxt, (char *) UxGroupNamesFormContext);


    /* Creation of pushButton10 */
    pushButton10 = XtVaCreateManagedWidget("pushButton10",
					   xmPushButtonWidgetClass,
					   groupNamesForm,
					   XmNx, 110,
					   XmNy, 240,
					   XmNwidth, 130,
					   XmNheight, 50,
					 RES_CONVERT(XmNlabelString, "Add"),
					   NULL);
    XtAddCallback(pushButton10, XmNactivateCallback,
		  (XtCallbackProc) activateCB_pushButton10,
		  (XtPointer) UxGroupNamesFormContext);

    UxPutContext(pushButton10, (char *) UxGroupNamesFormContext);


    /* Creation of pushButton11 */
    pushButton11 = XtVaCreateManagedWidget("pushButton11",
					   xmPushButtonWidgetClass,
					   groupNamesForm,
					   XmNx, 370,
					   XmNy, 240,
					   XmNwidth, 130,
					   XmNheight, 50,
				      RES_CONVERT(XmNlabelString, "Delete"),
					   NULL);
    XtAddCallback(pushButton11, XmNactivateCallback,
		  (XtCallbackProc) activateCB_pushButton11,
		  (XtPointer) UxGroupNamesFormContext);

    UxPutContext(pushButton11, (char *) UxGroupNamesFormContext);


    /* Creation of bulletinBoard1 */
    bulletinBoard1 = XtVaCreateManagedWidget("bulletinBoard1",
					     xmBulletinBoardWidgetClass,
					     groupNamesForm,
					     XmNresizePolicy, XmRESIZE_NONE,
					     XmNwidth, 600,
					     XmNheight, 110,
					     XmNx, 10,
					     XmNy, 10,
					     XmNnoResize, TRUE,
					     NULL);
    UxPutContext(bulletinBoard1, (char *) UxGroupNamesFormContext);


    /* Creation of scrolledWindowList4 */
    scrolledWindowList4 = XtVaCreateManagedWidget("scrolledWindowList4",
						xmScrolledWindowWidgetClass,
						  bulletinBoard1,
				  XmNscrollingPolicy, XmAPPLICATION_DEFINED,
						XmNvisualPolicy, XmVARIABLE,
					XmNscrollBarDisplayPolicy, XmSTATIC,
						  XmNshadowThickness, 0,
						  XmNx, 10,
						  XmNy, 10,
						  NULL);
    UxPutContext(scrolledWindowList4, (char *) UxGroupNamesFormContext);


    /* Creation of wGroupGroupList */
    wGroupGroupList = XtVaCreateManagedWidget("wGroupGroupList",
					      xmListWidgetClass,
					      scrolledWindowList4,
					      XmNwidth, 280,
					      XmNheight, 90,
					      XmNlistSizePolicy, XmCONSTANT,
					      NULL);
    XtAddCallback(wGroupGroupList, XmNbrowseSelectionCallback,
		  (XtCallbackProc) browseSelectionCB_wGroupGroupList,
		  (XtPointer) UxGroupNamesFormContext);

    UxPutContext(wGroupGroupList, (char *) UxGroupNamesFormContext);


    /* Creation of scrolledWindowList5 */
    scrolledWindowList5 = XtVaCreateManagedWidget("scrolledWindowList5",
						xmScrolledWindowWidgetClass,
						  bulletinBoard1,
				  XmNscrollingPolicy, XmAPPLICATION_DEFINED,
						XmNvisualPolicy, XmVARIABLE,
					XmNscrollBarDisplayPolicy, XmSTATIC,
						  XmNshadowThickness, 0,
						  XmNx, 300,
						  XmNy, 10,
						  NULL);
    UxPutContext(scrolledWindowList5, (char *) UxGroupNamesFormContext);


    /* Creation of wGroupTitleList */
    wGroupTitleList = XtVaCreateManagedWidget("wGroupTitleList",
					      xmListWidgetClass,
					      scrolledWindowList5,
					      XmNwidth, 280,
					      XmNheight, 90,
					      XmNlistSizePolicy, XmCONSTANT,
					      NULL);
    XtAddCallback(wGroupTitleList, XmNbrowseSelectionCallback,
		  (XtCallbackProc) browseSelectionCB_wGroupTitleList,
		  (XtPointer) UxGroupNamesFormContext);

    UxPutContext(wGroupTitleList, (char *) UxGroupNamesFormContext);


    XtAddCallback(groupNamesForm, XmNdestroyCallback,
		  (XtCallbackProc) UxDestroyContextCB,
		  (XtPointer) UxGroupNamesFormContext);


    return (groupNamesForm);
}