📄 general.h
字号:
#ifndef GeneralH
#define GeneralH
#include <gui.h>
#include <items.h>
#include <screen.h>
#include <ptab.h>
#include <hide.h>
class CSetup;
class CGeneral {
public:
CGeneral(CSetup &SetupToUse, CBootItems &BootItemsToUse, CScreen &ScreenToUse, CPartList &PartListToUse);
~CGeneral();
void CreateControls();
void InitializeControls(CTabControl *TabControl);
void ConnectEventHandlers();
void DisableControls();
void EnableControls();
void InstallControls(CForm *Form);
void RealignText();
void SelectBootItem(int ItemIndex);
void ToggleDefault();
private:
CSetup &Setup;
CBootItems &BootItems;
CPartList &PartList;
CHidingDialog HidingDialog;
void SetTimerSlider(int Timeout);
private:
// Controls
CBevel *StatusGroupBevel;
CLabel *StatusGroupLabel;
CCheckBox *Activate;
CCheckBox *FATFix;
CCheckBox *SwapDrives;
CCheckBox *Disabled;
CBevel *TimeoutGroupBevel;
CLabel *TimeoutGroupLabel;
CTrackBar *TimeoutSlider;
CLabel *TimeoutLabel;
CCheckBox *DefaultItem;
CButton *HidingBtn;
private:
// Event handlers
static void DefaultItemClick(CGeneral &General, bool Checked);
static void ActivateClick(CGeneral &General, bool Checked);
static void FATFixClick(CGeneral &General, bool Checked);
static void SwapDrivesClick(CGeneral &General, bool Checked);
static void DisabledClick(CGeneral &General, bool Checked);
static void HidingBtnClick(CGeneral &General);
static void TimeoutSliderChange(CGeneral &General, int Value);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -