Skip to content

Commit

Permalink
Correção na janela de diálogo de exportação no modo Landscape
Browse files Browse the repository at this point in the history
Ajustes na versão em AboutForm
  • Loading branch information
MGODOY-BR committed Nov 4, 2016
1 parent 9731f2a commit c5fe5f8
Show file tree
Hide file tree
Showing 25 changed files with 79 additions and 47 deletions.
Binary file added Lab/tmp2/TremAbandonado.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lab/tmp2/TremAbandonado2020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lab/tmp2/UrbanWaysFacebookProfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lab/tmp2/filtered/TremAbandonado.0.filtered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added [POC]/temp3/Sprite2DObject 2/Sprite2DObject 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/smartSprite/.vs/smartSprite/v14/.suo
Binary file not shown.
11 changes: 10 additions & 1 deletion src/smartSprite/smartSuite/smartSprite/Forms/AboutBoxForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public AboutBoxForm()
InitializeComponent();
this.Text = String.Format("About {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
this.labelVersion.Text = String.Format("Version {0}", AssemblyFileVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
Expand Down Expand Up @@ -49,6 +49,15 @@ public string AssemblyVersion
}
}

public string AssemblyFileVersion
{
get
{
var attributes = this.GetType().Assembly.GetCustomAttributes<AssemblyFileVersionAttribute>();
return attributes.First().Version;
}
}

public string AssemblyDescription
{
get
Expand Down

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

60 changes: 37 additions & 23 deletions src/smartSprite/smartSuite/smartSprite/Forms/LandscapeForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,31 +213,49 @@ private void EnableForm(bool enabled)
/// </summary>
private void DoOpenDraft(String fileName)
{
// Loading the picture
this.draftControl1.LoadDraftPicture(fileName);
this.SetupScroll();
this._dataTreeNodeList.Clear();
this._projectBrowser.ClearText();
this.RebuidTreeView();
try
{
this.Cursor = Cursors.WaitCursor;

// Loading the picture
this.draftControl1.LoadDraftPicture(fileName);
this.SetupScroll();
this._dataTreeNodeList.Clear();
this._projectBrowser.ClearText();
this.RebuidTreeView();
}
finally
{
this.Cursor = Cursors.Default;
}
}

/// <summary>
/// Opens the project
/// </summary>
private void DoOpenProject(String fileName)
{
this._dataTreeNodeList.Clear();
// Loading the picture
this.draftControl1.LoadProject(fileName);
// Filling TreeNodeList
foreach (var pieceItem in this.draftControl1.Pieces.PieceList)
try
{
this.FillTreeNodeList(pieceItem);
}
this.Cursor = Cursors.WaitCursor;

this.RebuidTreeView();
this.SetupScroll();
this._draftBrowser.ClearText();
this._dataTreeNodeList.Clear();
// Loading the picture
this.draftControl1.LoadProject(fileName);
// Filling TreeNodeList
foreach (var pieceItem in this.draftControl1.Pieces.PieceList)
{
this.FillTreeNodeList(pieceItem);
}

this.RebuidTreeView();
this.SetupScroll();
this._draftBrowser.ClearText();
}
finally
{
this.Cursor = Cursors.Default;
}
}

/// <summary>
Expand Down Expand Up @@ -738,15 +756,11 @@ private void TreeView1_AfterSelect(object sender, TreeViewEventArgs e)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnExportToUnity_Click(object sender, EventArgs e)
private void btnCutInPieces_Click(object sender, EventArgs e)
{
//if (!String.IsNullOrEmpty(this.txtLoadSprite.Text))
//{
// this.exportToUnityDialog1.SelectedPath = Path.GetDirectoryName(this.txtLoadSprite.Text);
//}
var result = this.exportToUnityDialog1.ShowDialog();
var result = this.cutInPiecesDialog.ShowDialog();

var selectedPath = this.exportToUnityDialog1.SelectedPath;
var selectedPath = this.cutInPiecesDialog.SelectedPath;
if (result == DialogResult.OK)
{
this.Cursor = Cursors.WaitCursor;
Expand Down
15 changes: 12 additions & 3 deletions src/smartSprite/smartSuite/smartSprite/Forms/LandscapeForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,31 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>356, 56</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>356, 56</value>
</metadata>
<metadata name="openDraftFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="openSmartSpriteFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>300, 17</value>
</metadata>
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>609, 17</value>
<value>526, 56</value>
</metadata>
<metadata name="exportToUnityDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>745, 17</value>
<metadata name="cutInPiecesDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>602, 17</value>
</metadata>
<metadata name="savePiecesBackgroundWorker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
</metadata>
<metadata name="progressTime.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>231, 56</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>356, 56</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>112</value>
</metadata>
</root>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c5fe5f8

Please sign in to comment.