📄 indentpage.h
字号:
#pragma once
#include "macro.h"
extern "C" {
#include "indent.h"
}
// CIndentPage 对话框
class CIndentPage : public CPropertyPage
{
DECLARE_DYNAMIC(CIndentPage)
public:
CIndentPage();
virtual ~CIndentPage();
// 对话框数据
enum { IDD = IDD_INDENT };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
///////////////////////////////////////////////////////////////
public:
edit_proc(struct_brace_indent)
edit_proc(paren_indent)
edit_proc(force_preproc_width)
edit_proc(extra_expression_indent)
edit_proc(indent_parameters)
edit_proc(unindent_displace)
edit_proc(decl_indent)
edit_proc(case_indent)
edit_proc(continuation_indent)
edit_proc(com_ind)
edit_proc(brace_indent)
edit_proc(case_brace_indent)
edit_proc(decl_com_ind)
check_proc(ljust_decl)
void FillSetting(user_options_ty* ps)
{
ASSERT(m_hWnd);
if (this->m_hWnd)
{
ps->struct_brace_indent = get_struct_brace_indent();
ps->paren_indent = get_paren_indent();
ps->force_preproc_width = get_force_preproc_width();
ps->extra_expression_indent = get_extra_expression_indent();
ps->indent_parameters = get_indent_parameters();
ps->unindent_displace = get_unindent_displace();
ps->decl_indent = get_decl_indent();
ps->case_indent = get_case_indent();
ps->continuation_indent = get_continuation_indent();
ps->com_ind = get_com_ind();
ps->brace_indent = get_brace_indent();
ps->case_brace_indent = get_case_brace_indent();
ps->decl_com_ind = get_decl_com_ind();
ps->ljust_decl = get_ljust_decl();
}
}
void FromSetting(const user_options_ty* ps)
{
ASSERT(m_hWnd);
if (this->m_hWnd)
{
set_struct_brace_indent(ps->struct_brace_indent);
set_paren_indent(ps->paren_indent);
set_force_preproc_width(ps->force_preproc_width);
set_extra_expression_indent(ps->extra_expression_indent);
set_indent_parameters(ps->indent_parameters);
set_unindent_displace(ps->unindent_displace);
set_decl_indent(ps->decl_indent);
set_case_indent(ps->case_indent);
set_continuation_indent(ps->continuation_indent);
set_com_ind(ps->com_ind);
set_brace_indent(ps->brace_indent);
set_case_brace_indent(ps->case_brace_indent);
set_decl_com_ind(ps->decl_com_ind);
set_ljust_decl(ps->ljust_decl);
}
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -