kicad/eeschema/dialogs/panel_simulator_preferences...

73 lines
2.3 KiB
C
Raw Normal View History

Horizontal/vertical zoom for Simulator plots ADDED: Horizontal/vertical zoom for simulator plots, via mouse wheel, toolbar buttons, menu commands, and hotkeys. ADDED: Simulator preferences panel, populated with mouse wheel and trackpad settings that control pan and zoom of simulator plots. ADDED: Zoom In/Out Horizontally/Vertically commands that can be bound to hotkeys. CHANGED: Simulator plot scroll wheel gestures are no longer hard-coded and can now be configured via the new Simulator preferences panel. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16597 Other unreported bugs that were fixed: - Fixed wierd, jumpy simulator plot view limiting behavior. - Fixed Zoom In Center and Zoom Out Center commands not preserving the simulator plot center point. - Fixed simulator plot nudging when exported as PNGs. - Fixed rectangular selection zoom being able to exceed simulator plot view limits. Notes: - Provided new SIM_PREFERENCES struct to be used for future simulator preferences set via the simulator preferences dialog. - Bundled pre-existing EESCHEMA_SETTINGS::SIMULATOR settings into EESCHEMA_SETTINGS::SIMULATOR::VIEW. - Replaced mpWindow::EnableMouseWheelPan with more general SetMouseWheelActions. - Refactored and tidied up wxMathPlot's mpWindow code involved with fitting, zooming, and panning. - Consolidated long lists of duplicated member variable initializers to a new mpWindow private delegated constructor. - Provided provisional Zoom In/Out Horizontally/Vertically toolbar icons that need improvement by a graphics designer. - Provided gitignore entries for the Qt Creator IDE
2024-01-23 01:02:50 +00:00
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#pragma once
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include "widgets/resettable_panel.h"
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/statline.h>
#include <wx/choice.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/panel.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class PANEL_SIMULATOR_PREFERENCES_BASE
///////////////////////////////////////////////////////////////////////////////
class PANEL_SIMULATOR_PREFERENCES_BASE : public RESETTABLE_PANEL
{
private:
protected:
wxStaticText* m_lblScrollHeading;
wxStaticLine* m_scrollLine;
wxStaticText* m_lblVScrollMovement;
wxStaticText* m_lblVScrollModifier;
wxStaticText* m_lblVScrollAction;
wxStaticText* m_lblVScrollUnmodified;
wxChoice* m_choiceVScrollUnmodified;
wxStaticText* m_lblVScrollCtrl;
wxChoice* m_choiceVScrollCtrl;
wxStaticText* m_lblVScrollShift;
wxChoice* m_choiceVScrollShift;
wxStaticText* m_lblVScrollAlt;
wxChoice* m_choiceVScrollAlt;
wxStaticText* m_lblHScrollMovement;
wxStaticText* m_lblHScrollModifier;
wxStaticText* m_lblHScrollAction;
wxStaticText* m_lblHScrollAny;
wxChoice* m_choiceHScroll;
wxButton* m_btnMouseDefaults;
wxButton* m_btnTrackpadDefaults;
// Virtual event handlers, override them in your derived class
virtual void onMouseDefaults( wxCommandEvent& event ) { event.Skip(); }
virtual void onTrackpadDefaults( wxCommandEvent& event ) { event.Skip(); }
public:
PANEL_SIMULATOR_PREFERENCES_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
~PANEL_SIMULATOR_PREFERENCES_BASE();
};