setup: add images to tutorial pages

This commit is contained in:
Hylke Bons 2011-09-14 02:08:04 +02:00
parent f5fde15498
commit 9144a6f52b
201 changed files with 10002 additions and 51 deletions

0
AUTHORS Normal file → Executable file
View file

0
LICENSE Normal file → Executable file
View file

0
Makefile.am Normal file → Executable file
View file

0
NEWS Normal file → Executable file
View file

0
README Normal file → Executable file
View file

0
SparkleLib/AssemblyInfo.cs.in Normal file → Executable file
View file

0
SparkleLib/Defines.cs.in Normal file → Executable file
View file

0
SparkleLib/Git/SparkleFetcherGit.cs Normal file → Executable file
View file

0
SparkleLib/Git/SparkleRepoGit.cs Normal file → Executable file
View file

0
SparkleLib/Hg/SparkleFetcherHg.cs Normal file → Executable file
View file

0
SparkleLib/Hg/SparkleRepoHg.cs Normal file → Executable file
View file

0
SparkleLib/Makefile.am Normal file → Executable file
View file

0
SparkleLib/Scp/SparkleFetcherScp.cs Normal file → Executable file
View file

0
SparkleLib/Scp/SparkleRepoScp.cs Normal file → Executable file
View file

0
SparkleLib/SparkleBackend.cs Normal file → Executable file
View file

0
SparkleLib/SparkleChangeSet.cs Normal file → Executable file
View file

0
SparkleLib/SparkleConfig.cs Normal file → Executable file
View file

0
SparkleLib/SparkleFetcherBase.cs Normal file → Executable file
View file

0
SparkleLib/SparkleHelpers.cs Normal file → Executable file
View file

0
SparkleLib/SparkleLib.csproj Normal file → Executable file
View file

0
SparkleLib/SparkleLib.sln Normal file → Executable file
View file

0
SparkleLib/SparkleListenerBase.cs Normal file → Executable file
View file

0
SparkleLib/SparkleListenerIrc.cs Normal file → Executable file
View file

0
SparkleLib/SparkleListenerTcp.cs Normal file → Executable file
View file

0
SparkleLib/SparkleOptions.cs Normal file → Executable file
View file

0
SparkleLib/SparkleRepoBase.cs Normal file → Executable file
View file

0
SparkleLib/SparkleWatcher.cs Normal file → Executable file
View file

0
SparkleShare/Mac/AppDelegate.cs Normal file → Executable file
View file

View file

View file

View file

0
SparkleShare/Mac/Growl.plist Normal file → Executable file
View file

0
SparkleShare/Mac/Info.plist Normal file → Executable file
View file

0
SparkleShare/Mac/MainMenu.xib Normal file → Executable file
View file

0
SparkleShare/Mac/MainMenu.xib.designer.cs generated Normal file → Executable file
View file

0
SparkleShare/Mac/Makefile.am Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleAbout.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleAlert.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleBadger.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleBubbles.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleEventLog.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleMacController.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleMacWatcher.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleSetup.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleSetupWindow.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleShare.csproj Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleShare.sln Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleStatusIcon.cs Normal file → Executable file
View file

0
SparkleShare/Mac/SparkleUI.cs Normal file → Executable file
View file

0
SparkleShare/Makefile.am Normal file → Executable file
View file

0
SparkleShare/Nautilus/Makefile.am Normal file → Executable file
View file

View file

0
SparkleShare/Program.cs Normal file → Executable file
View file

0
SparkleShare/SparkleAbout.cs Normal file → Executable file
View file

0
SparkleShare/SparkleAboutController.cs Normal file → Executable file
View file

0
SparkleShare/SparkleBubbles.cs Normal file → Executable file
View file

0
SparkleShare/SparkleBubblesController.cs Normal file → Executable file
View file

0
SparkleShare/SparkleController.cs Normal file → Executable file
View file

0
SparkleShare/SparkleEntry.cs Normal file → Executable file
View file

0
SparkleShare/SparkleEventLog.cs Normal file → Executable file
View file

0
SparkleShare/SparkleEventLogController.cs Normal file → Executable file
View file

0
SparkleShare/SparkleExtensions.cs Normal file → Executable file
View file

0
SparkleShare/SparkleLinController.cs Normal file → Executable file
View file

87
SparkleShare/SparkleSetup.cs Normal file → Executable file
View file

@ -121,7 +121,7 @@ namespace SparkleShare {
Header = _("Where is your remote folder?");
Table = new Table (6, 2, false) {
RowSpacing = 12
RowSpacing = 0
};
HBox layout_server = new HBox (true, 0);
@ -172,11 +172,7 @@ namespace SparkleShare {
Table.Attach (layout_server, 0, 2, 1, 2);
// Github radiobutton
string github_text = "<b>" + "Github" + "</b>\n" +
"<span fgcolor='" + SecondaryTextColor + "' size='small'>" +
_("Free hosting for Free and Open Source Software projects.") +
_("Also has paid accounts for extra private space and bandwidth.") +
"</span>";
string github_text = "<b>" + "Github" + "</b>";
RadioButton radio_button_github = new RadioButton (radio_button, github_text);
(radio_button_github.Child as Label).UseMarkup = true;
@ -189,11 +185,7 @@ namespace SparkleShare {
// Gitorious radiobutton
string gitorious_text = "<b>" + _("Gitorious") + "</b>\n" +
"<span fgcolor='" + SecondaryTextColor + "' size='small'>" +
_("Completely Free as in Freedom infrastructure.") +
_("Free accounts for Free and Open Source projects.") +
"</span>";
string gitorious_text = "<b>" + _("Gitorious") + "</b>";
RadioButton radio_button_gitorious = new RadioButton (radio_button, gitorious_text);
(radio_button_gitorious.Child as Label).UseMarkup = true;
@ -206,11 +198,7 @@ namespace SparkleShare {
// GNOME radiobutton
string gnome_text = "<b>" + _("The GNOME Project") + "</b>\n"+
"<span fgcolor='" + SecondaryTextColor + "' size='small'>" +
_("GNOME is an easy to understand interface to your computer.") +
_("Select this option if youre a developer or designer working on GNOME.") +
"</span>";
string gnome_text = "<b>" + _("The GNOME Project") + "</b>";
RadioButton radio_button_gnome = new RadioButton (radio_button, gnome_text);
(radio_button_gnome.Child as Label).UseMarkup = true;
@ -253,7 +241,10 @@ namespace SparkleShare {
layout_folder.PackStart (FolderEntry, true, true, 0);
Table.Attach (layout_folder, 0, 2, 5, 6);
Add (Table);
VBox box = new VBox (false, 0);
box.PackStart (Table, false, false, 0);
Add (box);
// Cancel button
Button cancel_button = new Button (_("Cancel"));
@ -433,13 +424,13 @@ namespace SparkleShare {
switch (Controller.TutorialPageNumber) {
case 1: {
Header = _("What's next?");
Description = _(@"SparkleShare creates a special folder on your computer
that will keep track of your projects.");
Header = _("What's happening next?");
Description = _("SparkleShare creates a special folder in your personal folder " +
"that will keep track of your projects.");
Button skip_tutorial_button = new Button (_("Skip Tutorial"));
skip_tutorial_button.Clicked += delegate {
// Controller.TutorialSkipped ();
Controller.TutorialSkipped ();
};
Button continue_button = new Button (_("Continue"));
@ -447,7 +438,10 @@ namespace SparkleShare {
Controller.TutorialPageCompleted ();
};
// Add (null); TODO image Controller.TutorialPageNumber
Image slide = SparkleUIHelpers.GetImage ("tutorial-slide-1.png");
Add (slide);
AddButton (skip_tutorial_button);
AddButton (continue_button);
@ -455,52 +449,59 @@ namespace SparkleShare {
}
case 2: {
Header = _("Adding files");
Description = _(@"All files added to your project folders are synced with the host
automatically, as well as with all of your collaborators.");
Header = _("Sharing files with others");
Description = _("All files added to your project folders are synced with the host " +
"automatically, as well as with your collaborators.");
Button continue_button = new Button (_("Continue"));
continue_button.Clicked += delegate {
Controller.TutorialPageCompleted ();
};
// Add (null); TODO image Controller.TutorialPageNumber
Image slide = SparkleUIHelpers.GetImage ("tutorial-slide-2.png");
Add (slide);
AddButton (continue_button);
break;
}
case 3: {
Header = _("The status icon");
Description = _(@"All files added to your project folders are synced with the host
automatically, as well as with all of your collaborators.");
Header = _("The status icon is here to help");
Description = _("It shows the syncing process status, " +
"and contains links to your projects and the event log.");
Button continue_button = new Button (_("Continue"));
continue_button.Clicked += delegate {
Controller.TutorialPageCompleted ();
};
// Add (null); TODO image Controller.TutorialPageNumber
Image slide = SparkleUIHelpers.GetImage ("tutorial-slide-3.png");
Add (slide);
AddButton (continue_button);
break;
}
case 4: {
Header = _("Adding Projects");
Description = _(@"Whenever you see this button on a website, just click it,
and the project will be immediately added to SparkleShare:");
Header = _("Adding projects to SparkleShare");
Description = _("Just click this button when you see it on the web, and " +
"the project will be automatically added:");
Button continue_button = new Button (_("Continue"));
continue_button.Clicked += delegate {
Controller.TutorialPageCompleted ();
};
Label label = new Label (_("…or select <b>Add Project…</b> from the status icon menu " +
"to add one by hand.")) {
Wrap = true,
Xalign = 0,
UseMarkup = true
};
Label label = new Label (_(@"…or click the status icon and select Add Project…
to manually add a project."));
// Add (null); TODO image Controller.TutorialPageNumber
Image slide = SparkleUIHelpers.GetImage ("tutorial-slide-4.png");
Button add_project_button = new Button (_("Add Project…"));
add_project_button.Clicked += delegate {
@ -512,6 +513,13 @@ namespace SparkleShare {
Close ();
};
VBox box = new VBox (false, 0);
box.Add (slide);
box.Add (label);
Add (box);
AddButton (add_project_button);
AddButton (finish_button);
@ -519,16 +527,11 @@ namespace SparkleShare {
}
}
break;
}
}
ShowAll ();
});
};
}

3
SparkleShare/SparkleSetupController.cs Normal file → Executable file
View file

@ -94,8 +94,9 @@ namespace SparkleShare {
public void ShowAddPage ()
{
this.tutorial_page_number = 1;
if (ChangePageEvent != null)
ChangePageEvent (PageType.Add);
ChangePageEvent (PageType.Tutorial);
}

12
SparkleShare/SparkleSetupWindow.cs Normal file → Executable file
View file

@ -74,14 +74,10 @@ namespace SparkleShare {
Gdk.Color.Parse ("#000", ref bg_color);
box.ModifyBg (StateType.Normal, bg_color);
string image_path = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare",
"pixmaps", "side-splash.png");
Image side_splash = SparkleUIHelpers.GetImage ("side-splash.png");
side_splash.Yalign = 1;
Image side_splash = new Image (image_path) {
Yalign = 1
};
box.Add (side_splash);
box.Add (side_splash);
HBox.PackStart (box, false, false, 0);
HBox.PackStart (VBox, true, true, 0);
@ -126,7 +122,7 @@ namespace SparkleShare {
layout_vertical.PackStart (description, false, false, 21);
if (widget != null)
layout_vertical.PackStart (widget, true, true, 21);
layout_vertical.PackStart (widget, true, true, 0);
Wrapper.PackStart (layout_vertical, true, true, 0);
ShowAll ();

0
SparkleShare/SparkleShare.csproj Normal file → Executable file
View file

0
SparkleShare/SparkleShare.sln Normal file → Executable file
View file

0
SparkleShare/SparkleSpinner.cs Normal file → Executable file
View file

0
SparkleShare/SparkleStatusIcon.cs Normal file → Executable file
View file

0
SparkleShare/SparkleStatusIconController.cs Normal file → Executable file
View file

0
SparkleShare/SparkleUI.cs Normal file → Executable file
View file

9
SparkleShare/SparkleUIHelpers.cs Normal file → Executable file
View file

@ -61,6 +61,15 @@ namespace SparkleShare {
}
public static Image GetImage (string name)
{
string image_path = SparkleHelpers.CombineMore (Defines.DATAROOTDIR, "sparkleshare",
"pixmaps", name);
return new Image (image_path);
}
// Converts a Gdk RGB color to a hex value.
// Example: from "rgb:0,0,0" to "#000000"
public static string GdkColorToHex (Gdk.Color color)

0
SparkleShare/sparkleshare.desktop Normal file → Executable file
View file

0
SparkleShare/sparkleshare.in Normal file → Executable file
View file

0
build/Makefile.am Normal file → Executable file
View file

0
build/build.environment.mk Normal file → Executable file
View file

0
build/build.mk Normal file → Executable file
View file

0
build/build.rules.mk Normal file → Executable file
View file

0
build/m4/Makefile.am Normal file → Executable file
View file

0
build/m4/shamrock/expansions.m4 Normal file → Executable file
View file

0
build/m4/shamrock/gnome-doc.m4 Normal file → Executable file
View file

0
build/m4/shamrock/i18n.m4 Normal file → Executable file
View file

0
build/m4/shamrock/mono.m4 Normal file → Executable file
View file

0
build/m4/shamrock/monodoc.m4 Normal file → Executable file
View file

0
build/m4/shamrock/nunit.m4 Normal file → Executable file
View file

0
build/m4/shamrock/programs.m4 Normal file → Executable file
View file

0
build/m4/shamrock/util.m4 Normal file → Executable file
View file

0
build/m4/shave/shave-libtool.in Normal file → Executable file
View file

0
build/m4/shave/shave.in Normal file → Executable file
View file

0
build/m4/shave/shave.m4 Normal file → Executable file
View file

0
build/m4/sparkleshare/gtk-sharp.m4 Normal file → Executable file
View file

0
build/m4/sparkleshare/nautilus-python.m4 Normal file → Executable file
View file

0
build/m4/sparkleshare/notify-sharp.m4 Normal file → Executable file
View file

0
build/m4/sparkleshare/smartirc4net.m4 Normal file → Executable file
View file

0
configure.ac Normal file → Executable file
View file

4
data/Makefile.am Normal file → Executable file
View file

@ -4,6 +4,10 @@ SUBDIRS = \
dist_pixmaps_DATA = \
side-splash.png \
tutorial-slide-1.png \
tutorial-slide-2.png \
tutorial-slide-3.png \
tutorial-slide-4.png \
about.png
pixmapsdir = $(pkgdatadir)/pixmaps/

0
data/about.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Some files were not shown because too many files have changed in this diff Show more