diff --git a/README.md b/README.md index 32c99e6..1c0886d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 📐 ttCalculator v2.8.0 +# 📐 ttCalculator v2.9.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.8.0)** sayfasına gidin. +1. **[Releases](https://github.com/LilDosto/ttCalculator/releases/tag/v2.9.0)** sayfasına gidin. 2. İhtiyacınıza göre indirin: - - **`ttCalculator-v2.8.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-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.exe`**: Kurulumsuz doğrudan çalıştırılabilen tek dosya taşınabilir (portable) sürüm. - - **`ttCalculator-v2.8.0-win-x64.zip`**: Taşınabilir arşiv paketi. + - **`ttCalculator-v2.9.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 7075618..3e69caa 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.8.0" +#define MyAppVersion "2.9.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.8.0-Setup +OutputBaseFilename=ttCalculator-v2.9.0-Setup SetupIconFile=..\Release\logo.ico Compression=lzma2/ultra64 SolidCompression=yes diff --git a/src/ttCalculator/Controls/GraphPlotterControl.Designer.cs b/src/ttCalculator/Controls/GraphPlotterControl.Designer.cs index a6b9ca5..c702a51 100644 --- a/src/ttCalculator/Controls/GraphPlotterControl.Designer.cs +++ b/src/ttCalculator/Controls/GraphPlotterControl.Designer.cs @@ -20,7 +20,7 @@ namespace MathApp.Controls private void InitializeComponent() { this.pnlHeader = ThemeHelper.CreateHeaderPanel( - "Gelişmiş Çoklu Fonksiyon & Geometri Grafiği Stüdyosu", + "Gelişmiş Çoklu Fonksiyon ve Geometri Grafiği Stüdyosu", "Çoklu katmanlı eğriler, kutupsal (polar) fonksiyonlar, otomatik kritik nokta tespiti (kök, extremum, büküm), teğet inceleme ve parametre sürgüleri."); this.pnlControls = new Panel(); @@ -39,16 +39,16 @@ namespace MathApp.Controls this.lblMaxX = new Label(); this.txtMaxX = new TextBox(); this.chkClampRange = new CheckBox(); - this.btnPlot = ThemeHelper.CreateActionButton("➕ Ekle / Çiz", 100, 27, true); + this.btnPlot = ThemeHelper.CreateActionButton("+ Ekle / Çiz", 100, 27, true); // Scale & Analysis Toolbar buttons - this.btnZoomXIn = ThemeHelper.CreateActionButton("↔ X Genişlet (+)", 105, 26, false); + this.btnZoomXIn = ThemeHelper.CreateActionButton("X Genişlet (+)", 100, 26, false); this.btnZoomXOut = ThemeHelper.CreateActionButton("X Daralt (-)", 85, 26, false); this.btnZoomX10 = ThemeHelper.CreateActionButton("X: 10×", 55, 26, false); - this.btnZoomYIn = ThemeHelper.CreateActionButton("↕ Y Genişlet (+)", 105, 26, false); + this.btnZoomYIn = ThemeHelper.CreateActionButton("Y Genişlet (+)", 100, 26, false); this.btnZoomYOut = ThemeHelper.CreateActionButton("Y Daralt (-)", 85, 26, false); this.btnAspect1to1 = ThemeHelper.CreateActionButton("1:1 Oran", 68, 26, false); - this.btnResetView = ThemeHelper.CreateActionButton("🔄 Sıfırla", 68, 26, false); + this.btnResetView = ThemeHelper.CreateActionButton("Sıfırla", 68, 26, false); this.chkCriticalPoints = new CheckBox(); this.chkInspectMode = new CheckBox(); this.chkShowAsymptotes = new CheckBox(); @@ -94,8 +94,8 @@ namespace MathApp.Controls this.tbParamC = new TrackBar(); this.lblParamK = new Label(); this.tbParamK = new TrackBar(); - this.btnAnimate = ThemeHelper.CreateActionButton("▶ Canlı Dalga Animasyonu", 284, 30, true); - this.btnResetParams = ThemeHelper.CreateActionButton("🔄 Parametreleri Sıfırla", 284, 28, false); + this.btnAnimate = ThemeHelper.CreateActionButton("Canlı Dalga Animasyonu", 284, 30, true); + this.btnResetParams = ThemeHelper.CreateActionButton("Parametreleri Sıfırla", 284, 28, false); this.lblSliderHint = new Label(); // Tools Tab Controls @@ -103,17 +103,17 @@ namespace MathApp.Controls this.cmbToolF1 = new ComboBox(); this.lblToolF2 = new Label(); this.cmbToolF2 = new ComboBox(); - this.btnCommonTangent = ThemeHelper.CreateActionButton("📐 Ortak Teğet Doğrusunu Bul", 284, 28, true); - this.btnNearestPoints = ThemeHelper.CreateActionButton("📍 En Yakın Noktalar & Doğru", 284, 28, false); + this.btnCommonTangent = ThemeHelper.CreateActionButton("Ortak Teğet Doğrusunu Bul", 284, 28, true); + this.btnNearestPoints = ThemeHelper.CreateActionButton("En Yakın Noktalar ve Doğru", 284, 28, false); this.lblToolSep = new Label(); this.lblToolPointTan = new Label(); this.txtTanPointX = new TextBox(); this.txtTanPointY = new TextBox(); - this.btnPointTangent = ThemeHelper.CreateActionButton("📏 Noktadan Teğet Çiz", 284, 28, false); + this.btnPointTangent = ThemeHelper.CreateActionButton("Noktadan Teğet Çiz", 284, 28, false); this.txtToolLog = new RichTextBox(); - this.btnExportImage = ThemeHelper.CreateActionButton("📷 Grafiği Resim (PNG) Kaydet", 284, 28, false); - this.btnExportCsv = ThemeHelper.CreateActionButton("📊 Değer Tablosunu CSV İndir", 284, 28, false); - this.btnExportLatex = ThemeHelper.CreateActionButton("📜 LaTeX (TikZ) Kodu Üret", 284, 28, false); + this.btnExportImage = ThemeHelper.CreateActionButton("Grafiği Resim (PNG) Kaydet", 284, 28, false); + this.btnExportCsv = ThemeHelper.CreateActionButton("Değer Tablosunu CSV İndir", 284, 28, false); + this.btnExportLatex = ThemeHelper.CreateActionButton("LaTeX (TikZ) Kodu Üret", 284, 28, false); // Shapes Tab Controls this.lblShapeType = new Label(); @@ -127,7 +127,7 @@ namespace MathApp.Controls this.txtShapeDim2 = new TextBox(); this.lblShapeAngle = new Label(); this.txtShapeAngle = new TextBox(); - this.btnAddShape = ThemeHelper.CreateActionButton("📐 Şekli Grafiğe Ekle", 284, 32, true); + this.btnAddShape = ThemeHelper.CreateActionButton("Şekli Grafiğe Ekle", 284, 32, true); this.pnlStatusBar = new Panel(); this.lblStatus = new Label(); @@ -228,26 +228,26 @@ namespace MathApp.Controls int yRow2 = 70; this.btnZoomXIn.Location = new Point(14, yRow2); - this.btnZoomXOut.Location = new Point(122, yRow2); - this.btnZoomX10.Location = new Point(210, yRow2); - this.btnZoomYIn.Location = new Point(268, yRow2); - this.btnZoomYOut.Location = new Point(376, yRow2); - this.btnAspect1to1.Location = new Point(464, yRow2); - this.btnResetView.Location = new Point(535, yRow2); + this.btnZoomXOut.Location = new Point(118, yRow2); + this.btnZoomX10.Location = new Point(207, yRow2); + this.btnZoomYIn.Location = new Point(266, yRow2); + this.btnZoomYOut.Location = new Point(370, yRow2); + this.btnAspect1to1.Location = new Point(459, yRow2); + this.btnResetView.Location = new Point(531, yRow2); - this.chkCriticalPoints.Text = "🎯 Kritik Noktalar"; + this.chkCriticalPoints.Text = "Kritik Noktalar"; this.chkCriticalPoints.ForeColor = Color.FromArgb(52, 211, 153); - this.chkCriticalPoints.Location = new Point(608, yRow2 + 2); - this.chkCriticalPoints.Size = new Size(125, 24); + this.chkCriticalPoints.Location = new Point(603, yRow2 + 2); + this.chkCriticalPoints.Size = new Size(110, 24); - this.chkInspectMode.Text = "🔍 Teğet İncele"; + this.chkInspectMode.Text = "Teğet İncele"; this.chkInspectMode.ForeColor = Color.FromArgb(56, 189, 248); - this.chkInspectMode.Location = new Point(738, yRow2 + 2); - this.chkInspectMode.Size = new Size(115, 24); + this.chkInspectMode.Location = new Point(717, yRow2 + 2); + this.chkInspectMode.Size = new Size(100, 24); this.chkShowAsymptotes.Text = "Asimptotlar"; this.chkShowAsymptotes.ForeColor = Color.FromArgb(244, 63, 94); - this.chkShowAsymptotes.Location = new Point(856, yRow2 + 2); + this.chkShowAsymptotes.Location = new Point(821, yRow2 + 2); this.chkShowAsymptotes.Size = new Size(95, 24); this.pnlControls.Controls.Add(this.pnlPresets); @@ -283,6 +283,7 @@ namespace MathApp.Controls this.tabManager.Controls.Add(this.tabSliders); this.tabManager.Controls.Add(this.tabTools); this.tabManager.Controls.Add(this.tabShapes); + this.pnlRightSide.Controls.Add(this.tabManager); // tabFunctions this.tabFunctions.Text = "Eğriler"; @@ -392,7 +393,7 @@ namespace MathApp.Controls this.btnPtColor.BackColor = Color.FromArgb(250, 204, 21); this.btnPtColor.FlatStyle = FlatStyle.Flat; - this.btnAddPoint.Text = "➕ Ekle"; + this.btnAddPoint.Text = "+ Ekle"; this.btnAddPoint.Location = new Point(236, 188); this.btnAddPoint.Size = new Size(58, 25); this.btnAddPoint.BackColor = ThemeHelper.AccentBlue; @@ -424,7 +425,7 @@ namespace MathApp.Controls this.btnClearPoints.ForeColor = Color.White; this.btnClearPoints.FlatStyle = FlatStyle.Flat; - this.lblPointHint.Text = "💡 İpucu: Grafik tuvalinde bir noktanın üzerine sağ tıklayarak da o noktayı silebilirsiniz."; + this.lblPointHint.Text = "İpucu: Grafik tuvalinde bir noktanın üzerine sağ tıklayarak da o noktayı silebilirsiniz."; this.lblPointHint.Location = new Point(8, 295); this.lblPointHint.Size = new Size(280, 50); this.lblPointHint.ForeColor = ThemeHelper.MutedText; @@ -503,7 +504,7 @@ namespace MathApp.Controls this.btnAnimate.Location = new Point(8, 268); this.btnResetParams.Location = new Point(8, 302); - this.lblSliderHint.Text = "💡 İpucu: Formülünüze a, b, c veya k değişkenlerini ekleyin (ör: a*sin(b*x + c)). Sürgüleri hareket ettirerek dalga animasyonunu canlı izleyin."; + this.lblSliderHint.Text = "İpucu: Formülünüze a, b, c veya k değişkenlerini ekleyin (ör: a*sin(b*x + c)). Sürgüleri hareket ettirerek dalga animasyonunu canlı izleyin."; this.lblSliderHint.Location = new Point(8, 340); this.lblSliderHint.Size = new Size(284, 60); this.lblSliderHint.ForeColor = ThemeHelper.MutedText; @@ -522,7 +523,7 @@ namespace MathApp.Controls this.tabSliders.Controls.Add(this.lblSliderHint); // tabTools - this.tabTools.Text = "Araçlar & Analiz"; + this.tabTools.Text = "Araçlar"; this.tabTools.BackColor = ThemeHelper.DarkBackground; this.tabTools.Padding = new Padding(8); diff --git a/src/ttCalculator/Controls/GraphPlotterControl.cs b/src/ttCalculator/Controls/GraphPlotterControl.cs index 41a4d53..6c11d7a 100644 --- a/src/ttCalculator/Controls/GraphPlotterControl.cs +++ b/src/ttCalculator/Controls/GraphPlotterControl.cs @@ -144,6 +144,14 @@ namespace MathApp.Controls AddFunctionCurve("sin(x)", false, -10f, 10f); } + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + GenerateAllPoints(false, isDraft: false); + DetectCriticalPoints(); + pnlCanvas.Invalidate(); + } + private void SetupEvents() { btnPlot.Click += (s, e) => AddCurrentInputCurve(); @@ -170,12 +178,21 @@ namespace MathApp.Controls chkInspectMode.CheckedChanged += (s, e) => pnlCanvas.Invalidate(); chkShowAsymptotes.CheckedChanged += (s, e) => pnlCanvas.Invalidate(); - // Canvas Mouse Events + // Canvas Mouse & Paint Events + pnlCanvas.Paint += pnlCanvas_Paint; pnlCanvas.MouseDown += PnlCanvas_MouseDown; pnlCanvas.MouseMove += PnlCanvas_MouseMove; pnlCanvas.MouseUp += PnlCanvas_MouseUp; pnlCanvas.MouseLeave += (s, e) => { hoverMousePos = null; pnlCanvas.Invalidate(); }; pnlCanvas.MouseWheel += PnlCanvas_MouseWheel; + pnlCanvas.Resize += (s, e) => + { + if (pnlCanvas.Width > 10 && pnlCanvas.Height > 10) + { + GenerateAllPoints(false, isDraft: false); + pnlCanvas.Invalidate(); + } + }; // Curve management lstCurves.SelectedIndexChanged += LstCurves_SelectedIndexChanged; @@ -981,8 +998,6 @@ namespace MathApp.Controls rangeMaxY += shiftY; lastMousePos = e.Location; - txtMinX.Text = rangeMinX.ToString("0.##", CultureInfo.InvariantCulture); - txtMaxX.Text = rangeMaxX.ToString("0.##", CultureInfo.InvariantCulture); GenerateAllPoints(false, isDraft: true); pnlCanvas.Invalidate(); @@ -1616,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.8 LaTeX Pgfplots / TikZ Kodu"); + sb.AppendLine("% ttCalculator v2.9 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 697dbf8..a99e5ea 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.8 • 128-bit Decimal Motoru • 60 FPS"; + this.lblVersion.Text = "v2.9 • 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 ccfda8d..a4f97ea 100644 --- a/src/ttCalculator/ThemeHelper.cs +++ b/src/ttCalculator/ThemeHelper.cs @@ -96,6 +96,7 @@ namespace MathApp Label lblTitle = new Label { Text = title, + UseMnemonic = false, Location = new Point(24, 12), AutoSize = false, Size = new Size(900, 28), @@ -107,6 +108,7 @@ namespace MathApp Label lblSub = new Label { Text = subtitle, + UseMnemonic = false, Location = new Point(24, 40), AutoSize = false, Size = new Size(900, 22), @@ -171,6 +173,15 @@ namespace MathApp 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.DrawItem += (s, e) => { Graphics g = e.Graphics; diff --git a/src/ttCalculator/ttCalculator.csproj b/src/ttCalculator/ttCalculator.csproj index 37bef7f..2a704f2 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.8.0 + 2.9.0 ttCalculator diff --git a/tests/ttCalculator.Tests/Program.cs b/tests/ttCalculator.Tests/Program.cs index 13c240b..45a969d 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.8 Graph Plotter Studio Verification"); + Console.WriteLine("ttCalculator v2.9 Graph Plotter Studio Verification"); Console.WriteLine("================================================="); int passed = 0;