[dasher] Missing from last changeset.



commit b228bf28a30aefb277c71ab3249897bda6da2332
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Tue May 29 17:27:33 2012 +0100

    Missing from last changeset.

 Src/Gtk2/dasher_editor_private.h |   46 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/Src/Gtk2/dasher_editor_private.h b/Src/Gtk2/dasher_editor_private.h
new file mode 100644
index 0000000..bfdc6ca
--- /dev/null
+++ b/Src/Gtk2/dasher_editor_private.h
@@ -0,0 +1,46 @@
+#ifndef DASHER_EDITOR_PRIVATE_H
+#define DASHER_EDITOR_PRIVATE_H
+
+// Forward declarations
+typedef struct _DasherAppSettings DasherAppSettings;
+struct _DasherAppSettings;
+typedef struct _GtkDasherControl GtkDasherControl;
+struct _GtkDasherControl;
+
+typedef struct _DasherEditorPrivate DasherEditorPrivate;
+
+struct _DasherEditorPrivate {
+  GtkDasherControl *pDasherCtrl;
+  GtkTextView *pTextView;
+  GtkTextBuffer *pBuffer;
+  GtkClipboard *pTextClipboard;
+  GtkClipboard *pPrimarySelection;
+  GtkTextMark *pNewMark;
+  DasherAppSettings *pAppSettings;
+  gchar *szFilename;
+  gboolean bFileModified; // TODO: Make this work properly, export to main for quit etc
+
+  // for conversion mode:
+  GtkTextTag *pOutputTag;
+  GtkTextTag *pHiddenTag;
+  GtkTextTag *pVisibleTag;
+  gboolean bConversionMode;
+  gint iLastOffset;
+  gint iCurrentState; // 0 = unconverted, 1 = converted
+
+  // for direct mode:
+#ifdef GNOME_A11Y
+  AccessibleEventListener *pFocusListener;
+  AccessibleEventListener *pCaretListener;
+  AccessibleText *pAccessibleText;
+#endif
+
+  //Paralleling the previous approach in dasher_main, we _don't_ send context_changed
+  // events if we're in the middle of executing a control action (as this would rebuild
+  // the canvas)
+  gboolean bInControlAction;
+};
+
+#define DASHER_EDITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), DASHER_TYPE_EDITOR, DasherEditorPrivate))
+
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]