📄 thedialog.h
字号:
};
class Trash:public Dialog {
public:
Trash(tag_DlgObj *par, DlgInfo * desc, RECT rec);
~Trash();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
};
class Config:public Dialog {
public:
Config(tag_DlgObj *par, DlgInfo * desc, RECT rec);
~Config();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
};
class RadioButton:public Dialog {
public:
RadioButton(tag_DlgObj *par, DlgInfo * desc, RECT rec, char *text);
~RadioButton();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
void SetColor(int id, DWORD color);
private:
char *Text;
};
class Text:public Dialog {
public:
Text(tag_DlgObj *par, DlgInfo * desc, RECT rec, char *text);
~Text();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
void SetColor(int id, DWORD color);
private:
char *txt;
};
class InputText:public Dialog {
public:
EditText *Text;
InputText(tag_DlgObj *par, DlgInfo * desc, RECT rec, char *text);
~InputText();
virtual bool Command(int cmd, void *tmpl, anyOutput *o);
virtual void DoPlot(anyOutput *o);
virtual bool Select(int x, int y, anyOutput *o);
bool GetValue(int id, double *val);
bool GetInt(int id, int *val);
bool GetText(int id, char *txt);
virtual void MBtrack(MouseEvent *mev, anyOutput *o);
virtual void Activate(int id, bool active);
private:
anyOutput *Disp;
};
class RangeInput:public InputText {
public:
RangeInput(tag_DlgObj *par, DlgInfo * desc, RECT rec, char *text);
~RangeInput();
bool Command(int cmd, void *tmpl, anyOutput *o);
bool Select(int x, int y, anyOutput *o);
void Activate(int id, bool active);
private:
DataObj *data;
};
class InputValue:public InputText {
public:
InputValue(tag_DlgObj *par, DlgInfo * desc, RECT rec, double *value);
~InputValue();
};
class IncDecValue:public InputText {
public:
IncDecValue(tag_DlgObj *par, DlgInfo * desc, RECT rec, double *value);
~IncDecValue();
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
ArrowButton *butts[2];
};
class TxtHSP:public Dialog {
public:
TxtHSP(tag_DlgObj *par, DlgInfo *desc, RECT rec, int *align);
~TxtHSP();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
bool GetInt(int id, int *val);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
TextDEF txt;
RadioButton *butts[9];
DlgInfo *d2;
};
class SlideRect:public Dialog{
public:
int sLine;
SlideRect(tag_DlgObj *par, DlgInfo *desc, RECT rec, bool isVert);
~SlideRect();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
bool GetValue(int id, double *val);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
int dx, dy, w, h;
bool bV, puSel, pdSel;
RECT buttrc, puRC, pdRC;
};
class ScrollBar:public Dialog{
public:
int sLine, sPage;
ScrollBar(tag_DlgObj *par, DlgInfo *desc, RECT rec, bool isVert);
~ScrollBar();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
bool GetValue(int id, double *val);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
ArrowButton *butts[3];
SlideRect *slrc;
};
class Icon:public Dialog {
public:
Icon(tag_DlgObj *par, DlgInfo * desc, RECT rec, int *ico);
void DoPlot(anyOutput *o);
private:
int icon;
};
class Group:public Dialog {
public:
Group(tag_DlgObj *par, DlgInfo * desc, RECT rec);
~Group();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
void MBtrack(MouseEvent *mev, anyOutput *o);
InputText *TextFocus;
Dialog **Children;
int numChildren;
};
class GroupBox:public Group {
public:
GroupBox(tag_DlgObj *par, DlgInfo * desc, RECT rec, char *txt);
~GroupBox();
void DoPlot(anyOutput *o);
private:
char *Text;
};
class TabSheet:public Group {
public:
TabSheet(tag_DlgObj *par, DlgInfo * desc, RECT rec, TabSHEET *sh);
~TabSheet();
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
private:
RECT rctab;
char *Text;
};
class ODbutton:public Dialog {
public:
ODbutton(tag_DlgObj *par, DlgInfo *des, RECT rec, void*proc);
~ODbutton();
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
void (*ODexec)(int cmd, void *par, RECT *rec, anyOutput *o,
void *data, int id);
};
class Listbox:public Dialog {
public:
Listbox(tag_DlgObj *par, DlgInfo *des, RECT rec, char **list);
~Listbox();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
bool GetInt(int id, int *val);
bool GetText(int id, char *txt);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
ScrollBar *sb;
anyOutput *bmp;
char **strings;
double spos;
int ns, bmh, startY, cl;
bool CreateBitMap(anyOutput *tmpl);
};
class Treeview:public Dialog {
public:
Treeview(tag_DlgObj *par, DlgInfo *des, RECT rec, GraphObj *g);
~Treeview();
bool Command(int cmd, void *tmpl, anyOutput *o);
void DoPlot(anyOutput *o);
bool Select(int x, int y, anyOutput *o);
bool GetInt(int id, int *val);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
ScrollBar *sb;
anyOutput *bmp;
double spos;
int ns, bmh, bmw, startY, cl;
GraphObj *go;
ObjTree *ot;
};
class LinePat:public Dialog {
public:
LinePat(tag_DlgObj *par, DlgInfo *desc, RECT rec, LineDEF *Line);
void DoPlot(anyOutput *o);
void MBtrack(MouseEvent *mev, anyOutput *o);
private:
bool bDraw;
DWORD *pPattern;
};
//prototypes ODbutton.cpp
void OD_DrawOrder(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
int ExecDrawOrderButt(GraphObj *parent, GraphObj *obj, int id);
void OD_LineStyleTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_ErrBarTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_WhiskerTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_PolarTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_PieTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_AxisDesc3D(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_BreakTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_PlotTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_AxisTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_AxisTempl3D(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
void OD_NewAxisTempl(int cmd, void *par, RECT *rec, anyOutput *o, void *data, int id);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -