From dab3a1361fe495461a84284e99546e260cc398ea Mon Sep 17 00:00:00 2001 From: LilDosto Date: Thu, 29 Oct 2026 00:53:23 +0300 Subject: [PATCH] fix(core): resolve StackOverflowException in TabControl layout recursion and release v3.0.0 --- README.md | 8 ++++---- installer/setup.iss | 4 ++-- src/ttCalculator/Controls/GraphPlotterControl.cs | 2 +- src/ttCalculator/MainForm.Designer.cs | 2 +- src/ttCalculator/ThemeHelper.cs | 11 +---------- src/ttCalculator/ttCalculator.csproj | 2 +- tests/ttCalculator.Tests/Program.cs | 2 +- 7 files changed, 11 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 1c0886d..fda892e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 📐 ttCalculator v2.9.0 +# 📐 ttCalculator v3.0.0 [![GitHub release](https://img.shields.io/github/v/release/LilDosto/ttCalculator?color=brightgreen&label=S%C3%BCr%C3%BCm)](https://github.com/LilDosto/ttCalculator/releases) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) @@ -13,11 +13,11 @@ Tüm matematiksel çekirdek, otomatik test paketinden **%100 başarıyla (0 hata ## 🚀 Hızlı Başlangıç & Kurulum -1. **[Releases](https://github.com/LilDosto/ttCalculator/releases/tag/v2.9.0)** sayfasına gidin. +1. **[Releases](https://github.com/LilDosto/ttCalculator/releases/tag/v3.0.0)** sayfasına gidin. 2. İhtiyacınıza göre indirin: - - **`ttCalculator-v2.9.0-Setup.exe` (Önerilen)**: Standart Windows kurulum sihirbazı. Masaüstüne ve Başlat Menüsüne kısayol oluşturur, Denetim Masası / Program Ekle-Kaldır entegrasyonu sağlar. + - **`ttCalculator-v3.0.0-Setup.exe` (Önerilen)**: Standart Windows kurulum sihirbazı. Masaüstüne ve Başlat Menüsüne kısayol oluşturur, Denetim Masası / Program Ekle-Kaldır entegrasyonu sağlar. - **`ttCalculator.exe`**: Kurulumsuz doğrudan çalıştırılabilen tek dosya taşınabilir (portable) sürüm. - - **`ttCalculator-v2.9.0-win-x64.zip`**: Taşınabilir arşiv paketi. + - **`ttCalculator-v3.0.0-win-x64.zip`**: Taşınabilir arşiv paketi. 3. Çift tıklayarak doğrudan çalıştırın — ek bağımlılık gerektirmez! --- diff --git a/installer/setup.iss b/installer/setup.iss index 3e69caa..d72cbc1 100644 --- a/installer/setup.iss +++ b/installer/setup.iss @@ -1,6 +1,6 @@ ; Script generated by Antigravity for ttCalculator #define MyAppName "ttCalculator" -#define MyAppVersion "2.9.0" +#define MyAppVersion "3.0.0" #define MyAppPublisher "LilDosto" #define MyAppURL "https://github.com/LilDosto/ttCalculator" #define MyAppExeName "ttCalculator.exe" @@ -25,7 +25,7 @@ DefaultGroupName={#MyAppName} AllowNoIcons=yes LicenseFile=..\LICENSE OutputDir=..\Release -OutputBaseFilename=ttCalculator-v2.9.0-Setup +OutputBaseFilename=ttCalculator-v3.0.0-Setup SetupIconFile=..\Release\logo.ico Compression=lzma2/ultra64 SolidCompression=yes diff --git a/src/ttCalculator/Controls/GraphPlotterControl.cs b/src/ttCalculator/Controls/GraphPlotterControl.cs index 6c11d7a..dfdad8e 100644 --- a/src/ttCalculator/Controls/GraphPlotterControl.cs +++ b/src/ttCalculator/Controls/GraphPlotterControl.cs @@ -1631,7 +1631,7 @@ namespace MathApp.Controls { var validCurves = _curves.Where(c => c.Visible && !c.IsVerticalLine && !c.IsPolar).ToList(); StringBuilder sb = new StringBuilder(); - sb.AppendLine("% ttCalculator v2.9 LaTeX Pgfplots / TikZ Kodu"); + sb.AppendLine("% ttCalculator v3.0 LaTeX Pgfplots / TikZ Kodu"); sb.AppendLine("\\begin{tikzpicture}"); sb.AppendLine("\\begin{axis}["); sb.AppendLine($" xmin={rangeMinX:F1}, xmax={rangeMaxX:F1},"); diff --git a/src/ttCalculator/MainForm.Designer.cs b/src/ttCalculator/MainForm.Designer.cs index a99e5ea..a82529d 100644 --- a/src/ttCalculator/MainForm.Designer.cs +++ b/src/ttCalculator/MainForm.Designer.cs @@ -156,7 +156,7 @@ namespace MathApp // Footer version label this.lblVersion.Dock = DockStyle.Bottom; this.lblVersion.Height = 28; - this.lblVersion.Text = "v2.9 • 128-bit Decimal Motoru • 60 FPS"; + this.lblVersion.Text = "v3.0 • 128-bit Decimal Motoru • 60 FPS"; this.lblVersion.Font = new Font("Segoe UI", 8F); this.lblVersion.ForeColor = Color.FromArgb(100, 116, 139); this.lblVersion.TextAlign = ContentAlignment.MiddleCenter; diff --git a/src/ttCalculator/ThemeHelper.cs b/src/ttCalculator/ThemeHelper.cs index a4f97ea..f050fb2 100644 --- a/src/ttCalculator/ThemeHelper.cs +++ b/src/ttCalculator/ThemeHelper.cs @@ -171,16 +171,7 @@ namespace MathApp tabControl.DrawMode = TabDrawMode.OwnerDrawFixed; tabControl.SizeMode = TabSizeMode.Fixed; - tabControl.ItemSize = new Size(Math.Max(56, (tabControl.Width - 10) / Math.Max(1, tabControl.TabCount)), 32); - - tabControl.Resize += (s, e) => - { - if (tabControl.TabCount > 0 && tabControl.Width > 20) - { - tabControl.ItemSize = new Size(Math.Max(56, (tabControl.Width - 10) / tabControl.TabCount), 32); - tabControl.Invalidate(); - } - }; + tabControl.ItemSize = new Size(Math.Max(58, (tabControl.Width > 50 ? tabControl.Width - 14 : 306) / Math.Max(1, tabControl.TabCount)), 32); tabControl.DrawItem += (s, e) => { diff --git a/src/ttCalculator/ttCalculator.csproj b/src/ttCalculator/ttCalculator.csproj index 2a704f2..aeca6b4 100644 --- a/src/ttCalculator/ttCalculator.csproj +++ b/src/ttCalculator/ttCalculator.csproj @@ -9,7 +9,7 @@ logo.ico ttCalculator ttCalculator - Gelişmiş Matematik & Nümerik Analiz Stüdyosu - 2.9.0 + 3.0.0 ttCalculator diff --git a/tests/ttCalculator.Tests/Program.cs b/tests/ttCalculator.Tests/Program.cs index 45a969d..df6ded6 100644 --- a/tests/ttCalculator.Tests/Program.cs +++ b/tests/ttCalculator.Tests/Program.cs @@ -11,7 +11,7 @@ namespace MathApp.Tests static void Main(string[] args) { Console.WriteLine("================================================="); - Console.WriteLine("ttCalculator v2.9 Graph Plotter Studio Verification"); + Console.WriteLine("ttCalculator v3.0 Graph Plotter Studio Verification"); Console.WriteLine("================================================="); int passed = 0;