Distributed Multihead X
1.16.4
|
#include <stdio.h>
#include <stdlib.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Box.h>
#include <X11/Xaw/Command.h>
#include <X11/Xaw/SimpleMenu.h>
#include <X11/Xaw/SmeBSB.h>
#include <X11/Xaw/MenuButton.h>
#include <X11/Xaw/Viewport.h>
#include <X11/Xaw/Dialog.h>
#include <X11/keysym.h>
#include "Canvas.h"
#include "dmxparse.h"
#include "dmxprint.h"
#include "dmxlog.h"
Macros | |
#define | DMX_INFO "xdmxconfig v0.9\nCopyright 2002 Red Hat Inc.\n" |
#define | DMX_MAIN_WIDTH 800 |
#define | DMX_MAIN_HEIGHT 600 |
#define | DMX_DATA_WIDTH 200 |
#define | DMX_DATA_HEIGHT 200 |
#define | DMX_CANVAS_WIDTH 400 |
#define | DMX_CANVAS_HEIGHT 500 |
Enumerations | |
enum | { dmxConfigStateOpen, dmxConfigStateSave } |
Functions | |
int | yyparse (void) |
static void | dmxConfigCanvasGCs (void) |
static void | dmxConfigGetDims (int *maxWidth, int *maxHeight) |
static int | scalex (int x) |
static int | scaley (int y) |
static int | unscalex (int x) |
static int | unscaley (int y) |
static void | dmxConfigDataUpdate (void) |
static void | dmxConfigCanvasUpdate (void) |
static void | dmxConfigCanvasDraw (Region region) |
static void | dmxConfigSelectCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigCopystrings (void) |
static void | dmxConfigGetValueString (char **d, Widget w) |
static void | dmxConfigSetupCnamemenu (void) |
static void | dmxConfigReadFile (void) |
static void | dmxConfigWriteFile (void) |
static DMXConfigDisplayPtr | dmxConfigFindDisplay (int x, int y) |
static void | dmxConfigSetPopupPosition (Widget popup) |
static void | dmxConfigPlaceMenu (Widget w, XEvent *event, String *params, Cardinal *num_params) |
static void | dmxConfigMove (int deltaX, int deltaY) |
static void | dmxConfigCanvasInput (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigCanvasResize (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigCanvasExpose (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigOpenCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigSaveCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigOkCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigCanCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigECCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigNCCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigDCCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigECOkCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigECCanCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigEDCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigNDCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigDDCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigAboutCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigAboutOkCallback (Widget w, XtPointer closure, XtPointer CallData) |
static void | dmxConfigQuitCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigQuitOkCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigQuitCanCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigEDOkCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigEDCanCallback (Widget w, XtPointer closure, XtPointer callData) |
static void | dmxConfigOkAction (Widget w, XEvent *event, String *params, Cardinal *num_params) |
int | main (int argc, char **argv) |
Variables | |
FILE * | yyin |
DMXConfigEntryPtr | dmxConfigEntry |
static DMXConfigVirtualPtr | dmxConfigCurrent |
static DMXConfigVirtualPtr | dmxConfigNewVirtual |
static DMXConfigDisplayPtr | dmxConfigCurrentDisplay |
static DMXConfigDisplayPtr | dmxConfigNewDisplay |
static int | dmxConfigGrabbed |
static int | dmxConfigGrabbedFine |
static int | dmxConfigGrabbedX |
static int | dmxConfigGrabbedY |
static char * | dmxConfigFilename |
static GC | dmxConfigGC |
static GC | dmxConfigGCRev |
static GC | dmxConfigGCHL |
static int | dmxConfigGCInit = 0 |
static Dimension | dmxConfigWidgetWidth |
static Dimension | dmxConfigWidgetHeight |
static Dimension | dmxConfigWallWidth |
static Dimension | dmxConfigWallHeight |
static double | dmxConfigScaleX |
static double | dmxConfigScaleY |
static int | dmxConfigNotSaved |
static enum { ... } | dmxConfigState |
static Widget | canvas |
static Widget | cnamebox |
static Widget | cdimbox |
static Widget | openpopup |
static Widget | opendialog |
static Widget | namebox |
static Widget | dimbox |
static Widget | rtbox |
static Widget | origbox |
static Widget | okbutton |
static Widget | buttonpopup |
static Widget | ecbutton |
static Widget | dcbutton |
static Widget | ndbutton0 |
static Widget | ndbutton1 |
static Widget | edbutton |
static Widget | ddbutton |
static Widget | ecpopup |
static Widget | ecdialog0 |
static Widget | ecdialog1 |
static Widget | edpopup |
static Widget | eddialog0 |
static Widget | eddialog1 |
static Widget | eddialog2 |
static Widget | aboutpopup |
static Widget | quitpopup |
#define DMX_CANVAS_HEIGHT 500 |
Referenced by main().
#define DMX_CANVAS_WIDTH 400 |
Referenced by main().
#define DMX_DATA_HEIGHT 200 |
Referenced by main().
#define DMX_DATA_WIDTH 200 |
Referenced by main().
#define DMX_INFO "xdmxconfig v0.9\nCopyright 2002 Red Hat Inc.\n" |
Referenced by main().
#define DMX_MAIN_HEIGHT 600 |
Referenced by main().
#define DMX_MAIN_WIDTH 800 |
Referenced by main().
|
static |
References aboutpopup, and dmxConfigSetPopupPosition().
Referenced by main().
|
static |
References aboutpopup.
Referenced by main().
|
static |
|
static |
References canvas, dmxConfigCanvasGCs(), dmxConfigCanvasUpdate(), dmxConfigGC, dmxConfigGCHL, dmxConfigGCRev, dmxConfigGetDims(), dmxConfigScaleX, dmxConfigScaleY, dmxConfigWidgetHeight, and dmxConfigWidgetWidth.
Referenced by dmxConfigCanvasExpose(), dmxConfigCanvasResize(), dmxConfigDCCallback(), dmxConfigDDCallback(), dmxConfigECOkCallback(), dmxConfigEDOkCallback(), dmxConfigReadFile(), and dmxConfigSelectCallback().
|
static |
References dmxConfigCanvasDraw().
Referenced by main().
|
static |
References canvas, dmxConfigGC, dmxConfigGCHL, dmxConfigGCInit, and dmxConfigGCRev.
Referenced by dmxConfigCanvasDraw().
|
static |
References display, dmxConfigCanvasUpdate(), dmxConfigFindDisplay(), dmxConfigGrabbed, dmxConfigGrabbedFine, dmxConfigGrabbedX, dmxConfigGrabbedY, dmxConfigMove(), unscalex(), and unscaley().
Referenced by main().
|
static |
References dmxConfigCanvasDraw().
Referenced by main().
|
static |
References canvas, _DMXConfigSub::display, dmxConfigDataUpdate(), dmxConfigDisplay, dmxConfigGC, dmxConfigGCHL, dmxConfigGCRev, dmxConfigWallHeight, dmxConfigWallWidth, dmxConfigWidgetHeight, dmxConfigWidgetWidth, GC, _DMXConfigDisplay::name, _DMXConfigSub::next, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootYOrigin, scalex(), scaley(), _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigVirtual::subentry, and _DMXConfigSub::type.
Referenced by dmxConfigCanvasDraw(), dmxConfigCanvasInput(), and dmxConfigMove().
|
static |
References _DMXConfigSub::display, dmxConfigDisplay, dmxConfigVirtual, _DMXConfigDisplay::name, _DMXConfigVirtual::name, _DMXConfigSub::next, _DMXConfigEntry::next, _DMXConfigVirtual::subentry, _DMXConfigSub::type, _DMXConfigEntry::type, and _DMXConfigEntry::virtual.
Referenced by dmxConfigReadFile(), and main().
|
static |
References cdimbox, cnamebox, dcbutton, ddbutton, dimbox, dmxConfigWallHeight, dmxConfigWallWidth, ecbutton, edbutton, _DMXConfigDisplay::name, _DMXConfigVirtual::name, namebox, ndbutton0, ndbutton1, origbox, _DMXConfigDisplay::rootHeight, _DMXConfigDisplay::rootWidth, _DMXConfigDisplay::rootX, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootXSign, _DMXConfigDisplay::rootY, _DMXConfigDisplay::rootYOrigin, _DMXConfigDisplay::rootYSign, rtbox, _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigDisplay::scrnX, _DMXConfigDisplay::scrnXSign, _DMXConfigDisplay::scrnY, and _DMXConfigDisplay::scrnYSign.
Referenced by dmxConfigCanvasUpdate().
|
static |
References dmxConfigCanvasDraw(), dmxConfigFreeVirtual(), dmxConfigSetupCnamemenu(), dmxConfigVirtual, _DMXConfigEntry::next, _DMXConfigEntry::type, and _DMXConfigEntry::virtual.
Referenced by dmxConfigECCanCallback(), and main().
|
static |
References _DMXConfigSub::display, dmxConfigCanvasDraw(), dmxConfigDisplay, dmxConfigFreeDisplay(), dmxConfigSetupCnamemenu(), _DMXConfigSub::next, _DMXConfigVirtual::subentry, and _DMXConfigSub::type.
Referenced by dmxConfigEDCanCallback(), and main().
|
static |
References dmxConfigSetPopupPosition(), ecdialog0, ecdialog1, ecpopup, _DMXConfigVirtual::height, _DMXConfigVirtual::name, and _DMXConfigVirtual::width.
Referenced by dmxConfigNCCallback(), and main().
|
static |
References dmxConfigDCCallback(), and ecpopup.
Referenced by main().
|
static |
References dmxConfigCanvasDraw(), dmxConfigGetValueString(), dmxConfigNotSaved, dmxConfigSetupCnamemenu(), ecdialog0, ecdialog1, ecpopup, _DMXConfigVirtual::height, _DMXConfigVirtual::name, and _DMXConfigVirtual::width.
Referenced by dmxConfigOkAction(), and main().
|
static |
References dmxConfigSetPopupPosition(), eddialog0, eddialog1, eddialog2, edpopup, _DMXConfigDisplay::name, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootYOrigin, _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigDisplay::scrnXSign, _DMXConfigDisplay::scrnY, and _DMXConfigDisplay::scrnYSign.
Referenced by dmxConfigNDCallback(), and main().
|
static |
References dmxConfigDDCallback(), and edpopup.
Referenced by main().
|
static |
References dmxConfigCanvasDraw(), dmxConfigGetValueString(), dmxConfigNotSaved, dmxConfigSetupCnamemenu(), eddialog0, eddialog1, eddialog2, edpopup, _DMXConfigDisplay::name, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootYOrigin, _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigDisplay::scrnX, _DMXConfigDisplay::scrnXSign, _DMXConfigDisplay::scrnY, and _DMXConfigDisplay::scrnYSign.
Referenced by dmxConfigOkAction(), and main().
|
static |
References _DMXConfigSub::display, dmxConfigDisplay, _DMXConfigSub::next, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootYOrigin, scalex(), scaley(), _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigVirtual::subentry, and _DMXConfigSub::type.
Referenced by dmxConfigCanvasInput().
|
static |
References _DMXConfigSub::display, dmxConfigDisplay, dmxConfigVirtual, dmxConfigWallHeight, dmxConfigWallWidth, _DMXConfigVirtual::height, _DMXConfigSub::next, _DMXConfigEntry::next, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootYOrigin, _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigVirtual::subentry, _DMXConfigSub::type, _DMXConfigEntry::type, _DMXConfigEntry::virtual, and _DMXConfigVirtual::width.
Referenced by dmxConfigCanvasDraw().
|
static |
Referenced by dmxConfigECOkCallback(), dmxConfigEDOkCallback(), and dmxConfigOkCallback().
|
static |
References dmxConfigCanvasUpdate(), dmxConfigNotSaved, dmxConfigWallHeight, dmxConfigWallWidth, _DMXConfigDisplay::rootXOrigin, and _DMXConfigDisplay::rootYOrigin.
Referenced by dmxConfigCanvasInput().
|
static |
References dmxConfigAddEntry(), dmxConfigCreateVirtual(), dmxConfigCurrent, dmxConfigECCallback(), dmxConfigVirtual, _DMXConfigVirtual::height, and _DMXConfigVirtual::width.
Referenced by main().
|
static |
|
static |
References dmxConfigECOkCallback(), dmxConfigEDOkCallback(), dmxConfigOkCallback(), ecdialog0, ecdialog1, eddialog0, eddialog1, eddialog2, and opendialog.
Referenced by main().
|
static |
References dmxConfigFilename, dmxConfigGetValueString(), dmxConfigNotSaved, dmxConfigReadFile(), dmxConfigState, dmxConfigStateOpen, dmxConfigWriteFile(), opendialog, and openpopup.
Referenced by dmxConfigOkAction(), and main().
|
static |
References dmxConfigSetPopupPosition(), dmxConfigState, dmxConfigStateOpen, okbutton, and openpopup.
Referenced by main().
|
static |
References buttonpopup, and dmxConfigSetPopupPosition().
Referenced by main().
|
static |
References dmxConfigNotSaved, dmxConfigSetPopupPosition(), and quitpopup.
Referenced by main().
|
static |
|
static |
|
static |
References canvas, dmxConfigCanvasDraw(), dmxConfigCopystrings(), dmxConfigFilename, dmxConfigSetupCnamemenu(), dmxConfigVirtual, dmxConfigVirtualPrint(), dmxInfo, dmxLog(), dmxWarning, _DMXConfigEntry::next, str, _DMXConfigEntry::type, _DMXConfigEntry::virtual, yydebug, yyin, and yyparse().
Referenced by dmxConfigOkCallback(), and main().
|
static |
References dmxConfigSetPopupPosition(), dmxConfigState, dmxConfigStateSave, okbutton, and openpopup.
Referenced by main().
|
static |
References dmxConfigCanvasDraw(), and dmxConfigVirtualPrint().
Referenced by dmxConfigSetupCnamemenu().
|
static |
|
static |
References cnamebox, dmxConfigSelectCallback(), dmxConfigVirtual, _DMXConfigVirtual::name, _DMXConfigEntry::next, _DMXConfigEntry::type, and _DMXConfigEntry::virtual.
Referenced by dmxConfigDCCallback(), dmxConfigDDCallback(), dmxConfigECOkCallback(), dmxConfigEDOkCallback(), dmxConfigReadFile(), and main().
|
static |
References dmxConfigFilename, dmxConfigPrint(), dmxLog(), dmxWarning, and str.
Referenced by dmxConfigOkCallback().
int main | ( | int | argc, |
char ** | argv | ||
) |
References aboutpopup, buttonpopup, canvas, cdimbox, cnamebox, dcbutton, ddbutton, dimbox, DMX_CANVAS_HEIGHT, DMX_CANVAS_WIDTH, DMX_DATA_HEIGHT, DMX_DATA_WIDTH, DMX_INFO, DMX_MAIN_HEIGHT, DMX_MAIN_WIDTH, dmxConfigAboutCallback(), dmxConfigAboutOkCallback(), dmxConfigCanCallback(), dmxConfigCanvasExpose(), dmxConfigCanvasInput(), dmxConfigCanvasResize(), dmxConfigCopystrings(), dmxConfigDCCallback(), dmxConfigDDCallback(), dmxConfigECCallback(), dmxConfigECCanCallback(), dmxConfigECOkCallback(), dmxConfigEDCallback(), dmxConfigEDCanCallback(), dmxConfigEDOkCallback(), dmxConfigFilename, dmxConfigNCCallback(), dmxConfigNDCallback(), dmxConfigOkAction(), dmxConfigOkCallback(), dmxConfigOpenCallback(), dmxConfigPlaceMenu(), dmxConfigQuitCallback(), dmxConfigQuitCanCallback(), dmxConfigQuitOkCallback(), dmxConfigReadFile(), dmxConfigSaveCallback(), dmxConfigSetupCnamemenu(), ecbutton, ecdialog0, ecdialog1, ecpopup, edbutton, eddialog0, eddialog1, eddialog2, edpopup, namebox, ndbutton0, ndbutton1, okbutton, opendialog, openpopup, origbox, quitpopup, and rtbox.
|
static |
References dmxConfigScaleX.
Referenced by dmxConfigCanvasUpdate(), and dmxConfigFindDisplay().
|
static |
References dmxConfigScaleY.
Referenced by dmxConfigCanvasUpdate(), and dmxConfigFindDisplay().
|
static |
References dmxConfigScaleX.
Referenced by dmxConfigCanvasInput().
|
static |
References dmxConfigScaleY.
Referenced by dmxConfigCanvasInput().
int yyparse | ( | void | ) |
Referenced by dmxConfigReadFile().
|
static |
Referenced by dmxConfigAboutCallback(), dmxConfigAboutOkCallback(), and main().
|
static |
Referenced by dmxConfigPlaceMenu(), and main().
|
static |
Referenced by dmxConfigCanvasDraw(), dmxConfigCanvasGCs(), dmxConfigCanvasUpdate(), dmxConfigReadFile(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), dmxConfigSetupCnamemenu(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigNCCallback().
|
static |
Referenced by dmxConfigNDCallback().
DMXConfigEntryPtr dmxConfigEntry |
|
static |
Referenced by dmxConfigOkCallback(), dmxConfigReadFile(), dmxConfigWriteFile(), and main().
|
static |
Referenced by dmxConfigCanvasDraw(), dmxConfigCanvasGCs(), and dmxConfigCanvasUpdate().
|
static |
Referenced by dmxConfigCanvasDraw(), dmxConfigCanvasGCs(), and dmxConfigCanvasUpdate().
|
static |
Referenced by dmxConfigCanvasGCs().
|
static |
Referenced by dmxConfigCanvasDraw(), dmxConfigCanvasGCs(), and dmxConfigCanvasUpdate().
|
static |
Referenced by dmxConfigCanvasInput().
|
static |
Referenced by dmxConfigCanvasInput().
|
static |
Referenced by dmxConfigCanvasInput().
|
static |
Referenced by dmxConfigCanvasInput().
|
static |
|
static |
|
static |
Referenced by dmxConfigECOkCallback(), dmxConfigEDOkCallback(), dmxConfigMove(), dmxConfigOkCallback(), and dmxConfigQuitCallback().
|
static |
Referenced by dmxConfigCanvasDraw(), scalex(), and unscalex().
|
static |
Referenced by dmxConfigCanvasDraw(), scaley(), and unscaley().
enum { ... } dmxConfigState |
Referenced by dmxConfigOkCallback(), dmxConfigOpenCallback(), and dmxConfigSaveCallback().
|
static |
Referenced by dmxConfigCanvasUpdate(), dmxConfigDataUpdate(), dmxConfigGetDims(), and dmxConfigMove().
|
static |
Referenced by dmxConfigCanvasUpdate(), dmxConfigDataUpdate(), dmxConfigGetDims(), and dmxConfigMove().
|
static |
Referenced by dmxConfigCanvasDraw(), and dmxConfigCanvasUpdate().
|
static |
Referenced by dmxConfigCanvasDraw(), and dmxConfigCanvasUpdate().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigECCallback(), dmxConfigECOkCallback(), dmxConfigOkAction(), and main().
|
static |
Referenced by dmxConfigECCallback(), dmxConfigECOkCallback(), dmxConfigOkAction(), and main().
|
static |
Referenced by dmxConfigECCallback(), dmxConfigECCanCallback(), dmxConfigECOkCallback(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigEDCallback(), dmxConfigEDOkCallback(), dmxConfigOkAction(), and main().
|
static |
Referenced by dmxConfigEDCallback(), dmxConfigEDOkCallback(), dmxConfigOkAction(), and main().
|
static |
Referenced by dmxConfigEDCallback(), dmxConfigEDOkCallback(), dmxConfigOkAction(), and main().
|
static |
Referenced by dmxConfigEDCallback(), dmxConfigEDCanCallback(), dmxConfigEDOkCallback(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigOpenCallback(), dmxConfigSaveCallback(), and main().
|
static |
Referenced by dmxConfigOkAction(), dmxConfigOkCallback(), and main().
|
static |
Referenced by dmxConfigCanCallback(), dmxConfigOkCallback(), dmxConfigOpenCallback(), dmxConfigSaveCallback(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
|
static |
Referenced by dmxConfigQuitCallback(), dmxConfigQuitCanCallback(), dmxConfigQuitOkCallback(), and main().
|
static |
Referenced by dmxConfigDataUpdate(), and main().
FILE* yyin |
Referenced by dmxConfigReadFile().