📄 ui_menu.c
字号:
NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Deep Axis"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("4D Axis"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("5D Axis"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Color Axis"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Color"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Render"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Graphics"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Mouse Buttons"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Movie"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Picks"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Pick List"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Piks"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Edit"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Frame List"), NULL, NULL, NULL, NULL); ui->menu = XmVaCreateSimplePulldownMenu(ui->menuBar, "help", ibar++, (XtCallbackProc) UIHelpChoice, XmVaTITLE, XmStringCreateSimple ("MORE'D TO TERMINAL WINDOW"), XmVaPUSHBUTTON, XmStringCreateSimple("Command Line Args"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("File Formats"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Display Windows"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Mouse Usage"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Main Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Style Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Orient Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Size Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Movie Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Color Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Pick Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Edit Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Section Functions"), NULL, NULL, NULL, XmVaPUSHBUTTON, XmStringCreateSimple("Status Functions"), NULL, NULL, NULL, NULL); XtManageChild(ui->menuBar);}/* view choice callback *//*--------------------------------------------------------------------*\ UIStyleChoice() selects one of the many view styles offered in cmovie. Any style change now stops the movie to ensure that the image is drawn properly. The direction radiobox is also reset. If there is only a single plane of data, selection is restricted to front view only to avoid tripping over the many null pointer references associated.\*--------------------------------------------------------------------*/void UIStyleChoice(Widget widget, int item){ WidgetList list; int i; /*-----------------------*/ /* clear all the buttons */ /*-----------------------*/ switch( item ){ case VIEW_FRONT: case VIEW_SIDE: case VIEW_TOP: XtVaGetValues(ui->direction, XmNchildren, &list, NULL); for( i=0; list[i]!=0; i++){ XtVaSetValues(list[i], XmNset, False, NULL); } break; } /* set array parameters according to view */ if (!ui) { return; } if (ui->shell) { XtPopdown(ui->shell); ui->shell = 0; } switch (item) { case VIEW_ARRAY: MovieOff(); UIArrayRaise(); ViewArray(ui->across, ui->down, ui->start, ui->delta); break; case VIEW_FRONT: ViewSetMovie(MOVIE_FRONT); XtVaSetValues(list[0], XmNset, True, NULL); break; case VIEW_SIDE: ViewSetMovie(MOVIE_SIDE); XtVaSetValues(list[2], XmNset, True, NULL); break; case VIEW_TOP: ViewSetMovie(MOVIE_TOP); XtVaSetValues(list[4], XmNset, True, NULL); break; case VIEW_FENCE: MovieOff(); UIFenceRaise(); break; case VIEW_TRANSP: MovieOff(); UITranspRaise(); UIToggleSet(ui->shape_stretch, 0); UIToggleSet(ui->shape_true, 0); UIToggleSet(ui->shape_pixel, 1); break; } ViewSetStyle(item); ui->style = item; UISyzeReset();}/*--------------------------------------------------------------------*\ UIColorChoice() selects the colorscale used for the seismic display\*--------------------------------------------------------------------*/void UIColorChoice(Widget widget, int item){ if (item > 8) { return; } ColorSetChoice(item); ColorSwitch();}/*--------------------------------------------------------------------*\ UIOverlayChoice() selects the color used for the annotation overlay.\*--------------------------------------------------------------------*/void UIOverlayChoice(Widget widget, int item){ ColorSetOverlay(item); ColorSwitch();}/*--------------------------------------------------------------------*\ UIMarkChoice() selects the color used for markers (aka picks)\*--------------------------------------------------------------------*/void UIMarkChoice(Widget widget, int item){ if (item > 4) { return; } ColorSetMark(item);}/*--------------------------------------------------------------------*\ UIBackgroundChoice() selects the canvas area background color.\*--------------------------------------------------------------------*/void UIBackgroundChoice(Widget widget, int item){ if (item > 4) { return; } ColorSetBackground(item);}/* region neighborhood callback *//*--------------------------------------------------------------------*\\*--------------------------------------------------------------------*/void UINeighborhoodChoice(Widget widget, int item){ switch (item) { case 0: RegionSetNeighborhood(MARK_FACE); break; case 1: RegionSetNeighborhood(MARK_FACE | MARK_EDGE); break; case 2: RegionSetNeighborhood(MARK_FACE | MARK_EDGE | MARK_CORNER); break; }}/* status choice callback *//*--------------------------------------------------------------------*\ UIStatusChoice() selects one of many informational messages about program internal state which are written to the area below the menubar.\*--------------------------------------------------------------------*/void UIStatusChoice(Widget widget, int item){ extern Data data; extern View view; extern Render render; /* switch on status menu entry */ if (!view || !data) { return; } switch (item) { case 0: DataInfo(data); break; case 1: DataValueInfo(data); break; case 2: AxisInfo(DataAxis(data, DATA_VALUE)); break; case 3: AxisInfo(DataAxis(data, DATA_AXIS1)); break; case 4: AxisInfo(DataAxis(data, DATA_AXIS2)); break; case 5: AxisInfo(DataAxis(data, DATA_AXIS3)); break; case 6: AxisInfo(DataAxis(data, DATA_AXIS4)); break; case 7: AxisInfo(DataAxis(data, DATA_AXIS5)); break; case 8: ViewInfo(view); break; case 9: MapInfo(ViewMap(view, AXIS_DOWN)); break; case 10: MapInfo(ViewMap(view, AXIS_ACROSS)); break; case 11: MapInfo(ViewMap(view, AXIS_DEEP)); break; case 12: MapInfo(ViewMap(view, AXIS_4D)); break; case 13: MapInfo(ViewMap(view, AXIS_5D)); break; case 14: MapInfo(ViewMap(view, AXIS_COLOR)); break; case 15: ColorInfo(); break; case 16: RenderInfo(render); break; case 17: DrawInfo(); break; case 18: UIMouseInfo(); break; case 19: MovieInfo(); break; case 20: PickInfo(); break; case 21: PickListInfo(); break;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -