2008-07-31 07:00:10 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace RosDBG
|
|
|
|
|
{
|
|
|
|
|
[DebugControl, BuildAtStartup]
|
|
|
|
|
public partial class ReactOSWeb : UserControl
|
|
|
|
|
{
|
|
|
|
|
public ReactOSWeb()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2008-08-09 13:50:13 +00:00
|
|
|
|
this.Tag = "Web";
|
|
|
|
|
BrowserView.CanGoBackChanged += BrowserView_CanGoBackChanged;
|
|
|
|
|
BrowserView.CanGoForwardChanged += BrowserView_CanGoForwardChanged;
|
|
|
|
|
BrowserView.GoHome();
|
|
|
|
|
}
|
2008-08-09 18:40:43 +00:00
|
|
|
|
|
|
|
|
|
public ReactOSWeb(string Title, string URL)
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
this.Tag = Title;
|
|
|
|
|
BrowserView.CanGoBackChanged += BrowserView_CanGoBackChanged;
|
|
|
|
|
BrowserView.CanGoForwardChanged += BrowserView_CanGoForwardChanged;
|
|
|
|
|
BrowserView.Navigate(URL);
|
|
|
|
|
}
|
|
|
|
|
|
2008-08-09 13:50:13 +00:00
|
|
|
|
private void BrowserView_Navigating(object sender, WebBrowserNavigatingEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
AddressInput.Text = e.Url.ToString();
|
2008-07-31 07:00:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2008-08-09 13:50:13 +00:00
|
|
|
|
private void navPaste_Click(object sender, EventArgs e)
|
2008-07-31 07:00:10 +00:00
|
|
|
|
{
|
2008-08-09 13:50:13 +00:00
|
|
|
|
BrowserView.Navigate("http://www.reactos.org/paste");
|
2008-07-31 07:00:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2008-08-09 13:50:13 +00:00
|
|
|
|
private void navHome_Click(object sender, EventArgs e)
|
2008-07-31 07:00:10 +00:00
|
|
|
|
{
|
2008-08-09 13:50:13 +00:00
|
|
|
|
BrowserView.GoHome();
|
2008-07-31 07:00:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2008-08-09 13:50:13 +00:00
|
|
|
|
private void navBack_Click(object sender, EventArgs e)
|
2008-07-31 07:00:10 +00:00
|
|
|
|
{
|
2008-08-09 13:50:13 +00:00
|
|
|
|
BrowserView.GoBack();
|
2008-07-31 07:00:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
2008-08-09 13:50:13 +00:00
|
|
|
|
private void navForward_Click(object sender, EventArgs e)
|
2008-07-31 07:00:10 +00:00
|
|
|
|
{
|
2008-08-09 13:50:13 +00:00
|
|
|
|
BrowserView.GoForward();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void navReload_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
BrowserView.Refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void BrowserView_CanGoBackChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
navBack.Enabled = BrowserView.CanGoBack;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void BrowserView_CanGoForwardChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
navForward.Enabled = BrowserView.CanGoForward;
|
|
|
|
|
}
|
2008-08-20 18:10:51 +00:00
|
|
|
|
|
2008-08-09 13:50:13 +00:00
|
|
|
|
private void AddressInput_KeyUp(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (e.KeyCode == Keys.Return)
|
|
|
|
|
BrowserView.Navigate(((ToolStripComboBox)sender).Text);
|
|
|
|
|
}
|
|
|
|
|
|
2008-08-09 18:29:43 +00:00
|
|
|
|
private void BugzillaInput_KeyUp(object sender, KeyEventArgs e)
|
2008-08-09 13:50:13 +00:00
|
|
|
|
{
|
|
|
|
|
if (e.KeyCode == Keys.Return)
|
2008-08-09 18:29:43 +00:00
|
|
|
|
BrowserView.Navigate("http://www.reactos.org/bugzilla/show_bug.cgi?id=" + ((ToolStripTextBox)sender).Text);
|
2008-07-31 07:00:10 +00:00
|
|
|
|
}
|
2008-08-09 13:50:13 +00:00
|
|
|
|
|
2008-07-31 07:00:10 +00:00
|
|
|
|
}
|
|
|
|
|
}
|