KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_mouse_settings.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2020 Jon Evans <[email protected]>
5 * Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef KICAD_PANEL_MOUSE_SETTINGS_H
22#define KICAD_PANEL_MOUSE_SETTINGS_H
23
25
26
27class COMMON_SETTINGS;
28class PAGED_DIALOG;
29
30
32{
33 int zoom;
34 int panh;
35 int panv;
37};
38
39
41{
42public:
43 PANEL_MOUSE_SETTINGS( wxWindow* aParent );
44
46
47 void ResetPanel() override;
48
49protected:
50 bool TransferDataFromWindow() override;
51
52 bool TransferDataToWindow() override;
53
54 void OnScrollRadioButton( wxCommandEvent& event ) override;
55 void onMouseDefaults( wxCommandEvent& event ) override;
56 void onTrackpadDefaults( wxCommandEvent& event ) override;
57
58private:
59 void applySettingsToPanel( const COMMON_SETTINGS& aSettings );
60
62
64
65 bool isScrollModSetValid( const SCROLL_MOD_SET& aSet );
66
67private:
69};
70
71
72#endif
Class PANEL_MOUSE_SETTINGS_BASE.
void onMouseDefaults(wxCommandEvent &event) override
bool TransferDataFromWindow() override
void ResetPanel() override
Reset the contents of this panel.
void applySettingsToPanel(const COMMON_SETTINGS &aSettings)
SCROLL_MOD_SET getScrollModSet()
SCROLL_MOD_SET m_currentScrollMod
bool isScrollModSetValid(const SCROLL_MOD_SET &aSet)
bool TransferDataToWindow() override
void onTrackpadDefaults(wxCommandEvent &event) override
void OnScrollRadioButton(wxCommandEvent &event) override