?? settings.h
字號:
/* * Copyright (C) 2008 mtrooper * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *//* $Id$ */#ifndef __SETTINGS_H__#define __SETTINGS_H__#if (C_HAVE_WXGUI)#include "wxGUI.h"#include <wx/combobox.h>#include <wx/button.h>#include <wx/textctrl.h>#include <wx/spinctrl.h>#include <wx/stattext.h>#include <wx/checkbox.h>#include <wx/notebook.h>#include <wx/panel.h>#undef Settings_STYLE#define Settings_STYLE wxCAPTION | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxMINIMIZE_BOX | wxCLOSE_BOXclass Settings : public wxDialog {public: Settings(wxWindow * parent, wxWindowID id = 1, const wxString & title = wxT("Settings"), const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = Settings_STYLE); virtual ~Settings(); void LoadSettings();private: wxButton *CancelButton; wxButton *OKButton; wxComboBox *Deinterlace; wxStaticText *WxStaticText7; wxComboBox *Mode; wxStaticText *WxStaticText6; wxButton *BrowseOutputFile; wxTextCtrl *File; wxCheckBox *Record; wxCheckBox *Winfast; wxCheckBox *Silent; wxCheckBox *Fullscreen; wxPanel *OutputSettings; wxTextCtrl *Interface; wxStaticText *WxStaticText5; wxPanel *NetworkSettings; wxButton *BrowseChannelList; wxTextCtrl *ChannelList; wxStaticText *WxStaticText4; wxSpinCtrl *Delay; wxSpinCtrl *Timer; wxSpinCtrl *StartChannel; wxStaticText *WxStaticText3; wxStaticText *WxStaticText2; wxStaticText *WxStaticText1; wxCheckBox *RememberChannel; wxPanel *GeneralSettings; wxNotebook *WxNotebook1; wxPanel *Postprocessing; wxStaticText *WxStaticText8; wxTextCtrl *PPMode; wxCheckBox *PPEnable; wxStaticText *WxStaticText9; wxTextCtrl *RecordingDir; wxButton *BrowseRecordingDir; wxStaticText *WxStaticText10; wxStaticText *WxStaticText11; wxSpinCtrl *HideMouseInFullscreenDelay; wxSpinCtrl *ChannelSurfingDelay; enum { ////GUI Enum Control ID Start ID_HIDEMOUSEINFULLSCREENDELAY = 1047, ID_WXSTATICTEXT11 = 1046, ID_CHANNELSURFINGDELAY = 1045, ID_WXSTATICTEXT10 = 1044, ID_BROWSERECORDINGDIR = 1043, ID_RECORDINGDIR = 1042, ID_WXSTATICTEXT9 = 1041, ID_PPENABLE = 1040, ID_PPMODE = 1039, ID_WXSTATICTEXT8 = 1038, ID_POSTPROCESSING = 1037, ID_CANCELBUTTON = 1036, ID_OKBUTTON = 1008, ID_DEINTERLACE = 1035, ID_WXSTATICTEXT7 = 1034, ID_MODE = 1033, ID_WXSTATICTEXT6 = 1032, ID_BROWSEOUTPUTFILE = 1031, ID_FILE = 1030, ID_RECORD = 1028, ID_WINFAST = 1027, ID_SILENT = 1026, ID_FULLSCREEN = 1025, ID_OUTPUTSETTINGS = 1011, ID_INTERFACE = 1024, ID_WXSTATICTEXT5 = 1023, ID_NETWORKSETTINGS = 1010, ID_BROWSECHANNELLIST = 1022, ID_CHANNELLIST = 1021, ID_WXSTATICTEXT4 = 1020, ID_DELAY = 1019, ID_TIMER = 1018, ID_STARTCHANNEL = 1017, ID_WXSTATICTEXT3 = 1016, ID_WXSTATICTEXT2 = 1015, ID_WXSTATICTEXT1 = 1013, ID_REMEMBERCHANNEL = 1012, ID_GENERALSETTINGS = 1009, ID_WXNOTEBOOK1 = 1007 }; void OnClose(wxCloseEvent & event); void CreateGUIControls(); void OnOKButtonClick(wxCommandEvent & event); void OnCancelButtonClick(wxCommandEvent & event); void OnBrowseOutputFileClick(wxCommandEvent & event); void OnBrowseChannelListClick(wxCommandEvent & event); void OnRecordClick(wxCommandEvent & event); void OnPPEnableClick(wxCommandEvent & event); void OnBrowseRecordingDirClick(wxCommandEvent & event);};#endif // C_HAVE_WXGUI#endif // __SETTINGS_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -