From 8906fd92f85710d6d7eceac2fb5955e8c56eadcd Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 10 Nov 2008 19:51:13 +0100 Subject: enable VPATH build, reorganize app default files --- Makefile.am | 22 +++--------- app-defaults/Viewres | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ app-defaults/Viewres.ad | 95 ------------------------------------------------- 3 files changed, 100 insertions(+), 112 deletions(-) create mode 100644 app-defaults/Viewres delete mode 100644 app-defaults/Viewres.ad diff --git a/Makefile.am b/Makefile.am index 755791a..d83a5ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,32 +30,20 @@ viewres_SOURCES = \ appman_PRE = \ viewres.man -# App default files (*.ad) +# App default files appdefaultdir = @appdefaultdir@ - -APPDEFAULTFILES = \ +dist_appdefault_DATA = \ app-defaults/Viewres -SUFFIXES = .ad - -.ad: - cp $< $@ - -appdefault_DATA = $(APPDEFAULTFILES) - -EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) - -CLEANFILES = $(APPDEFAULTFILES) - appmandir = $(APP_MAN_DIR) appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) -EXTRA_DIST += $(appman_PRE) -CLEANFILES += $(appman_DATA) +EXTRA_DIST = $(appman_PRE) +CLEANFILES = $(appman_DATA) SED = sed @@ -76,7 +64,7 @@ MAN_SUBSTS = \ -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' -SUFFIXES += .$(APP_MAN_SUFFIX) .man +SUFFIXES = .$(APP_MAN_SUFFIX) .man .man.$(APP_MAN_SUFFIX): sed $(MAN_SUBSTS) < $< > $@ diff --git a/app-defaults/Viewres b/app-defaults/Viewres new file mode 100644 index 0000000..7272283 --- /dev/null +++ b/app-defaults/Viewres @@ -0,0 +1,95 @@ +*Panner*backgroundStipple: grid2 + +*allowShellResize: true +*buttonbox*ShapeStyle: oval +*Form*Panner.Thickness: -1 +*Form.defaultDistance: 0 +*Form.BorderWidth: 0 +*Porthole.BorderWidth: 0 +*Porthole.top: ChainTop +*Porthole.left: ChainLeft +*Porthole.bottom: ChainBottom +*Porthole.right: ChainRight +*Porthole.resizable: on +*Panner.top: ChainTop +*Panner.left: ChainLeft +*Panner.bottom: ChainTop +*Panner.right: ChainLeft +*Panner.resizable: on +*Tree*ShapeStyle: rectangle +*Tree*Toggle*BorderWidth: 0 +*Porthole*Box.BorderWidth: 0 +*Porthole*Box.HSpace: 0 +*Porthole*Box.VSpace: 0 +*Paned*allowResize: true + +*Tree*List*Font: -adobe-helvetica-medium-r-normal--*-80-*-*-*-*-iso*-* + +*SimpleMenu*BackingStore: NotUseful +*Font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-* +*buttonbox.MenuButton.leftBitmap: menu12 +*SimpleMenu*menuLabel.vertSpace: 100 +*SimpleMenu*SmeLine*Height: 12 + +*quit.Label: Quit + +*buttonbox.quit.baseTranslations: #override \ + ,: Quit() unset() + +*Toggle.baseTranslations: #augment \n\ +,: set() notify() Resources(toggle) \n\ +q: Quit() \n\ +space: Select(nothing) \n\ +p: Select(parent) \n\ +a: Select(ancestors) \n\ +c: Select(children) \n\ +d: Select(descendants) \n\ +Ctrlr: Resources(on) \n\ +Ctrln: Resources(off) \n\ + +*List.baseTranslations: #augment \n\ +q: Quit() \n\ +space: Select(nothing) \n\ +p: Select(parent) \n\ +a: Select(ancestors) \n\ +c: Select(children) \n\ +d: Select(descendants) \n\ +Ctrlr: Resources(on) \n\ +Ctrln: Resources(off) \n\ + +*Porthole.baseTranslations: #override \n\ +,: Select(nothing) \n\ +q: Quit() \n\ +Ctrlh: SetOrientation(west) \n\ +Ctrlv: SetOrientation(north) \n\ +Ctrlr: Resources(on) \n\ +Ctrln: Resources(off) \n\ +Shiftc: SetLabelType(class) \n\ +Shiftv: SetLabelType(variable) \n\ +space: Select(nothing) \n\ +i: Select(invert) \n\ +p: Select(parent) \n\ +a: Select(ancestors) \n\ +c: Select(children) \n\ +d: Select(descendants) \n\ +r: Select(resources) \n\ +s: Select(shown) \n\ + +*buttonbox.view.Label: View +*buttonbox.view.viewMenu.layoutHorizontal.Label: Layout Horizontal +*buttonbox.view.viewMenu.layoutVertical.Label: Layout Vertical +*buttonbox.view.viewMenu.namesVariable.Label: Show Variable Names +*buttonbox.view.viewMenu.namesClass.Label: Show Class Names +*buttonbox.view.viewMenu.viewResources.Label: Show Resource Boxes +*buttonbox.view.viewMenu.viewNoResources.Label: Hide Resource Boxes + +*buttonbox.select.Label: Select +*buttonbox.select.selectMenu.unselect.Label: Unselect All +*buttonbox.select.selectMenu.selectAll.Label: Select All +*buttonbox.select.selectMenu.selectInvert.Label: Invert All +*buttonbox.select.selectMenu.selectParent.Label: Select Parent +*buttonbox.select.selectMenu.selectAncestors.Label: Select Ancestors +*buttonbox.select.selectMenu.selectChildren.Label: Select Children +*buttonbox.select.selectMenu.selectDescendants.Label: Select Descendants +*buttonbox.select.selectMenu.selectHasResources.Label: Select Has Resources +*buttonbox.select.selectMenu.selectShownResources.Label: Select Shown Resource Boxes diff --git a/app-defaults/Viewres.ad b/app-defaults/Viewres.ad deleted file mode 100644 index 7272283..0000000 --- a/app-defaults/Viewres.ad +++ /dev/null @@ -1,95 +0,0 @@ -*Panner*backgroundStipple: grid2 - -*allowShellResize: true -*buttonbox*ShapeStyle: oval -*Form*Panner.Thickness: -1 -*Form.defaultDistance: 0 -*Form.BorderWidth: 0 -*Porthole.BorderWidth: 0 -*Porthole.top: ChainTop -*Porthole.left: ChainLeft -*Porthole.bottom: ChainBottom -*Porthole.right: ChainRight -*Porthole.resizable: on -*Panner.top: ChainTop -*Panner.left: ChainLeft -*Panner.bottom: ChainTop -*Panner.right: ChainLeft -*Panner.resizable: on -*Tree*ShapeStyle: rectangle -*Tree*Toggle*BorderWidth: 0 -*Porthole*Box.BorderWidth: 0 -*Porthole*Box.HSpace: 0 -*Porthole*Box.VSpace: 0 -*Paned*allowResize: true - -*Tree*List*Font: -adobe-helvetica-medium-r-normal--*-80-*-*-*-*-iso*-* - -*SimpleMenu*BackingStore: NotUseful -*Font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-* -*buttonbox.MenuButton.leftBitmap: menu12 -*SimpleMenu*menuLabel.vertSpace: 100 -*SimpleMenu*SmeLine*Height: 12 - -*quit.Label: Quit - -*buttonbox.quit.baseTranslations: #override \ - ,: Quit() unset() - -*Toggle.baseTranslations: #augment \n\ -,: set() notify() Resources(toggle) \n\ -q: Quit() \n\ -space: Select(nothing) \n\ -p: Select(parent) \n\ -a: Select(ancestors) \n\ -c: Select(children) \n\ -d: Select(descendants) \n\ -Ctrlr: Resources(on) \n\ -Ctrln: Resources(off) \n\ - -*List.baseTranslations: #augment \n\ -q: Quit() \n\ -space: Select(nothing) \n\ -p: Select(parent) \n\ -a: Select(ancestors) \n\ -c: Select(children) \n\ -d: Select(descendants) \n\ -Ctrlr: Resources(on) \n\ -Ctrln: Resources(off) \n\ - -*Porthole.baseTranslations: #override \n\ -,: Select(nothing) \n\ -q: Quit() \n\ -Ctrlh: SetOrientation(west) \n\ -Ctrlv: SetOrientation(north) \n\ -Ctrlr: Resources(on) \n\ -Ctrln: Resources(off) \n\ -Shiftc: SetLabelType(class) \n\ -Shiftv: SetLabelType(variable) \n\ -space: Select(nothing) \n\ -i: Select(invert) \n\ -p: Select(parent) \n\ -a: Select(ancestors) \n\ -c: Select(children) \n\ -d: Select(descendants) \n\ -r: Select(resources) \n\ -s: Select(shown) \n\ - -*buttonbox.view.Label: View -*buttonbox.view.viewMenu.layoutHorizontal.Label: Layout Horizontal -*buttonbox.view.viewMenu.layoutVertical.Label: Layout Vertical -*buttonbox.view.viewMenu.namesVariable.Label: Show Variable Names -*buttonbox.view.viewMenu.namesClass.Label: Show Class Names -*buttonbox.view.viewMenu.viewResources.Label: Show Resource Boxes -*buttonbox.view.viewMenu.viewNoResources.Label: Hide Resource Boxes - -*buttonbox.select.Label: Select -*buttonbox.select.selectMenu.unselect.Label: Unselect All -*buttonbox.select.selectMenu.selectAll.Label: Select All -*buttonbox.select.selectMenu.selectInvert.Label: Invert All -*buttonbox.select.selectMenu.selectParent.Label: Select Parent -*buttonbox.select.selectMenu.selectAncestors.Label: Select Ancestors -*buttonbox.select.selectMenu.selectChildren.Label: Select Children -*buttonbox.select.selectMenu.selectDescendants.Label: Select Descendants -*buttonbox.select.selectMenu.selectHasResources.Label: Select Has Resources -*buttonbox.select.selectMenu.selectShownResources.Label: Select Shown Resource Boxes -- cgit v1.2.3