📄 envopt.h
字号:
//---------------------------------------------------------------------------
#ifndef EnvOptH
#define EnvOptH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "CGRID.h"
#include "SynEdit.hpp"
#include "SynEditHighlighter.hpp"
#include "SynHighlighterAVRC.hpp"
#include "ColorField.h"
#include <ComCtrls.hpp>
#include <Dialogs.hpp>
#include <Buttons.hpp>
typedef struct {TColor ELineFG, ELineBG, MLineFG, MLineBG;} SpecialLines;
//---------------------------------------------------------------------------
class TEnvOptions : public TForm
{
__published: // Von der IDE verwaltete Komponenten
TListBox *ListBox1;
TSynEdit *SynEdit1;
TGroupBox *GroupBox1;
TCheckBox *BoldAttr;
TCheckBox *ItalAttr;
TCheckBox *UndAttr;
TButton *Standard;
TCheckBox *StrAttr;
TColorField *ColorField1;
TPageControl *PageControl1;
TTabSheet *TabSheet1;
TTabSheet *TabSheet2;
TTreeView *TreeView1;
TButton *Button1;
TFontDialog *FontDialog1;
TColorDialog *ColorDialog1;
TButton *Button2;
TMemo *Memo1;
TButton *Button3;
TButton *Button4;
TButton *Standard2;
TBitBtn *OkButton;
TBitBtn *Cancel;
TBitBtn *OkButton2;
TBitBtn *Cancel2;
TCheckBox *PaPropBox;
TButton *StandardBut2;
TCheckBox *LineBox;
void __fastcall CancelClick(TObject *Sender);
void __fastcall OkButtonClick(TObject *Sender);
void __fastcall StandardClick(TObject *Sender);
void __fastcall ListBox1Click(TObject *Sender);
void __fastcall FontAttrChanged(TObject *Sender);
void __fastcall FontAttrMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall ColorField1Change(TObject *Sender);
void __fastcall PageControl1Change(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall Button2Click(TObject *Sender);
void __fastcall Button3Click(TObject *Sender);
void __fastcall Button4Click(TObject *Sender);
void __fastcall Standard2Click(TObject *Sender);
void __fastcall StandardBut2Click(TObject *Sender);
void __fastcall SynEdit1SpecialLineColors(TObject *Sender,
int Line, bool &Special, TColor &FG, TColor &BG);
private: // Anwender-Deklarationen
TSynHighlighterAttributes *ActualAttr;
bool AttrReset;
TSynAVRCSyn *Highlighter;
TTreeView *treeset;
TMemo *memoset;
int __fastcall StyleToInt (TFontStyles fst);
TFontStyles __fastcall IntToStyle (int i);
TSynAVRCSyn *SynAVRCSyn1;
SpecialLines SpLine, *SpLineSrc;
//TColor SpLineFG, SpLineBG;
int SpLineSel;
public: // Anwender-Deklarationen
__fastcall TEnvOptions(TComponent* Owner);
int __fastcall ShowModal (void);
void __fastcall AssignSettings (TSynAVRCSyn *hlgt, TTreeView *tv,
TMemo *mem, SpecialLines *spl);
void __fastcall LoadSettings (TIniFile *settings);
void __fastcall SaveSettings (TIniFile *settings);
bool ParamProp, LineNumbers;
};
//---------------------------------------------------------------------------
extern PACKAGE TEnvOptions *EnvOptions;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -