-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMy_Random.h
More file actions
74 lines (56 loc) · 1.69 KB
/
My_Random.h
File metadata and controls
74 lines (56 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//Name: My_Random.h
//Purpose: define My_random class
//Author: 123789456ye
#ifndef _My_Random_H_
#define _My_Random_H_
#include "wx/wx.h"
#include "wx/statline.h"
enum
{
ID_My_Random = 10001,
ID_Ban = 10002,
ID_Reset = 10003,
ID_Name = 10004,
ID_Number = 10005,
ID_Generate = 10006
};
//class My_Random Declraration
class My_Random : public wxDialog
{
DECLARE_CLASS(My_Random);
DECLARE_EVENT_TABLE()
public:
My_Random();
My_Random(wxWindow* parent,
wxWindowID id = ID_My_Random,
const wxString& caption = wxT("Random number Generator"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
void Init();
void Init_List();
bool Create(wxWindow* parent,
wxWindowID id = ID_My_Random,
const wxString& caption = wxT("Random number Generator"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
void CreateControls();
void SetDialogValidators();
void SetDialogHelp();
void OnCheckUpdate(wxUpdateUIEvent& event);
void OnGenerateClick(wxCommandEvent& event);
void OnResetClick(wxCommandEvent& event);
void OnHelpClick(wxCommandEvent& event);
void Load_List(wxCommandEvent& event);
void SetNumber(const int& number) { Ban_Number = number; }
int Get_Ban_Number() const { return Ban_Number; }
void Set_Check(bool check) { Ban_Check = check; }
bool Get_Check(bool check) const { return Ban_Check; }
bool TransferDataToWindow();
bool TransferDataFromWindow();
int Ban_Number;
bool Ban_Check;
wxString Name, namelist[105];
};
#endif