├── .gitignore ├── CHANGELOG ├── LICENSE ├── Makefile ├── Microline ├── Makefile ├── XmL │ ├── Folder.c │ ├── Folder.h │ ├── FolderP.h │ ├── Grid.c │ ├── Grid.h │ ├── GridP.h │ ├── GridUtil.c │ ├── Makefile │ ├── Makefile.common │ ├── Makefile.dependencies │ ├── Makefile.in │ ├── Progress.c │ ├── Progress.h │ ├── ProgressP.h │ ├── Tree.c │ ├── Tree.h │ ├── TreeP.h │ ├── XmL.c │ ├── XmL.h │ └── XmL.uih ├── examples │ ├── Makefile │ ├── Makefile.in │ ├── demo.c │ ├── folder1.c │ ├── folder2.c │ ├── folder3.c │ ├── folder4.c │ ├── grid1.c │ ├── grid2.c │ ├── grid3.c │ ├── grid4.c │ ├── grid5.c │ ├── grid6.c │ ├── prog1.c │ ├── prog2.c │ ├── prog3.c │ ├── tree1.c │ ├── tree2.c │ ├── tree3.c │ ├── tree4.c │ ├── tree5.c │ ├── uil1.c │ ├── uil1.uil │ └── util1.c └── man │ ├── XmLArrayAdd.3x │ ├── XmLArrayDel.3x │ ├── XmLArrayFree.3x │ ├── XmLArrayGet.3x │ ├── XmLArrayGetCount.3x │ ├── XmLArrayMove.3x │ ├── XmLArrayNew.3x │ ├── XmLArrayReorder.3x │ ├── XmLArraySet.3x │ ├── XmLArraySort.3x │ ├── XmLCreateFolder.3x │ ├── XmLCreateGrid.3x │ ├── XmLCreateProgress.3x │ ├── XmLCreateTree.3x │ ├── XmLCvtStringToUChar.3x │ ├── XmLDateDaysInMonth.3x │ ├── XmLDateWeekDay.3x │ ├── XmLDrawnButtonSetType.3x │ ├── XmLFolder.3x │ ├── XmLFolderAddBitmapTab.3x │ ├── XmLFolderAddBitmapTabForm.3x │ ├── XmLFolderAddTab.3x │ ├── XmLFolderAddTabForm.3x │ ├── XmLFolderSetActiveTab.3x │ ├── XmLFontListCopyDefault.3x │ ├── XmLFontListGetDimensions.3x │ ├── XmLGrid.3x │ ├── XmLGridAddColumns.3x │ ├── XmLGridAddRows.3x │ ├── XmLGridColumnIsVisible.3x │ ├── XmLGridCopyPos.3x │ ├── XmLGridCopySelected.3x │ ├── XmLGridDeleteAllColumns.3x │ ├── XmLGridDeleteAllRows.3x │ ├── XmLGridDeleteColumns.3x │ ├── XmLGridDeleteRows.3x │ ├── XmLGridDeselectAllCells.3x │ ├── XmLGridDeselectAllColumns.3x │ ├── XmLGridDeselectAllRows.3x │ ├── XmLGridDeselectCell.3x │ ├── XmLGridDeselectColumn.3x │ ├── XmLGridDeselectRow.3x │ ├── XmLGridEditBegin.3x │ ├── XmLGridEditCancel.3x │ ├── XmLGridEditComplete.3x │ ├── XmLGridGetColumn.3x │ ├── XmLGridGetFocus.3x │ ├── XmLGridGetRow.3x │ ├── XmLGridGetSelectedCellCount.3x │ ├── XmLGridGetSelectedCells.3x │ ├── XmLGridGetSelectedColumnCount.3x │ ├── XmLGridGetSelectedColumns.3x │ ├── XmLGridGetSelectedRow.3x │ ├── XmLGridGetSelectedRowCount.3x │ ├── XmLGridGetSelectedRows.3x │ ├── XmLGridMoveColumns.3x │ ├── XmLGridMoveRows.3x │ ├── XmLGridPaste.3x │ ├── XmLGridPastePos.3x │ ├── XmLGridRead.3x │ ├── XmLGridReadPos.3x │ ├── XmLGridRedrawAll.3x │ ├── XmLGridRedrawCell.3x │ ├── XmLGridRedrawColumn.3x │ ├── XmLGridRedrawRow.3x │ ├── XmLGridReorderColumns.3x │ ├── XmLGridReorderRows.3x │ ├── XmLGridRowColumnToXY.3x │ ├── XmLGridRowIsVisible.3x │ ├── XmLGridSelectAllCells.3x │ ├── XmLGridSelectAllColumns.3x │ ├── XmLGridSelectAllRows.3x │ ├── XmLGridSelectCell.3x │ ├── XmLGridSelectColumn.3x │ ├── XmLGridSelectRow.3x │ ├── XmLGridSetFocus.3x │ ├── XmLGridSetStrings.3x │ ├── XmLGridSetStringsPos.3x │ ├── XmLGridWrite.3x │ ├── XmLGridWritePos.3x │ ├── XmLGridXYToRowColumn.3x │ ├── XmLMessageBox.3x │ ├── XmLPixmapDraw.3x │ ├── XmLProgress.3x │ ├── XmLRectIntersect.3x │ ├── XmLShellOfWidget.3x │ ├── XmLSort.3x │ ├── XmLStringDraw.3x │ ├── XmLStringDrawDirection.3x │ ├── XmLTree.3x │ ├── XmLTreeAddRow.3x │ ├── XmLTreeAddRows.3x │ └── XmLWarning.3x ├── README.md ├── ReleaseNotes ├── Xlt ├── BubbleButton.c ├── BubbleButton.h ├── BubbleButtonP.h ├── Makefile ├── Makefile.common ├── Makefile.dependencies ├── SlideC.c ├── SlideC.h └── SlideCP.h ├── doc ├── Makefile ├── NEdit.ad ├── generate_version.sh ├── help.etx ├── setext ├── setext-info.txt ├── xnc.pod └── xnedit.pod ├── makefiles ├── Makefile.cygwin ├── Makefile.depend ├── Makefile.freebsd ├── Makefile.generic ├── Makefile.linux ├── Makefile.macos ├── Makefile.netbsd ├── Makefile.openbsd └── Makefile.solaris ├── resources ├── AppImage │ └── makeAppDir.sh ├── cygwin │ ├── cygspecial.nm │ ├── winclip.nm │ ├── xnc.sh │ ├── xnedit.ico │ ├── xnedit.nsi │ └── xneditPkg.sh ├── desktop │ ├── xnedit.desktop │ ├── xnedit.desktop.template │ └── xnedit.png ├── macos │ ├── build-dependencies.zsh │ ├── patches │ │ ├── motif-clang-mwm.patch │ │ ├── motif-demos.patch │ │ └── motif-macos-textf.patch │ └── xnedit-start.sh ├── rpm │ └── xnedit.spec └── xresources │ ├── dark │ ├── fonts │ └── light ├── source ├── Makefile.common ├── Makefile.dependencies ├── calltips.c ├── calltips.h ├── colorprofile.h ├── editorconfig.c ├── editorconfig.h ├── file.c ├── file.h ├── filter.c ├── filter.h ├── help.c ├── help.h ├── help_data.h ├── help_topic.h ├── highlight.c ├── highlight.h ├── highlightData.c ├── highlightData.h ├── interpret.c ├── interpret.h ├── linkdate.c ├── macro.c ├── macro.h ├── menu.c ├── menu.h ├── n.bm ├── nc.c ├── nedit.bm ├── nedit.c ├── nedit.h ├── nedit_options_file.opt ├── parse.h ├── parse.y ├── parse_noyacc.c ├── preferences.c ├── preferences.h ├── rangeset.c ├── rangeset.h ├── regexConvert.c ├── regexConvert.h ├── regularExp.c ├── regularExp.h ├── search.c ├── search.h ├── selection.c ├── selection.h ├── server.c ├── server.h ├── server_common.c ├── server_common.h ├── shell.c ├── shell.h ├── shift.c ├── shift.h ├── smartIndent.c ├── smartIndent.h ├── tags.c ├── tags.h ├── text.c ├── text.h ├── textBuf.c ├── textBuf.h ├── textDisp.c ├── textDisp.h ├── textDrag.c ├── textDrag.h ├── textP.h ├── textSel.c ├── textSel.h ├── undo.c ├── undo.h ├── userCmds.c ├── userCmds.h ├── window.c ├── window.h ├── windowTitle.c └── windowTitle.h └── util ├── DialogF.c ├── DialogF.h ├── Makefile.common ├── Makefile.dependencies ├── check_lin_tif ├── clearcase.c ├── clearcase.h ├── colorchooser.c ├── colorchooser.h ├── dragAndDrop.c ├── dragAndDrop.h ├── ec_glob.c ├── ec_glob.h ├── fileUtils.c ├── fileUtils.h ├── filedialog.c ├── filedialog.h ├── fontsel.c ├── fontsel.h ├── getfiles.c ├── getfiles.h ├── libxattr.c ├── libxattr.h ├── managedList.c ├── managedList.h ├── misc.c ├── misc.h ├── motif.c ├── motif.h ├── nedit_malloc.c ├── nedit_malloc.h ├── pathutils.c ├── pathutils.h ├── prefFile.c ├── prefFile.h ├── printUtils.c ├── printUtils.h ├── rbTree.c ├── rbTree.h ├── refString.c ├── refString.h ├── system.h ├── textfield.c ├── textfield.h ├── textfieldP.h ├── unicode.c ├── unicode.h ├── utils.c ├── utils.h ├── xdnd.c └── xdnd.h /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.a 3 | .DS_Store 4 | Microline/XmL/Makefile.linux 5 | Microline/XmL/Makefile.linux-static 6 | Microline/XmL/Makefile.solaris 7 | Microline/XmL/Makefile.freebsd 8 | Microline/XmL/Makefile.macosx 9 | Microline/XmL/Makefile.macos 10 | Xlt/Makefile.linux 11 | Xlt/Makefile.linux-static 12 | Xlt/Makefile.solaris 13 | Xlt/Makefile.freebsd 14 | Xlt/Makefile.macosx 15 | Xlt/Makefile.macos 16 | source/Makefile.linux 17 | source/Makefile.linux-static 18 | source/Makefile.solaris 19 | source/Makefile.freebsd 20 | source/Makefile.macosx 21 | source/Makefile.macos 22 | source/nc 23 | source/nedit 24 | source/xnc 25 | source/xnedit 26 | source/parse.c 27 | source/version.h 28 | util/Makefile.linux 29 | util/Makefile.linux-static 30 | util/Makefile.solaris 31 | util/Makefile.freebsd 32 | util/Makefile.macosx 33 | util/Makefile.macos 34 | util/check_lin_tif 35 | resources/macos/build 36 | resources/macos/install 37 | gmon.out 38 | .idea 39 | -------------------------------------------------------------------------------- /Microline/Makefile: -------------------------------------------------------------------------------- 1 | # $Id: Makefile,v 1.3 2005/03/23 12:34:27 edg Exp $ 2 | SHELL=/bin/sh 3 | # 4 | # Makefile for NEdit text editor 5 | # 6 | # Targets are the suffixes of the system-specific makefiles in 7 | # the makefiles/ directory. 8 | # For example, to build NEdit for Solaris, give the command 9 | # 10 | # make solaris 11 | # 12 | # This builds an intermediate library in the util/ directory, 13 | # then builds the nedit and nc executables in the source/ directory. 14 | # 15 | 16 | all: 17 | @echo "Please specify target:" 18 | @echo "(For example, type \"make linux\" for a Linux system.)" 19 | @(cd ../makefiles && ls -C Makefile* | sed -e 's/Makefile.//g') 20 | 21 | .DEFAULT: 22 | @- (cd XmL; if [ -f ../../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\ 23 | then ln -s ../../makefiles/Makefile.$@ .; fi) 24 | @- (cd XmL; $(MAKE) -f Makefile.$@ libXmL.a) 25 | 26 | clean: 27 | @- (cd XmL; $(MAKE) -f Makefile.common clean) 28 | -------------------------------------------------------------------------------- /Microline/XmL/Makefile.common: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.common,v 1.1 2003/12/25 06:55:07 tksoh Exp $ 2 | # 3 | # Platform independent part of make procedure for Nirvana utilities directory, 4 | # included by machine specific makefiles. 5 | # 6 | 7 | .c.o: 8 | $(CC) -c -I.. $(CFLAGS) -o $@ $< 9 | 10 | OBJS = Folder.o XmL.o Grid.o GridUtil.o Progress.o Tree.o 11 | 12 | all: libXmL.a 13 | 14 | libXmL.a: $(OBJS) 15 | $(AR) $(ARFLAGS) libXmL.a $(OBJS) 16 | 17 | clean: 18 | rm -f $(OBJS) libXmL.a 19 | 20 | # Get the dependencies for all objects 21 | include Makefile.dependencies 22 | -------------------------------------------------------------------------------- /Microline/XmL/Makefile.dependencies: -------------------------------------------------------------------------------- 1 | XmL.o: XmL.c XmL.h 2 | Folder.o: Folder.c Folder.h FolderP.h XmL.h 3 | -------------------------------------------------------------------------------- /Microline/XmL/Progress.h: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 | * 3 | * ***** BEGIN LICENSE BLOCK ***** 4 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5 | * 6 | * The contents of this file are subject to the Mozilla Public License Version 7 | * 1.1 (the "License"); you may not use this file except in compliance with 8 | * the License. You may obtain a copy of the License at 9 | * http://www.mozilla.org/MPL/ 10 | * 11 | * Software distributed under the License is distributed on an "AS IS" basis, 12 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 13 | * for the specific language governing rights and limitations under the 14 | * License. 15 | * 16 | * The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 17 | * 18 | * The Initial Developer of the Original Code is 19 | * Netscape Communications Corporation. 20 | * Portions created by the Initial Developer are Copyright (C) 1998 21 | * the Initial Developer. All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * 25 | * Alternatively, the contents of this file may be used under the terms of 26 | * either the GNU General Public License Version 2 or later (the "GPL"), or 27 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 28 | * in which case the provisions of the GPL or the LGPL are applicable instead 29 | * of those above. If you wish to allow use of your version of this file only 30 | * under the terms of either the GPL or the LGPL, and not to allow others to 31 | * use your version of this file under the terms of the MPL, indicate your 32 | * decision by deleting the provisions above and replace them with the notice 33 | * and other provisions required by the GPL or the LGPL. If you do not delete 34 | * the provisions above, a recipient may use your version of this file under 35 | * the terms of any one of the MPL, the GPL or the LGPL. 36 | * 37 | * In addition, as a special exception to the GNU GPL, the copyright holders 38 | * give permission to link the code of this program with the Motif and Open 39 | * Motif libraries (or with modified versions of these that use the same 40 | * license), and distribute linked combinations including the two. You 41 | * must obey the GNU General Public License in all respects for all of 42 | * the code used other than linking with Motif/Open Motif. If you modify 43 | * this file, you may extend this exception to your version of the file, 44 | * but you are not obligated to do so. If you do not wish to do so, 45 | * delete this exception statement from your version. 46 | * 47 | * ***** END LICENSE BLOCK ***** */ 48 | 49 | 50 | #ifndef XmLProgressH 51 | #define XmLProgressH 52 | 53 | #include "XmL.h" 54 | 55 | #ifdef XmL_CPP 56 | extern "C" { 57 | #endif 58 | 59 | extern WidgetClass xmlProgressWidgetClass; 60 | typedef struct _XmLProgressClassRec *XmLProgressWidgetClass; 61 | typedef struct _XmLProgressRec *XmLProgressWidget; 62 | 63 | #define XmLIsProgress(w) XtIsSubclass((w), xmlProgressWidgetClass) 64 | 65 | #ifdef XmL_ANSIC 66 | 67 | Widget XmLCreateProgress(Widget parent, char *name, ArgList arglist, 68 | Cardinal argcount); 69 | 70 | #else 71 | 72 | Widget XmLCreateProgress(); 73 | 74 | #endif 75 | 76 | #ifdef XmL_CPP 77 | } 78 | #endif 79 | #endif 80 | -------------------------------------------------------------------------------- /Microline/examples/prog1.c: -------------------------------------------------------------------------------- 1 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 | * 3 | * ***** BEGIN LICENSE BLOCK ***** 4 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5 | * 6 | * The contents of this file are subject to the Mozilla Public License Version 7 | * 1.1 (the "License"); you may not use this file except in compliance with 8 | * the License. You may obtain a copy of the License at 9 | * http://www.mozilla.org/MPL/ 10 | * 11 | * Software distributed under the License is distributed on an "AS IS" basis, 12 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 13 | * for the specific language governing rights and limitations under the 14 | * License. 15 | * 16 | * The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 17 | * 18 | * The Initial Developer of the Original Code is 19 | * Netscape Communications Corporation. 20 | * Portions created by the Initial Developer are Copyright (C) 1998 21 | * the Initial Developer. All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * 25 | * Alternatively, the contents of this file may be used under the terms of 26 | * either the GNU General Public License Version 2 or later (the "GPL"), or 27 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 28 | * in which case the provisions of the GPL or the LGPL are applicable instead 29 | * of those above. If you wish to allow use of your version of this file only 30 | * under the terms of either the GPL or the LGPL, and not to allow others to 31 | * use your version of this file under the terms of the MPL, indicate your 32 | * decision by deleting the provisions above and replace them with the notice 33 | * and other provisions required by the GPL or the LGPL. If you do not delete 34 | * the provisions above, a recipient may use your version of this file under 35 | * the terms of any one of the MPL, the GPL or the LGPL. 36 | * 37 | * In addition, as a special exception to the GNU GPL, the copyright holders 38 | * give permission to link the code of this program with the Motif and Open 39 | * Motif libraries (or with modified versions of these that use the same 40 | * license), and distribute linked combinations including the two. You 41 | * must obey the GNU General Public License in all respects for all of 42 | * the code used other than linking with Motif/Open Motif. If you modify 43 | * this file, you may extend this exception to your version of the file, 44 | * but you are not obligated to do so. If you do not wish to do so, 45 | * delete this exception statement from your version. 46 | * 47 | * ***** END LICENSE BLOCK ***** */ 48 | 49 | 50 | #include 51 | #include 52 | 53 | main(argc, argv) 54 | int argc; 55 | char *argv[]; 56 | { 57 | XtAppContext app; 58 | Widget shell, progress; 59 | 60 | shell = XtAppInitialize(&app, "Prog1", NULL, 0, 61 | &argc, argv, NULL, NULL, 0); 62 | 63 | progress = XtVaCreateManagedWidget("progress", 64 | xmlProgressWidgetClass, shell, 65 | XtVaTypedArg, XmNbackground, XmRString, "white", 6, 66 | XtVaTypedArg, XmNforeground, XmRString, "#000080", 8, 67 | XmNwidth, 300, 68 | XmNheight, 25, 69 | NULL); 70 | 71 | XtVaSetValues(progress, 72 | XmNvalue, 50, 73 | NULL); 74 | 75 | XtRealizeWidget(shell); 76 | XtAppMainLoop(app); 77 | } 78 | -------------------------------------------------------------------------------- /Microline/man/XmLArrayFree.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLArrayFree 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLArrayFree \- free an array 49 | .SH SYNTAX 50 | void XmLArrayFree(\fIarray\fP) 51 | .br 52 | XmLArray \fIarray\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIarray\fP 1i 56 | array to free 57 | .SH DESCRIPTION 58 | Frees the \fIarray\fP given and any space allocated by the array. 59 | This function does not free the individual elements of the array. 60 | .SH "SEE ALSO" 61 | XmLArrayAdd(3X) XmLArrayDel(3X) XmLArrayGet(3X) 62 | XmLArrayGetCount(3X) XmLArrayMove(3X) XmLArrayNew(3X) 63 | XmLArrayReorder(3X) XmLArraySet(3X) XmLArraySort(3X) 64 | -------------------------------------------------------------------------------- /Microline/man/XmLArrayGetCount.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLArrayGetCount 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLArrayGetCount \- return size of an array 49 | .SH SYNTAX 50 | int XmLArrayGetCount(\fIarray\fP) 51 | .br 52 | XmLArray \fIarray\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIarray\fP 1i 56 | array to query 57 | .SH DESCRIPTION 58 | Returns the size of \fIarray\fP in units of number of pointers it can hold. 59 | .SH RETURN VALUE 60 | The size of the array. 61 | .SH "SEE ALSO" 62 | XmLArrayAdd(3X) XmLArrayDel(3X) XmLArrayFree(3X) XmLArrayGet(3X) 63 | XmLArrayMove(3X) XmLArrayNew(3X) 64 | XmLArrayReorder(3X) XmLArraySet(3X) XmLArraySort(3X) 65 | -------------------------------------------------------------------------------- /Microline/man/XmLDateDaysInMonth.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLDateDaysInMonth 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLDateDaysInMonth \- calculates number of days in month 49 | .SH SYNTAX 50 | int XmLDateDaysInMonth(\fIm\fP, \fIy\fP) 51 | .br 52 | int \fIm\fP; 53 | .br 54 | int \fIy\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIm\fP 1i 58 | month 1 to 12 59 | .IP \fIy\fP 1i 60 | year 1753 to 9999 61 | .SH DESCRIPTION 62 | Calculates the number of days in a given month \fIm\fP and year \fIy\fP. 63 | .SH RETURN VALUE 64 | The number of days in the given month and year. A value of -1 is 65 | returned if a passed value is out of range. 66 | .SH "SEE ALSO" 67 | XmLDateWeekDay(3X) 68 | -------------------------------------------------------------------------------- /Microline/man/XmLFolderAddTab.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLFolderAddTab 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLFolderAddTab \- add a tab to a Folder containing a string 49 | .SH SYNTAX 50 | Widget XmLFolderAddTab(\fIwidget\fP, \fIstring\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | XmString \fIstring\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Folder widget ID 59 | .IP \fIstring\fP 1i 60 | string to display in the tab 61 | .SH DESCRIPTION 62 | Adds a tab to a Folder containing the \fIstring\fP specified. 63 | .SH RETURN VALUE 64 | Returns the widget ID of the DrawnButton widget contained in the tab. 65 | .SH "SEE ALSO" 66 | XmLFolderAddBitmapTab(3X) XmLFolder(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLFontListCopyDefault.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLFontListCopyDefault 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLFontListCopyDefault \- returns a copy of the default font list for a widget 49 | .SH SYNTAX 50 | XmLFontList XmLFontListCopyDefault(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | widget to retrieve default font list for 57 | .SH DESCRIPTION 58 | Returns a copy of the default font list for the given \fIwidget\fP. 59 | The default font list is found by looking for the font list default 60 | of the nearest BulletinBoard, MenuShell or VendorShell parent. 61 | .SH RETURN VALUE 62 | A copy of the default font list for the given \fIwidget\fP. 63 | -------------------------------------------------------------------------------- /Microline/man/XmLGrid.3x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unixwork/xnedit/495eaf89378b6a8d7f2a5fbe4ca26b71335ad946/Microline/man/XmLGrid.3x -------------------------------------------------------------------------------- /Microline/man/XmLGridColumnIsVisible.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridColumnIsVisible 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridColumnIsVisible \- determine visiblily of a content column 49 | .SH SYNTAX 50 | void XmLGridColumnIsVisible(\fIwidget\fP, \fIcolumn\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | int \fIcolumn\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fIcolumn\fP 1i 60 | position of content column 61 | .SH DESCRIPTION 62 | Determines visibility of a content column. 63 | .SH RETURN VALUE 64 | Returns True if any part of the content column given is visible 65 | to the user, and False otherwise. 66 | .SH "SEE ALSO" 67 | XmLGrid(3X) XmLGridRowIsVisible(3X) 68 | -------------------------------------------------------------------------------- /Microline/man/XmLGridDeselectAllCells.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridDeselectAllCells 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridDeselectAllCells \- deselect all content cells 49 | .SH SYNTAX 50 | void XmLGridDeselectAllCells(\fIwidget\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | Boolean \fInotify\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fInotify\fP 1i 60 | if True, deselect callbacks will be called 61 | .SH DESCRIPTION 62 | Deselects all content cells in the Grid. If \fInotify\fP is True, 63 | the Grid's XmNdeselectCallback callbacks will be called for 64 | each cell deselected. 65 | .SH "SEE ALSO" 66 | XmLGridDeselectAllRows(3X) XmLGridDeselectAllColumns(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLGridDeselectAllColumns.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridDeselectAllColumns 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridDeselectAllColumns \- deselect all content columns 49 | .SH SYNTAX 50 | void XmLGridDeselectAllColumns(\fIwidget\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | Boolean \fInotify\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fInotify\fP 1i 60 | if True, deselect callbacks will be called 61 | .SH DESCRIPTION 62 | Deselects all content columns in the Grid. If \fInotify\fP is True, 63 | the Grid's XmNdeselectCallback callbacks will be called for 64 | each column deselected. 65 | .SH "SEE ALSO" 66 | XmLGridDeselectAllCells(3X) XmLGridDeselectAllRows(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLGridDeselectAllRows.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridDeselectAllRows 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridDeselectAllRows \- deselect all content rows 49 | .SH SYNTAX 50 | void XmLGridDeselectAllRows(\fIwidget\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | Boolean \fInotify\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fInotify\fP 1i 60 | if True, deselect callbacks will be called 61 | .SH DESCRIPTION 62 | Deselects all content rows in the Grid. If \fInotify\fP is True, 63 | the Grid's XmNdeselectCallback callbacks will be called for 64 | each row deselected. 65 | .SH "SEE ALSO" 66 | XmLGridDeselectAllCells(3X) XmLGridDeselectAllColumns(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLGridEditCancel.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridEditCancel 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridEditCancel \- cancel any cell edit in progress 49 | .SH SYNTAX 50 | void XmLGridEditCancel(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Cancels a cell edit which is in progress. If a cell is being edited, 59 | the Grid's XmNeditCallbacks will be called with a reason of XmCR_EDIT_CANCEL. 60 | .SH "SEE ALSO" 61 | XmLGridEditBegin(3X) XmLGridEditComplete(3X) 62 | -------------------------------------------------------------------------------- /Microline/man/XmLGridEditComplete.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridEditComplete 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridEditComplete \- completes a cell edit 49 | .SH SYNTAX 50 | void XmLGridEditComplete(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Completes a cell edit which is in progress. If a cell is being edited, 59 | the Grid's XmNeditCallbacks will be called with a reason of 60 | XmCR_EDIT_COMPLETE. 61 | .SH "SEE ALSO" 62 | XmLGridEditBegin(3X) XmLGridEditCancel(3X) 63 | -------------------------------------------------------------------------------- /Microline/man/XmLGridGetSelectedCellCount.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridGetSelectedCellCount 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridGetSelectedCellCount \- return number of currently selected cells 49 | .SH SYNTAX 50 | int XmLGridGetSelectedCellCount(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Returns the number of currently selected cells. Only cells in 59 | content rows and columns may be selected. 60 | .SH RETURN VALUE 61 | The number of currently selected cells. 62 | .SH "SEE ALSO" 63 | XmLGridGetSelectedCells(3X) XmLGridSelectCell(3X) 64 | -------------------------------------------------------------------------------- /Microline/man/XmLGridGetSelectedColumnCount.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridGetSelectedColumnCount 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridGetSelectedColumnCount \- return number of currently selected columns 49 | .SH SYNTAX 50 | int XmLGridGetSelectedColumnCount(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Returns the number of currently selected columns. Only content 59 | columns may be selected. 60 | .SH RETURN VALUE 61 | The number of currently selected columns. 62 | .SH "SEE ALSO" 63 | XmLGridGetSelectedColumns(3X) XmLGridSelectColumn(3X) 64 | -------------------------------------------------------------------------------- /Microline/man/XmLGridGetSelectedRow.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridGetSelectedRow 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridGetSelectedRow \- retrieve position of the currently selected row 49 | .SH SYNTAX 50 | int XmLGridGetSelectedRow(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | When XmNselectionPolicy is XmSELECT_SINGLE_ROW or XmSELECT_BROWSE_ROW, 59 | this function returns the content row position of the currently 60 | selected row or -1 if no row is selected. 61 | .SH RETURN VALUE 62 | The content row position of the currently selected row or -1 if no row is 63 | is selected. 64 | .SH "SEE ALSO" 65 | XmLGridGetSelectedRows(3X) 66 | -------------------------------------------------------------------------------- /Microline/man/XmLGridGetSelectedRowCount.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridGetSelectedRowCount 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridGetSelectedRowCount \- return number of currently selected rows 49 | .SH SYNTAX 50 | int XmLGridGetSelectedRowCount(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Returns the number of currently selected rows. Only content rows 59 | may be selected. 60 | .SH RETURN VALUE 61 | The number of currently selected rows. 62 | .SH "SEE ALSO" 63 | XmLGridGetSelectedRows(3X) XmLGridSelectRow(3X) 64 | -------------------------------------------------------------------------------- /Microline/man/XmLGridPaste.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridPaste 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridPaste \- paste cell contents from the clipboard into a Grid 49 | .SH SYNTAX 50 | Boolean XmLGridPaste(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Pastes cell contents (strings) from the clipboard into a Grid starting 59 | at the current focus location. This function does not invoke any callbacks. 60 | .SH RETURN VALUE 61 | A value of True is returned upon success, and False is returned 62 | upon failure. 63 | .SH "SEE ALSO" 64 | XmLGridCopyPos(3X) XmLGridCopySelected(3X) cXmLGridPastePos(3X) 65 | -------------------------------------------------------------------------------- /Microline/man/XmLGridRedrawAll.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridRedrawAll 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridRedrawAll \- redraw all cells in a Grid 49 | .SH SYNTAX 50 | void XmLGridRedrawAll(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | Grid widget ID 57 | .SH DESCRIPTION 58 | Redraws all the cells in a Grid. This function is normally only used 59 | to redraw a Grid which performs drawing using an XmNcellDrawCallback. 60 | .SH "SEE ALSO" 61 | XmLGridRedrawCell(3X) XmLGridRedrawRow(3X) XmLGridRedrawColumn(3X) 62 | -------------------------------------------------------------------------------- /Microline/man/XmLGridRedrawRow.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridRedrawRow 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridRedrawRow \- redraw a row 49 | .SH SYNTAX 50 | void XmLGridRedrawRow(\fIwidget\fP, \fItype\fP, \fIrow\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | unsigned char \fItype\fP; 55 | .br 56 | int \fIrow\fP; 57 | .LP 58 | .SH ARGUMENTS 59 | .IP \fIwidget\fP 1i 60 | Grid widget ID 61 | .IP \fItype\fP 1i 62 | type of row 63 | .IP \fIrow\fP 1i 64 | position of row 65 | .SH DESCRIPTION 66 | Redraws the row at position \fIrow\fP of type \fItype\fP. 67 | This function is normally only used to redraw areas in a Grid 68 | which perform drawing using an XmNcellDrawCallback. 69 | .SH "SEE ALSO" 70 | XmLGridRedrawAll(3X) XmLGridRedrawCell(3X) XmLGridRedrawColumn(3X) 71 | -------------------------------------------------------------------------------- /Microline/man/XmLGridRowIsVisible.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridRowIsVisible 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridRowIsVisible \- determine visiblily of a content row 49 | .SH SYNTAX 50 | void XmLGridRowIsVisible(\fIwidget\fP, \fIrow\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | int \fIrow\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fIrow\fP 1i 60 | position of content row 61 | .SH DESCRIPTION 62 | Determines visibility of a content row. 63 | .SH RETURN VALUE 64 | Returns True if any part of the content row given is visible 65 | to the user, and False otherwise. 66 | .SH "SEE ALSO" 67 | XmLGrid(3X) XmLGridColumnIsVisible(3X) 68 | -------------------------------------------------------------------------------- /Microline/man/XmLGridSelectAllCells.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridSelectAllCells 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridSelectAllCells \- select all content cells 49 | .SH SYNTAX 50 | void XmLGridSelectAllCells(\fIwidget\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | Boolean \fInotify\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fInotify\fP 1i 60 | if True, select callbacks will be called 61 | .SH DESCRIPTION 62 | Selects all content cells in the Grid. If \fInotify\fP is True, 63 | the Grid's XmNselectCallback callbacks will be called for 64 | each cell selected. 65 | .SH "SEE ALSO" 66 | XmLGridSelectAllRows(3X) XmLGridSelectAllColumns(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLGridSelectAllColumns.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridSelectAllColumns 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridSelectAllColumns \- select all content columns 49 | .SH SYNTAX 50 | void XmLGridSelectAllColumns(\fIwidget\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | Boolean \fInotify\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fInotify\fP 1i 60 | if True, select callbacks will be called 61 | .SH DESCRIPTION 62 | Selects all content columns in the Grid. If \fInotify\fP is True, 63 | the Grid's XmNselectCallback callbacks will be called for 64 | each column selected. 65 | .SH "SEE ALSO" 66 | XmLGridSelectAllCells(3X) XmLGridSelectAllRows(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLGridSelectAllRows.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridSelectAllRows 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridSelectAllRows \- select all content rows 49 | .SH SYNTAX 50 | void XmLGridSelectAllRows(\fIwidget\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | Boolean \fInotify\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | Grid widget ID 59 | .IP \fInotify\fP 1i 60 | if True, select callbacks will be called 61 | .SH DESCRIPTION 62 | Selects all content rows in the Grid. If \fInotify\fP is True, 63 | the Grid's XmNselectCallback callbacks will be called for 64 | each row selected. 65 | .SH "SEE ALSO" 66 | XmLGridSelectAllCells(3X) XmLGridSelectAllColumns(3X) 67 | -------------------------------------------------------------------------------- /Microline/man/XmLGridSelectRow.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLGridSelectRow 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLGridSelectRow \- select a row 49 | .SH SYNTAX 50 | void XmLGridSelectRow(\fIwidget\fP, \fIrow\fP, \fInotify\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | int \fIrow\fP; 55 | .br 56 | Boolean \fInotify\fP; 57 | .LP 58 | .SH ARGUMENTS 59 | .IP \fIwidget\fP 1i 60 | Grid widget ID 61 | .IP \fIrow\fP 1i 62 | position of content row 63 | .IP \fInotify\fP 1i 64 | if True, select callbacks will be called 65 | .SH DESCRIPTION 66 | Selects the specified content \fIrow\fP in the Grid. If \fInotify\fP is 67 | True and the row is currently deselected, the Grid's 68 | XmNselectCallback callbacks will be called. 69 | .SH "SEE ALSO" 70 | XmLGridSelectAllRows(3X) 71 | -------------------------------------------------------------------------------- /Microline/man/XmLRectIntersect.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLRectIntersect 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLRectIntersect \- determines if two rectangle intersect 49 | .SH SYNTAX 50 | int XmLRectIntersect(\fIr1\fP, \fIr2\fP) 51 | .br 52 | XRectangle *\fIr1\fP; 53 | .br 54 | XRectangle *\fIr2\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIr1\fP 1i 58 | rectangle 1 59 | .IP \fIr2\fP 1i 60 | rectangle 2 61 | .SH DESCRIPTION 62 | Determines if the two rectangles \fIr1\fP and \fIr2\fP intersect. 63 | .SH RETURN VALUE 64 | 1 if the rectangles r1 and r2 intersect, and a value of 0 otherwise. 65 | -------------------------------------------------------------------------------- /Microline/man/XmLShellOfWidget.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLShellOfWidget 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLShellOfWidget \- returns the Shell widget of the given widget 49 | .SH SYNTAX 50 | void XmLShellOfWidget(\fIwidget\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .LP 54 | .SH ARGUMENTS 55 | .IP \fIwidget\fP 1i 56 | widget ID 57 | .SH DESCRIPTION 58 | Returns the Shell widget of the given widget. 59 | .SH RETURN VALUE 60 | The Shell widget of the given widget. 61 | -------------------------------------------------------------------------------- /Microline/man/XmLWarning.3x: -------------------------------------------------------------------------------- 1 | .\" ***** BEGIN LICENSE BLOCK ***** 2 | .\" Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | .\" 4 | .\" The contents of this file are subject to the Mozilla Public License Version 5 | .\" 1.1 (the "License"); you may not use this file except in compliance with 6 | .\" the License. You may obtain a copy of the License at 7 | .\" http://www.mozilla.org/MPL/ 8 | .\" 9 | .\" Software distributed under the License is distributed on an "AS IS" basis, 10 | .\" WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | .\" for the specific language governing rights and limitations under the 12 | .\" License. 13 | .\" 14 | .\" The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data . 15 | .\" 16 | .\" The Initial Developer of the Original Code is 17 | .\" Netscape Communications Corporation. 18 | .\" Portions created by the Initial Developer are Copyright (C) 1998 19 | .\" the Initial Developer. All Rights Reserved. 20 | .\" 21 | .\" Contributor(s): 22 | .\" 23 | .\" Alternatively, the contents of this file may be used under the terms of 24 | .\" either the GNU General Public License Version 2 or later (the "GPL"), or 25 | .\" the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 26 | .\" in which case the provisions of the GPL or the LGPL are applicable instead 27 | .\" of those above. If you wish to allow use of your version of this file only 28 | .\" under the terms of either the GPL or the LGPL, and not to allow others to 29 | .\" use your version of this file under the terms of the MPL, indicate your 30 | .\" decision by deleting the provisions above and replace them with the notice 31 | .\" and other provisions required by the GPL or the LGPL. If you do not delete 32 | .\" the provisions above, a recipient may use your version of this file under 33 | .\" the terms of any one of the MPL, the GPL or the LGPL. 34 | .\" 35 | .\" In addition, as a special exception to the GNU GPL, the copyright holders 36 | .\" give permission to link the code of this program with the Motif and Open 37 | .\" Motif libraries (or with modified versions of these that use the same 38 | .\" license), and distribute linked combinations including the two. You 39 | .\" must obey the GNU General Public License in all respects for all of 40 | .\" the code used other than linking with Motif/Open Motif. If you modify 41 | .\" this file, you may extend this exception to your version of the file, 42 | .\" but you are not obligated to do so. If you do not wish to do so, 43 | .\" delete this exception statement from your version. 44 | .\" 45 | .\" ***** END LICENSE BLOCK ***** 46 | .TH XmLWarning 3X "R1" "XML1" "XML" 47 | .SH NAME 48 | XmLWarning \- display a widget XtWarning message 49 | .SH SYNTAX 50 | void XmLWarning(\fIwidget\fP, \fImsg\fP) 51 | .br 52 | Widget \fIwidget\fP; 53 | .br 54 | char *\fImsg\fP; 55 | .LP 56 | .SH ARGUMENTS 57 | .IP \fIwidget\fP 1i 58 | widget to display message for 59 | .IP \fImsg\fP 1i 60 | warning message to display 61 | .SH DESCRIPTION 62 | For use in widgets only, this function generates an XtWarning message 63 | containing the string \fImsg\fP for the given \fIwidget\fP. 64 | -------------------------------------------------------------------------------- /Xlt/BubbleButton.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * $Id: BubbleButton.h,v 1.2 2003/12/25 06:55:07 tksoh Exp $ 4 | * 5 | * Copyright (C) 1996 Free Software Foundation, Inc. 6 | * Copyright © 1999-2001 by the LessTif developers. 7 | * 8 | * This file is part of the GNU LessTif Extension Library. 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Library General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Library General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Library General Public 21 | * License along with this library; if not, write to the Free 22 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 | * 24 | **/ 25 | #ifndef _BUBBLEBUTTON_H 26 | #define _BUBBLEBUTTON_H 27 | 28 | #include 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | #ifndef XltNfadeRate 35 | #define XltNfadeRate "fadeRate" 36 | #endif 37 | #ifndef XltCFadeRate 38 | #define XltCFadeRate "FadeRate" 39 | #endif 40 | #ifndef XltNdelay 41 | #define XltNdelay "delay" 42 | #endif 43 | #ifndef XltCDelay 44 | #define XltCDelay "Delay" 45 | #endif 46 | #define XltNbubbleString "bubbleString" 47 | #define XltCBubbleString "BubbleString" 48 | #define XltNshowBubble "showBubble" 49 | #define XltCShowBubble "ShowBubble" 50 | 51 | #ifndef XltNmouseOverPixmap 52 | #define XltNmouseOverPixmap "mouseOverPixmap" 53 | #define XltCMouseOverPixmap "MouseOverPixmap" 54 | #endif 55 | #ifndef XltNmouseOverString 56 | #define XltNmouseOverString "mouseOverString" 57 | #define XltCMouseOverString "MouseOverString" 58 | #endif 59 | #ifndef XltNbubbleDuration 60 | #define XltNbubbleDuration "bubbleDuration" 61 | #endif 62 | #ifndef XltCBubbleDuration 63 | #define XltCBubbleDuration "BubbleDuration" 64 | #endif 65 | #ifndef XltNslidingBubble 66 | #define XltNslidingBubble "slidingBubble" 67 | #endif 68 | #ifndef XltCslidingBubble 69 | #define XltCslidingBubble "SlidingBubble" 70 | #endif 71 | #ifndef XltNautoParkBubble 72 | #define XltNautoParkBubble "autoParkBubble" 73 | #endif 74 | #ifndef XltCautoParkBubble 75 | #define XltCautoParkBubble "AutoParkBubble" 76 | #endif 77 | 78 | extern WidgetClass xrwsBubbleButtonWidgetClass; 79 | 80 | typedef struct _XltBubbleButtonRec *XltBubbleButtonWidget; 81 | typedef struct _XltBubbleButtonClassRec *XltBubbleButtonWidgetClass; 82 | #if 0 83 | typedef struct { 84 | int reason; 85 | char *data; 86 | int len; 87 | } XltHostCallbackStruct, _XltHostCallbackStruct; 88 | #endif 89 | 90 | 91 | #define XltIsBubbleButton(w) XtIsSubclass((w), xrwsBubbleButtonWidgetClass) 92 | 93 | extern Widget XltCreateBubbleButton(Widget parent, 94 | char *name, 95 | Arg *arglist, 96 | Cardinal argCount); 97 | #ifdef __cplusplus 98 | } /* Close scope of 'extern "C"' declaration which encloses file. */ 99 | #endif 100 | 101 | #endif 102 | -------------------------------------------------------------------------------- /Xlt/Makefile: -------------------------------------------------------------------------------- 1 | # $Id: Makefile,v 1.1 2005/03/23 12:34:28 edg Exp $ 2 | SHELL=/bin/sh 3 | # 4 | # Makefile for NEdit text editor 5 | # 6 | # Targets are the suffixes of the system-specific makefiles in 7 | # the makefiles/ directory. 8 | # For example, to build NEdit for Solaris, give the command 9 | # 10 | # make solaris 11 | # 12 | # This builds an intermediate library in the util/ directory, 13 | # then builds the nedit and nc executables in the source/ directory. 14 | # 15 | 16 | all: 17 | @echo "Please specify target:" 18 | @echo "(For example, type \"make linux\" for a Linux system.)" 19 | @(cd ../makefiles && ls -C Makefile* | sed -e 's/Makefile.//g') 20 | 21 | .DEFAULT: 22 | @- if [ -f ../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\ 23 | then ln -s ../makefiles/Makefile.$@ .; fi 24 | @- $(MAKE) -f Makefile.$@ libXlt.a 25 | 26 | clean: 27 | @- $(MAKE) -f Makefile.common clean 28 | 29 | -------------------------------------------------------------------------------- /Xlt/Makefile.common: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.common,v 1.1 2003/12/25 06:55:07 tksoh Exp $ 2 | # 3 | # Platform independent part of make procedure for Nirvana utilities directory, 4 | # included by machine specific makefiles. 5 | # 6 | 7 | .c.o: 8 | $(CC) -c -I../Xlt $(CFLAGS) -o $@ $< 9 | 10 | OBJS = BubbleButton.o SlideC.o 11 | 12 | all: libXlt.a 13 | 14 | libXlt.a: $(OBJS) 15 | $(AR) $(ARFLAGS) libXlt.a $(OBJS) 16 | 17 | clean: 18 | rm -f $(OBJS) libXlt.a 19 | 20 | # Get the dependencies for all objects 21 | include Makefile.dependencies 22 | -------------------------------------------------------------------------------- /Xlt/Makefile.dependencies: -------------------------------------------------------------------------------- 1 | BubbleButton.o: BubbleButton.c BubbleButton.h BubbleButtonP.h 2 | SlideC.o: SlideC.c SlideC.h SlideCP.h 3 | -------------------------------------------------------------------------------- /Xlt/SlideC.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * $Id: SlideC.h,v 1.1 2003/12/23 08:34:36 tksoh Exp $ 4 | * 5 | * Copyright (C) 1996 Free Software Foundation, Inc. 6 | * Copyright © 1999-2001 by the LessTif developers. 7 | * 8 | * This file is part of the GNU LessTif Extension Library. 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Library General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Library General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Library General Public 21 | * License along with this library; if not, write to the Free 22 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 | * 24 | **/ 25 | 26 | #ifndef _SLIDEC_H 27 | #define _SLIDEC_H 28 | 29 | #include 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #ifndef XltIsSlideContext 36 | #define XltIsSlideContext(w) XtIsSubclass(w,xltSlideContextClass) 37 | #endif 38 | #ifndef XltNslideFinishCallback 39 | #define XltNslideFinishCallback "slideFinishCallback" 40 | #endif 41 | #ifndef XltCSlideFinishCallback 42 | #define XltCSlideFinishCallback "SlideFinishCallback" 43 | #endif 44 | #ifndef XltNslideMotionCallback 45 | #define XltNslideMotionCallback "slideMotionCallback" 46 | #endif 47 | #ifndef XltCSlideMotionCallback 48 | #define XltCSlideMotionCallback "SlideMotionCallback" 49 | #endif 50 | #ifndef XltNslideWidget 51 | #define XltNslideWidget "slideWidget" 52 | #endif 53 | #ifndef XltCSlideWidget 54 | #define XltCSlideWidget "SlideWidget" 55 | #endif 56 | #ifndef XltNslideInterval 57 | #define XltNslideInterval "slideInterval" 58 | #endif 59 | #ifndef XltCSlideInterval 60 | #define XltCSlideInterval "SlideInterval" 61 | #endif 62 | #ifndef XltNslideDestWidth 63 | #define XltNslideDestWidth "slideDestWidth" 64 | #endif 65 | #ifndef XltCSlideDestWidth 66 | #define XltCSlideDestWidth "SlideDestWidth" 67 | #endif 68 | #ifndef XltNslideDestHeight 69 | #define XltNslideDestHeight "slideDestHeight" 70 | #endif 71 | #ifndef XltCSlideDestHeight 72 | #define XltCSlideDestHeight "SlideDestHeight" 73 | #endif 74 | #ifndef XltNslideDestX 75 | #define XltNslideDestX "slideDestX" 76 | #endif 77 | #ifndef XltCSlideDestX 78 | #define XltCSlideDestX "SlideDestX" 79 | #endif 80 | #ifndef XltNslideDestY 81 | #define XltNslideDestY "slideDestY" 82 | #endif 83 | #ifndef XltCSlideDestY 84 | #define XltCSlideDestY "SlideDestY" 85 | #endif 86 | 87 | extern WidgetClass xltSlideContextWidgetClass; 88 | 89 | typedef struct _XltSlideContextRec *XltSlideContextWidget; 90 | typedef struct _XltSlideContextClassRec *XmSlideContextWidgetClass; 91 | 92 | typedef struct _XltSlideStruct { 93 | Widget w; 94 | XtWidgetGeometry dest; 95 | unsigned long interval; 96 | XtIntervalId id; 97 | } XltSlideStruct, *XltSlidePtr; 98 | 99 | void XltSlide(XltSlidePtr slide_info); 100 | 101 | #ifdef __cplusplus 102 | } 103 | #endif 104 | #endif 105 | -------------------------------------------------------------------------------- /Xlt/SlideCP.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * $Id: SlideCP.h,v 1.4 2005/12/01 14:31:43 tringali Exp $ 4 | * 5 | * Copyright (C) 1996 Free Software Foundation, Inc. 6 | * Copyright © 1999-2001 by the LessTif developers. 7 | * 8 | * This file is part of the GNU LessTif Extension Library. 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Library General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Library General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Library General Public 21 | * License along with this library; if not, write to the Free 22 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 | * 24 | **/ 25 | 26 | #ifndef _SLIDECP_H 27 | #define _SLIDECP_H 28 | 29 | #include 30 | #include 31 | #include 32 | #include "SlideC.h" 33 | 34 | 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | 40 | #ifndef XmUNSPECIFIED 41 | #define XmUNSPECIFIED (~0) 42 | #endif 43 | 44 | #ifndef XmUNSPECIFIED_POSITION 45 | #define XmUNSPECIFIED_POSITION (-1) 46 | #endif 47 | 48 | typedef struct { 49 | XtPointer extension; 50 | } XltSlideContextClassPart; 51 | 52 | typedef struct _XltSlideContextClassRec { 53 | ObjectClassPart object_class; 54 | XltSlideContextClassPart slide_class; 55 | } XltSlideContextClassRec; 56 | 57 | extern XltSlideContextClassRec xltSlideContextClassRec; 58 | 59 | typedef struct _XmSlideContextPart { 60 | XtIntervalId id; 61 | XtCallbackList slideFinishCallback; 62 | XtCallbackList slideMotionCallback; 63 | Widget slide_widget; 64 | unsigned long interval; 65 | Dimension dest_width; 66 | Dimension dest_height; 67 | Position dest_x; 68 | Position dest_y; 69 | } XltSlideContextPart; 70 | 71 | typedef struct _XltSlideContextRec { 72 | ObjectPart object; 73 | XltSlideContextPart slide; 74 | } XltSlideContextRec; 75 | 76 | #define Slide_Id(w) (((XltSlideContextWidget)w)->slide.id) 77 | #define Slide_Widget(w) (((XltSlideContextWidget)w)->slide.slide_widget) 78 | #define Slide_Interval(w) (((XltSlideContextWidget)w)->slide.interval) 79 | #define Slide_DestWidth(w) (((XltSlideContextWidget)w)->slide.dest_width) 80 | #define Slide_DestHeight(w) (((XltSlideContextWidget)w)->slide.dest_height) 81 | #define Slide_DestX(w) (((XltSlideContextWidget)w)->slide.dest_x) 82 | #define Slide_DestY(w) (((XltSlideContextWidget)w)->slide.dest_y) 83 | #define Slide_FinishCallback(w) (((XltSlideContextWidget)w)->slide.slideFinishCallback) 84 | #define Slide_MotionCallback(w) (((XltSlideContextWidget)w)->slide.slideMotionCallback) 85 | 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | 90 | #endif /* ifndef _SLIDECP_H */ 91 | -------------------------------------------------------------------------------- /makefiles/Makefile.cygwin: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.cygwin,v 1.00 2021/05/25 19:00:00 efa Exp $ 2 | # tested on Cygwin64 3.2.0(0.340/5/3) 2021-03-29 3 | # dependencies: libiconv-devel, libXpm-devel, libXrender-devel, libXft-devel, libfontconfig-devel, libXm-devel 4 | 5 | CC=cc 6 | AR=ar 7 | 8 | CFLAGS=-O -std=gnu99 -I/usr/X11R6/include -I/usr/include/X11 -DUSE_LPR_PRINT_CMD $(shell pkg-config --cflags xft fontconfig) -DXNE_TEXTFIELD 9 | 10 | ARFLAGS=-urs 11 | 12 | LIBS=-L/usr/X11R6/lib -liconv -lXm -lXt -lX11 -lXrender -lm -lpthread $(shell pkg-config --libs xft fontconfig) 13 | 14 | include Makefile.common 15 | -------------------------------------------------------------------------------- /makefiles/Makefile.depend: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.depend,v 1.5 2003/05/20 00:27:55 n8gray Exp $ 2 | # 3 | # This is a _generic_ Makefile to generate a dependency file 4 | # using GNUmake and gcc. 5 | # Advantage of this method (as compared to "makedepend(1)") 6 | # is that one can easily filter out dependencies on 7 | # non-application (i.e. system) headers using the -MM flag 8 | # of gcc. The reason to demand GNUMake is basically to have a nice, 9 | # simple rule for $(SRCS) as done below (and for the variable 10 | # transformations). 11 | # So one doesn't have to modify this file and manually add/update 12 | # the source file list! 13 | # 14 | # To use it just you probably just have to edit the 15 | # variables in the *CONFIG section* as you see fit. 16 | 17 | 18 | # ***************** CONFIG section ***************** 19 | 20 | GCC=gcc 21 | DEFINES= 22 | CPPFLAGS=-I$(HOME)/include 23 | DEPENDFILE=dependencies 24 | SHELL=/bin/sh 25 | 26 | # Headers are required to determine _all_ files 27 | # on which the dependency file itself may depend 28 | SRCS=$(wildcard *.c) 29 | HDRS=$(wildcard ../source/*.h) $(wildcard ../util/*.h) 30 | 31 | # *************** End CONFIG section ************ 32 | 33 | 34 | 35 | # ************** Now the generic part *********** 36 | 37 | .SUFFIXES: .c .o. deps 38 | .PHONY: all default deps new 39 | 40 | 41 | DEPS=$(SRCS:.c=.deps) 42 | 43 | default: all 44 | 45 | # This is the more conservative approach 46 | full: clean new deps 47 | 48 | # And this a more sophisticated one 49 | all: $(DEPENDFILE) 50 | 51 | # Remove old file, create new one and add CVS info line at top 52 | new: 53 | /bin/rm -f $(DEPENDFILE) 54 | echo '# $$''Id''$$' >$(DEPENDFILE) 55 | 56 | 57 | $(DEPENDFILE): new $(SRCS) $(HDRS) 58 | $(GCC) $(CPPFLAGS) $(DEFINES) -MM $(SRCS) >>$(DEPENDFILE) 59 | 60 | deps: $(DEPS) 61 | 62 | %.deps: %.c 63 | $(GCC) $(CPPFLAGS) $(DEFINES) -MM $< >>$(DEPENDFILE) 64 | 65 | verify_config: 66 | -------------------------------------------------------------------------------- /makefiles/Makefile.freebsd: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.freebsd,v 1.6 2003/11/22 13:03:39 edg Exp $ 2 | CC=cc 3 | AR=ar 4 | 5 | # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 6 | # 7 | # To evaluate an alternative layout for the Replace/Find dialog, add 8 | # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 9 | # 10 | # To test if the Motif library exports the runtime version 11 | # add -DHAVE__XMVERSIONSTRING to CFLAGS 12 | # 13 | 14 | C_OPT_FLAGS?=-O 15 | 16 | CFLAGS=$(C_OPT_FLAGS) -I/usr/local/include -I/usr/local/include/X11 -DUSE_LPR_PRINT_CMD -DUSE_XMIM `pkg-config --cflags xft fontconfig` 17 | LIBS= $(LD_OPT_FLAGS) -liconv -lm -lXm -lXt -lSM -lICE -lX11 -lXrender -lXext -lpthread `pkg-config --libs xft fontconfig` 18 | 19 | include Makefile.common 20 | 21 | -------------------------------------------------------------------------------- /makefiles/Makefile.linux: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.linux,v 1.14 2006/10/26 02:20:16 tringali Exp $ 2 | CC=cc 3 | AR=ar 4 | 5 | # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 6 | # If using a Motif 2.1 compatible library (LessTif, OM) add 7 | # a '-lXp' in front of the -lXext in LIBS. You also drop the 8 | # -lXpm from that list. 9 | # Ensure that the Motif/LessTif headers and libs are found! 10 | # e.g. you may have to add something like 11 | # -I/usr/lesstif/include to CFLAGS and 12 | # -L/usr/lesstif/lib to LIBS 13 | # 14 | # To evaluate an alternative layout for the Replace/Find dialog, add 15 | # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 16 | # 17 | # For CDE drag'n'drop support add: 18 | # CFLAGS+= -DCDE -I/usr/dt/include 19 | # LIBS+= -L/usr/dt/lib -R/usr/dt/lib -lDtSvc 20 | # 21 | 22 | C_OPT_FLAGS?=-O 23 | 24 | CFLAGS=$(C_OPT_FLAGS) -std=gnu99 -I/usr/X11R6/include -I/usr/include/X11 -DUSE_LPR_PRINT_CMD $(shell pkg-config --cflags xft fontconfig) 25 | 26 | ARFLAGS=-urs 27 | 28 | LIBS=$(LD_OPT_FLAGS) -L/usr/X11R6/lib -lXm -lXt -lX11 -lXrender -lm -lpthread $(shell pkg-config --libs xft fontconfig) 29 | 30 | include Makefile.common 31 | 32 | -------------------------------------------------------------------------------- /makefiles/Makefile.netbsd: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.netbsd,v 1.6 2003/11/22 13:03:39 edg Exp $ 2 | CC=cc 3 | AR=ar 4 | 5 | # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 6 | # 7 | # To evaluate an alternative layout for the Replace/Find dialog, add 8 | # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 9 | # 10 | # To test if the Motif library exports the runtime version 11 | # add -DHAVE__XMVERSIONSTRING to CFLAGS 12 | # 13 | 14 | C_OPT_FLAGS?=-O 15 | 16 | CFLAGS=$(C_OPT_FLAGS) -I/usr/pkg/include -I/usr/pkg/include/X11 -I/usr/X11R7/include -DUSE_LPR_PRINT_CMD -DUSE_XMIM `pkg-config --cflags xft fontconfig` 17 | LIBS= $(LD_OPT_FLAGS) -L/usr/X11R7/lib -R/usr/X11R7/lib -liconv -lm -lpthread -lXm -lXt -lSM -lICE -lX11 -lXrender -lXext `pkg-config --libs xft fontconfig` 18 | 19 | include Makefile.common 20 | -------------------------------------------------------------------------------- /makefiles/Makefile.openbsd: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.openbsd,v 1.4 2003/11/22 13:03:39 edg Exp $ 2 | CC=cc 3 | AR=ar 4 | 5 | # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 6 | # 7 | # To evaluate an alternative layout for the Replace/Find dialog, add 8 | # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 9 | # 10 | # To test if the Motif library exports the runtime version 11 | # add -DHAVE__XMVERSIONSTRING to CFLAGS 12 | # 13 | 14 | C_OPT_FLAGS?=-O 15 | 16 | CFLAGS=$(C_OPT_FLAGS) -I/usr/local/include -I/usr/X11R6/include/X11 -DUSE_LPR_PRINT_CMD -DUSE_XMIM `pkg-config --cflags xft fontconfig` 17 | LIBS= $(LD_OPT_FLAGS) -L/usr/local/lib -R/usr/local/lib -liconv -lm -lpthread -lXm -lXt -lSM -lICE -lX11 -lXrender -lXext `pkg-config --libs xft fontconfig` 18 | 19 | include Makefile.common 20 | -------------------------------------------------------------------------------- /makefiles/Makefile.solaris: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.solaris,v 1.11 2006/02/05 18:29:22 yooden Exp $ 2 | # 3 | # You may have to select the ANSI C compiler here 4 | #CC=gcc 5 | #CC=/opt/SUNWspro/bin/cc 6 | CC=gcc 7 | AR=ar 8 | 9 | # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS 10 | # For Solaris 2.4, add -DDONT_USE_GLOB 11 | # On older Solaris systems, Motif may be in /opt/SUNWmotif or even in 12 | # /usr/local. Some Solaris versions require explicit -I/usr/include 13 | # as the first include directory. 14 | # 15 | # To evaluate an alternative layout for the Replace/Find dialog, add 16 | # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information. 17 | # 18 | # To test if the Motif library exports the runtime version 19 | # add -DHAVE__XMVERSIONSTRING to CFLAGS 20 | # 21 | 22 | ARCH=-m64 23 | #ARCH=-m32 24 | 25 | PKGCONFIG_CFLAGS:sh=pkg-config --cflags xft fontconfig 26 | CFLAGS=-O -std=gnu99 $(ARCH) -I/usr/openwin/include -I/usr/include/X11 $(PKGCONFIG_CFLAGS) 27 | 28 | ARFLAGS=-urs 29 | 30 | PKGCONFIG_LIBS:sh = pkg-config --libs-only-l xft fontconfig 31 | LIBS= -L/usr/lib $(ARCH) -R/usr/sfw/lib/64 -L/usr/sfw/lib/64 -lm -lpthread -lXm -lXt -lX11 -lXrender \ 32 | -lsocket -lnsl $(PKGCONFIG_LIBS) 33 | 34 | include Makefile.common 35 | 36 | verify_config: 37 | -------------------------------------------------------------------------------- /resources/cygwin/cygspecial.nm: -------------------------------------------------------------------------------- 1 | # Create a file named autoload.nm in your (NEDIT_)HOME directory, cf. the NEdit 2 | # help, and load this file with the load_macro_file() function. 3 | 4 | 5 | # Some COMPATIBILITY issues 6 | 7 | #for compatibility with Windows paths 8 | define path2win { 9 | path = $1 10 | start = search_string(path,"/cygdrive/c",0) 11 | path = "c:" substring(path,$search_end, length(path)) 12 | t= replace_in_string(path,"/","\\\\") 13 | if (t!="") { 14 | path = t 15 | } 16 | 17 | return(path) 18 | } 19 | 20 | # for filtering out when interacting with Windows applications 21 | # takes a string and deletes all in it 22 | define remove_cr { 23 | if (search_string($1, "\r", 0) != -1) { 24 | return(replace_in_string($1,"\r","")) 25 | } 26 | else { 27 | return($1) 28 | } 29 | 30 | } 31 | 32 | # To workaround a Cygwin BUG with filtering 33 | # Cygwin refuses to read the standard streams reliably through the Xt 34 | # callbacks in shell.c 35 | # This function pipes the output of a filter in a temporary file and reads 36 | # it back into the buffer (this is quick and dirty, just as Vim does it) 37 | define filtering_on_cygwin { 38 | path = getenv("HOME") #"/nedata/" 39 | if ($n_args != 2) { 40 | dialog("Wrong number of parameters! Canceling.") 41 | return "" 42 | } 43 | command = $1 44 | input = $2 45 | file_in = path "tmp_in" 46 | file_out = path "tmp_out" 47 | write_file(input, file_in) 48 | shell_command(command " < " file_in " > " file_out, "") 49 | #dialog($shell_cmd_status) 50 | if ($shell_cmd_status == 0) { 51 | output = remove_cr(read_file(file_out)) 52 | if ($read_status == 1) { 53 | #clean up 54 | write_file("", file_in) 55 | write_file("", file_out) 56 | return(output) 57 | } 58 | } 59 | dialog("Something failed") 60 | } 61 | 62 | define lesstif_bug { 63 | if ($wrap_text == "continuous") { 64 | # in 5.5 renamed to split_pane() !!! 65 | split_pane() 66 | close_pane() 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /resources/cygwin/winclip.nm: -------------------------------------------------------------------------------- 1 | # Create to macro menu entries (Preferences -> Default Settings -> Customize Menus -> Macro Menu) 2 | # with shortcuts 3 | 4 | #1: put selection in clipboard 5 | shell_command("setclip", get_selection()) 6 | 7 | 8 | # You won't need the next one, if the X server you run provides an 9 | # integration between the X clipboard and the Windows clipboard. 10 | # Notice that you may still need #1 even in this case. 11 | 12 | #2: get from windows clipboard (NOTICE: remove_cr is provided in cygspecial.nm) 13 | clip = remove_cr(shell_command("getclip", "")) 14 | insert_string(substring(clip, 0, length(clip) - 1)) 15 | 16 | -------------------------------------------------------------------------------- /resources/cygwin/xnedit.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unixwork/xnedit/495eaf89378b6a8d7f2a5fbe4ca26b71335ad946/resources/cygwin/xnedit.ico -------------------------------------------------------------------------------- /resources/desktop/xnedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unixwork/xnedit/495eaf89378b6a8d7f2a5fbe4ca26b71335ad946/resources/desktop/xnedit.png -------------------------------------------------------------------------------- /resources/macos/patches/motif-clang-mwm.patch: -------------------------------------------------------------------------------- 1 | Binary files a/.DS_Store and b/.DS_Store differ 2 | Binary files a/clients/.DS_Store and b/clients/.DS_Store differ 3 | diff -urN a/clients/mwm/WmError.c b/clients/mwm/WmError.c 4 | --- a/clients/mwm/WmError.c 2017-08-17 02:38:43 5 | +++ b/clients/mwm/WmError.c 2024-11-24 10:44:11 6 | @@ -131,7 +131,7 @@ 7 | XSetIOErrorHandler (WmXIOErrorHandler); 8 | 9 | XtSetWarningHandler (WmXtWarningHandler); 10 | - XtSetErrorHandler (WmXtErrorHandler); 11 | + XtSetErrorHandler ((XtErrorHandler _X_NORETURN)WmXtErrorHandler); 12 | 13 | } /* END OF FUNCTION WmInitErrorHandler */ 14 | 15 | -------------------------------------------------------------------------------- /resources/macos/patches/motif-demos.patch: -------------------------------------------------------------------------------- 1 | Binary files a/.DS_Store and b/.DS_Store differ 2 | Binary files a/demos/.DS_Store and b/demos/.DS_Store differ 3 | Binary files a/demos/unsupported/.DS_Store and b/demos/unsupported/.DS_Store differ 4 | diff -urN a/demos/unsupported/xmform/xmform.c b/demos/unsupported/xmform/xmform.c 5 | --- a/demos/unsupported/xmform/xmform.c 2016-03-16 03:10:08 6 | +++ b/demos/unsupported/xmform/xmform.c 2024-11-24 10:45:52 7 | @@ -54,6 +54,7 @@ 8 | #include 9 | #include 10 | #include 11 | +#include 12 | 13 | static void FillItPlease(); 14 | static void NearlyEvenSpread(); 15 | -------------------------------------------------------------------------------- /resources/macos/patches/motif-macos-textf.patch: -------------------------------------------------------------------------------- 1 | Binary files a/.DS_Store and b/.DS_Store differ 2 | Binary files a/lib/.DS_Store and b/lib/.DS_Store differ 3 | diff -urN a/lib/Xm/TextF.c b/lib/Xm/TextF.c 4 | --- a/lib/Xm/TextF.c 2017-08-22 02:27:47 5 | +++ b/lib/Xm/TextF.c 2024-11-24 10:39:57 6 | @@ -82,7 +82,7 @@ 7 | #define FIX_1409 8 | 9 | #if (defined(__FreeBSD__) && (__FreeBSD__ < 4)) || \ 10 | - (defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__)) 11 | + (defined(__NetBSD__) || defined(__OpenBSD__)) 12 | /* 13 | * Modification by Integrated Computer Solutions, Inc. May 2000 14 | * 15 | -------------------------------------------------------------------------------- /resources/rpm/xnedit.spec: -------------------------------------------------------------------------------- 1 | Name: xnedit 2 | Summary: A Motif based GUI text editor 3 | Version: 1.6.2 4 | Release: 1%{?dist} 5 | Source: https://unixwork.de/downloads/files/xnedit/xnedit-%{version}.tar.gz 6 | URL: https://unixwork.de/xnedit/ 7 | License: GPLv2 8 | Group: Applications/Editors 9 | BuildRequires: motif-devel 10 | BuildRequires: pkgconf 11 | BuildRequires: desktop-file-utils 12 | Requires: motif 13 | 14 | %description 15 | A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering. 16 | 17 | %prep 18 | %setup -q 19 | 20 | %build 21 | make linux C_OPT_FLAGS="$RPM_OPT_FLAGS" 22 | 23 | %install 24 | rm -rf %{buildroot} 25 | make install DESTDIR=%{buildroot} 26 | 27 | %files 28 | %{_bindir}/xnedit 29 | %{_bindir}/xnc 30 | %{_datadir}/icons/xnedit.png 31 | %{_datadir}/applications/xnedit.desktop 32 | 33 | %changelog 34 | * Wed Nov 06 2024 Olaf Wintermann 35 | - first version 36 | -------------------------------------------------------------------------------- /resources/xresources/dark: -------------------------------------------------------------------------------- 1 | *highlightColor: #4a90d9 2 | 3 | *XmDialogShell.background: #121212 4 | *XmDialogShell.foreground: #ffffff 5 | 6 | *XmForm.background: #121212 7 | *XmForm.foreground: #ffffff 8 | 9 | *XmFrame.background: #121212 10 | *XmFrame.foreground: #ffffff 11 | 12 | *XmPanedWindow.background: #2b2b2b 13 | *XmPanedWindow.foreground: #ffffff 14 | 15 | *XmRowColumn.background: #2b2b2b 16 | *XmRowColumn.foreground: #ffffff 17 | 18 | *XmMenuShell.background: #2b2b2b 19 | *XmMenuShell.foreground: #ffffff 20 | 21 | *XmMessageBox.background: #2b2b2b 22 | *XmMessageBox.foreground: #ffffff 23 | 24 | *XmScrollBar.background: #2b2b2b 25 | *XmScrollBar.foreground: #ffffff 26 | 27 | *XmScrolledWindow.background: #2b2b2b 28 | *XmScrolledWindow.foreground: #ffffff 29 | 30 | *XmSelectionBox.background: #2b2b2b 31 | *XmSelectionBox.foreground: #ffffff 32 | 33 | *menuBar.background: #222222 34 | 35 | *XmLabel.background: #121212 36 | *XmLabel.foreground: #ffffff 37 | *XmLabelGadget.background: #121212 38 | *XmLabelGadget.foreground: #ffffff 39 | 40 | *XmPushButton.background: #222222 41 | *XmPushButton.foreground: #ffffff 42 | *XmPushButtonGadget.background: #222222 43 | *XmPushButtonGadget.foreground: #ffffff 44 | *XmPushButton.highlightThickness: 2 45 | 46 | *XmCascadeButton.background: #222222 47 | *XmCascadeButton.foreground: #ffffff 48 | *XmCascadeButtonGadget.background: #222222 49 | *XmCascadeButtonGadget.foreground: #ffffff 50 | *XmCascadeButtonGadget.highlightThickness: 2 51 | 52 | *XmTearOffButton.background: #222222 53 | *XmTearOffButton.foreground: #ffffff 54 | *XmTearOffButtonGadget.background: #222222 55 | *XmTearOffButtonGadget.foreground: #ffffff 56 | *XmTearOffButtonGadget.highlightThickness: 2 57 | 58 | *XmToggleButton.background: #222222 59 | *XmToggleButton.foreground: #ffffff 60 | *XmToggleButtonGadget.background: #222222 61 | *XmToggleButtonGadget.foreground: #ffffff 62 | *XmToggleButtonGadget.highlightThickness: 2 63 | 64 | *XmSeparator.background: #121212 65 | *XmSeparator.foreground: #ffffff 66 | *XmSeparatorGadget.background: #121212 67 | *XmSeparatorGadget.foreground: #ffffff 68 | 69 | *XmList.background: #1a1a1a 70 | *XmList.foreground: #ffffff 71 | 72 | *XmSash.background: #1a1a1a 73 | *XmSash.foreground: #ffffff 74 | 75 | *XmText.background: #1a1a1a 76 | *XmText.foreground: #ffffff 77 | 78 | *XmTextField.foreground: #ffffff 79 | *XmTextField.background: #121212 80 | 81 | 82 | *TextWidget.background: #1a1a1a 83 | 84 | 85 | *enableEtchedInMenu: True 86 | *enableMenuInCascade: True 87 | *enableThinThickness: True 88 | *ScrollbarBackground: #2b2b2b 89 | 90 | *foreground: #ff0000 91 | *background: #121212 92 | 93 | 94 | *text.background: #f5f5f5 95 | 96 | *topShadowColor: #3d3d3d 97 | *bottomShadowColor: #6e6e6e 98 | 99 | *XmLFolder.foreground: #ffffff 100 | *XmLGrid.foreground: #ffffff 101 | -------------------------------------------------------------------------------- /resources/xresources/fonts: -------------------------------------------------------------------------------- 1 | nedit*defaultRT.fontType: FONT_IS_XFT 2 | nedit*defaultRT.fontName: Sans 3 | nedit*defaultRT.fontSize: 9 4 | 5 | nedit*fixedRT.fontType: FONT_IS_XFT 6 | nedit*fixedRT.fontName: Monospace 7 | nedit*fixedRT.fontSize: 9 8 | -------------------------------------------------------------------------------- /resources/xresources/light: -------------------------------------------------------------------------------- 1 | *highlightColor: #4a90d9 2 | 3 | *XmDialogShell.background: #e6e6e6 4 | *XmDialogShell.foreground: #000000 5 | 6 | *XmForm.background: #e6e6e6 7 | *XmForm.foreground: #000000 8 | 9 | *XmFrame.background: #e6e6e6 10 | *XmFrame.foreground: #000000 11 | 12 | *XmPanedWindow.background: #e6e6e6 13 | *XmPanedWindow.foreground: #000000 14 | 15 | *XmRowColumn.background: #e6e6e6 16 | *XmRowColumn.foreground: #000000 17 | 18 | *XmMenuShell.background: #e6e6e6 19 | *XmMenuShell.foreground: #000000 20 | 21 | *XmMessageBox.background: #e6e6e6 22 | *XmMessageBox.foreground: #000000 23 | 24 | *XmScrollBar.background: #e6e6e6 25 | *XmScrollBar.foreground: #000000 26 | 27 | *XmScrolledWindow.background: #e6e6e6 28 | *XmScrolledWindow.foreground: #000000 29 | 30 | *XmSelectionBox.background: #e6e6e6 31 | *XmSelectionBox.foreground: #000000 32 | 33 | 34 | 35 | *XmLabel.background: #e6e6e6 36 | *XmLabel.foreground: #000000 37 | *XmLabelGadget.background: #e6e6e6 38 | *XmLabelGadget.foreground: #000000 39 | 40 | *XmPushButton.background: #e6e6e6 41 | *XmPushButton.foreground: #000000 42 | *XmPushButtonGadget.background: #e6e6e6 43 | *XmPushButtonGadget.foreground: #000000 44 | *XmPushButton.highlightThickness: 2 45 | 46 | *XmCascadeButton.background: #e6e6e6 47 | *XmCascadeButton.foreground: #000000 48 | *XmCascadeButtonGadget.background: #e6e6e6 49 | *XmCascadeButtonGadget.foreground: #000000 50 | *XmCascadeButtonGadget.highlightThickness: 2 51 | 52 | *XmTearOffButton.background: #e6e6e6 53 | *XmTearOffButton.foreground: #000000 54 | *XmTearOffButtonGadget.background: #e6e6e6 55 | *XmTearOffButtonGadget.foreground: #000000 56 | *XmTearOffButtonGadget.highlightThickness: 2 57 | 58 | *XmToggleButton.background: #e6e6e6 59 | *XmToggleButton.foreground: #000000 60 | *XmToggleButtonGadget.background: #e6e6e6 61 | *XmToggleButtonGadget.foreground: #000000 62 | *XmToggleButtonGadget.highlightThickness: 2 63 | 64 | *XmSeparator.background: #e6e6e6 65 | *XmSeparator.foreground: #000000 66 | *XmSeparatorGadget.background: #e6e6e6 67 | *XmSeparatorGadget.foreground: #000000 68 | 69 | *XmList.background: #ffffff 70 | *XmList.foreground: #000000 71 | 72 | *XmSash.background: #e6e6e6 73 | *XmSash.foreground: #000000 74 | 75 | *XmText.foreground: #000000 76 | *XmText.background: #ffffff 77 | 78 | *XmTextField.foreground: #000000 79 | *XmTextField.background: #ffffff 80 | 81 | 82 | *TextWidget.background: #ffffff 83 | 84 | 85 | *enableEtchedInMenu: True 86 | *enableMenuInCascade: True 87 | *enableThinThickness: True 88 | *ScrollbarBackground: #e6e6e6 89 | 90 | *foreground: #000000 91 | *background: #e6e6e6 92 | 93 | 94 | *text.background: #f5f5f5 95 | 96 | 97 | -------------------------------------------------------------------------------- /source/Makefile.common: -------------------------------------------------------------------------------- 1 | # Platform independent part of make procedure for NEdit directory, 2 | # included by machine specific makefiles. 3 | # 4 | 5 | OBJS = nedit.o file.o menu.o window.o selection.o search.o undo.o shift.o \ 6 | help.o preferences.o tags.o userCmds.o shell.o regularExp.o macro.o \ 7 | text.o textSel.o textDisp.o textBuf.o textDrag.o server.o highlight.o \ 8 | highlightData.o interpret.o parse.o smartIndent.o regexConvert.o \ 9 | windowTitle.o calltips.o server_common.o rangeset.o editorconfig.o \ 10 | filter.o 11 | 12 | XLTLIB = ../Xlt/libXlt.a 13 | XMLLIB = ../Microline/XmL/libXmL.a 14 | 15 | .c.o: 16 | $(CC) -c -I../Microline -I../Xlt $(CFLAGS) -o $@ $< 17 | 18 | all: xnedit xnc 19 | 20 | # Note there is no depedency for linkdate.c/o. This is intentional, 21 | # we only want natural rebuilds to regenerate the link date. 22 | xnedit: $(OBJS) ../util/libNUtil.a $(XMLLIB) $(XLTLIB) 23 | $(CC) $(CFLAGS) -c linkdate.c -o linkdate.o 24 | $(CC) $(CFLAGS) $(OBJS) linkdate.o \ 25 | ../util/libNUtil.a $(LDFLAGS) $(XMLLIB) $(XLTLIB) $(LIBS) -o $@ 26 | 27 | # Note LIBS isn't quite right here; it links unnecessarily against Motif 28 | xnc: nc.o server_common.o ../util/libNUtil.a 29 | $(CC) $(CFLAGS) nc.o server_common.o ../util/libNUtil.a $(LDFLAGS) $(LIBS) -o $@ 30 | 31 | help.o: help.c 32 | $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@ 33 | 34 | version.h: .FORCE 35 | ../doc/generate_version.sh version.h 36 | 37 | smartIndent.o: smartIndent.c 38 | $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c smartIndent.c -o $@ 39 | 40 | highlightData.o: highlightData.c 41 | $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c highlightData.c -o $@ 42 | 43 | clean: 44 | rm -f $(OBJS) xnedit xnc nc.o parse.c linkdate.o version.h 45 | 46 | parse.c: parse.y 47 | @echo "NOTE: Don't worry about 'command not found' errors here" 48 | @echo " unless you have changed the parse.y file." 49 | bison -o parse.c parse.y || ( yacc parse.y && mv y.tab.c parse.c ) || \ 50 | cp parse_noyacc.c parse.c 51 | 52 | .FORCE: 53 | 54 | 55 | # Get the dependencies for all objects 56 | include Makefile.dependencies 57 | -------------------------------------------------------------------------------- /source/calltips.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * calltips.h -- Nirvana Editor Calltips Header File * 4 | * * 5 | * Copyright 2004 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_CALLTIPS_H_INCLUDED 28 | #define NEDIT_CALLTIPS_H_INCLUDED 29 | 30 | #include "nedit.h" /* For WindowInfo */ 31 | #include "textDisp.h" /* for textDisp */ 32 | 33 | #define NEDIT_DEFAULT_CALLTIP_FG "black" 34 | #define NEDIT_DEFAULT_CALLTIP_BG "LemonChiffon1" 35 | 36 | 37 | enum TipHAlignMode {TIP_LEFT, TIP_CENTER, TIP_RIGHT}; 38 | enum TipVAlignMode {TIP_ABOVE, TIP_BELOW}; 39 | enum TipAlignStrict {TIP_SLOPPY, TIP_STRICT}; 40 | 41 | int ShowCalltip(WindowInfo *window, char *text, Boolean anchored, 42 | int pos, int hAlign, int vAlign, int alignMode); 43 | void KillCalltip(WindowInfo *window, int calltipID); 44 | void TextDKillCalltip(textDisp *textD, int calltipID); 45 | int GetCalltipID(WindowInfo *window, int calltipID); 46 | void TextDRedrawCalltip(textDisp *textD, int calltipID); 47 | 48 | #endif /* ifndef NEDIT_CALLTIPS_H_INCLUDED */ 49 | -------------------------------------------------------------------------------- /source/editorconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2021 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | 24 | #ifndef EDITORCONFIG_H 25 | #define EDITORCONFIG_H 26 | 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | typedef struct EditorConfig EditorConfig; 34 | 35 | typedef struct ECSection ECSection; 36 | typedef struct ECKeyValue ECKeyValue; 37 | 38 | enum ECIndentStyle { EC_INDENT_STYLE_UNSET = 0, EC_TAB, EC_SPACE }; 39 | enum ECEndOfLine { EC_EOL_UNSET = 0, EC_LF, EC_CR, EC_CRLF }; 40 | enum ECBOM { EC_BOM_UNSET = 0, EC_BOM }; 41 | 42 | struct EditorConfig { 43 | int found; /* 1: config found for the requested path; 0: no config found */ 44 | enum ECIndentStyle indent_style; 45 | int indent_size; 46 | int tab_width; 47 | enum ECEndOfLine end_of_line; 48 | char *charset; 49 | enum ECBOM bom; 50 | /* trim_trailing_whitespace currently unsupported */ 51 | /* insert_final_newline currently unsupported */ 52 | }; 53 | 54 | struct ECSection { 55 | char *name; 56 | 57 | ECKeyValue *values; 58 | 59 | ECSection *next; 60 | }; 61 | 62 | struct ECKeyValue { 63 | char *name; 64 | char *value; 65 | ECKeyValue *next; 66 | }; 67 | 68 | typedef struct { 69 | char *parent; 70 | 71 | char *content; 72 | size_t length; 73 | 74 | ECSection *preamble; 75 | ECSection *sections; 76 | } ECFile; 77 | 78 | EditorConfig EditorConfigGet(const char *path, const char *name); 79 | 80 | ECFile* ECLoadContent(const char *path); 81 | int ECParse(ECFile *ec); 82 | 83 | int ECGetConfig(ECFile *ecf, const char *filepath, EditorConfig *config); 84 | 85 | void ECDestroy(ECFile *ecf); 86 | 87 | 88 | #ifdef __cplusplus 89 | } 90 | #endif 91 | 92 | #endif /* EDITORCONFIG_H */ 93 | 94 | -------------------------------------------------------------------------------- /source/filter.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * Copyright 2004 The NEdit Developers * 4 | * * 5 | * This is free software; you can redistribute it and/or modify it under the * 6 | * terms of the GNU General Public License as published by the Free Software * 7 | * Foundation; either version 2 of the License, or (at your option) any later * 8 | * version. In addition, you may distribute versions of this program linked to * 9 | * Motif or Open Motif. See README for details. * 10 | * * 11 | * This software is distributed in the hope that it will be useful, but WITHOUT * 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 14 | * more details. * 15 | * * 16 | * You should have received a copy of the GNU General Public License along with * 17 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 18 | * Place, Suite 330, Boston, MA 02111-1307 USA * 19 | * * 20 | *******************************************************************************/ 21 | 22 | #ifndef XNEDIT_FILTER_H 23 | #define XNEDIT_FILTER_H 24 | 25 | #include "nedit.h" 26 | 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | typedef struct IOFilter IOFilter; 33 | struct IOFilter { 34 | char *name; 35 | char *pattern; 36 | char *ext; 37 | char *cmdin; 38 | char *cmdout; 39 | char *ec_pattern; 40 | }; 41 | 42 | #define FILESTREAM_HDR_BUFLEN 32768 43 | typedef struct FileStream { 44 | FILE *file; 45 | int pin[2]; 46 | int pout[2]; 47 | pid_t pid; 48 | char *filter_cmd; 49 | char hdrbuf[FILESTREAM_HDR_BUFLEN]; 50 | size_t hdrbuflen; 51 | size_t hdrbufpos; 52 | int mode; 53 | } FileStream; 54 | 55 | void FilterSettings(WindowInfo *window); 56 | 57 | void ParseFilterSettings(char *str); 58 | 59 | char* WriteFilterString(void); 60 | 61 | IOFilter** GetFilterList(size_t *num); 62 | 63 | IOFilter* GetFilterFromName(const char *name); 64 | 65 | IOFilter* GetFilterForPath(const char *path); 66 | 67 | FileStream* filestream_open_r(Widget w, FILE *f, const char *filter_cmd); 68 | FileStream* filestream_open_w(Widget w, FILE *f, const char *filter_cmd); 69 | int filestream_reset(FileStream *stream, int pos); 70 | size_t filestream_read(void *buffer, size_t nbytes, FileStream *stream); 71 | size_t filestream_write(const void *buffer, size_t nbytes, FileStream *stream); 72 | int filestream_close(FileStream *stream); 73 | 74 | 75 | 76 | #endif //XNEDIT_FILTER_H 77 | -------------------------------------------------------------------------------- /source/linkdate.c: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * linkdate.c -- Compile time configuration * 4 | * * 5 | * Copyright (C) 2001 Scott Tringali * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute version of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * 16 | * for more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * Noveber 30, 2001 * 24 | * * 25 | * Written by Scott Tringali, http://www.tringali.org * 26 | * * 27 | *******************************************************************************/ 28 | 29 | #ifdef HAVE_CONFIG_H 30 | #include "../config.h" 31 | #endif 32 | 33 | #ifdef HAVE_DEBUG_H 34 | #include "../debug.h" 35 | #endif 36 | 37 | const char linkdate[] = __DATE__; 38 | const char linktime[] = __TIME__; 39 | -------------------------------------------------------------------------------- /source/menu.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * menu.h -- Nirvana Editor Menu Header File * 4 | * * 5 | * Copyright 2004 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_MENU_H_INCLUDED 28 | #define NEDIT_MENU_H_INCLUDED 29 | 30 | #include "nedit.h" 31 | 32 | #include 33 | #include 34 | 35 | #define PERMANENT_MENU_ITEM (XtPointer)1 36 | #define TEMPORARY_MENU_ITEM (XtPointer)2 37 | 38 | Widget CreateMenuBar(Widget parent, WindowInfo *window); 39 | Widget RecreateMenuBar(Widget parent, Widget menubar, WindowInfo *window, Boolean clear); 40 | void InstallMenuActions(XtAppContext context); 41 | XtActionsRec *GetMenuActions(int *nActions); 42 | void InvalidateWindowMenus(void); 43 | void CheckCloseDim(void); 44 | void AddToPrevOpenMenu(const char *filename); 45 | void WriteNEditDB(void); 46 | void ReadNEditDB(void); 47 | Widget CreateBGMenu(WindowInfo *window); 48 | void AddBGMenuAction(Widget widget); 49 | void HidePointerOnKeyedEvent(Widget w, XEvent *event); 50 | Widget CreateTabContextMenu(Widget parent, WindowInfo *window); 51 | void AddTabContextMenuAction(Widget widget); 52 | void ShowHiddenTearOff(Widget menuPane); 53 | 54 | #endif /* NEDIT_MENU_H_INCLUDED */ 55 | -------------------------------------------------------------------------------- /source/n.bm: -------------------------------------------------------------------------------- 1 | #define n_width 24 2 | #define n_height 24 3 | static unsigned char n_bits[] = { 4 | 0x00, 0x00, 0x00, 0xaa, 0xaa, 0xaa, 0x00, 0x14, 0xc0, 0x5a, 0xab, 0xf5, 5 | 0xb4, 0x56, 0xfb, 0x4a, 0xad, 0xbc, 0x94, 0x52, 0xd9, 0x4a, 0xad, 0xbc, 6 | 0x94, 0x5a, 0xd9, 0xca, 0xb5, 0xbc, 0x94, 0x69, 0xd9, 0xca, 0xd7, 0xbc, 7 | 0x94, 0xad, 0xd9, 0xca, 0xd3, 0xbc, 0x94, 0xad, 0xd9, 0xca, 0x5b, 0xbd, 8 | 0x94, 0xb5, 0xda, 0xca, 0x6b, 0xbd, 0x94, 0xd5, 0xda, 0x4a, 0x6b, 0xb5, 9 | 0xa4, 0x56, 0xea, 0xfa, 0xab, 0xbf, 0x54, 0x55, 0xd5, 0xff, 0xff, 0xff}; 10 | 11 | static unsigned char n_mask[] = { 12 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 13 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 14 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 15 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 16 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 17 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; 18 | -------------------------------------------------------------------------------- /source/nedit_options_file.opt: -------------------------------------------------------------------------------- 1 | SYS$SHARE:DECC$SHR.EXE/SHARE 2 | sys$share:decw$xlibshr/share 3 | SYS$SHARE:DECW$XTLIBSHRR5/SHARE 4 | SYS$SHARE:DECW$XMLIBSHR12/SHARE 5 | SYS$SHARE:DECW$DXMLIBSHR12/SHARE 6 | -------------------------------------------------------------------------------- /source/parse.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * parse.h -- Nirvana Editor Macro Parsing Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_PARSE_H_INCLUDED 28 | #define NEDIT_PARSE_H_INCLUDED 29 | 30 | #include "interpret.h" 31 | 32 | Program *ParseMacro(char *expr, char **msg, char **stoppedAt); 33 | 34 | #endif /* NEDIT_PARSE_H_INCLUDED */ 35 | -------------------------------------------------------------------------------- /source/regexConvert.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * regexConvert.h -- Nirvana Editor Regex Conversion Header File * 4 | * * 5 | * Copyright 2003 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_REGEXCONVERT_H_INCLUDED 28 | #define NEDIT_REGEXCONVERT_H_INCLUDED 29 | 30 | char *ConvertRE(const char *exp, char **errorText); 31 | void ConvertSubstituteRE(const char *source, char *dest, int max); 32 | 33 | #endif /* NEDIT_REGEXCONVERT_H_INCLUDED */ 34 | -------------------------------------------------------------------------------- /source/selection.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * selection.h -- Nirvana Editor Selection Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_SELECTION_H_INCLUDED 28 | #define NEDIT_SELECTION_H_INCLUDED 29 | 30 | #include "nedit.h" 31 | 32 | #include 33 | #include 34 | 35 | int StringToLineAndCol(const char *text, int *lineNum, int *column ); 36 | void GotoSelectedLineNumber(WindowInfo *window, Time time); 37 | void GotoLineNumber(WindowInfo *window); 38 | void SelectNumberedLine(WindowInfo *window, int lineNum); 39 | void OpenSelectedFile(WindowInfo *window, Time time); 40 | char *GetAnySelection(WindowInfo *window); 41 | void BeginMarkCommand(WindowInfo *window); 42 | void BeginGotoMarkCommand(WindowInfo *window, int extend); 43 | void AddMark(WindowInfo *window, Widget widget, char label); 44 | void UpdateMarkTable(WindowInfo *window, int pos, int nInserted, 45 | int nDeleted); 46 | void GotoMark(WindowInfo *window, Widget w, char label, int extendSel); 47 | void MarkDialog(WindowInfo *window); 48 | void GotoMarkDialog(WindowInfo *window, int extend); 49 | 50 | #endif /* NEDIT_SELECTION_H_INCLUDED */ 51 | -------------------------------------------------------------------------------- /source/server.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * server.h -- Nirvana Editor Server Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_SERVER_H_INCLUDED 28 | #define NEDIT_SERVER_H_INCLUDED 29 | 30 | #include "window.h" 31 | 32 | #define NO_CONNECTION -1 33 | #define COM_OK 1 34 | #define COM_FAILURE 2 35 | 36 | void InitServerCommunication(void); 37 | void ServerMainLoop(XtAppContext context); 38 | Boolean ServerDispatchEvent(XEvent *event); 39 | void DeleteFileClosedProperty(WindowInfo *window); 40 | 41 | #endif /* NEDIT_SERVER_H_INCLUDED */ 42 | -------------------------------------------------------------------------------- /source/server_common.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * server_common.h -- Nirvana Editor common server stuff * 4 | * * 5 | * Copyright (C) 1999 Mark Edel * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * November, 1995 * 24 | * * 25 | * Written by Mark Edel * 26 | * * 27 | *******************************************************************************/ 28 | 29 | #ifndef NEDIT_SERVER_COMMON_H_INCLUDED 30 | #define NEDIT_SERVER_COMMON_H_INCLUDED 31 | 32 | #include 33 | 34 | /* Lets limit the unique server name to MAXPATHLEN */ 35 | #define MAXSERVERNAMELEN MAXPATHLEN 36 | 37 | #define DEFAULTSERVERNAME "" 38 | 39 | void CreateServerPropertyAtoms(const char *serverName, 40 | Atom *serverExistsAtomReturn, 41 | Atom *serverRequestAtomReturn); 42 | Atom CreateServerFileOpenAtom(const char *serverName, 43 | const char *path); 44 | Atom CreateServerFileClosedAtom(const char *serverName, 45 | const char *path, 46 | Bool only_if_exists); 47 | void DeleteServerFileAtoms(const char* serverName, Window rootWindow); 48 | 49 | #endif /* NEDIT_SERVER_COMMON_H_INCLUDED */ 50 | -------------------------------------------------------------------------------- /source/shell.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * shell.h -- Nirvana Editor Shell Header File * 4 | * * 5 | * Copyright 2004 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_SHELL_H_INCLUDED 28 | #define NEDIT_SHELL_H_INCLUDED 29 | 30 | #include "nedit.h" 31 | 32 | /* sources for command input and destinations for command output */ 33 | enum inSrcs {FROM_SELECTION, FROM_WINDOW, FROM_EITHER, FROM_NONE}; 34 | enum outDests {TO_SAME_WINDOW, TO_NEW_WINDOW, TO_DIALOG}; 35 | 36 | void FilterSelection(WindowInfo *window, const char *command, int fromMacro); 37 | void ExecShellCommand(WindowInfo *window, const char *command, int fromMacro); 38 | void ExecCursorLine(WindowInfo *window, int fromMacro); 39 | void ShellCmdToMacroString(WindowInfo *window, const char *command, 40 | const char *input); 41 | void DoShellMenuCmd(WindowInfo *window, const char *command, int input, 42 | int output, int outputReplaceInput, 43 | int saveFirst, int loadAfter, int fromMacro); 44 | void AbortShellCommand(WindowInfo *window); 45 | 46 | #endif /* NEDIT_SHELL_H_INCLUDED */ 47 | -------------------------------------------------------------------------------- /source/shift.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * shift.h -- Nirvana Editor Shift Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_SHIFT_H_INCLUDED 28 | #define NEDIT_SHIFT_H_INCLUDED 29 | 30 | #include "nedit.h" 31 | 32 | enum ShiftDirection {SHIFT_LEFT, SHIFT_RIGHT}; 33 | 34 | void ShiftSelection(WindowInfo *window, int direction, int byTab); 35 | void UpcaseSelection(WindowInfo *window); 36 | void DowncaseSelection(WindowInfo *window); 37 | void FillSelection(WindowInfo *window); 38 | char *ShiftText(char *text, int direction, int tabsAllowed, int tabDist, 39 | int nChars, int *newLen); 40 | 41 | #endif /* NEDIT_SHIFT_H_INCLUDED */ 42 | -------------------------------------------------------------------------------- /source/smartIndent.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * smartIndent.h -- Nirvana Editor Smart Indent Header File * 4 | * * 5 | * Copyright 2003 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_SMARTINDENT_H_INCLUDED 28 | #define NEDIT_SMARTINDENT_H_INCLUDED 29 | 30 | #include "nedit.h" 31 | 32 | #include 33 | 34 | void BeginSmartIndent(WindowInfo *window, int warn); 35 | void EndSmartIndent(WindowInfo *window); 36 | void SmartIndentCB(Widget w, XtPointer clientData, XtPointer callData); 37 | int LoadSmartIndentString(char *inString); 38 | int LoadSmartIndentCommonString(char *inString); 39 | char *WriteSmartIndentString(void); 40 | char *WriteSmartIndentCommonString(void); 41 | int SmartIndentMacrosAvailable(char *languageMode); 42 | void EditSmartIndentMacros(WindowInfo *window); 43 | void EditCommonSmartIndentMacro(void); 44 | Boolean InSmartIndentMacros(WindowInfo *window); 45 | int LMHasSmartIndentMacros(const char *languageMode); 46 | void RenameSmartIndentMacros(const char *oldName, const char *newName); 47 | void UpdateLangModeMenuSmartIndent(void); 48 | 49 | #endif /* NEDIT_SMARTINDENT_H_INCLUDED */ 50 | -------------------------------------------------------------------------------- /source/textDrag.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * textDrag.h -- Nirvana Editor Drag/Drop Header File * 4 | * * 5 | * Copyright 2004 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_TEXTDRAG_H_INCLUDED 28 | #define NEDIT_TEXTDRAG_H_INCLUDED 29 | 30 | #include "text.h" 31 | 32 | enum blockDragTypes {USE_LAST, DRAG_COPY, DRAG_MOVE, DRAG_OVERLAY_MOVE, 33 | DRAG_OVERLAY_COPY}; 34 | 35 | void BeginBlockDrag(TextWidget tw); 36 | void BlockDragSelection(TextWidget tw, int x, int y, int dragType); 37 | void FinishBlockDrag(TextWidget tw); 38 | void CancelBlockDrag(TextWidget tw); 39 | 40 | #endif /* NEDIT_TEXTDRAG_H_INCLUDED */ 41 | -------------------------------------------------------------------------------- /source/textSel.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * textSel.h -- Nirvana Editor Selection header file * 4 | * * 5 | * Copyright 2004 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_TEXTSEL_H_INCLUDED 28 | #define NEDIT_TEXTSEL_H_INCLUDED 29 | 30 | #include 31 | #include 32 | 33 | void CopyStringToClipboard(Widget w, Time time, const char *str, size_t len); 34 | char* GetClipboard(Widget w); 35 | 36 | void HandleXSelections(Widget w); 37 | void StopHandlingXSelections(Widget w); 38 | void CopyToClipboard(Widget w, Time time); 39 | void InsertPrimarySelection(Widget w, Time time, int isColumnar); 40 | void MovePrimarySelection(Widget w, Time time, int isColumnar); 41 | void SendSecondarySelection(Widget w, Time time, int removeAfter); 42 | void ExchangeSelections(Widget w, Time time); 43 | void InsertClipboard(Widget w, int isColumnar); 44 | void TakeMotifDestination(Widget w, Time time); 45 | 46 | Atom UTF8StringAtom(Display *display); 47 | 48 | #endif /* NEDIT_TEXTSEL_H_INCLUDED */ 49 | -------------------------------------------------------------------------------- /source/undo.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * undo.h -- Nirvana Editor Undo header file * 4 | * * 5 | * Copyright 2004 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_UNDO_H_INCLUDED 28 | #define NEDIT_UNDO_H_INCLUDED 29 | 30 | #include "nedit.h" 31 | 32 | enum undoTypes {UNDO_NOOP, ONE_CHAR_INSERT, ONE_CHAR_REPLACE, ONE_CHAR_DELETE, 33 | BLOCK_INSERT, BLOCK_REPLACE, BLOCK_DELETE}; 34 | 35 | void Undo(WindowInfo *window); 36 | void Redo(WindowInfo *window); 37 | void SaveUndoInformation(WindowInfo *window, int pos, int nInserted, 38 | int nDeleted, const char *deletedText); 39 | void ClearUndoList(WindowInfo *window); 40 | void ClearRedoList(WindowInfo *window); 41 | 42 | #endif /* NEDIT_UNDO_H_INCLUDED */ 43 | -------------------------------------------------------------------------------- /source/windowTitle.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * windowTitle.h -- Nirvana Editor window title customization * 4 | * * 5 | * Copyright (C) 2001, Arne Forlie * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | * Written by Arne Forlie, http://arne.forlie.com * 26 | * * 27 | *******************************************************************************/ 28 | 29 | #ifndef NEDIT_WINDOWTITLE_H_INCLUDED 30 | #define NEDIT_WINDOWTITLE_H_INCLUDED 31 | 32 | #include "nedit.h" 33 | 34 | #include 35 | 36 | char *FormatWindowTitle(const char* filename, 37 | const char* path, 38 | const char* clearCaseViewTag, 39 | const char* serverName, 40 | const char* encoding, 41 | int isServer, 42 | int filenameSet, 43 | int lockReasons, 44 | int fileChanged, 45 | const char* titleFormat); 46 | 47 | void EditCustomTitleFormat(WindowInfo *window); 48 | 49 | #endif /* NEDIT_WINDOWTITLE_H_INCLUDED */ 50 | -------------------------------------------------------------------------------- /util/DialogF.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * DialogF.h -- Nirvana Editor Dialog Header File * 4 | * * 5 | * Copyright 2003 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_DIALOGF_H_INCLUDED 28 | #define NEDIT_DIALOGF_H_INCLUDED 29 | 30 | #include 31 | #include 32 | 33 | #define DF_ERR 1 /* Error Dialog */ 34 | #define DF_INF 2 /* Information Dialog */ 35 | #define DF_MSG 3 /* Message Dialog */ 36 | #define DF_QUES 4 /* Question Dialog */ 37 | #define DF_WARN 5 /* Warning Dialog */ 38 | #define DF_PROMPT 6 /* Prompt Dialog */ 39 | 40 | /* longest message length supported. Note that dialogs may contains a file 41 | name, which is only limited in length by MAXPATHLEN, so DF_MAX_MSG_LENGTH 42 | must be sufficiently larger than MAXPATHLEN. */ 43 | #define DF_MAX_MSG_LENGTH (2047 + MAXPATHLEN) 44 | #define DF_MAX_PROMPT_LENGTH 255 /* longest prompt string supported */ 45 | 46 | unsigned DialogF(int dialog_type, Widget parent, unsigned n, const char* title, 47 | const char* msgstr, ...); /* variable # arguments */ 48 | void SetDialogFPromptHistory(char **historyList, int nItems); 49 | 50 | #endif /* NEDIT_DIALOGF_H_INCLUDED */ 51 | -------------------------------------------------------------------------------- /util/Makefile.common: -------------------------------------------------------------------------------- 1 | # 2 | # Platform independent part of make procedure for Nirvana utilities directory, 3 | # included by machine specific makefiles. 4 | # 5 | 6 | OBJS = DialogF.o getfiles.o printUtils.o misc.o fileUtils.o textfield.o \ 7 | prefFile.o fontsel.o managedList.o utils.o clearcase.o motif.o \ 8 | rbTree.o refString.o nedit_malloc.o libxattr.o filedialog.o xdnd.o \ 9 | ec_glob.o colorchooser.o dragAndDrop.o pathutils.o unicode.o 10 | 11 | all: libNUtil.a 12 | 13 | libNUtil.a: $(OBJS) 14 | $(AR) $(ARFLAGS) libNUtil.a $(OBJS) 15 | 16 | printUtils.o: printUtils.c 17 | $(CC) -c $(CFLAGS) $(PRINTFLAGS) -o $@ printUtils.c 18 | 19 | clean: 20 | rm -f $(OBJS) libNUtil.a 21 | 22 | # Get the dependencies for all objects 23 | include Makefile.dependencies 24 | -------------------------------------------------------------------------------- /util/Makefile.dependencies: -------------------------------------------------------------------------------- 1 | DialogF.o: DialogF.c DialogF.h misc.h 2 | clearcase.o: clearcase.c clearcase.h 3 | fileUtils.o: fileUtils.c fileUtils.h utils.h 4 | fontsel.o: fontsel.c fontsel.h misc.h DialogF.h 5 | getfiles.o: getfiles.c getfiles.h fileUtils.h misc.h filedialog.h 6 | managedList.o: managedList.c managedList.h misc.h 7 | misc.o: misc.c misc.h DialogF.h 8 | prefFile.o: prefFile.c prefFile.h fileUtils.h utils.h 9 | printUtils.o: printUtils.c printUtils.h DialogF.h misc.h prefFile.h 10 | utils.o: utils.c utils.h 11 | refString.o: refString.c 12 | rbTree.o: rbTree.c 13 | libxattr.o: libxattr.c 14 | filedialog.o: filedialog.c filedialog.h pathutils.h 15 | xdnd.o: xdnd.c xdnd.h 16 | textfield.o: textfield.c textfield.h 17 | ec_glob.o: ec_glob.c ec_glob.h 18 | colorchooser.o: colorchooser.c colorchooser.h 19 | pathutils.o: pathutils.c pathutils.h 20 | unicode.o: unicode.c unicode.h 21 | -------------------------------------------------------------------------------- /util/check_lin_tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unixwork/xnedit/495eaf89378b6a8d7f2a5fbe4ca26b71335ad946/util/check_lin_tif -------------------------------------------------------------------------------- /util/clearcase.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * clearcase.h -- Nirvana Editor Clearcase Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_CLEARCASE_H_INCLUDED 28 | #define NEDIT_CLEARCASE_H_INCLUDED 29 | 30 | const char* GetClearCaseVersionExtendedPath(const char* fullname); 31 | const char *GetClearCaseViewTag(void); 32 | 33 | #endif /* NEDIT_CLEARCASE_H_INCLUDED */ 34 | -------------------------------------------------------------------------------- /util/colorchooser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2021 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | 24 | #ifndef XNE_COLORCHOOSER_H 25 | #define XNE_COLORCHOOSER_H 26 | 27 | #include 28 | #include 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | int ColorChooser(Widget parent, int *red, int *green, int *blue); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif /* XNE_COLORCHOOSER_H */ 41 | 42 | -------------------------------------------------------------------------------- /util/dragAndDrop.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * * 3 | * dragAndDrop.c -- CDE drag and drop functions to provide * 4 | * basic support for file drops. * 5 | * * 6 | * Originally Written By Fredrik Jönsson * 7 | * Modified by Per Grahn * 8 | ************************************************************************/ 9 | /* $Id$ */ 10 | 11 | #ifndef DRAGANDDROP_H 12 | #define DRAGANDDROP_H 13 | 14 | void neditDropInit (Widget, char *geometry); 15 | void neditDropWidget (Widget); 16 | void neditTransferCallback (Widget, XtPointer, XtPointer); 17 | void fileTransferCallback (Widget, XtPointer, XtPointer); 18 | void dataTransferCallback (Widget, XtPointer, XtPointer); 19 | 20 | #endif /* DRAGANDDROP_H */ 21 | -------------------------------------------------------------------------------- /util/ec_glob.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright 2024 Mike Becker - All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 9 | * 1. Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | * POSSIBILITY OF SUCH DAMAGE. 27 | */ 28 | 29 | #ifndef EC_GLOB_H 30 | #define EC_GLOB_H 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | int ec_glob(const char * pattern, const char * string); 36 | #ifdef __cplusplus 37 | } // extern "C" 38 | #endif 39 | 40 | #endif /* EC_GLOB_H */ 41 | -------------------------------------------------------------------------------- /util/fileUtils.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * fileUtils.h -- Nirvana Editor File Utilities Header File * 4 | * * 5 | * Copyright 2003 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_FILEUTILS_H_INCLUDED 28 | #define NEDIT_FILEUTILS_H_INCLUDED 29 | 30 | enum fileFormats {UNIX_FILE_FORMAT, DOS_FILE_FORMAT, MAC_FILE_FORMAT}; 31 | 32 | int ParseFilename(const char *fullname, char *filename, char *pathname); 33 | int ExpandTilde(char *pathname); 34 | const char* GetTrailingPathComponents(const char* path, 35 | int noOfComponents); 36 | int NormalizePathname(char *pathname); 37 | int CompressPathname(char *pathname); 38 | int ResolvePath(const char * pathIn, char * pathResolved); 39 | 40 | int FormatOfFile(const char *fileString); 41 | void ConvertFromDosFileString(char *inString, int *length, 42 | char* pendingCR); 43 | void ConvertFromMacFileString(char *fileString, int length); 44 | int ConvertToDosFileString(char **fileString, int *length); 45 | void ConvertToMacFileString(char *fileString, int length); 46 | char *ReadAnyTextFile(const char *fileName, int forceNL); 47 | 48 | #endif /* NEDIT_FILEUTILS_H_INCLUDED */ 49 | -------------------------------------------------------------------------------- /util/filedialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #ifndef XNEDIT_FILEDIALOG_H 24 | #define XNEDIT_FILEDIALOG_H 25 | 26 | #include 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | #define FILEDIALOG_OPEN 1 34 | #define FILEDIALOG_SAVE 2 35 | 36 | #define FILEDIALOG_OK 1 37 | #define FILEDIALOG_CANCEL 2 38 | 39 | typedef struct FileSelection { 40 | char *path; 41 | char *encoding; 42 | char *filter; 43 | Boolean extraoptions; 44 | Boolean setxattr; 45 | Boolean writebom; 46 | Boolean addwrap; 47 | int format; 48 | } FileSelection; 49 | 50 | int FileDialog(Widget parent, char *promptString, FileSelection *file, int type, const char *defaultName); 51 | 52 | const char ** FileDialogDefaultEncodings(void); 53 | 54 | char* FileDialogGetFilter(void); 55 | void FileDialogSetFilter(const char *filterStr); 56 | 57 | void FileDialogResetSettings(void); 58 | 59 | #ifdef __cplusplus 60 | } 61 | #endif 62 | 63 | #endif /* XNEDIT_FILEDIALOG_H */ 64 | 65 | -------------------------------------------------------------------------------- /util/getfiles.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * getfiles.h -- Nirvana Editor File Handling Header File * 4 | * * 5 | * Copyright 2003 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_GETFILES_H_INCLUDED 28 | #define NEDIT_GETFILES_H_INCLUDED 29 | 30 | #include 31 | 32 | #include "filedialog.h" 33 | 34 | #define GFN_OK 1 /* Get Filename OK constant */ 35 | #define GFN_CANCEL 2 /* Get Filename Cancel constant */ 36 | 37 | 38 | int GetExistingFilename(Widget parent, char *promptString, FileSelection *file); 39 | int GetNewFilename(Widget parent, char *promptString, FileSelection *file, 40 | char *defaultName); 41 | char *GetFileDialogDefaultDirectory(void); 42 | void SetFileDialogDefaultDirectory(char *dir); 43 | char* GetDefaultDirectoryStr(void); 44 | 45 | int OverrideFileDialog(Widget parent, const char *filename); 46 | void FileOpenErrorDialog(Widget parent, const char *filename); 47 | 48 | Widget CreateFormatButtons( 49 | Widget form, 50 | Widget bottom, 51 | int format, 52 | Widget *u, 53 | Widget *d, 54 | Widget *m); 55 | 56 | void ListFindAndSelect(Widget w, char *searchStr, size_t len); 57 | 58 | #endif /* NEDIT_GETFILES_H_INCLUDED */ 59 | -------------------------------------------------------------------------------- /util/libxattr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #ifndef LIBXATTR_H 24 | #define LIBXATTR_H 25 | 26 | #include 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | char ** xattr_list(const char *path, ssize_t *nelm); 34 | 35 | char * xattr_get(const char *path, const char *attr, ssize_t *len); 36 | 37 | int xattr_set(const char *path, const char *name, const void *value, size_t len); 38 | 39 | int xattr_remove(const char *path, const char *name); 40 | 41 | void xattr_free_list(char **attrnames, ssize_t nelm); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* LIBXATTR_H */ 48 | 49 | -------------------------------------------------------------------------------- /util/managedList.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * managedList.h -- Nirvana Editor Managed List Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_MANAGEDLIST_H_INCLUDED 28 | #define NEDIT_MANAGEDLIST_H_INCLUDED 29 | 30 | #include 31 | 32 | Widget CreateManagedList(Widget parent, char *name, Arg *args, 33 | int argC, void **itemList, int *nItems, int maxItems, int nColumns, 34 | void *(*getDialogDataCB)(void *, int, int *, void *), 35 | void *getDialogDataArg, void (*setDialogDataCB)(void *, void *), 36 | void *setDialogDataArg, void (*freeItemCB)(void *)); 37 | Widget ManageListAndButtons(Widget listW, 38 | Widget deleteBtn, Widget copyBtn, Widget moveUpBtn, 39 | Widget moveDownBtn, void **itemList, int *nItems, 40 | int maxItems, void *(*getDialogDataCB)(void *, int, int *, void *), 41 | void *getDialogDataArg, void (*setDialogDataCB)(void *, void *), 42 | void *setDialogDataArg, void (*freeItemCB)(void *)); 43 | int UpdateManagedList(Widget listW, int explicitRequest); 44 | int ManagedListSelectedIndex(Widget listW); 45 | void ChangeManagedListData(Widget listW); 46 | void SelectManagedListItem(Widget listW, int itemIndex); 47 | void AddDeleteConfirmCB(Widget listW, int (*deleteConfirmCB)(int, void *), 48 | void *deleteConfirmArg); 49 | 50 | #endif /* NEDIT_MANAGEDLIST_H_INCLUDED */ 51 | -------------------------------------------------------------------------------- /util/motif.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * motif.h: Determine stability of Motif * 4 | * * 5 | * Copyright (C) 2004 Scott Tringali * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * 16 | * for more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Written by Scott Tringali * 23 | * * 24 | *******************************************************************************/ 25 | 26 | enum MotifStability 27 | { 28 | MotifKnownGood, 29 | MotifUnknown, 30 | MotifKnownBad 31 | }; 32 | 33 | /* Return the stability of the Motif compiled-in */ 34 | enum MotifStability GetMotifStability(void); 35 | 36 | /* Acquire a list of good version for showing to the user. */ 37 | const char *GetMotifStableVersions(void); 38 | -------------------------------------------------------------------------------- /util/nedit_malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef NEDIT_MALLOC_H_ 2 | #define NEDIT_MALLOC_H_ 3 | 4 | #include 5 | 6 | void *NEditMalloc(size_t size); 7 | void *NEditCalloc(size_t nmemb, size_t size); 8 | void *NEditRealloc(void *ptr, size_t new_size); 9 | void NEditFree(void *ptr); 10 | char *NEditStrdup(const char *str); 11 | #define NEditNew(type) ((type *) NEditMalloc(sizeof(type))) 12 | 13 | char *NEditStrndup(const char *str, size_t len); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /util/pathutils.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2024 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #include "pathutils.h" 24 | 25 | #include "nedit_malloc.h" 26 | 27 | #include 28 | #include 29 | 30 | 31 | char* ConcatPath(const char *parent, const char *name) 32 | { 33 | size_t parentlen = strlen(parent); 34 | size_t namelen = strlen(name); 35 | 36 | size_t pathlen = parentlen + namelen + 2; 37 | char *path = NEditMalloc(pathlen); 38 | 39 | memcpy(path, parent, parentlen); 40 | if(parentlen > 0 && parent[parentlen-1] != '/') { 41 | path[parentlen] = '/'; 42 | parentlen++; 43 | } 44 | if(name[0] == '/') { 45 | name++; 46 | namelen--; 47 | } 48 | memcpy(path+parentlen, name, namelen); 49 | path[parentlen+namelen] = '\0'; 50 | return path; 51 | } 52 | 53 | char* FileName(char *path) { 54 | int si = 0; 55 | int osi = 0; 56 | int i = 0; 57 | int p = 0; 58 | char c; 59 | while((c = path[i]) != 0) { 60 | if(c == '/') { 61 | osi = si; 62 | si = i; 63 | p = 1; 64 | } 65 | i++; 66 | } 67 | 68 | char *name = path + si + p; 69 | if(name[0] == 0) { 70 | name = path + osi + p; 71 | if(name[0] == 0) { 72 | return path; 73 | } 74 | } 75 | 76 | return name; 77 | } 78 | 79 | char* ParentPath(char *path) { 80 | char *name = FileName(path); 81 | size_t namelen = strlen(name); 82 | size_t pathlen = strlen(path); 83 | size_t parentlen = pathlen - namelen; 84 | if(parentlen == 0) { 85 | parentlen++; 86 | } 87 | char *parent = NEditMalloc(parentlen + 1); 88 | memcpy(parent, path, parentlen); 89 | parent[parentlen] = '\0'; 90 | return parent; 91 | } 92 | -------------------------------------------------------------------------------- /util/pathutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2024 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #ifndef XNE_PATHUTILS_H 24 | #define XNE_PATHUTILS_H 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | char* ConcatPath(const char *parent, const char *name); 31 | char* FileName(char *path); 32 | char* ParentPath(char *path); 33 | 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | #endif /* XNE_PATHUTILS_H */ 40 | 41 | -------------------------------------------------------------------------------- /util/prefFile.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * prefFile.h -- Nirvana Editor Preference File Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_PREFFILE_H_INCLUDED 28 | #define NEDIT_PREFFILE_H_INCLUDED 29 | 30 | #include 31 | 32 | enum PrefDataTypes {PREF_INT, PREF_BOOLEAN, PREF_ENUM, PREF_STRING, 33 | PREF_ALLOC_STRING}; 34 | 35 | typedef struct _PrefDescripRec { 36 | char *name; 37 | char *class; 38 | int dataType; 39 | char *defaultString; 40 | void *valueAddr; 41 | void *arg; 42 | int save; 43 | } PrefDescripRec; 44 | 45 | XrmDatabase CreatePreferencesDatabase(const char *fileName, 46 | const char *appName, XrmOptionDescList opTable, 47 | int nOptions, unsigned int *argcInOut, char **argvInOut); 48 | void RestorePreferences(XrmDatabase prefDB, XrmDatabase appDB, 49 | const char *appName, const char *appClass, PrefDescripRec *rsrcDescrip, int nRsrc); 50 | void OverlayPreferences(XrmDatabase prefDB, const char *appName, 51 | const char *appClass, PrefDescripRec *rsrcDescrip, int nRsrc); 52 | void RestoreDefaultPreferences(PrefDescripRec *rsrcDescrip, int nRsrc); 53 | int SavePreferences(Display *display, const char *fileName, 54 | const char *fileHeader, PrefDescripRec *rsrcDescrip, int nRsrc); 55 | 56 | #endif /* NEDIT_PREFFILE_H_INCLUDED */ 57 | -------------------------------------------------------------------------------- /util/printUtils.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * printUtils.h -- Nirvana Editor Print Utilities Header File * 4 | * * 5 | * Copyright 2002 The NEdit Developers * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 | * more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July 31, 2001 * 24 | * * 25 | *******************************************************************************/ 26 | 27 | #ifndef NEDIT_PRINTUTILS_H_INCLUDED 28 | #define NEDIT_PRINTUTILS_H_INCLUDED 29 | 30 | #include 31 | 32 | /* Maximum length of an error returned by IssuePrintCommand() */ 33 | #define MAX_PRINT_ERROR_LENGTH 1024 34 | 35 | #define DESTINATION_REMOTE 1 36 | #define DESTINATION_LOCAL 2 37 | 38 | void LoadPrintPreferences(XrmDatabase prefDB, const char *appName, 39 | const char *appClass, int lookForFlpr); 40 | 41 | #ifdef VMS 42 | void PrintFile(Widget parent, const char *PrintFileName, const char *jobName, int delete); 43 | #else 44 | void PrintFile(Widget parent, const char *PrintFileName, const char *jobName); 45 | #endif /*VMS*/ 46 | 47 | #endif /* NEDIT_PRINTUTILS_H_INCLUDED */ 48 | -------------------------------------------------------------------------------- /util/refString.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * * 3 | * refString.c -- Nirvana editor string handling * 4 | * * 5 | * Copyright (C) 200 Scott Tringali * 6 | * * 7 | * This is free software; you can redistribute it and/or modify it under the * 8 | * terms of the GNU General Public License as published by the Free Software * 9 | * Foundation; either version 2 of the License, or (at your option) any later * 10 | * version. In addition, you may distribute versions of this program linked to * 11 | * Motif or Open Motif. See README for details. * 12 | * * 13 | * This software is distributed in the hope that it will be useful, but WITHOUT * 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * 16 | * for more details. * 17 | * * 18 | * You should have received a copy of the GNU General Public License along with * 19 | * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 | * Place, Suite 330, Boston, MA 02111-1307 USA * 21 | * * 22 | * Nirvana Text Editor * 23 | * July, 1993 * 24 | * * 25 | * Written by Mark Edel * 26 | * * 27 | *******************************************************************************/ 28 | 29 | const char *RefStringDup(const char *str); 30 | void RefStringFree(const char *str); 31 | 32 | /* Compute hash address from a string key */ 33 | unsigned int StringHashAddr(const char *key); 34 | 35 | /* Compute hash address from a null-termintated list of strings */ 36 | unsigned int StringsHashAddr(const char** keys); 37 | -------------------------------------------------------------------------------- /util/unicode.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #include "unicode.h" 24 | 25 | #include 26 | 27 | #ifdef __APPLE__ 28 | #include 29 | 30 | char* StringNFD2NFC(const char *str) { 31 | CFStringRef nfd = CFStringCreateWithCString(NULL, str, kCFStringEncodingUTF8); 32 | CFMutableStringRef nfc = CFStringCreateMutableCopy(NULL, 0, nfd); 33 | CFStringNormalize(nfc, kCFStringNormalizationFormC); 34 | CFIndex length16 = CFStringGetLength(nfc); // number of utf16 code pairs 35 | size_t buflen = (length16+1) * 4; // allocate some extra space, this should be enough 36 | char *cstr = malloc(buflen); 37 | if(!cstr) { 38 | exit(-1); 39 | } 40 | CFStringGetCString(nfc, cstr, buflen, kCFStringEncodingUTF8); 41 | CFRelease(nfc); 42 | CFRelease(nfd); 43 | return cstr; 44 | } 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /util/unicode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2025 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #ifndef XNEDIT_UNICODE_H 24 | #define XNEDIT_UNICODE_H 25 | 26 | #include 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | /* 33 | * macos has NFD normalized file names 34 | * this functions convert NFD to NFC, because Motif can't display NFD normalized characters 35 | * 36 | * only used on macos 37 | */ 38 | #ifdef __APPLE__ 39 | char* StringNFD2NFC(const char *str); 40 | #endif 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif /* XNEDIT_UNICODE_H */ 47 | -------------------------------------------------------------------------------- /util/xdnd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Olaf Wintermann 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a 5 | * copy of this software and associated documentation files (the "Software"), 6 | * to deal in the Software without restriction, including without limitation 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | * and/or sell copies of the Software, and to permit persons to whom the 9 | * Software is furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 | * DEALINGS IN THE SOFTWARE. 21 | */ 22 | 23 | #ifndef XNEDIT_XDND_H 24 | #define XNEDIT_XDND_H 25 | 26 | #include 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | void XdndInit( 33 | Display *dpy, 34 | XtAppContext app, 35 | XtCallbackProc dropCB, 36 | XtPointer dropCBData); 37 | 38 | void XdndEnable(Widget w); 39 | 40 | 41 | 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* XNEDIT_XDND_H */ 48 | 49 | --------------------------------------------------------------------------------