00001
00002
00003
00004
00005
00006
00007 #ifndef GROUPDLG_H
00008 #define GROUPDLG_H
00009
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013
00014
00017
00018
00022
00023 #include "wxwin.h"
00024 class GDSMainWindow;
00025 class Setup;
00026 class group;
00027
00028 class GroupDialog: public wxDialog
00029 {
00030 public:
00031
00032
00033 GroupDialog(GDSMainWindow* parent,long style = (wxTHICK_FRAME | wxCAPTION));
00034
00035
00036 ~GroupDialog();
00037
00038
00039 char* Get_Group_A(char* group_str);
00040
00041
00042 char* Get_Group_B(char* group_str);
00043
00044
00045 char* Get_Destination(char* group_str);
00046
00047
00048 void CmAdd_A();
00049
00050
00051 void CmAdd_B();
00052
00053
00054 void CmAdd_D();
00055
00056
00057 void CmRemove_A();
00058
00059
00060 void CmRemove_B();
00061
00062
00063 void CmRemove_D();
00064
00065
00066 void CmClear_A();
00067
00068
00069 void CmClear_B();
00070
00071
00072 void CmOk();
00073
00074
00075 void CmCancel();
00076
00077
00078 void SetupWindow(Setup* setup, group* old_A, group* old_B, int old_D,bool old_add);
00079
00080
00081 void OnCloseWindow(wxCloseEvent& event);
00082
00083 protected:
00084
00085
00086 bool In_A(int);
00087
00088
00089 bool In_B(int);
00090
00091
00092 wxPanel* _panel;
00093
00094
00095 wxButton* _ok;
00096
00097
00098 wxButton* _cancel;
00099
00100
00101 wxButton* _adda;
00102
00103
00104 wxButton* _rema;
00105
00106
00107 wxButton* _clra;
00108
00109
00110 wxButton* _addb;
00111
00112
00113 wxButton* _remb;
00114
00115
00116 wxButton* _clrb;
00117
00118
00119 wxButton* _addd;
00120
00121
00122 wxButton* _remd;
00123
00124
00125 wxStaticBox* _gb1;
00126
00127
00128 wxStaticBox* _gb2;
00129
00130
00131 wxStaticBox* _gb3;
00132
00133
00134 wxStaticBox* _gb4;
00135
00136
00137 wxCheckBox* _onlyselect_A;
00138
00139
00140 wxCheckBox* _onlyselect_B;
00141
00142
00143 wxListBox* _listbox_main;
00144
00145
00146 wxListBox* _listbox_a;
00147
00148
00149 wxListBox* _listbox_b;
00150
00151
00152 wxTextCtrl* _destination;
00153
00154
00155 wxCheckBox* m_add_to_destination;
00156
00157
00158 Setup* _setup;
00159
00160
00161 GDSMainWindow* _parent;
00162
00163
00164 group* group_A;
00165
00166
00167 group* group_B;
00168
00169
00170 int _destinationnr;
00171
00172
00173 DECLARE_EVENT_TABLE()
00174
00175 };
00176
00177 #endif
00178
groupdlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . --