summaryrefslogtreecommitdiff
path: root/xedit.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-12 21:53:48 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-07-02 19:06:34 -0300
commitb1dd01f67a48785678209b90c1b0e4f44621c146 (patch)
tree31561c12003443104d8ad5017e47026904349ff0 /xedit.h
parent3468f9f2cb65294771e1095a14b7263ae0a6a043 (diff)
Add a tags interface to xedit.
To use the tags, first create a tags file with a command like "ctags -R". The interface can be disabled with resources, see the updated man page. Tag files are searched descending to the root directory. Multiple tags files are properly handled, and multiple symbol definitions can be searched.
Diffstat (limited to 'xedit.h')
-rw-r--r--xedit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xedit.h b/xedit.h
index 1c86f6b..326071e 100644
--- a/xedit.h
+++ b/xedit.h
@@ -66,6 +66,7 @@ typedef struct _xedit_hints {
typedef enum {NO_READ, READ_OK, WRITE_OK} FileAccess;
typedef struct _XeditLispData XeditLispData;
+typedef struct _XeditTagsInfo XeditTagsInfo;
#define CHANGED_BIT 0x01
#define EXISTS_BIT 0x02
@@ -81,6 +82,7 @@ typedef struct _xedit_flist_item {
XawTextPropertyList *properties;
XawTextWrapMode wrap;
XeditLispData *xldata;
+ XeditTagsInfo *tags;
} xedit_flist_item;
extern struct _xedit_flist {
@@ -101,6 +103,8 @@ extern struct _app_resources {
char *changed_pixmap_name;
char *position_format;
char *auto_replace;
+ char *tagsName;
+ Boolean loadTags;
} app_resources;
extern Widget topwindow, textwindow, labelwindow, filenamewindow, messwidget;
@@ -177,6 +181,10 @@ void UnsetTextProperties(xedit_flist_item*);
void CreateEditModePopup(Widget);
void SetEditModeMenu(void);
+/* tags.c */
+void TagsAction(Widget, XEvent*, String*, Cardinal*);
+void SearchTagsFile(xedit_flist_item *item);
+
/* externs for system replacement functions */
#ifdef NEED_STRCASECMP
int strcasecmp(const char *s1, const char *s2);