📄 uconditionquery.h
字号:
//---------------------------------------------------------------------------
#ifndef UConditionQueryH
#define UConditionQueryH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include "BooleanExp.h"
#include <db.hpp>
//---------------------------------------------------------------------------
class TConditionQuery : public TForm
{
__published: // IDE-managed Components
TListBox *ListBox1;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TComboBox *ComboBox1;
TComboBox *ComboBox2;
TComboBox *ComboBox3;
TRadioGroup *RadioGroup1;
TBitBtn *BitBtn_AddCondition;
TBitBtn *BitBtn_OK;
TBitBtn *BitBtn_Cancel;
void __fastcall FormShow(TObject *Sender);
void __fastcall ComboBox3DropDown(TObject *Sender);
void __fastcall BitBtn_CancelClick(TObject *Sender);
void __fastcall BitBtn_AddConditionClick(TObject *Sender);
void __fastcall BitBtn_OKClick(TObject *Sender);
private:
BooleanExp* Factor(int& index,int size);
BooleanExp* Expr(int& index,int size);
BooleanExp* Term(int& index,int size);
// User declarations
public: // User declarations
__fastcall TConditionQuery(TComponent* Owner,TListView * ref);
__fastcall TConditionQuery(TComponent* Owner,TDataSet* ref);
void __fastcall ParseFields();
TListView* refView;
BooleanExp* exp;
int m_iType;
TDataSet *m_DataSet;
std::vector<AnsiString> vRelation;
std::vector<AnsiString> vCondition;
AnsiString m_sOriginFilter;
TStringList *m_slFieldLabels;
TStringList *m_slFieldNames;
int m_VFieldCount;
};
//---------------------------------------------------------------------------
extern PACKAGE TConditionQuery *ConditionQuery;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -