1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

A little tidying up, and fix a layout problem with the vertical Ruler.

Plus saving the prefs sooner.
This commit is contained in:
martynshaw99
2014-01-02 23:33:24 +00:00
parent 32d3e5954d
commit f4dbcb3188
2 changed files with 2 additions and 9 deletions

View File

@@ -44,7 +44,6 @@ a graph for EffectScienFilter.
#include "../AColor.h"
#include "../ShuttleGui.h"
#include "../PlatformCompatibility.h"
//#include "../Envelope.h"
#include "../Prefs.h"
#include "../Project.h"
#include "../WaveTrack.h"
@@ -55,20 +54,17 @@ a graph for EffectScienFilter.
#include "float_cast.h"
#include <wx/bitmap.h>
//#include <wx/button.h>
#include <wx/msgdlg.h>
#include <wx/brush.h>
#include <wx/dcmemory.h>
#include <wx/event.h>
#include <wx/image.h>
#include <wx/intl.h>
//#include <wx/choice.h>
#include <wx/stattext.h>
#include <wx/string.h>
#include <wx/textdlg.h>
#include <wx/stdpaths.h>
#include <wx/settings.h>
//#include <wx/checkbox.h>
#if wxUSE_TOOLTIPS
#include <wx/tooltip.h>
@@ -82,9 +78,6 @@ a graph for EffectScienFilter.
#define PI 3.1415926535
#define square(a) ((a)*(a))
#define NUM_INTERP_CHOICES 3
static wxString interpChoiceStrings[NUM_INTERP_CHOICES];
#ifndef __min
#define __min(a,b) ((a) < (b) ? (a) : (b))
#endif
@@ -191,6 +184,7 @@ bool EffectScienFilter::PromptUser()
gPrefs->Write(wxT("/SciFilter/Cutoff"), mCutoff);
gPrefs->Write(wxT("/SciFilter/Ripple"), mRipple);
gPrefs->Write(wxT("/SciFilter/StopbandRipple"), mStopbandRipple);
gPrefs->Flush();
}
return true;
@@ -576,7 +570,7 @@ void ScienFilterDialog::MakeScienFilterDialog()
dBRuler = new RulerPanel(this, wxID_ANY);
dBRuler->ruler.SetBounds(0, 0, 100, 100); // Ruler can't handle small sizes
dBRuler->ruler.SetOrientation(wxVERTICAL);
dBRuler->ruler.SetRange(30.0, -90.0);
dBRuler->ruler.SetRange(30.0, -120.0);
dBRuler->ruler.SetFormat(Ruler::LinearDBFormat);
dBRuler->ruler.SetUnits(_("dB"));
dBRuler->ruler.SetLabelEdges(true);

View File

@@ -157,7 +157,6 @@ public:
// constructors and destructors
ScienFilterDialog(EffectScienFilter * effect,
double loFreq, double hiFreq,
//long windowSize, wxString CurveName, bool disallowCustom,
wxWindow *parent, wxWindowID id,
const wxString &title,
const wxPoint& pos = wxDefaultPosition,