Skip to content

Commit

Permalink
Cygnus
Browse files Browse the repository at this point in the history
0.4 release... This includes following:
• Renamed the project as Cygnus and created an icon.
• WebBrowser width is now fixed and won't change while resizing the
form.
• Changed search algorithm to not store APT data in memory. Harddisk is
fast enough. This has increased performance a lot.
• Downloaded debian packages will be stored in a seperate folder.
• Cygnus can now download depedencies.
• WebBrowser will navigate when you click on a link like "Screenshots"
etc.
• It's a lot easier to add TheBigBoss to your Sources thanks to the
hardcoded list of known sources.
• Cygnus manages Saurik's repo correctly.
  • Loading branch information
PythEch committed Apr 16, 2014
1 parent 83fc0b3 commit 00ea0ff
Show file tree
Hide file tree
Showing 32 changed files with 24,769 additions and 9,493 deletions.
2 changes: 1 addition & 1 deletion WinPie.sln → Cygnus.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinPie", "WinPie\WinPie.csproj", "{F5B6EBD3-E565-4FCC-83F6-B7545E7F9D82}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cygnus", "Cygnus\Cygnus.csproj", "{F5B6EBD3-E565-4FCC-83F6-B7545E7F9D82}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
51 changes: 26 additions & 25 deletions WinPie/uiAlertView.Designer.cs → Cygnus/AlertView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 11 additions & 16 deletions WinPie/uiAlertView.cs → Cygnus/AlertView.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// WinPie - Cydia-like APT Client for Windows
// Cygnus - Cydia-like APT Client for Windows
// Copyright (C) 2014 PythEch
//
// This program is free software: you can redistribute it and/or modify
Expand All @@ -17,10 +17,9 @@
using System;
using System.Windows.Forms;

namespace WinPie
namespace Cygnus
{

public partial class uiAlertView : Form
partial class AlertView : Form
{
//Credits: http://stackoverflow.com/questions/10674228/form-with-rounded-borders-in-c

Expand All @@ -34,7 +33,7 @@ public partial class uiAlertView : Form
int nWidthEllipse, // height of ellipse
int nHeightEllipse // width of ellipse
);
public uiAlertView()
public AlertView()
{
InitializeComponent();
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 15, 15));
Expand All @@ -43,33 +42,29 @@ public uiAlertView()
public bool canceled = false;
private void btnAdd_Click(object sender, EventArgs e)
{
if (txtSource.Text != "http://") //FIXME
if (Uri.IsWellFormedUriString(txtSource.Text, UriKind.Absolute))
{
//Forms.frmMain.listSources.Items.Add(txtSource.Text).SubItems.Add("?");
//Forms.frmMain.SaveSettings();
canceled = false;
this.Close();
}
else
{
errorProvider1.Clear();
errorProvider1.SetError(txtSource, "error!");
errorProvider1.SetError(txtSource, "URL is not valid!");
}
}

private void btnEdit_Click(object sender, EventArgs e)
{
if (txtSource.Text != "http://") //FIXME
if (Uri.IsWellFormedUriString(txtSource.Text, UriKind.Absolute))
{
//Forms.frmMain.listSources.SelectedItems[0].Text = txtSource.Text;
//Forms.frmMain.SaveSettings();
canceled = false;
this.Close();
}
else
{
errorProvider1.Clear();
errorProvider1.SetError(txtSource, "error!");
errorProvider1.SetError(txtSource, "URL is not valid!");
}
}

Expand All @@ -84,12 +79,12 @@ private void txtSource_KeyDown(object sender, KeyEventArgs e)
if (e.KeyCode == Keys.Enter)
{
if (btnAdd.Visible)
btnAdd_Click(sender, EventArgs.Empty);
btnAdd_Click(null, null);
else
btnEdit_Click(sender, EventArgs.Empty);
btnEdit_Click(null, null);
}
else if (e.KeyCode == Keys.Escape)
btnCancel_Click(sender, EventArgs.Empty);
btnCancel_Click(null, null);
}

}
Expand Down
Loading

0 comments on commit 00ea0ff

Please sign in to comment.