diff --git a/Greenshot.sln b/Greenshot.sln
index 27df62d85..88c120c1c 100644
--- a/Greenshot.sln
+++ b/Greenshot.sln
@@ -43,7 +43,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GreenshotDropboxPlugin", "G
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GreenshotFlickrPlugin", "GreenshotFlickrPlugin\GreenshotFlickrPlugin.csproj", "{7EC72A5A-D73A-4B4B-9CA1-2216C7D92D5E}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GreenshotPicasaPlugin", "GreenshotPicasaPlugin\GreenshotPicasaPlugin.csproj", "{1893A2E4-A78A-4713-A8E7-E70058DABEE0}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GreenshotGooglePhotosPlugin", "GreenshotGooglePhotosPlugin\GreenshotGooglePhotosPlugin.csproj", "{1893A2E4-A78A-4713-A8E7-E70058DABEE0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GreenshotOfficePlugin", "GreenshotOfficePlugin\GreenshotOfficePlugin.csproj", "{92599C09-FF29-4ABD-B6E6-C48ECD781BAB}"
EndProject
diff --git a/GreenshotPicasaPlugin/Forms/PicasaForm.cs b/GreenshotGooglePhotosPlugin/Forms/GooglePhotosForm.cs
similarity index 85%
rename from GreenshotPicasaPlugin/Forms/PicasaForm.cs
rename to GreenshotGooglePhotosPlugin/Forms/GooglePhotosForm.cs
index cea5a2f35..10b18bebe 100644
--- a/GreenshotPicasaPlugin/Forms/PicasaForm.cs
+++ b/GreenshotGooglePhotosPlugin/Forms/GooglePhotosForm.cs
@@ -1,5 +1,5 @@
/*
- * A Picasa Plugin for Greenshot
+ * A GooglePhotos Plugin for Greenshot
* Copyright (C) 2011 Francis Noel
*
* For more information see: http://getgreenshot.org/
@@ -20,7 +20,7 @@
using GreenshotPlugin.Controls;
-namespace GreenshotPicasaPlugin.Forms {
- public class PicasaForm : GreenshotForm {
+namespace GreenshotGooglePhotosPlugin.Forms {
+ public class GooglePhotosForm : GreenshotForm {
}
}
diff --git a/GreenshotPicasaPlugin/Forms/SettingsForm.Designer.cs b/GreenshotGooglePhotosPlugin/Forms/SettingsForm.Designer.cs
similarity index 91%
rename from GreenshotPicasaPlugin/Forms/SettingsForm.Designer.cs
rename to GreenshotGooglePhotosPlugin/Forms/SettingsForm.Designer.cs
index 38555c179..cea2b6acf 100644
--- a/GreenshotPicasaPlugin/Forms/SettingsForm.Designer.cs
+++ b/GreenshotGooglePhotosPlugin/Forms/SettingsForm.Designer.cs
@@ -1,147 +1,147 @@
-/*
- * A Picasa Plugin for Greenshot
- * Copyright (C) 2011 Francis Noel
- *
- * For more information see: http://getgreenshot.org/
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-namespace GreenshotPicasaPlugin.Forms {
- partial class SettingsForm {
- ///
- /// Designer variable used to keep track of non-visual components.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Disposes resources used by the form.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing) {
- if (components != null) {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- ///
- /// This method is required for Windows Forms designer support.
- /// Do not change the method contents inside the source code editor. The Forms designer might
- /// not be able to load this method if it was changed manually.
- ///
- private void InitializeComponent()
- {
- this.buttonOK = new GreenshotPlugin.Controls.GreenshotButton();
- this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton();
- this.combobox_uploadimageformat = new GreenshotPlugin.Controls.GreenshotComboBox();
- this.label_upload_format = new GreenshotPlugin.Controls.GreenshotLabel();
- this.label_AfterUpload = new GreenshotPlugin.Controls.GreenshotLabel();
- this.checkboxAfterUploadLinkToClipBoard = new GreenshotPlugin.Controls.GreenshotCheckBox();
- this.SuspendLayout();
- //
- // buttonOK
- //
- this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
- this.buttonOK.LanguageKey = "OK";
- this.buttonOK.Location = new System.Drawing.Point(267, 78);
- this.buttonOK.Name = "buttonOK";
- this.buttonOK.Size = new System.Drawing.Size(75, 23);
- this.buttonOK.TabIndex = 10;
- this.buttonOK.UseVisualStyleBackColor = true;
- //
- // buttonCancel
- //
- this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.buttonCancel.LanguageKey = "CANCEL";
- this.buttonCancel.Location = new System.Drawing.Point(348, 78);
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.Size = new System.Drawing.Size(75, 23);
- this.buttonCancel.TabIndex = 11;
- this.buttonCancel.UseVisualStyleBackColor = true;
- //
- // combobox_uploadimageformat
- //
- this.combobox_uploadimageformat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.combobox_uploadimageformat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.combobox_uploadimageformat.FormattingEnabled = true;
- this.combobox_uploadimageformat.Location = new System.Drawing.Point(197, 12);
- this.combobox_uploadimageformat.Name = "combobox_uploadimageformat";
- this.combobox_uploadimageformat.PropertyName = "UploadFormat";
- this.combobox_uploadimageformat.SectionName = "Picasa";
- this.combobox_uploadimageformat.Size = new System.Drawing.Size(225, 21);
- this.combobox_uploadimageformat.TabIndex = 1;
- //
- // label_upload_format
- //
- this.label_upload_format.LanguageKey = "picasa.label_upload_format";
- this.label_upload_format.Location = new System.Drawing.Point(10, 18);
- this.label_upload_format.Name = "label_upload_format";
- this.label_upload_format.Size = new System.Drawing.Size(181, 33);
- this.label_upload_format.TabIndex = 4;
- //
- // label_AfterUpload
- //
- this.label_AfterUpload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.label_AfterUpload.LanguageKey = "picasa.label_AfterUpload";
- this.label_AfterUpload.Location = new System.Drawing.Point(10, 51);
- this.label_AfterUpload.Name = "label_AfterUpload";
- this.label_AfterUpload.Size = new System.Drawing.Size(181, 29);
- this.label_AfterUpload.TabIndex = 8;
- //
- // checkboxAfterUploadLinkToClipBoard
- //
- this.checkboxAfterUploadLinkToClipBoard.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.checkboxAfterUploadLinkToClipBoard.LanguageKey = "picasa.label_AfterUploadLinkToClipBoard";
- this.checkboxAfterUploadLinkToClipBoard.Location = new System.Drawing.Point(197, 50);
- this.checkboxAfterUploadLinkToClipBoard.Name = "checkboxAfterUploadLinkToClipBoard";
- this.checkboxAfterUploadLinkToClipBoard.PropertyName = "AfterUploadLinkToClipBoard";
- this.checkboxAfterUploadLinkToClipBoard.SectionName = "Picasa";
- this.checkboxAfterUploadLinkToClipBoard.Size = new System.Drawing.Size(104, 17);
- this.checkboxAfterUploadLinkToClipBoard.TabIndex = 2;
- this.checkboxAfterUploadLinkToClipBoard.UseVisualStyleBackColor = true;
- //
- // SettingsForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
- this.ClientSize = new System.Drawing.Size(432, 110);
- this.Controls.Add(this.checkboxAfterUploadLinkToClipBoard);
- this.Controls.Add(this.label_AfterUpload);
- this.Controls.Add(this.label_upload_format);
- this.Controls.Add(this.combobox_uploadimageformat);
- this.Controls.Add(this.buttonCancel);
- this.Controls.Add(this.buttonOK);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.LanguageKey = "picasa.settings_title";
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "SettingsForm";
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
- private GreenshotPlugin.Controls.GreenshotComboBox combobox_uploadimageformat;
- private GreenshotPlugin.Controls.GreenshotLabel label_upload_format;
- private GreenshotPlugin.Controls.GreenshotButton buttonCancel;
- private GreenshotPlugin.Controls.GreenshotButton buttonOK;
- private GreenshotPlugin.Controls.GreenshotLabel label_AfterUpload;
- private GreenshotPlugin.Controls.GreenshotCheckBox checkboxAfterUploadLinkToClipBoard;
- }
-}
+/*
+ * A GooglePhotos Plugin for Greenshot
+ * Copyright (C) 2011 Francis Noel
+ *
+ * For more information see: http://getgreenshot.org/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+namespace GreenshotGooglePhotosPlugin.Forms {
+ partial class SettingsForm {
+ ///
+ /// Designer variable used to keep track of non-visual components.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Disposes resources used by the form.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing) {
+ if (components != null) {
+ components.Dispose();
+ }
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// This method is required for Windows Forms designer support.
+ /// Do not change the method contents inside the source code editor. The Forms designer might
+ /// not be able to load this method if it was changed manually.
+ ///
+ private void InitializeComponent()
+ {
+ this.buttonOK = new GreenshotPlugin.Controls.GreenshotButton();
+ this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton();
+ this.combobox_uploadimageformat = new GreenshotPlugin.Controls.GreenshotComboBox();
+ this.label_upload_format = new GreenshotPlugin.Controls.GreenshotLabel();
+ this.label_AfterUpload = new GreenshotPlugin.Controls.GreenshotLabel();
+ this.checkboxAfterUploadLinkToClipBoard = new GreenshotPlugin.Controls.GreenshotCheckBox();
+ this.SuspendLayout();
+ //
+ // buttonOK
+ //
+ this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
+ this.buttonOK.LanguageKey = "OK";
+ this.buttonOK.Location = new System.Drawing.Point(267, 78);
+ this.buttonOK.Name = "buttonOK";
+ this.buttonOK.Size = new System.Drawing.Size(75, 23);
+ this.buttonOK.TabIndex = 10;
+ this.buttonOK.UseVisualStyleBackColor = true;
+ //
+ // buttonCancel
+ //
+ this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.buttonCancel.LanguageKey = "CANCEL";
+ this.buttonCancel.Location = new System.Drawing.Point(348, 78);
+ this.buttonCancel.Name = "buttonCancel";
+ this.buttonCancel.Size = new System.Drawing.Size(75, 23);
+ this.buttonCancel.TabIndex = 11;
+ this.buttonCancel.UseVisualStyleBackColor = true;
+ //
+ // combobox_uploadimageformat
+ //
+ this.combobox_uploadimageformat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.combobox_uploadimageformat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.combobox_uploadimageformat.FormattingEnabled = true;
+ this.combobox_uploadimageformat.Location = new System.Drawing.Point(197, 12);
+ this.combobox_uploadimageformat.Name = "combobox_uploadimageformat";
+ this.combobox_uploadimageformat.PropertyName = "UploadFormat";
+ this.combobox_uploadimageformat.SectionName = "GooglePhotos";
+ this.combobox_uploadimageformat.Size = new System.Drawing.Size(225, 21);
+ this.combobox_uploadimageformat.TabIndex = 1;
+ //
+ // label_upload_format
+ //
+ this.label_upload_format.LanguageKey = "googlephotos.label_upload_format";
+ this.label_upload_format.Location = new System.Drawing.Point(10, 18);
+ this.label_upload_format.Name = "label_upload_format";
+ this.label_upload_format.Size = new System.Drawing.Size(181, 33);
+ this.label_upload_format.TabIndex = 4;
+ //
+ // label_AfterUpload
+ //
+ this.label_AfterUpload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.label_AfterUpload.LanguageKey = "googlephotos.label_AfterUpload";
+ this.label_AfterUpload.Location = new System.Drawing.Point(10, 51);
+ this.label_AfterUpload.Name = "label_AfterUpload";
+ this.label_AfterUpload.Size = new System.Drawing.Size(181, 29);
+ this.label_AfterUpload.TabIndex = 8;
+ //
+ // checkboxAfterUploadLinkToClipBoard
+ //
+ this.checkboxAfterUploadLinkToClipBoard.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.checkboxAfterUploadLinkToClipBoard.LanguageKey = "googlephotos.label_AfterUploadLinkToClipBoard";
+ this.checkboxAfterUploadLinkToClipBoard.Location = new System.Drawing.Point(197, 50);
+ this.checkboxAfterUploadLinkToClipBoard.Name = "checkboxAfterUploadLinkToClipBoard";
+ this.checkboxAfterUploadLinkToClipBoard.PropertyName = "AfterUploadLinkToClipBoard";
+ this.checkboxAfterUploadLinkToClipBoard.SectionName = "GooglePhotos";
+ this.checkboxAfterUploadLinkToClipBoard.Size = new System.Drawing.Size(104, 17);
+ this.checkboxAfterUploadLinkToClipBoard.TabIndex = 2;
+ this.checkboxAfterUploadLinkToClipBoard.UseVisualStyleBackColor = true;
+ //
+ // SettingsForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ this.ClientSize = new System.Drawing.Size(432, 110);
+ this.Controls.Add(this.checkboxAfterUploadLinkToClipBoard);
+ this.Controls.Add(this.label_AfterUpload);
+ this.Controls.Add(this.label_upload_format);
+ this.Controls.Add(this.combobox_uploadimageformat);
+ this.Controls.Add(this.buttonCancel);
+ this.Controls.Add(this.buttonOK);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.LanguageKey = "googlephotos.settings_title";
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "SettingsForm";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+ private GreenshotPlugin.Controls.GreenshotComboBox combobox_uploadimageformat;
+ private GreenshotPlugin.Controls.GreenshotLabel label_upload_format;
+ private GreenshotPlugin.Controls.GreenshotButton buttonCancel;
+ private GreenshotPlugin.Controls.GreenshotButton buttonOK;
+ private GreenshotPlugin.Controls.GreenshotLabel label_AfterUpload;
+ private GreenshotPlugin.Controls.GreenshotCheckBox checkboxAfterUploadLinkToClipBoard;
+ }
+}
diff --git a/GreenshotPicasaPlugin/Forms/SettingsForm.cs b/GreenshotGooglePhotosPlugin/Forms/SettingsForm.cs
similarity index 86%
rename from GreenshotPicasaPlugin/Forms/SettingsForm.cs
rename to GreenshotGooglePhotosPlugin/Forms/SettingsForm.cs
index a6691a424..be31f1d44 100644
--- a/GreenshotPicasaPlugin/Forms/SettingsForm.cs
+++ b/GreenshotGooglePhotosPlugin/Forms/SettingsForm.cs
@@ -1,38 +1,38 @@
-/*
- * A Picasa Plugin for Greenshot
- * Copyright (C) 2011 Francis Noel
- *
- * For more information see: http://getgreenshot.org/
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-namespace GreenshotPicasaPlugin.Forms {
- ///
- /// Description of PasswordRequestForm.
- ///
- public partial class SettingsForm : PicasaForm {
-
- public SettingsForm()
- {
- //
- // The InitializeComponent() call is required for Windows Forms designer support.
- //
- InitializeComponent();
- CancelButton = buttonCancel;
- AcceptButton = buttonOK;
- }
-
- }
-}
+/*
+ * A GooglePhotos Plugin for Greenshot
+ * Copyright (C) 2011 Francis Noel
+ *
+ * For more information see: http://getgreenshot.org/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+namespace GreenshotGooglePhotosPlugin.Forms {
+ ///
+ /// Description of PasswordRequestForm.
+ ///
+ public partial class SettingsForm : GooglePhotosForm {
+
+ public SettingsForm()
+ {
+ //
+ // The InitializeComponent() call is required for Windows Forms designer support.
+ //
+ InitializeComponent();
+ CancelButton = buttonCancel;
+ AcceptButton = buttonOK;
+ }
+
+ }
+}
diff --git a/GreenshotGooglePhotosPlugin/GooglePhotos.png b/GreenshotGooglePhotosPlugin/GooglePhotos.png
new file mode 100644
index 000000000..ea7824f9d
Binary files /dev/null and b/GreenshotGooglePhotosPlugin/GooglePhotos.png differ
diff --git a/GreenshotPicasaPlugin/PicasaConfiguration.cs b/GreenshotGooglePhotosPlugin/GooglePhotosConfiguration.cs
similarity index 72%
rename from GreenshotPicasaPlugin/PicasaConfiguration.cs
rename to GreenshotGooglePhotosPlugin/GooglePhotosConfiguration.cs
index 202929459..7e1b614b2 100644
--- a/GreenshotPicasaPlugin/PicasaConfiguration.cs
+++ b/GreenshotGooglePhotosPlugin/GooglePhotosConfiguration.cs
@@ -1,93 +1,93 @@
-/*
- * A Picasa Plugin for Greenshot
- * Copyright (C) 2011 Francis Noel
- *
- * For more information see: http://getgreenshot.org/
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-using System.Windows.Forms;
-using GreenshotPlugin.Core;
-using System;
-using GreenshotPicasaPlugin.Forms;
-using GreenshotPlugin.IniFile;
-
-namespace GreenshotPicasaPlugin {
- ///
- /// Description of PicasaConfiguration.
- ///
- [IniSection("Picasa", Description = "Greenshot Picasa Plugin configuration")]
- public class PicasaConfiguration : IniSection {
- [IniProperty("UploadFormat", Description="What file type to use for uploading", DefaultValue="png")]
- public OutputFormat UploadFormat { get; set; }
-
- [IniProperty("UploadJpegQuality", Description="JPEG file save quality in %.", DefaultValue="80")]
- public int UploadJpegQuality { get; set; }
-
- [IniProperty("AfterUploadLinkToClipBoard", Description = "After upload send Picasa link to clipboard.", DefaultValue = "true")]
- public bool AfterUploadLinkToClipBoard { get; set; }
- [IniProperty("AddFilename", Description = "Is the filename passed on to Picasa", DefaultValue = "False")]
- public bool AddFilename {
- get;
- set;
- }
-
- [IniProperty("UploadUser", Description = "The Picasa user to upload to", DefaultValue = "default")]
- public string UploadUser {
- get;
- set;
- }
-
- [IniProperty("UploadAlbum", Description = "The Picasa album to upload to", DefaultValue = "default")]
- public string UploadAlbum {
- get;
- set;
- }
-
- [IniProperty("RefreshToken", Description = "Picasa authorization refresh Token", Encrypted = true)]
- public string RefreshToken {
- get;
- set;
- }
-
- ///
- /// Not stored
- ///
- public string AccessToken {
- get;
- set;
- }
-
- ///
- /// Not stored
- ///
- public DateTimeOffset AccessTokenExpires {
- get;
- set;
- }
-
- ///
- /// A form for token
- ///
- /// bool true if OK was pressed, false if cancel
- public bool ShowConfigDialog() {
- DialogResult result = new SettingsForm().ShowDialog();
- if (result == DialogResult.OK) {
- return true;
- }
- return false;
- }
-
- }
-}
+/*
+ * A GooglePhotos Plugin for Greenshot
+ * Copyright (C) 2011 Francis Noel
+ *
+ * For more information see: http://getgreenshot.org/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+using System.Windows.Forms;
+using GreenshotPlugin.Core;
+using System;
+using GreenshotGooglePhotosPlugin.Forms;
+using GreenshotPlugin.IniFile;
+
+namespace GreenshotGooglePhotosPlugin {
+ ///
+ /// Description of GooglePhotosConfiguration.
+ ///
+ [IniSection("GooglePhotos", Description = "Greenshot GooglePhotos Plugin configuration")]
+ public class GooglePhotosConfiguration : IniSection {
+ [IniProperty("UploadFormat", Description="What file type to use for uploading", DefaultValue="png")]
+ public OutputFormat UploadFormat { get; set; }
+
+ [IniProperty("UploadJpegQuality", Description="JPEG file save quality in %.", DefaultValue="80")]
+ public int UploadJpegQuality { get; set; }
+
+ [IniProperty("AfterUploadLinkToClipBoard", Description = "After upload send GooglePhotos link to clipboard.", DefaultValue = "true")]
+ public bool AfterUploadLinkToClipBoard { get; set; }
+ [IniProperty("AddFilename", Description = "Is the filename passed on to GooglePhotos", DefaultValue = "False")]
+ public bool AddFilename {
+ get;
+ set;
+ }
+
+ [IniProperty("UploadUser", Description = "The GooglePhotos user to upload to", DefaultValue = "default")]
+ public string UploadUser {
+ get;
+ set;
+ }
+
+ [IniProperty("UploadAlbum", Description = "The GooglePhotos album to upload to", DefaultValue = "default")]
+ public string UploadAlbum {
+ get;
+ set;
+ }
+
+ [IniProperty("RefreshToken", Description = "GooglePhotos authorization refresh Token", Encrypted = true)]
+ public string RefreshToken {
+ get;
+ set;
+ }
+
+ ///
+ /// Not stored
+ ///
+ public string AccessToken {
+ get;
+ set;
+ }
+
+ ///
+ /// Not stored
+ ///
+ public DateTimeOffset AccessTokenExpires {
+ get;
+ set;
+ }
+
+ ///
+ /// A form for token
+ ///
+ /// bool true if OK was pressed, false if cancel
+ public bool ShowConfigDialog() {
+ DialogResult result = new SettingsForm().ShowDialog();
+ if (result == DialogResult.OK) {
+ return true;
+ }
+ return false;
+ }
+
+ }
+}
diff --git a/GreenshotPicasaPlugin/PicasaDestination.cs b/GreenshotGooglePhotosPlugin/GooglePhotosDestination.cs
similarity index 75%
rename from GreenshotPicasaPlugin/PicasaDestination.cs
rename to GreenshotGooglePhotosPlugin/GooglePhotosDestination.cs
index 4107ecd48..586a6e842 100644
--- a/GreenshotPicasaPlugin/PicasaDestination.cs
+++ b/GreenshotGooglePhotosPlugin/GooglePhotosDestination.cs
@@ -1,54 +1,54 @@
-/*
- * A Picasa Plugin for Greenshot
- * Copyright (C) 2011 Francis Noel
- *
- * For more information see: http://getgreenshot.org/
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-using System.ComponentModel;
-using System.Drawing;
-using GreenshotPlugin.Core;
-using GreenshotPlugin.Interfaces;
-
-namespace GreenshotPicasaPlugin {
- public class PicasaDestination : AbstractDestination {
- private readonly PicasaPlugin _plugin;
- public PicasaDestination(PicasaPlugin plugin) {
- _plugin = plugin;
- }
-
- public override string Designation => "Picasa";
-
- public override string Description => Language.GetString("picasa", LangKey.upload_menu_item);
-
- public override Image DisplayIcon {
- get {
- ComponentResourceManager resources = new ComponentResourceManager(typeof(PicasaPlugin));
- return (Image)resources.GetObject("Picasa");
- }
- }
-
- public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
- ExportInformation exportInformation = new ExportInformation(Designation, Description);
- bool uploaded = _plugin.Upload(captureDetails, surface, out var uploadUrl);
- if (uploaded) {
- exportInformation.ExportMade = true;
- exportInformation.Uri = uploadUrl;
- }
- ProcessExport(exportInformation, surface);
- return exportInformation;
- }
- }
-}
+/*
+ * A GooglePhotos Plugin for Greenshot
+ * Copyright (C) 2011 Francis Noel
+ *
+ * For more information see: http://getgreenshot.org/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+using System.ComponentModel;
+using System.Drawing;
+using GreenshotPlugin.Core;
+using GreenshotPlugin.Interfaces;
+
+namespace GreenshotGooglePhotosPlugin {
+ public class GooglePhotosDestination : AbstractDestination {
+ private readonly GooglePhotosPlugin _plugin;
+ public GooglePhotosDestination(GooglePhotosPlugin plugin) {
+ _plugin = plugin;
+ }
+
+ public override string Designation => "GooglePhotos";
+
+ public override string Description => Language.GetString("googlephotos", LangKey.upload_menu_item);
+
+ public override Image DisplayIcon {
+ get {
+ ComponentResourceManager resources = new ComponentResourceManager(typeof(GooglePhotosPlugin));
+ return (Image)resources.GetObject("GooglePhotos");
+ }
+ }
+
+ public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
+ ExportInformation exportInformation = new ExportInformation(Designation, Description);
+ bool uploaded = _plugin.Upload(captureDetails, surface, out var uploadUrl);
+ if (uploaded) {
+ exportInformation.ExportMade = true;
+ exportInformation.Uri = uploadUrl;
+ }
+ ProcessExport(exportInformation, surface);
+ return exportInformation;
+ }
+ }
+}
diff --git a/GreenshotPicasaPlugin/PicasaPlugin.cs b/GreenshotGooglePhotosPlugin/GooglePhotosPlugin.cs
similarity index 68%
rename from GreenshotPicasaPlugin/PicasaPlugin.cs
rename to GreenshotGooglePhotosPlugin/GooglePhotosPlugin.cs
index a8f312484..b5d37f62c 100644
--- a/GreenshotPicasaPlugin/PicasaPlugin.cs
+++ b/GreenshotGooglePhotosPlugin/GooglePhotosPlugin.cs
@@ -1,125 +1,124 @@
-/*
- * A Picasa Plugin for Greenshot
- * Copyright (C) 2011 Francis Noel
- *
- * For more information see: http://getgreenshot.org/
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-using System;
-using System.ComponentModel;
-using System.Drawing;
-using System.IO;
-using System.Windows.Forms;
-using GreenshotPlugin.Controls;
-using GreenshotPlugin.Core;
-using GreenshotPlugin.IniFile;
-using GreenshotPlugin.Interfaces;
-using GreenshotPlugin.Interfaces.Plugin;
-
-namespace GreenshotPicasaPlugin {
- ///
- /// This is the Picasa base code
- ///
- [Plugin("Picasa", true)]
- public class PicasaPlugin : IGreenshotPlugin {
- private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(PicasaPlugin));
- private static PicasaConfiguration _config;
- private ComponentResourceManager _resources;
- private ToolStripMenuItem _itemPlugInRoot;
-
- public void Dispose() {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- protected void Dispose(bool disposing) {
- if (disposing) {
- if (_itemPlugInRoot != null) {
- _itemPlugInRoot.Dispose();
- _itemPlugInRoot = null;
- }
- }
- }
-
- ///
- /// Implementation of the IGreenshotPlugin.Initialize
- ///
- public bool Initialize() {
- SimpleServiceProvider.Current.AddService(new PicasaDestination(this));
-
- // Get configuration
- _config = IniConfig.GetIniSection();
- _resources = new ComponentResourceManager(typeof(PicasaPlugin));
-
- _itemPlugInRoot = new ToolStripMenuItem
- {
- Text = Language.GetString("picasa", LangKey.Configure),
- Image = (Image) _resources.GetObject("Picasa")
- };
- _itemPlugInRoot.Click += ConfigMenuClick;
- PluginUtils.AddToContextMenu(_itemPlugInRoot);
- Language.LanguageChanged += OnLanguageChanged;
- return true;
- }
-
- public void OnLanguageChanged(object sender, EventArgs e) {
- if (_itemPlugInRoot != null) {
- _itemPlugInRoot.Text = Language.GetString("picasa", LangKey.Configure);
- }
- }
-
- public void Shutdown() {
- Log.Debug("Picasa Plugin shutdown.");
- Language.LanguageChanged -= OnLanguageChanged;
- //host.OnImageEditorOpen -= new OnImageEditorOpenHandler(ImageEditorOpened);
- }
-
- ///
- /// Implementation of the IPlugin.Configure
- ///
- public void Configure() {
- _config.ShowConfigDialog();
- }
-
- public void ConfigMenuClick(object sender, EventArgs eventArgs) {
- Configure();
- }
-
- public bool Upload(ICaptureDetails captureDetails, ISurface surfaceToUpload, out string uploadUrl) {
- SurfaceOutputSettings outputSettings = new SurfaceOutputSettings(_config.UploadFormat, _config.UploadJpegQuality);
- try {
- string url = null;
- new PleaseWaitForm().ShowAndWait("Picasa", Language.GetString("picasa", LangKey.communication_wait),
- delegate
- {
- string filename = Path.GetFileName(FilenameHelper.GetFilename(_config.UploadFormat, captureDetails));
- url = PicasaUtils.UploadToPicasa(surfaceToUpload, outputSettings, captureDetails.Title, filename);
- }
- );
- uploadUrl = url;
-
- if (uploadUrl != null && _config.AfterUploadLinkToClipBoard) {
- ClipboardHelper.SetClipboardData(uploadUrl);
- }
- return true;
- } catch (Exception e) {
- Log.Error("Error uploading.", e);
- MessageBox.Show(Language.GetString("picasa", LangKey.upload_failure) + " " + e.Message);
- }
- uploadUrl = null;
- return false;
- }
- }
-}
+/*
+ * A GooglePhotos Plugin for Greenshot
+ * Copyright (C) 2011 Francis Noel
+ *
+ * For more information see: http://getgreenshot.org/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.IO;
+using System.Windows.Forms;
+using GreenshotPlugin.Controls;
+using GreenshotPlugin.Core;
+using GreenshotPlugin.IniFile;
+using GreenshotPlugin.Interfaces;
+using GreenshotPlugin.Interfaces.Plugin;
+
+namespace GreenshotGooglePhotosPlugin {
+ ///
+ /// This is the GooglePhotos base code
+ ///
+ [Plugin("GooglePhotos", true)]
+ public class GooglePhotosPlugin : IGreenshotPlugin {
+ private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(GooglePhotosPlugin));
+ private static GooglePhotosConfiguration _config;
+ private ComponentResourceManager _resources;
+ private ToolStripMenuItem _itemPlugInRoot;
+
+ public void Dispose() {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ private void Dispose(bool disposing)
+ {
+ if (!disposing) return;
+ if (_itemPlugInRoot == null) return;
+ _itemPlugInRoot.Dispose();
+ _itemPlugInRoot = null;
+ }
+
+ ///
+ /// Implementation of the IGreenshotPlugin.Initialize
+ ///
+ public bool Initialize() {
+ SimpleServiceProvider.Current.AddService(new GooglePhotosDestination(this));
+
+ // Get configuration
+ _config = IniConfig.GetIniSection();
+ _resources = new ComponentResourceManager(typeof(GooglePhotosPlugin));
+
+ _itemPlugInRoot = new ToolStripMenuItem
+ {
+ Text = Language.GetString("googlephotos", LangKey.Configure),
+ Image = (Image) _resources.GetObject("GooglePhotos")
+ };
+ _itemPlugInRoot.Click += ConfigMenuClick;
+ PluginUtils.AddToContextMenu(_itemPlugInRoot);
+ Language.LanguageChanged += OnLanguageChanged;
+ return true;
+ }
+
+ public void OnLanguageChanged(object sender, EventArgs e) {
+ if (_itemPlugInRoot != null) {
+ _itemPlugInRoot.Text = Language.GetString("googlephotos", LangKey.Configure);
+ }
+ }
+
+ public void Shutdown() {
+ Log.Debug("GooglePhotos Plugin shutdown.");
+ Language.LanguageChanged -= OnLanguageChanged;
+ //host.OnImageEditorOpen -= new OnImageEditorOpenHandler(ImageEditorOpened);
+ }
+
+ ///
+ /// Implementation of the IPlugin.Configure
+ ///
+ public void Configure() {
+ _config.ShowConfigDialog();
+ }
+
+ public void ConfigMenuClick(object sender, EventArgs eventArgs) {
+ Configure();
+ }
+
+ public bool Upload(ICaptureDetails captureDetails, ISurface surfaceToUpload, out string uploadUrl) {
+ SurfaceOutputSettings outputSettings = new SurfaceOutputSettings(_config.UploadFormat, _config.UploadJpegQuality);
+ try {
+ string url = null;
+ new PleaseWaitForm().ShowAndWait("GooglePhotos", Language.GetString("googlephotos", LangKey.communication_wait),
+ delegate
+ {
+ string filename = Path.GetFileName(FilenameHelper.GetFilename(_config.UploadFormat, captureDetails));
+ url = GooglePhotosUtils.UploadToGooglePhotos(surfaceToUpload, outputSettings, captureDetails.Title, filename);
+ }
+ );
+ uploadUrl = url;
+
+ if (uploadUrl != null && _config.AfterUploadLinkToClipBoard) {
+ ClipboardHelper.SetClipboardData(uploadUrl);
+ }
+ return true;
+ } catch (Exception e) {
+ Log.Error("Error uploading.", e);
+ MessageBox.Show(Language.GetString("googlephotos", LangKey.upload_failure) + " " + e.Message);
+ }
+ uploadUrl = null;
+ return false;
+ }
+ }
+}
diff --git a/GreenshotPicasaPlugin/PicasaPlugin.resx b/GreenshotGooglePhotosPlugin/GooglePhotosPlugin.resx
similarity index 96%
rename from GreenshotPicasaPlugin/PicasaPlugin.resx
rename to GreenshotGooglePhotosPlugin/GooglePhotosPlugin.resx
index de5045226..240e4a53e 100644
--- a/GreenshotPicasaPlugin/PicasaPlugin.resx
+++ b/GreenshotGooglePhotosPlugin/GooglePhotosPlugin.resx
@@ -118,7 +118,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- picasa.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ GooglePhotos.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/PicasaUtils.cs b/GreenshotGooglePhotosPlugin/GooglePhotosUtils.cs
similarity index 75%
rename from GreenshotPicasaPlugin/PicasaUtils.cs
rename to GreenshotGooglePhotosPlugin/GooglePhotosUtils.cs
index 637c8aaa3..27aa13d8f 100644
--- a/GreenshotPicasaPlugin/PicasaUtils.cs
+++ b/GreenshotGooglePhotosPlugin/GooglePhotosUtils.cs
@@ -1,120 +1,120 @@
-/*
- * A Picasa Plugin for Greenshot
- * Copyright (C) 2011 Francis Noel
- *
- * For more information see: http://getgreenshot.org/
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-using GreenshotPlugin.Core;
-using System;
-using System.Xml;
-using GreenshotPlugin.Core.OAuth;
-using GreenshotPlugin.IniFile;
-using GreenshotPlugin.Interfaces;
-using GreenshotPlugin.Interfaces.Plugin;
-
-namespace GreenshotPicasaPlugin {
- ///
- /// Description of PicasaUtils.
- ///
- public static class PicasaUtils {
- private const string PicasaScope = "https://picasaweb.google.com/data/";
- private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(PicasaUtils));
- private static readonly PicasaConfiguration Config = IniConfig.GetIniSection();
- private const string AuthUrl = "https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={ClientId}&redirect_uri={RedirectUrl}&state={State}&scope=" + PicasaScope;
- private const string TokenUrl = "https://www.googleapis.com/oauth2/v3/token";
- private const string UploadUrl = "https://picasaweb.google.com/data/feed/api/user/{0}/albumid/{1}";
-
- ///
- /// Do the actual upload to Picasa
- ///
- /// Image to upload
- ///
- ///
- ///
- /// PicasaResponse
- public static string UploadToPicasa(ISurface surfaceToUpload, SurfaceOutputSettings outputSettings, string title, string filename) {
- // Fill the OAuth2Settings
- var settings = new OAuth2Settings
- {
- AuthUrlPattern = AuthUrl,
- TokenUrl = TokenUrl,
- CloudServiceName = "Picasa",
- ClientId = PicasaCredentials.ClientId,
- ClientSecret = PicasaCredentials.ClientSecret,
- AuthorizeMode = OAuth2AuthorizeMode.LocalServer,
- RefreshToken = Config.RefreshToken,
- AccessToken = Config.AccessToken,
- AccessTokenExpires = Config.AccessTokenExpires
- };
-
- // Copy the settings from the config, which is kept in memory and on the disk
-
- try {
- var webRequest = OAuth2Helper.CreateOAuth2WebRequest(HTTPMethod.POST, string.Format(UploadUrl, Config.UploadUser, Config.UploadAlbum), settings);
- if (Config.AddFilename) {
- webRequest.Headers.Add("Slug", NetworkHelper.EscapeDataString(filename));
- }
- SurfaceContainer container = new SurfaceContainer(surfaceToUpload, outputSettings, filename);
- container.Upload(webRequest);
-
- string response = NetworkHelper.GetResponseAsString(webRequest);
-
- return ParseResponse(response);
- } finally {
- // Copy the settings back to the config, so they are stored.
- Config.RefreshToken = settings.RefreshToken;
- Config.AccessToken = settings.AccessToken;
- Config.AccessTokenExpires = settings.AccessTokenExpires;
- Config.IsDirty = true;
- IniConfig.Save();
- }
- }
-
- ///
- /// Parse the upload URL from the response
- ///
- ///
- ///
- public static string ParseResponse(string response) {
- if (response == null) {
- return null;
- }
- try {
- XmlDocument doc = new XmlDocument();
- doc.LoadXml(response);
- XmlNodeList nodes = doc.GetElementsByTagName("link", "*");
- if(nodes.Count > 0) {
- string url = null;
- foreach(XmlNode node in nodes) {
- if (node.Attributes != null) {
- url = node.Attributes["href"].Value;
- string rel = node.Attributes["rel"].Value;
- // Pictures with rel="http://schemas.google.com/photos/2007#canonical" are the direct link
- if (rel != null && rel.EndsWith("canonical")) {
- break;
- }
- }
- }
- return url;
- }
- } catch(Exception e) {
- Log.ErrorFormat("Could not parse Picasa response due to error {0}, response was: {1}", e.Message, response);
- }
- return null;
- }
- }
-}
+/*
+ * A GooglePhotos Plugin for Greenshot
+ * Copyright (C) 2011 Francis Noel
+ *
+ * For more information see: http://getgreenshot.org/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+using GreenshotPlugin.Core;
+using System;
+using System.Xml;
+using GreenshotPlugin.Core.OAuth;
+using GreenshotPlugin.IniFile;
+using GreenshotPlugin.Interfaces;
+using GreenshotPlugin.Interfaces.Plugin;
+
+namespace GreenshotGooglePhotosPlugin {
+ ///
+ /// Description of GooglePhotosUtils.
+ ///
+ public static class GooglePhotosUtils {
+ private const string GooglePhotosScope = "https://picasaweb.google.com/data/";
+ private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(GooglePhotosUtils));
+ private static readonly GooglePhotosConfiguration Config = IniConfig.GetIniSection();
+ private const string AuthUrl = "https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={ClientId}&redirect_uri={RedirectUrl}&state={State}&scope=" + GooglePhotosScope;
+ private const string TokenUrl = "https://www.googleapis.com/oauth2/v3/token";
+ private const string UploadUrl = "https://picasaweb.google.com/data/feed/api/user/{0}/albumid/{1}";
+
+ ///
+ /// Do the actual upload to GooglePhotos
+ ///
+ /// Image to upload
+ /// SurfaceOutputSettings
+ /// string
+ /// string
+ /// GooglePhotosResponse
+ public static string UploadToGooglePhotos(ISurface surfaceToUpload, SurfaceOutputSettings outputSettings, string title, string filename) {
+ // Fill the OAuth2Settings
+ var settings = new OAuth2Settings
+ {
+ AuthUrlPattern = AuthUrl,
+ TokenUrl = TokenUrl,
+ CloudServiceName = "GooglePhotos",
+ ClientId = GooglePhotosCredentials.ClientId,
+ ClientSecret = GooglePhotosCredentials.ClientSecret,
+ AuthorizeMode = OAuth2AuthorizeMode.JsonReceiver,
+ RefreshToken = Config.RefreshToken,
+ AccessToken = Config.AccessToken,
+ AccessTokenExpires = Config.AccessTokenExpires
+ };
+
+ // Copy the settings from the config, which is kept in memory and on the disk
+
+ try {
+ var webRequest = OAuth2Helper.CreateOAuth2WebRequest(HTTPMethod.POST, string.Format(UploadUrl, Config.UploadUser, Config.UploadAlbum), settings);
+ if (Config.AddFilename) {
+ webRequest.Headers.Add("Slug", NetworkHelper.EscapeDataString(filename));
+ }
+ SurfaceContainer container = new SurfaceContainer(surfaceToUpload, outputSettings, filename);
+ container.Upload(webRequest);
+
+ string response = NetworkHelper.GetResponseAsString(webRequest);
+
+ return ParseResponse(response);
+ } finally {
+ // Copy the settings back to the config, so they are stored.
+ Config.RefreshToken = settings.RefreshToken;
+ Config.AccessToken = settings.AccessToken;
+ Config.AccessTokenExpires = settings.AccessTokenExpires;
+ Config.IsDirty = true;
+ IniConfig.Save();
+ }
+ }
+
+ ///
+ /// Parse the upload URL from the response
+ ///
+ ///
+ ///
+ public static string ParseResponse(string response) {
+ if (response == null) {
+ return null;
+ }
+ try {
+ XmlDocument doc = new XmlDocument();
+ doc.LoadXml(response);
+ XmlNodeList nodes = doc.GetElementsByTagName("link", "*");
+ if(nodes.Count > 0) {
+ string url = null;
+ foreach(XmlNode node in nodes) {
+ if (node.Attributes != null) {
+ url = node.Attributes["href"].Value;
+ string rel = node.Attributes["rel"].Value;
+ // Pictures with rel="http://schemas.google.com/photos/2007#canonical" are the direct link
+ if (rel != null && rel.EndsWith("canonical")) {
+ break;
+ }
+ }
+ }
+ return url;
+ }
+ } catch(Exception e) {
+ Log.ErrorFormat("Could not parse GooglePhotos response due to error {0}, response was: {1}", e.Message, response);
+ }
+ return null;
+ }
+ }
+}
diff --git a/GreenshotPicasaPlugin/GreenshotPicasaPlugin.Credentials.template b/GreenshotGooglePhotosPlugin/GreenshotGooglePhotosPlugin.Credentials.template
similarity index 83%
rename from GreenshotPicasaPlugin/GreenshotPicasaPlugin.Credentials.template
rename to GreenshotGooglePhotosPlugin/GreenshotGooglePhotosPlugin.Credentials.template
index 47172f2d4..452922112 100644
--- a/GreenshotPicasaPlugin/GreenshotPicasaPlugin.Credentials.template
+++ b/GreenshotGooglePhotosPlugin/GreenshotGooglePhotosPlugin.Credentials.template
@@ -19,13 +19,13 @@
* along with this program. If not, see .
*/
-namespace GreenshotPicasaPlugin {
+namespace GreenshotGooglePhotosPlugin {
///
/// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration.
/// You can set your own values here
///
- public static class PicasaCredentials {
- public static string ClientId = "${Picasa_ClientId}";
- public static string ClientSecret = "${Picasa_ClientSecret}";
+ public static class GooglePhotosCredentials {
+ public static string ClientId = "${GooglePhotos_ClientId}";
+ public static string ClientSecret = "${GooglePhotos_ClientSecret}";
}
}
diff --git a/GreenshotPicasaPlugin/GreenshotPicasaPlugin.csproj b/GreenshotGooglePhotosPlugin/GreenshotGooglePhotosPlugin.csproj
similarity index 62%
rename from GreenshotPicasaPlugin/GreenshotPicasaPlugin.csproj
rename to GreenshotGooglePhotosPlugin/GreenshotGooglePhotosPlugin.csproj
index ac827cfec..3fb62aa99 100644
--- a/GreenshotPicasaPlugin/GreenshotPicasaPlugin.csproj
+++ b/GreenshotGooglePhotosPlugin/GreenshotGooglePhotosPlugin.csproj
@@ -1,21 +1,15 @@
-
-
-
- GreenshotPicasaPlugin
- GreenshotPicasaPlugin
-
-
-
-
- PreserveNewest
-
-
-
-
-
-
-
-
-
-
+
+
+
+ PreserveNewest
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/LanguageKeys.cs b/GreenshotGooglePhotosPlugin/LanguageKeys.cs
similarity index 92%
rename from GreenshotPicasaPlugin/LanguageKeys.cs
rename to GreenshotGooglePhotosPlugin/LanguageKeys.cs
index 58a488db5..b91824e7e 100644
--- a/GreenshotPicasaPlugin/LanguageKeys.cs
+++ b/GreenshotGooglePhotosPlugin/LanguageKeys.cs
@@ -1,5 +1,5 @@
/*
- * A Picasa Plugin for Greenshot
+ * A GooglePhotos Plugin for Greenshot
* Copyright (C) 2011 Francis Noel
*
* For more information see: http://getgreenshot.org/
@@ -16,9 +16,9 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
- */
-
-namespace GreenshotPicasaPlugin {
+ */
+
+namespace GreenshotGooglePhotosPlugin {
public enum LangKey
{
upload_menu_item,
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-cs-CZ.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-cs-CZ.xml
similarity index 74%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-cs-CZ.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-cs-CZ.xml
index 4fe14494b..7168b569c 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-cs-CZ.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-cs-CZ.xml
@@ -1,29 +1,29 @@
-
-
-
- Zrušit
- Probíhá komunikace s Picasem. Prosím počkejte ...
- Konfigurace
- Opravdu chcete odstranit obrázek {0} z Picasa?
- Odstranit Picasa {0}
- Historie
- Neplatná oprávnění. Otevřít nastavení pro provedené změn.
- Po odeslání
- Kopírovat odkaz do schránky
- Zobrazit historii
- Výchozí velikost
- Heslo
- Formát obrázku
- Jméno
- OK
- Originál URL
- Čtvercové náhledy URL ???
- Webová adresa URL
- Nastavení Picasa
- Nahrát
- Nahrání obrázku do Picasa se nezdařilo:
- Nahrát do Picasa
- Úspěšně odeslaný obrázek do Picasa!
- Prosím ověřit aplikaci Picasa. Otevřít nastavení obrazovky. ???
-
+
+
+
+ Zrušit
+ Probíhá komunikace s Picasem. Prosím počkejte ...
+ Konfigurace
+ Opravdu chcete odstranit obrázek {0} z GooglePhotos?
+ Odstranit GooglePhotos {0}
+ Historie
+ Neplatná oprávnění. Otevřít nastavení pro provedené změn.
+ Po odeslání
+ Kopírovat odkaz do schránky
+ Zobrazit historii
+ Výchozí velikost
+ Heslo
+ Formát obrázku
+ Jméno
+ OK
+ Originál URL
+ Čtvercové náhledy URL ???
+ Webová adresa URL
+ Nastavení GooglePhotos
+ Nahrát
+ Nahrání obrázku do GooglePhotos se nezdařilo:
+ Nahrát do GooglePhotos
+ Úspěšně odeslaný obrázek do GooglePhotos!
+ Prosím ověřit aplikaci GooglePhotos. Otevřít nastavení obrazovky. ???
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-de-DE.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-de-DE.xml
similarity index 74%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-de-DE.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-de-DE.xml
index 6b30f0214..0a437a443 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-de-DE.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-de-DE.xml
@@ -8,25 +8,25 @@
Anschliessend
- Picasa konfigurieren
+ GooglePhotos konfigurieren
- Hochladen zu Picasa
+ Hochladen zu GooglePhotos
- Picasa Einstellungen
+ GooglePhotos Einstellungen
- Hochladen zu Picasa war erfolgreich !
+ Hochladen zu GooglePhotos war erfolgreich !
- Fehler beim Hochladen zu Picasa:
+ Fehler beim Hochladen zu GooglePhotos:
Grafikformat
- Übermittle Daten zu Picasa. Bitte warten...
+ Übermittle Daten zu GooglePhotos. Bitte warten...
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-en-US.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-en-US.xml
similarity index 73%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-en-US.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-en-US.xml
index e99c84ed7..70ec9f14a 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-en-US.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-en-US.xml
@@ -8,25 +8,25 @@
After upload
- Configure Picasa
+ Configure GooglePhotos
- Upload to Picasa
+ Upload to GooglePhotos
- Picasa settings
+ GooglePhotos settings
- Successfully uploaded image to Picasa!
+ Successfully uploaded image to GooglePhotos!
- An error occured while uploading to Picasa:
+ An error occured while uploading to GooglePhotos:
Image format
- Communicating with Picasa. Please wait...
+ Communicating with GooglePhotos. Please wait...
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-fr-FR.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-fr-FR.xml
similarity index 62%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-fr-FR.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-fr-FR.xml
index 589d55613..553d5725e 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-fr-FR.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-fr-FR.xml
@@ -1,14 +1,14 @@
-
-
-
- Communication en cours avec Picasa. Veuillez patientez...
- Configurer Picasa
- Après téléversement
- Copier le lien dans le presse-papier
- Format image
- Paramètres Picasa
- Une erreur s'est produite lors du téléversement vers Picasa :
- Téléverser vers Picasa
- Image téléversée avec succès vers Picasa !
-
+
+
+
+ Communication en cours avec GooglePhotos. Veuillez patientez...
+ Configurer GooglePhotos
+ Après téléversement
+ Copier le lien dans le presse-papier
+ Format image
+ Paramètres GooglePhotos
+ Une erreur s'est produite lors du téléversement vers GooglePhotos :
+ Téléverser vers GooglePhotos
+ Image téléversée avec succès vers GooglePhotos !
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-id-ID.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-id-ID.xml
similarity index 58%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-id-ID.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-id-ID.xml
index 5632a3daa..c906bb08e 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-id-ID.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-id-ID.xml
@@ -1,14 +1,14 @@
-
-
-
- Menyambungkan ke Picasa. Tunggu sebentar...
- Konfigurasi Picasa
- Sesudah mengunggah
- Sambung ke papanklip
- Format gambar
- Pengaturan Picasa
- Kesalahan terjadi ketika mengunggah ke Picasa:
- Unggah ke Picasa
- Berhasil mengunggah gambar ke Picasa!
-
+
+
+
+ Menyambungkan ke GooglePhotos. Tunggu sebentar...
+ Konfigurasi GooglePhotos
+ Sesudah mengunggah
+ Sambung ke papanklip
+ Format gambar
+ Pengaturan GooglePhotos
+ Kesalahan terjadi ketika mengunggah ke GooglePhotos:
+ Unggah ke GooglePhotos
+ Berhasil mengunggah gambar ke GooglePhotos!
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-it-IT.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-it-IT.xml
similarity index 73%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-it-IT.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-it-IT.xml
index 6f0b76c78..801e57cfd 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-it-IT.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-it-IT.xml
@@ -1,32 +1,32 @@
-
-
-
-
- Collegamento agli Appunti
-
-
- Dopo il caricamento
-
-
- Impostazioni Picasa
-
-
- Carica su Picasa
-
-
- Impostazioni Picasa
-
-
- Caricamento immagine su Picasa completato!
-
-
- Si è verificato un errore durante il caricamento su Picasa:
-
-
- Formato immagine
-
-
- Comunicazione con Picasa...
-
-
-
+
+
+
+
+ Collegamento agli Appunti
+
+
+ Dopo il caricamento
+
+
+ Impostazioni GooglePhotos
+
+
+ Carica su GooglePhotos
+
+
+ Impostazioni GooglePhotos
+
+
+ Caricamento immagine su GooglePhotos completato!
+
+
+ Si è verificato un errore durante il caricamento su GooglePhotos:
+
+
+ Formato immagine
+
+
+ Comunicazione con GooglePhotos...
+
+
+
diff --git a/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ja-JP.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ja-JP.xml
new file mode 100644
index 000000000..19c1ffc6c
--- /dev/null
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ja-JP.xml
@@ -0,0 +1,14 @@
+
+
+
+ リンクをクリップボードへコピー
+ アップロード後
+ GooglePhotos の設定
+ GooglePhotos にアップロード
+ GooglePhotos の設定
+ GooglePhotos へのアップロードに成功しました!
+ GooglePhotos へのアップロード中にエラーが発生しました:
+ 画像フォーマット
+ GooglePhotos に接続中です。しばらくお待ち下さい...
+
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-kab-DZ.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-kab-DZ.xml
similarity index 59%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-kab-DZ.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-kab-DZ.xml
index 367287108..dd5c784d4 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-kab-DZ.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-kab-DZ.xml
@@ -1,14 +1,14 @@
- S tidett tebɣiḍ ad tekkseḍ amazray adigan n Picasa ?...
- Swel Picasa
+ S tidett tebɣiḍ ad tekkseḍ amazray adigan n GooglePhotos ?...
+ Swel GooglePhotos
Ticki yemmed usali
Nɣel aseɣwen ɣef afus
Amsal n tugna
- Iɣewwaṛen Picasa
- Teḍra-d tuccḍa deg usali ɣer Picasa :
- Sali ɣer Picasa
- Tugna tuli ɣer Picasa !
+ Iɣewwaṛen GooglePhotos
+ Teḍra-d tuccḍa deg usali ɣer GooglePhotos :
+ Sali ɣer GooglePhotos
+ Tugna tuli ɣer GooglePhotos !
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-ko-KR.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ko-KR.xml
similarity index 74%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-ko-KR.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ko-KR.xml
index f452a9618..d095f9f72 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-ko-KR.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ko-KR.xml
@@ -8,25 +8,25 @@
얼로드 후
- Picasa 설정
+ GooglePhotos 설정
- Picasa로 업로드
+ GooglePhotos로 업로드
- Picasa 설정
+ GooglePhotos 설정
- Picasa로 이미지 업로드 성공!
+ GooglePhotos로 이미지 업로드 성공!
- Picasa로 업로드시 오류 발생:
+ GooglePhotos로 업로드시 오류 발생:
이미지 형식
- Picasa와 연결 중 잠시 기다리세요...
+ GooglePhotos와 연결 중 잠시 기다리세요...
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-lv-LV.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-lv-LV.xml
similarity index 75%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-lv-LV.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-lv-LV.xml
index c33bdc519..7e0e0b8ca 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-lv-LV.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-lv-LV.xml
@@ -9,25 +9,25 @@
Pēc augšupielādes
- Picasa iestatījumi
+ GooglePhotos iestatījumi
- Augšupieladēt uz Picasa
+ Augšupieladēt uz GooglePhotos
- Picasa iestatījumi
+ GooglePhotos iestatījumi
- Attēls veiksmīgi augšupielādēts uz Picasa!
+ Attēls veiksmīgi augšupielādēts uz GooglePhotos!
- Kļūda augšuplādējot uz Picasa:
+ Kļūda augšuplādējot uz GooglePhotos:
Attēla formāts
- Savienojos ar Picasa. Lūdzu uzgaidiet...
+ Savienojos ar GooglePhotos. Lūdzu uzgaidiet...
diff --git a/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-pl-PL.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-pl-PL.xml
new file mode 100644
index 000000000..be521cb06
--- /dev/null
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-pl-PL.xml
@@ -0,0 +1,14 @@
+
+
+
+ Trwa komunikacja z GooglePhotos. Proszę czekać...
+ Konfiguruj GooglePhotos
+ Po wysłaniu
+ Link do schowka
+ Format obrazów
+ Ustawienia GooglePhotos
+ Wystąpił błąd przy wysyłaniu do GooglePhotos:
+ Wyślij do GooglePhotos
+ Wysyłanie obrazu do GooglePhotos powiodło się!
+
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-pt-PT.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-pt-PT.xml
similarity index 73%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-pt-PT.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-pt-PT.xml
index 4649e8005..c3194dad0 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-pt-PT.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-pt-PT.xml
@@ -8,25 +8,25 @@
Após enviar
- Configurar o Picasa
+ Configurar o GooglePhotos
- enviar para o Picasa
+ enviar para o GooglePhotos
- Definições Picasa
+ Definições GooglePhotos
- Imagem enviada com êxito para o Picasa!
+ Imagem enviada com êxito para o GooglePhotos!
- Ocorreu um erro ao enviar para o Picasa:
+ Ocorreu um erro ao enviar para o GooglePhotos:
Formato da imagem
- A comunicar com o Picasa. Por favor aguarde...
+ A comunicar com o GooglePhotos. Por favor aguarde...
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-ru-RU.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ru-RU.xml
similarity index 61%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-ru-RU.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ru-RU.xml
index 7a273bce7..c7aa0317d 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-ru-RU.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-ru-RU.xml
@@ -1,14 +1,14 @@
-
-
-
- Обмен данными с Picasa. Подождите...
- Настройка Picasa
- После загрузки
- Ссылки в буфер обмена
- Формат изображения
- Настройки Picasa
- Произошла ошибка при загрузке на Picasa:
- Загрузить на Picasa
- Изображение успешно загружено на Picasa!
-
+
+
+
+ Обмен данными с GooglePhotos. Подождите...
+ Настройка GooglePhotos
+ После загрузки
+ Ссылки в буфер обмена
+ Формат изображения
+ Настройки GooglePhotos
+ Произошла ошибка при загрузке на GooglePhotos:
+ Загрузить на GooglePhotos
+ Изображение успешно загружено на GooglePhotos!
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-sr-RS.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-sr-RS.xml
similarity index 98%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-sr-RS.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-sr-RS.xml
index f43494f01..88c045edd 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-sr-RS.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-sr-RS.xml
@@ -1,14 +1,14 @@
-
-
-
- Комуницирам с Пикасом. Сачекајте…
- Поставке Пикасе
- Након отпремања:
- Веза ка остави
- Формат слике:
- Поставке Пикасе
- Дошло је до грешке при отпремању на Пикасу:
- Отпреми на Пикасу
- Слика је успешно отпремљена на Пикасу.
-
+
+
+
+ Комуницирам с Пикасом. Сачекајте…
+ Поставке Пикасе
+ Након отпремања:
+ Веза ка остави
+ Формат слике:
+ Поставке Пикасе
+ Дошло је до грешке при отпремању на Пикасу:
+ Отпреми на Пикасу
+ Слика је успешно отпремљена на Пикасу.
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-sv-SE.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-sv-SE.xml
similarity index 73%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-sv-SE.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-sv-SE.xml
index d3469d802..86a0aec4c 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-sv-SE.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-sv-SE.xml
@@ -8,25 +8,25 @@
Vid uppladdning
- Konfigurera Picasa
+ Konfigurera GooglePhotos
- Ladda upp till Picasa
+ Ladda upp till GooglePhotos
- Picasa-inställningar
+ GooglePhotos-inställningar
- Skärmdumpen laddades upp till Picasa!
+ Skärmdumpen laddades upp till GooglePhotos!
- Ett fel uppstod vid uppladdning till Picasa:
+ Ett fel uppstod vid uppladdning till GooglePhotos:
Bildformat
- Kommunicerar med Picasa. Vänta...
+ Kommunicerar med GooglePhotos. Vänta...
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-uk-UA.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-uk-UA.xml
similarity index 53%
rename from GreenshotPicasaPlugin/Languages/language_picasaplugin-uk-UA.xml
rename to GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-uk-UA.xml
index c1ecd0a4c..9be4ab5b6 100644
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-uk-UA.xml
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-uk-UA.xml
@@ -1,14 +1,14 @@
-
-
-
- Посилання в буфер обміну
- Після вивантаження
- Налаштувати Picasa
- Вивантажити на Picasa
- Параметри Picasa
- Зображення вдало вивантажено на Picasa!
- Відбулась помилка під час вивантаження на Picasa:
- Формат зображення
- З’єднання з Picasa. Будь ласка, зачекайте...
-
-
+
+
+
+ Посилання в буфер обміну
+ Після вивантаження
+ Налаштувати GooglePhotos
+ Вивантажити на GooglePhotos
+ Параметри GooglePhotos
+ Зображення вдало вивантажено на GooglePhotos!
+ Відбулась помилка під час вивантаження на GooglePhotos:
+ Формат зображення
+ З’єднання з GooglePhotos. Будь ласка, зачекайте...
+
+
diff --git a/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-zh-CN.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-zh-CN.xml
new file mode 100644
index 000000000..0323ba38d
--- /dev/null
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-zh-CN.xml
@@ -0,0 +1,14 @@
+
+
+
+ 正在连接到GooglePhotos。请稍后...
+ 配置 GooglePhotos
+ 上传之后
+ 复制链接到剪贴板
+ 图片格式
+ GooglePhotos设置
+ 上传到GooglePhotos时发生错误:
+ 上传到GooglePhotos
+ 图片已成功上传到了GooglePhotos!
+
+
\ No newline at end of file
diff --git a/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-zh-TW.xml b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-zh-TW.xml
new file mode 100644
index 000000000..34fa14d3f
--- /dev/null
+++ b/GreenshotGooglePhotosPlugin/Languages/language_googlephotosplugin-zh-TW.xml
@@ -0,0 +1,14 @@
+
+
+
+ 正在與 GooglePhotos 通訊,請稍候...
+ 組態 GooglePhotos
+ 上傳後
+ 連結到剪貼簿
+ 圖片格式
+ GooglePhotos 設定
+ 上傳到 GooglePhotos 時發生錯誤:
+ 上傳到 GooglePhotos
+ 上傳圖片到 GooglePhotos 成功!
+
+
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Properties/AssemblyInfo.cs b/GreenshotGooglePhotosPlugin/Properties/AssemblyInfo.cs
similarity index 94%
rename from GreenshotPicasaPlugin/Properties/AssemblyInfo.cs
rename to GreenshotGooglePhotosPlugin/Properties/AssemblyInfo.cs
index 3a917ddcd..d4fa2878a 100644
--- a/GreenshotPicasaPlugin/Properties/AssemblyInfo.cs
+++ b/GreenshotGooglePhotosPlugin/Properties/AssemblyInfo.cs
@@ -25,7 +25,7 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyDescription("A plugin to upload images to Picasa")]
+[assembly: AssemblyDescription("A plugin to upload images to GooglePhotos")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
diff --git a/GreenshotPicasaPlugin/README b/GreenshotGooglePhotosPlugin/README
similarity index 100%
rename from GreenshotPicasaPlugin/README
rename to GreenshotGooglePhotosPlugin/README
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-ja-JP.xml b/GreenshotPicasaPlugin/Languages/language_picasaplugin-ja-JP.xml
deleted file mode 100644
index ac8216e96..000000000
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-ja-JP.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- リンクをクリップボードへコピー
- アップロード後
- Picasa の設定
- Picasa にアップロード
- Picasa の設定
- Picasa へのアップロードに成功しました!
- Picasa へのアップロード中にエラーが発生しました:
- 画像フォーマット
- Picasa に接続中です。しばらくお待ち下さい...
-
-
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-pl-PL.xml b/GreenshotPicasaPlugin/Languages/language_picasaplugin-pl-PL.xml
deleted file mode 100644
index c4be12b84..000000000
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-pl-PL.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- Trwa komunikacja z Picasa. Proszę czekać...
- Konfiguruj Picasa
- Po wysłaniu
- Link do schowka
- Format obrazów
- Ustawienia Picasa
- Wystąpił błąd przy wysyłaniu do Picasa:
- Wyślij do Picasa
- Wysyłanie obrazu do Picasa powiodło się!
-
-
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-zh-CN.xml b/GreenshotPicasaPlugin/Languages/language_picasaplugin-zh-CN.xml
deleted file mode 100644
index 38601fc93..000000000
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-zh-CN.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- 正在连接到Picasa。请稍后...
- 配置 Picasa
- 上传之后
- 复制链接到剪贴板
- 图片格式
- Picasa设置
- 上传到Picasa时发生错误:
- 上传到Picasa
- 图片已成功上传到了Picasa!
-
-
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Languages/language_picasaplugin-zh-TW.xml b/GreenshotPicasaPlugin/Languages/language_picasaplugin-zh-TW.xml
deleted file mode 100644
index a818bc748..000000000
--- a/GreenshotPicasaPlugin/Languages/language_picasaplugin-zh-TW.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- 正在與 Picasa 通訊,請稍候...
- 組態 Picasa
- 上傳後
- 連結到剪貼簿
- 圖片格式
- Picasa 設定
- 上傳到 Picasa 時發生錯誤:
- 上傳到 Picasa
- 上傳圖片到 Picasa 成功!
-
-
\ No newline at end of file
diff --git a/GreenshotPicasaPlugin/Picasa.png b/GreenshotPicasaPlugin/Picasa.png
deleted file mode 100644
index 97b70cf86..000000000
Binary files a/GreenshotPicasaPlugin/Picasa.png and /dev/null differ