Main Page   Class Hierarchy   Compound List   File List   Compound Members  

groupdlg.h

00001 
00002 
00003 /*
00004  * Definition of class for dialog to specify the groupsettings.
00005 */
00006 
00007 #ifndef GROUPDLG_H
00008 #define GROUPDLG_H
00009 
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013 
00014 
00017 
00018 //:defenition
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         // Constructor.
00033                 GroupDialog(GDSMainWindow* parent,long style = (wxTHICK_FRAME | wxCAPTION));
00034 
00035       // Destructor.
00036                 ~GroupDialog();
00037 
00038                 // Return string group A.
00039                 char*             Get_Group_A(char* group_str);
00040 
00041       // Return string group B.
00042                 char*             Get_Group_B(char* group_str);
00043 
00044       // Return string destination.
00045                 char*             Get_Destination(char* group_str);
00046 
00047       // add item to group a.
00048                 void                                    CmAdd_A();
00049 
00050       // add item to group b.
00051                 void                          CmAdd_B();
00052 
00053       // add item to destination.
00054                 void                          CmAdd_D();
00055 
00056       // remove item from a.
00057                 void                          CmRemove_A();
00058 
00059       // remove item from b.
00060                 void                          CmRemove_B();
00061 
00062       // remove item from destination.
00063                 void                          CmRemove_D();
00064 
00065       // remove all items from a.
00066                 void                          CmClear_A();
00067 
00068       // remove all items from b.
00069                 void                          CmClear_B();
00070 
00071       // Close window if OK-button is pressed.
00072                 void                          CmOk();
00073 
00074       // Close window if CANCEL-button is pressed.
00075                 void                                    CmCancel();
00076 
00077                 // for the dialog initialization
00078                 void                                    SetupWindow(Setup* setup, group* old_A, group* old_B, int old_D,bool old_add);
00079 
00080       // Close window if EXIT-button is pressed.
00081       void                                 OnCloseWindow(wxCloseEvent& event);
00082 
00083         protected:
00084 
00085         // is the layer in a.
00086                 bool                  In_A(int);
00087 
00088       // is the layer in b.
00089                 bool                  In_B(int);
00090 
00091       // wxWindows class.
00092                 wxPanel*                                _panel;
00093 
00094       // wxWindows class.
00095                 wxButton*                       _ok;
00096 
00097       // wxWindows class.
00098                 wxButton*                       _cancel;
00099 
00100       // wxWindows class.
00101                 wxButton*                       _adda;
00102 
00103       // wxWindows class.
00104                 wxButton*                       _rema;
00105 
00106       // wxWindows class.
00107                 wxButton*                       _clra;
00108 
00109       // wxWindows class.
00110                 wxButton*                       _addb;
00111 
00112       // wxWindows class.
00113                 wxButton*                       _remb;
00114 
00115       // wxWindows class.
00116                 wxButton*                       _clrb;
00117 
00118       // wxWindows class.
00119                 wxButton*                       _addd;
00120 
00121       // wxWindows class.
00122                 wxButton*                       _remd;
00123 
00124       // wxWindows class.
00125                 wxStaticBox*                    _gb1;
00126 
00127       // wxWindows class.
00128                 wxStaticBox*                    _gb2;
00129 
00130       // wxWindows class.
00131                 wxStaticBox*                    _gb3;
00132 
00133       // wxWindows class.
00134                 wxStaticBox*                    _gb4;
00135 
00136       // wxWindows class.
00137                 wxCheckBox*                     _onlyselect_A;
00138 
00139       // wxWindows class.
00140                 wxCheckBox*                     _onlyselect_B;
00141 
00142       // wxWindows class, the main listbox control.
00143                 wxListBox*                      _listbox_main;
00144 
00145       // wxWindows class, the a listbox control.
00146                 wxListBox*                      _listbox_a;
00147 
00148       // wxWindows class, the b listbox control.
00149                 wxListBox*                      _listbox_b;
00150 
00151       // wxWindows class, the destination edit control.
00152                 wxTextCtrl*                             _destination;
00153 
00154       // wxWindows class.
00155                 wxCheckBox*                     m_add_to_destination;
00156 
00157       // Pointer to class setup.
00158                 Setup*                          _setup;
00159 
00160       // Pointer to mainwindow.
00161                 GDSMainWindow*          _parent;
00162 
00163       // group a array (dynamic)
00164                 group*                          group_A;
00165 
00166       // group b array (dynamic)
00167                 group*                          group_B;
00168 
00169       // the destination layer
00170                 int                                     _destinationnr;
00171 
00172       // Declare used events.
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 -- -- . -- Main Page