Ejemplo n.º 1
0
        public Board(SpiderView spiderView)
        {
            this.SpiderView  = spiderView;
            this.Stylesheet  = (this.SpiderView).Stylesheet;
            this.Click      += Board_Click;
            this.MouseUp    += Board_MouseUp;
            this.MouseClick += Board_MouseClick;
            this.MinimumSize = new Size(640, 480);
            this.MouseDown  += Board_MouseDown;
            InitializeComponent();
            this.DragDrop   += Board_DragDrop;
            this.DragOver   += Board_DragOver;
            this.Paint      += Board_Paint;
            this.Resize     += Board_Resize;
            this.DragEnter  += Board_DragEnter;
            this.Block       = Stylesheet.Blocks["Body"];
            tmrDraw          = new Timer();
            tmrDraw.Tick    += tmrDraw_Tick;
            tmrDraw.Interval = 100;
            tmrDraw.Start();
            this.MouseMove += Board_MouseMove;
            spiderView.Scripting.RegisterFunction("getInput", new lua_delegate_get_input(lua_get_input), this);

            // Register some other goodies here::?
            spiderView.Scripting.RegisterFunction("getWebResource", new lua_delegate_download_http(lua_download_http), this);
            spiderView.Scripting.RegisterFunction("sendToWeb", new lua_delegate_send_http_request(lua_send_http_request), this);
            spiderView.Scripting.RegisterFunction("json", new get_obj(get_json), this);
            this.MouseDoubleClick += Board_MouseDoubleClick;
            this.KeyDown          += Board_KeyDown;
            Timer t = new Timer();

            t.Tick += t_Tick;
        }
Ejemplo n.º 2
0
        public SectionView(Board board, SpiderView spiderView)
        {
            InitializeComponent();
            this.Board = board;
            this.Controls.Add(board);
            board.AutoResize();
            this.AutoScroll = true;
            board.AutoResize();
            this.SpiderView = spiderView;
            if (overflow == null)
            {
                overflow     = new Overflow(ListView);
                overflow.Top = -1424;

                this.Controls.Add(overflow);
            }
            this.Scroll += SectionView_Scroll;
            System.Windows.Forms.ScrollBar scrollBar = new System.Windows.Forms.VScrollBar();

            /*   scrollBar.Dock = DockStyle.Right;
             * scrollBar.Scroll += scrollBar_Scroll;
             * scrollBar.Maximum = this.Board.Height;
             * this.Controls.Add(scrollBar);
             * scrollBar.BringToFront();*/
        }
Ejemplo n.º 3
0
        public Board(SpiderView spiderView)
        {
            this.SpiderView = spiderView;
            this.Stylesheet = (this.SpiderView).Stylesheet;
            this.Click += Board_Click;
            this.MouseUp += Board_MouseUp;
            this.MouseClick += Board_MouseClick;
            this.MinimumSize = new Size(640, 480);
            this.MouseDown += Board_MouseDown;
            InitializeComponent();
            this.DragDrop += Board_DragDrop;
            this.DragOver += Board_DragOver;
            this.Paint += Board_Paint;
            this.Resize += Board_Resize;
            this.DragEnter += Board_DragEnter;
            this.Block = Stylesheet.Blocks["Body"];
            tmrDraw = new Timer();
            tmrDraw.Tick += tmrDraw_Tick;
            tmrDraw.Interval = 100;
            tmrDraw.Start();
            this.MouseMove += Board_MouseMove;
            spiderView.Scripting.RegisterFunction("getInput", new lua_delegate_get_input(lua_get_input), this);

            // Register some other goodies here::?
            spiderView.Scripting.RegisterFunction("getWebResource", new lua_delegate_download_http(lua_download_http), this);
            spiderView.Scripting.RegisterFunction("sendToWeb", new lua_delegate_send_http_request(lua_send_http_request), this);
            spiderView.Scripting.RegisterFunction("json", new get_obj(get_json), this);
            this.MouseDoubleClick += Board_MouseDoubleClick;
            this.KeyDown += Board_KeyDown;
            Timer t = new Timer();
            t.Tick += t_Tick;
        }
Ejemplo n.º 4
0
 public TabBar(SpiderView spiderView)
 {
     InitializeComponent();
     this.SpiderView = spiderView;
     this.Block = spiderView.Stylesheet.Blocks["TabBar"];
     this.ActiveTabBlock = spiderView.Stylesheet.Blocks["TabBar::active"];
     this.TitleBlock = spiderView.Stylesheet.Blocks["TabBar::title"];
     TabDivider = spiderView.Stylesheet.Blocks["tab:divider"];
     this.MouseMove += TabBar_MouseMove;
     this.Resize += TabBar_Resize;
     this.MouseClick += TabBar_MouseClick;
 }
Ejemplo n.º 5
0
 public TabBar(SpiderView spiderView)
 {
     InitializeComponent();
     this.SpiderView     = spiderView;
     this.Block          = spiderView.Stylesheet.Blocks["TabBar"];
     this.ActiveTabBlock = spiderView.Stylesheet.Blocks["TabBar::active"];
     this.TitleBlock     = spiderView.Stylesheet.Blocks["TabBar::title"];
     TabDivider          = spiderView.Stylesheet.Blocks["tab:divider"];
     this.MouseMove     += TabBar_MouseMove;
     this.Resize        += TabBar_Resize;
     this.MouseClick    += TabBar_MouseClick;
 }
Ejemplo n.º 6
0
 public App(SpiderHost host, String[] arguments)
 {
     this.Arguments = arguments;
     InitializeComponent();
     this.Host = host;
     this.spiderView = new SpiderView(host);
     //this.board =  new Board(this);
     this.Controls.Add(spiderView);
     this.spiderView.Dock = DockStyle.Fill;
     spiderView.Dock = DockStyle.Fill;
     spiderView.Navigate += spiderView_Navigate;
 }
Ejemplo n.º 7
0
        public SectionView(Board board, SpiderView spiderView)
        {
            InitializeComponent();
            this.Board = board;
            this.Controls.Add(board);
            board.AutoResize();
            this.Scroll += SectionView_Scroll;
            board.AutoResize();
             this.AutoScroll = true;
            this.SpiderView = spiderView;
            if (overflow == null)
            {
                overflow = new Overflow(ListView);
                overflow.Top = -1424;

                this.Controls.Add(overflow);

            }
        }
Ejemplo n.º 8
0
 void spiderView_Navigate(object sender, SpiderView.NavigateEventArgs e)
 {
     if (!e.Uri.ToString().StartsWith("spotify:track:"))
     {
         Host.Navigate(e.Uri.ToString());
     }
 }