📄 optionsdlg.h
字号:
//---------------------------------------------------------------------------
#ifndef OptionsDlgH
#define OptionsDlgH
//---------------------------------------------------------------------------
#include <Inifiles.hpp>
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
#define OUTP_ASM 1
#define OUTP_OBJ 2
//---------------------------------------------------------------------------
class TOptDlg : public TForm
{
__published: // Von der IDE verwaltete Komponenten
TPageControl *PageControl1;
TTabSheet *TabSheet1;
TTabSheet *TabSheet2;
TTabSheet *TabSheet3;
TComboBox *OptimBox;
TEdit *AddComp;
TLabel *CompLabel1;
TLabel *Label1;
TEdit *AddLink;
TLabel *Label2;
TCheckBox *PartWarn;
TCheckBox *UnusWarn;
TCheckBox *ImplWarn;
TCheckBox *BracWarn;
TCheckBox *ParWarn;
TCheckBox *NoWarn;
TCheckBox *ProtWarn;
TComboBox *MCUBox;
TCheckBox *TinyStack;
TCheckBox *GenList;
TRadioGroup *FormatGroup;
TCheckBox *GenMap;
TEdit *OutName;
TCheckBox *CRef;
TRadioGroup *DbgGroup;
TCheckBox *GenEEPROM;
TLabel *Label3;
TCheckBox *MathBox;
TBitBtn *OkButton;
TBitBtn *Cancel;
TRadioGroup *prntGroup;
TRadioGroup *scnGroup;
TEdit *DataSection;
TCheckBox *DatSecBox;
TCheckBox *HeapStartBox;
TEdit *HeapStartEd;
TCheckBox *HeapEndBox;
TEdit *HeapEndEd;
TCheckBox *SaveTempBox;
TTabSheet *TabSheet4;
TRadioGroup *StdGroup;
TCheckBox *NoImpWarn;
TCheckBox *CharSubsWarn;
TCheckBox *PedaWarn;
TCheckBox *ComWarn;
TCheckBox *FormWarn;
TCheckBox *RetTypWarn;
TCheckBox *SwitchWarn;
TCheckBox *SwiDefWarn;
TCheckBox *UninitWarn;
TCheckBox *PragWarn;
TCheckBox *AllWarn;
TCheckBox *SysHeadWarn;
TCheckBox *UndefWarn;
TCheckBox *EndifWarn;
TCheckBox *UnreaWarn;
TCheckBox *NestWarn;
TCheckBox *InlineWarn;
TCheckBox *ExtLst;
TCheckBox *SymTab;
TCheckBox *TexSecBox;
TEdit *TextSection;
TCheckBox *BssSecBox;
TEdit *BssSection;
TBitBtn *StdButton;
void __fastcall OkButtonClick(TObject *Sender);
void __fastcall CancelClick(TObject *Sender);
void __fastcall HexKeyPress(TObject *Sender, char &Key);
void __fastcall DatSecBoxClick(TObject *Sender);
void __fastcall HeapStartBoxClick(TObject *Sender);
void __fastcall HeapEndBoxClick(TObject *Sender);
void __fastcall PartWarnClick(TObject *Sender);
void __fastcall GenMapClick(TObject *Sender);
void __fastcall AllWarnClick(TObject *Sender);
void __fastcall NoWarnClick(TObject *Sender);
void __fastcall TexSecBoxClick(TObject *Sender);
void __fastcall BssSecBoxClick(TObject *Sender);
void __fastcall StdButtonClick(TObject *Sender);
private:
void __fastcall OptToControl (void);
void __fastcall ControlToOpt (void);
int __fastcall HexToInt (AnsiString hex);
void __fastcall PartBoxEnable (bool e);
void __fastcall AllBoxEnable (bool e);
void __fastcall NoBoxEnable (bool e);
public: // Anwender-Deklarationen
__fastcall TOptDlg(TComponent* Owner);
void __fastcall ShowWindow (void);
//bool addmathlib;
AnsiString OutputName; //, OutputFormat;
//AnsiString MCUType;
//int printfvers, scanfvers;
bool RelocText, RelocData, RelocBss, DefHeapStart, DefHeapEnd;
int TextStart, DataStart, BssStart, HeapStart, HeapEnd;
bool hasChanged;
void __fastcall SaveSettings (TIniFile *prj);
void __fastcall LoadSettings (TIniFile *prj);
void __fastcall SetOutputName (AnsiString name);
AnsiString __fastcall GetCompilerOptions (AnsiString fname, int out);
AnsiString __fastcall GetLinkerOptions (TStringList *flist);
AnsiString __fastcall GetObjcopyOptions (AnsiString *out, int t);
AnsiString __fastcall ChangeExt (AnsiString Source, AnsiString ext);
struct { AnsiString AddComp, AddLink, MCUType, OutputFormat;
bool GenList, GenMap, CRef, TinyStack, GenEEPROM, MathBox,
SaveTempBox, PedaWarn, NoImpWarn, CharSubsWarn, ComWarn,
FormWarn, ImplWarn, BracWarn, ParWarn, RetTypWarn, SwitchWarn,
SwiDefWarn, UnusWarn, UninitWarn, PragWarn, SysHeadWarn,
UndefWarn, EndifWarn, ProtWarn, NestWarn, InlineWarn,
UnreaWarn, AllWarn, PartWarn, NoWarn, ExtLst, SymTab;
int OptimBox, DbgGroup, prntGroup, scnGroup, StdGroup; } options;
};
//---------------------------------------------------------------------------
extern PACKAGE TOptDlg *OptDlg;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -