Esempio n. 1
0
        public Canvas(GCsTextEdit view, Font font, bool showLN)
        {
            txtZone_    = view.getClientRect();
            font_       = new Painter(view.Handle, font);
            this.showLN = showLN;

            figNum_    = 3;
            wrapWidth_ = 0xfffffff;
            wrapType   = WrapType.NonWrap;
        }
Esempio n. 2
0
        public Canvas(GCsTextEdit view, Font font, bool showLN)
        {
            txtZone_ = view.getClientRect();
            font_ = new Painter(view.Handle, font);
            this.showLN = showLN;

            figNum_ = 3;
            wrapWidth_ = 0xfffffff;
            wrapType = WrapType.NonWrap;
        }
Esempio n. 3
0
        //public string searchstr;

        public Search(GCsTextEdit edit)
        {
            this.view     = edit;
            this.document = this.view.Document;
        }
Esempio n. 4
0
 public IncrementalSearch(GCsTextEdit view)
 {
     search = new Search(view);
     this.view = view;
 }
Esempio n. 5
0
 //public string searchstr;
 public Search(GCsTextEdit edit)
 {
     this.view = edit;
     this.document = this.view.Document;
 }
Esempio n. 6
0
 public IncrementalSearch(GCsTextEdit view)
 {
     search    = new Search(view);
     this.view = view;
 }
Esempio n. 7
0
        //public Cursor(GCsTextEdit view_, Document doc_, Caret caret_) {
        public Cursor(GCsTextEdit view_, Caret caret_)
        {
            this.view_ = view_;
            this.doc_ = view_.Document;
            this.caret_ = caret_;

            cur_ = new VPos();
            sel_ = new VPos();

            bIns_ = true;

            State = StateType.None;

            //TODO Rectangle
            Selection = SelectionType.Normal;

            //this.view_.MouseDown += (sender, e) => {
            //    state = State.MouseDown;
            //};
            //this.view_.MouseUp += (sender, e) => {
            //    state = State.None;
            //};
            //this.view_.MouseMove += (sender, e) => {
            //    if (State == CursorState.MouseDown) {
            //        //if (!PtInRect(&view_.zone(), pt)) {
            //        //if ( view_.zone().Contains(e.X, e.Y)){
            //            MoveByMouse(e.X, e.Y);
            //        //}
            //    }
            //};
            //this.view_.MouseDoubleClick += (sender, e) => {
            //    // 行番号ゾーンの場合は特に何もしない
            //    if (view_.lna() - view_.fnt().F() < e.X) {
            //        // 行末の場合も特に何もしない
            //        if (cur_.ad != doc_.len(cur_.tl)) {
            //            VPos np = new VPos();
            //            view_.ConvDPosToVPos(doc_.wordStartOf(cur_), ref np, ref cur_);
            //            MoveTo(np, false);
            //            Right(true, true);
            //        }
            //    }
            //};
        }