39    static const wxString verticalChoiceItems[] =
 
   42        _( 
"Pan left/right" ),
 
   43        _( 
"Pan right/left" ),
 
   46        _( 
"Zoom horizontally" ),
 
   47        _( 
"Zoom vertically" )
 
   52    static_assert( std::extent<
decltype(verticalChoiceItems)>::value == ACTION_COUNT,
 
   53                   "verticalChoiceItems size does not match VERTICAL_SCROLL_ACTION::COUNT" );
 
   60    static const wxString horizontalChoiceItems[] =
 
   63        _( 
"Pan left/right" ),
 
   64        _( 
"Zoom horizontally" )
 
   67    m_choiceHScroll->Set( std::extent<
decltype(horizontalChoiceItems)>::value,
 
   68                          horizontalChoiceItems );
 
 
   83    static constexpr auto toAction =
 
   84            []( 
const wxChoice* aChoice )
 
 
  158    static constexpr auto setSelection =
 
  159            []( wxChoice* aChoice, 
auto action )
 
  161                aChoice->SetSelection( 
static_cast<int>( action ) );
 
 
wxStaticText * m_lblVScrollCtrl
 
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)
 
wxChoice * m_choiceVScrollCtrl
 
wxChoice * m_choiceVScrollUnmodified
 
wxChoice * m_choiceVScrollShift
 
wxChoice * m_choiceVScrollAlt
 
wxStaticText * m_lblVScrollAlt
 
wxChoice * m_choiceHScroll
 
~PANEL_SIMULATOR_PREFERENCES()
 
bool TransferDataFromWindow() override
 
void onMouseDefaults(wxCommandEvent &) override
 
bool TransferDataToWindow() override
 
void applyMouseScrollActionsToPanel(const SIM_MOUSE_WHEEL_ACTION_SET &anActionSet)
 
PANEL_SIMULATOR_PREFERENCES(wxWindow *aParent)
 
static int actionToHorizontalScrollSelection(SIM_MOUSE_WHEEL_ACTION anAction)
 
void ResetPanel() override
Reset the contents of this panel.
 
static SIM_MOUSE_WHEEL_ACTION horizontalScrollSelectionToAction(int aSelection)
 
void onTrackpadDefaults(wxCommandEvent &) override
 
T * GetAppSettings(const char *aFilename)
 
SIM_MOUSE_WHEEL_ACTION
Enumerates the possible mouse wheel actions that can be performed on simulator plots.
 
Contains the set of modified mouse wheel actions that can be performed on a simulator plot.
 
static SIM_MOUSE_WHEEL_ACTION_SET GetMouseDefaults()
 
SIM_MOUSE_WHEEL_ACTION vertical_unmodified
 
SIM_MOUSE_WHEEL_ACTION vertical_with_alt
 
SIM_MOUSE_WHEEL_ACTION horizontal
 
SIM_MOUSE_WHEEL_ACTION vertical_with_ctrl
 
SIM_MOUSE_WHEEL_ACTION vertical_with_shift
 
static SIM_MOUSE_WHEEL_ACTION_SET GetTrackpadDefaults()