public ForwardTextIterator(IDocumentInformation docInfo, Gtk.TextView document, int endOffset)
        {
            Debug.Assert(endOffset >= 0 && endOffset < BufferLength);

            this.docInfo = docInfo;
            this.textBuffer = document.Buffer;
            this.endOffset = endOffset;
            Reset();
        }
 public EditableTextView ()
 {
     this.Build ();
     buffer = new Gtk.TextBuffer (TrackTagTable.Instance);
     textview = new Gtk.TextView (buffer);
     textview.WrapMode = Gtk.WrapMode.WordChar;
     scrolledwindow.Add (textview);
     this.ShowAll ();
     this.isEditable = false;
 }
Пример #3
0
        public ProbeLogDlg(Radionic radionic)
        {
            this.Build ();

            logBuff = textviewLog.Buffer;
            Port = "";

            this.radionic = radionic;

            probeStart ();
        }
Пример #4
0
        public MessageTextView()
        {
            Trace.Call();

            _MessageTextTagTable = BuildTagTable();
            _ThemeSettings = new ThemeSettings();

            Buffer = new Gtk.TextBuffer(_MessageTextTagTable);
            MotionNotifyEvent += OnMotionNotifyEvent;
            PopulatePopup += OnPopulatePopup;
            ExposeEvent += OnExposeEvent;
            Realized += delegate {
                CheckStyle();
            };
            StyleSet += delegate(object o, Gtk.StyleSetArgs args) {
                if (!IsRealized) {
                    // HACK: avoid GTK+ crash in gtk_text_attributes_copy_values()
                    return;
                }
                CheckStyle();
            };
        }
Пример #5
0
        public MessageTextView()
        {
            Trace.Call();

            _MessageTextTagTable = BuildTagTable();
            _ThemeSettings = new ThemeSettings();

            Buffer = new Gtk.TextBuffer(_MessageTextTagTable);
            MotionNotifyEvent += OnMotionNotifyEvent;
            PopulatePopup += OnPopulatePopup;
            ExposeEvent += OnExposeEvent;
        }
 public override void Initialize()
 {
     Widget = new Gtk.TextView ();
     Widget.Show ();
     Buffer = Widget.Buffer;
 }