📄 editthemedialog.h
字号:
/* * Roadnav * * EditThemeDialog.h * * Copyright (c) 2004 - 2006 Richard L. Lynch <rllynch@users.sourceforge.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *////////////////////////////////////////////////////////////////////////////////// \file////// Contains the colors dialog for theme editing/////////////////////////////////////////////////////////////////////////////////#ifndef PREFERENCESPAGECOLORS_H#define PREFERENCESPAGECOLORS_H#include <wx/notebook.h>#include <vector>#include "ColorPickerControl.h"#include "libroadnav/MapAppearanceSettings.h"//////////////////////////////////////////////////////////////////////////////////// \brief Implements the colors dialog for theme editing/////////////////////////////////////////////////////////////////////////////////class EditThemeDialog : public wxDialog{ public: EditThemeDialog(wxWindow *parent, const wxString& strTheme, const MapAppearanceSettings & theme, int iDefaultDetailLevel); void OnOk(wxCommandEvent& event); void OnRecordTypeChange(wxCommandEvent & event); void OnDetailLevelChange(wxCommandEvent & event); MapAppearanceSettings GetTheme(); wxString GetThemeName(); private: void RecordSettings(); int m_iLastRecordType; int m_iLastDetailLevel; wxArrayString GetRecordTypeNames(); MapAppearanceSettings m_Theme; wxString m_strTheme; wxTextCtrl* m_pctlThemeName; /// detail level drop down box wxComboBox * m_pctlDetailLevel; /// which setting is being changed wxComboBox * m_pctlRecordType; /// color selected ColorPickerControl * m_pctlColor; /// Label visible checkbox wxCheckBox * m_pctlLabelVisible; /// Label font size text control wxTextCtrl * m_pctlLabelFontSize; /// Line visible checkbox wxCheckBox * m_pctlLineVisible; /// Line width text control wxTextCtrl * m_pctlLineWidth; DECLARE_EVENT_TABLE()};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -