lexer: Remove lex_syntax_mode in favor of segmenter_mode.
[pspp] / src / ui / gui / psppire-syntax-window.h
index cb125028c94181b4c94ac229d60d42a90f82d4ad..161b374597998e861e1421f7f290bd3ec256e5d3 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <gtksourceview/gtksource.h>
 
+#include "language/lexer/lexer.h"
+
 G_BEGIN_DECLS
 
 #define PSPPIRE_SYNTAX_WINDOW_TYPE            (psppire_syntax_window_get_type ())
@@ -48,10 +50,10 @@ struct _PsppireSyntaxWindow
   /* <private> */
 
   GtkSourceBuffer *buffer;  /* The buffer which contains the text */
-  struct lexer *lexer;    /* Lexer to parse syntax */
   gchar *encoding;              /* File's encoding. */
   GtkWidget *sb;
   guint text_context;
+  enum segmenter_mode syntax_mode;
 
   GtkPrintSettings *print_settings;
   GtkSourcePrintCompositor *compositor;
@@ -64,6 +66,9 @@ struct _PsppireSyntaxWindow
   GSimpleAction *edit_copy;
   GSimpleAction *edit_delete;
   GSimpleAction *edit_paste;
+  GSimpleAction *edit_find;
+
+  GtkEntryBuffer *search_text_buffer;
 
   gulong ps_handler;
   gulong sel_handler;