Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

win_dialogs_2.h

Go to the documentation of this file.
00001 
00010 #if !defined(WIN_DIALOGS_2_H)
00011 #define WIN_DIALOGS_2_H
00012 
00013 #include "resource.h"
00014 #include "harlemwin.idm"
00015 #include "listctrlex.h"
00016 #include "hastl.h"
00017 #include "hastring.h"
00018 
00019 class HaQCMod;
00020 class ETCoupl;
00021 class HaMolSet;
00022 class HaMolView;
00023 class ChemGroup;
00024 class ElectrostMod;
00025 class Object3D;
00026 class HarlemApp;
00027 class HaAtom;
00028 class HaMolecule;
00029 class AtomList;
00030 
00031 class CModelessDlg : public CDialog
00032 {
00033 // Construction
00034 public:
00035         CModelessDlg();   // standard constructor
00036 
00037 // Dialog Data
00038         //{{AFX_DATA(CModelessDlg)
00039                 // NOTE: the ClassWizard will add data members here
00040         //}}AFX_DATA
00041 
00042 
00043 // Overrides
00044         // ClassWizard generated virtual function overrides
00045         //{{AFX_VIRTUAL(CModelessDlg)
00046         protected:
00047         virtual void DoDataExchange(CDataExchange* pDX);
00048         virtual void PostNcDestroy();
00049         //}}AFX_VIRTUAL
00050 
00051         virtual void OnOK(void);
00052         virtual void OnCancel(void);
00053         virtual void OnClose(void);
00054 
00055 // Implementation
00056 protected:
00057         // Generated message map functions
00058         //{{AFX_MSG(CModelessDlg)
00059                 // NOTE: the ClassWizard will add member functions here
00060         //}}AFX_MSG
00061         DECLARE_MESSAGE_MAP()
00062 };
00063 
00064 
00066 // Select Local Orbitals  dialog
00067 
00068 
00069 class SelectLocOrbDlg : public CModelessDlg
00070 {
00071 // Construction
00072 public:
00073         SelectLocOrbDlg(HaQCMod* new_pqc_mod, CWnd* pParent = NULL);   // standard constructor
00074         virtual ~SelectLocOrbDlg();
00075 
00076         void SetExtList(CDialog* new_phost_dialog, UINT new_ext_list_id);
00077 
00078 // Dialog Data
00079         //{{AFX_DATA(SelectLocOrbDlg)
00080                 // NOTE: the ClassWizard will add data members here
00081         //}}AFX_DATA
00082 
00083         static BOOL dlg_open;
00084 
00085 // Overrides
00086         // ClassWizard generated virtual function overrides
00087         //{{AFX_VIRTUAL(SelectLocOrbDlg)
00088         protected:
00089         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00090         //}}AFX_VIRTUAL
00091 
00092 // Implementation
00093 
00094         BOOL OnInitDialog();
00095 protected:
00096         HaQCMod* pqc_mod;
00097         CDialog* phost_dialog;
00098         UINT ext_list_id;
00099 
00100         void DDX_lorb_list(CDataExchange* pDX, int id);
00101 
00102         // Generated message map functions
00103         //{{AFX_MSG(SelectLocOrbDlg)
00104         //}}AFX_MSG
00105         afx_msg void OnExtractSel();
00106         DECLARE_MESSAGE_MAP()
00107 };
00108 
00109 class MolViewParDlg : public CModelessDlg
00110 {
00111 // Construction
00112 public:
00113         MolViewParDlg(HaMolView* new_pview, CWnd* pParent = NULL);   // standard constructor
00114         virtual ~MolViewParDlg();
00115 
00116 // Dialog Data
00117         //{{AFX_DATA(MolViewParDlg)
00118                 // NOTE: the ClassWizard will add data members here
00119         //}}AFX_DATA
00120  
00121         static BOOL dlg_open;
00122 
00123 // Overrides
00124         // ClassWizard generated virtual function overrides
00125         //{{AFX_VIRTUAL(MolViewParDlg)
00126         protected:
00127         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00128         //}}AFX_VIRTUAL
00129 
00130 // Implementation
00131 
00132         BOOL OnInitDialog();
00133 protected:
00134         HaMolView* pview;
00135 
00136         // Generated message map functions
00137         //{{AFX_MSG(MolViewParDlg)
00138         afx_msg void OnResetViewRot();
00139         //}}AFX_MSG
00140         afx_msg void OnSetControlPar();
00141         afx_msg void OnSetViewPar();
00142         DECLARE_MESSAGE_MAP()
00143 };
00144 
00145 
00146 class Object3DDlg : public CModelessDlg
00147 {
00148 // Construction
00149 public:
00150         Object3DDlg(HaMolView* new_pview, CWnd* pParent = NULL);   // standard constructor
00151         virtual ~Object3DDlg();
00152 
00153 // Dialog Data
00154         //{{AFX_DATA(Object3DDlg)
00155         enum { IDD = IDD_OBJECT3D };
00156         //}}AFX_DATA
00157 
00158         static BOOL dlg_open;
00159 
00160 // Overrides
00161         // ClassWizard generated virtual function overrides
00162         //{{AFX_VIRTUAL(Object3DDlg)
00163         protected:
00164         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00165         //}}AFX_VIRTUAL
00166 
00167 // Implementation
00168 
00169         BOOL OnInitDialog();
00170 protected:
00171         HaMolView* pview;
00172         vector<Object3D*> obj_vec;
00173 
00174         void DDX_obj_list(CDataExchange* pDX);
00175 
00176         // Generated message map functions
00177         //{{AFX_MSG(Object3DDlg)
00178         //}}AFX_MSG
00179         afx_msg void OnDelete();
00180         afx_msg void OnDisplay();
00181         afx_msg void OnUnDisplay();
00182         afx_msg void OnUpdate();
00183         afx_msg void OnClose();
00184         DECLARE_MESSAGE_MAP()
00185 };
00186 
00187 
00188 
00189 class MolSetParDlg : public CModelessDlg
00190 {
00191 // Construction
00192 public:
00193         MolSetParDlg(HaMolSet* new_pmset, CWnd* pParent = NULL);   // standard constructor
00194         virtual ~MolSetParDlg();
00195 
00196 // Dialog Data
00197         //{{AFX_DATA(MolSetParDlg)
00198         enum { IDD = IDD_MOLSET_PAR };
00199         //}}AFX_DATA
00200 
00201         static BOOL dlg_open;
00202 
00203 // Overrides
00204         // ClassWizard generated virtual function overrides
00205         //{{AFX_VIRTUAL(MolSetParDlg)
00206         protected:
00207         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00208         //}}AFX_VIRTUAL
00209 
00210 // Implementation
00211 
00212         BOOL OnInitDialog();
00213 protected:
00214         HaMolSet* pmset;
00215 
00216         // Generated message map functions
00217         //{{AFX_MSG(MolSetParDlg)
00218         afx_msg void OnMultMol();
00219         //}}AFX_MSG
00220         afx_msg void OnSetControlPar();
00221         afx_msg void OnSetMolPar();
00222         DECLARE_MESSAGE_MAP()
00223 };
00224 
00225 class CompAccountsDlg : public CModelessDlg
00226 {
00227 // Construction
00228 public:
00229         CompAccountsDlg(CWnd* pParent = NULL);   // standard constructor
00230     virtual ~CompAccountsDlg();
00231 
00232 // Dialog Data
00233         //{{AFX_DATA(CompAccountsDlg)
00234         enum { IDD = IDD_COMP_ACCOUNTS};
00235         //}}AFX_DATA
00236 
00237         static BOOL dlg_open;
00238 
00239 // Overrides
00240         // ClassWizard generated virtual function overrides
00241         //{{AFX_VIRTUAL(CompAccountsDlg)
00242         protected:
00243         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00244         //}}AFX_VIRTUAL
00245 
00246 // Implementation
00247 
00248         BOOL OnInitDialog();
00249 protected:
00250 
00251         // Generated message map functions
00252         //{{AFX_MSG(CompAccountsDlg)
00253         afx_msg void OnAccShowLoad();
00254         //}}AFX_MSG
00255         afx_msg void OnClose();
00256         DECLARE_MESSAGE_MAP()
00257 };
00258 
00259 class RedirectIODlg : public CModelessDlg
00260 {
00261 // Construction
00262 public:
00263         RedirectIODlg(CWnd* pParent = NULL);   // standard constructor
00264     virtual ~RedirectIODlg();
00265 
00266 // Dialog Data
00267         //{{AFX_DATA(RedirectIODlg)
00268         enum { IDD = IDD_REDIRECT_IO};
00269         //}}AFX_DATA
00270 
00271         static BOOL dlg_open;
00272 
00273 // Overrides
00274         // ClassWizard generated virtual function overrides
00275         //{{AFX_VIRTUAL(RedirectIODlg)
00276         protected:
00277         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00278         //}}AFX_VIRTUAL
00279 
00280 // Implementation
00281 
00282         BOOL OnInitDialog();
00283 protected:
00284 
00285         // Generated message map functions
00286         //{{AFX_MSG(RedirectIODlg)
00287         afx_msg void OnStdoutFile();
00288         afx_msg void OnStdoutConsole();
00289         //}}AFX_MSG
00290         afx_msg void OnClose();
00291         DECLARE_MESSAGE_MAP()
00292 };
00293 
00294 
00295 
00296 class EditGeomDlg : public CModelessDlg
00297 {
00298 // Construction
00299 public:
00300         EditGeomDlg(HaMolSet* new_pmset, CWnd* pParent = NULL);   // standard constructor
00301         virtual ~EditGeomDlg();
00302 
00303 // Dialog Data
00304         //{{AFX_DATA(EditGeomDlg)
00305         enum { IDD = IDD_EDIT_GEOM };
00306         //}}AFX_DATA
00307 
00308         static BOOL dlg_open;
00309         static EditGeomDlg* active_dlg_ptr;
00310 
00311                 int int_focus; 
00312 
00313 // Overrides
00314         // ClassWizard generated virtual function overrides
00315         //{{AFX_VIRTUAL(EditGeomDlg)
00316         protected:
00317         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00318         //}}AFX_VIRTUAL
00319 
00320 // Implementation
00321 
00322         BOOL OnInitDialog();
00323 protected:
00324         HaMolSet* pmset;
00325 
00326         HaAtom* aptr1;
00327         HaAtom* aptr2;
00328         HaAtom* aptr3;
00329         HaAtom* aptr4;
00330 
00331         void GetAtoms();
00332 
00333         // Generated message map functions
00334         //{{AFX_MSG(EditGeomDlg)
00335         afx_msg void OnCalcGeom();
00336         afx_msg void OnSetGeom();
00337         afx_msg void OnIncremTors();
00338         afx_msg void OnDelBond();
00339         afx_msg void OnCreateBond();
00340         afx_msg void OnDelAtom();
00341         afx_msg void OnMergeMol();
00342         afx_msg void OnAttachMol();
00343         //}}AFX_MSG
00344         afx_msg void OnCalcTorsion();
00345         afx_msg void OnChangeTorsion();
00346         afx_msg void OnAtomSelect();
00347         
00348         afx_msg void SetIntFocusAt1();
00349         afx_msg void SetIntFocusAt2();
00350         afx_msg void SetIntFocusAt3();
00351         afx_msg void SetIntFocusAt4();
00352 
00353         DECLARE_MESSAGE_MAP()
00354 };
00355 
00356 
00358 // Class to set Parameters of Quantum Chemical Calculations
00359 
00360 class QChemParDlg : public CModelessDlg
00361 {
00362 // Construction
00363 public:
00364         QChemParDlg(HaQCMod* new_phost_qcmod, CWnd* pParent = NULL);   // standard constructor
00365         virtual ~QChemParDlg();
00366 
00367 // Dialog Data
00368         //{{AFX_DATA(QChemParDlg)
00369         enum { IDD = IDD_QCHEM_PARAM };
00370         //}}AFX_DATA
00371 
00372         static BOOL dlg_open;          
00373 
00374 // Overrides
00375         // ClassWizard generated virtual function overrides
00376         //{{AFX_VIRTUAL(QChemParDlg)
00377         protected:
00378         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00379         //}}AFX_VIRTUAL
00380 
00381 // Implementation
00382 
00383         BOOL OnInitDialog();
00384 
00385         void DDX_bas_name(CDataExchange* pDX );
00386     void DDX_active_orb(CDataExchange* pDX );
00387         void DDX_wave_fun_type(CDataExchange* pDX );
00388 
00389 protected:
00390         HaQCMod* phost_qcmod;
00391 
00392         // Generated message map functions
00393         //{{AFX_MSG(QChemParDlg)
00394         afx_msg void OnIpackTest1();
00395         afx_msg void OnIpackTest2();
00396         afx_msg void OnTestRandom();
00397         afx_msg void OnRunCndo();
00398         afx_msg void OnRunCndo2();
00399         afx_msg void OnStopCalc();
00400         afx_msg void OnChangeMethod();
00401         //}}AFX_MSG
00402         afx_msg void OnClose();
00403         afx_msg void OnSetPar();
00404         afx_msg void OnSaveInpFile();
00405         afx_msg void OnRunCalc();
00406         DECLARE_MESSAGE_MAP()
00407 };
00408 
00410 // Dialog to Analyse results of Quantum Chemical Calculations 
00411 
00412 class WaveFunAnalDlg : public CModelessDlg
00413 {
00414 // Construction
00415 public:
00416         WaveFunAnalDlg(HaQCMod* new_phost_qcmod, CWnd* pParent = NULL);   // standard constructor
00417         virtual ~WaveFunAnalDlg();
00418 
00419 // Dialog Data
00420         //{{AFX_DATA(WaveFunAnalDlg)
00421         enum { IDD = IDD_WAVEFUN_ANAL };
00422         //}}AFX_DATA
00423 
00424         static BOOL dlg_open;
00425 
00426 // Overrides
00427         // ClassWizard generated virtual function overrides
00428         //{{AFX_VIRTUAL(WaveFunAnalDlg)
00429         protected:
00430         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00431         //}}AFX_VIRTUAL
00432 
00433 // Implementation
00434 
00435         BOOL OnInitDialog();
00436 
00437         void DDX_MO_list(CDataExchange* pDX );
00438 
00439         int GetSelMOIdx(); 
00440 protected:
00441         HaQCMod* phost_qcmod;
00442 
00443         // Generated message map functions
00444         //{{AFX_MSG(WaveFunAnalDlg)
00445         afx_msg void OnMoveUp();
00446         afx_msg void OnMoveDown();
00447         //}}AFX_MSG
00448         afx_msg void OnClose();
00449         afx_msg void OnPlotMO();
00450         afx_msg void OnPrintMOCoef();
00451         afx_msg void OnMOrefresh();
00452         DECLARE_MESSAGE_MAP()
00453 
00454 };
00455 
00456 
00458 // Dialog to perform ET PATHWAYS calculations
00459 
00460 class PathwaysDlg : public CModelessDlg
00461 {
00462 // Construction
00463 public:
00464         PathwaysDlg(ETCoupl* new_etmod, CWnd* pParent = NULL);   // standard constructor
00465     virtual ~PathwaysDlg();
00466 
00467 // Dialog Data
00468         //{{AFX_DATA(PathwaysDlg)
00469                 // NOTE: the ClassWizard will add data members here
00470         //}}AFX_DATA
00471 
00472         static BOOL dlg_open;
00473 
00474 // Overrides
00475         // ClassWizard generated virtual function overrides
00476         //{{AFX_VIRTUAL(PathwaysDlg)
00477         protected:
00478         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00479         //}}AFX_VIRTUAL
00480 
00481 // Implementation
00482 
00483         BOOL OnInitDialog();
00484 
00485         double sel_thresh;
00486 protected:
00487         ETCoupl* etmod;
00488 
00489         // Generated message map functions
00490         //{{AFX_MSG(PathwaysDlg)
00491         //}}AFX_MSG
00492         afx_msg void OnClose();
00493         afx_msg void OnPathRun();
00494         afx_msg void OnCouplMap();
00495         afx_msg void OnBestPath();
00496         afx_msg void OnSelCoupled();
00497         afx_msg void OnDutton();
00498         DECLARE_MESSAGE_MAP()
00499 };
00500 
00501 class EditFragmDlg : public CModelessDlg
00502 {
00503 // Construction
00504 public:
00505         EditFragmDlg(HaMolSet* new_pmset, CWnd* pParent = NULL);   // standard constructor
00506         virtual ~EditFragmDlg();
00507 
00508 // Dialog Data
00509         //{{AFX_DATA(EditFragmDlg)
00510                 // NOTE: the ClassWizard will add data members here
00511         //}}AFX_DATA
00512 
00513         static BOOL dlg_open;
00514 
00515 // Overrides
00516         // ClassWizard generated virtual function overrides
00517         //{{AFX_VIRTUAL(EditFragmDlg)
00518         protected:
00519         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00520         //}}AFX_VIRTUAL
00521 
00522 // Implementation
00523 
00524         BOOL OnInitDialog();
00525 protected:
00526         HaMolSet* pmset;
00527 
00528         // Generated message map functions
00529         //{{AFX_MSG(EditFragmDlg)
00530         //}}AFX_MSG
00531         afx_msg void OnSaveFragm();
00532         afx_msg void OnCreateFragm();
00533         afx_msg void OnExit();
00534         DECLARE_MESSAGE_MAP()
00535 };
00536 
00537 class LoadScriptDlg : public CModelessDlg
00538 {
00539 // Construction
00540 public:
00541         LoadScriptDlg(CWnd* pParent = NULL);   // standard constructor
00542     virtual ~LoadScriptDlg();
00543 
00544 // Dialog Data
00545         //{{AFX_DATA(LoadScriptDlg)
00546         enum { IDD = IDD_LOAD_SCRIPT };
00547         //}}AFX_DATA
00548 
00549         static BOOL dlg_open;
00550 
00551 // Overrides
00552         // ClassWizard generated virtual function overrides
00553         //{{AFX_VIRTUAL(LoadScriptDlg)
00554         protected:
00555         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00556         //}}AFX_VIRTUAL
00557 
00558 // Implementation
00559 
00560         BOOL OnInitDialog();
00561 protected:
00562 
00563         // Generated message map functions
00564         //{{AFX_MSG(LoadScriptDlg)
00565         afx_msg void OnEditScript();
00566         //}}AFX_MSG
00567         afx_msg void OnExecuteScript();
00568         afx_msg void OnExecuteRasmolScript();
00569         afx_msg void OnScriptListUpdate();
00570         afx_msg void OnExit();
00571         DECLARE_MESSAGE_MAP()
00572 };
00573 
00575 // Custom Edit Control to Edit Scripts:
00576 //
00577 class CScriptEditCtrl: public CRichEditCtrl
00578 {
00579 public:
00580         CScriptEditCtrl();
00581         BOOL SubclassEdit(UINT nID, CWnd* pParent);
00582 
00583 protected:
00584         //{{AFX_MSG(CScriptEditCtrl)
00585         afx_msg void OnChar(UINT, UINT, UINT); // to intercept character enter
00586         afx_msg void OnKeyDown(UINT, UINT, UINT); // to intercept character enter
00587         afx_msg UINT OnGetDlgCode(); // To change the behavior to intersept ENTER message
00588         //}}AFX_MSG
00589 
00590         DECLARE_MESSAGE_MAP()
00591 };
00592 
00593 
00594 class EditScriptDlg : public CModelessDlg
00595 {
00596 // Construction
00597 public:
00598         EditScriptDlg(CWnd* pParent = NULL);   // standard constructor
00599     virtual ~EditScriptDlg();
00600 
00601 // Dialog Data
00602         //{{AFX_DATA(EditScriptDlg)
00603         enum { IDD = IDD_EDIT_SCRIPT };
00604         //}}AFX_DATA
00605 
00606         static BOOL dlg_open;
00607                 CScriptEditCtrl m_script_edt_ctrl;
00608 
00609 // Overrides
00610         // ClassWizard generated virtual function overrides
00611         //{{AFX_VIRTUAL(EditScriptDlg)
00612         protected:
00613         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00614         //}}AFX_VIRTUAL
00615 
00616 // Implementation
00617         BOOL OnInitDialog();
00618 protected:
00619 
00620         // Generated message map functions
00621         //{{AFX_MSG(EditScriptDlg)
00622         //}}AFX_MSG
00623         afx_msg void OnExecuteScript();
00624         afx_msg void OnExit();
00625         DECLARE_MESSAGE_MAP()
00626 };
00627 
00628 class ResDBDlg : public CModelessDlg
00629 {
00630 // Construction
00631 public:
00632         ResDBDlg(CWnd* pParent = NULL);   // standard constructor
00633     virtual ~ResDBDlg();
00634 
00635 // Dialog Data
00636         //{{AFX_DATA(ResDBDlg)
00637         enum { IDD = IDD_RES_DB };
00638         //}}AFX_DATA
00639 
00640         static BOOL dlg_open;
00641 
00642 // Overrides
00643         // ClassWizard generated virtual function overrides
00644         //{{AFX_VIRTUAL(ResDBDlg)
00645         protected:
00646         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00647         //}}AFX_VIRTUAL
00648 
00649 // Implementation
00650         BOOL OnInitDialog();
00651 protected:
00652 
00653         HaMolecule* sel_templ;
00654 
00655         // Generated message map functions
00656         //{{AFX_MSG(ResDBDlg)
00657         afx_msg void OnExit();
00658         afx_msg void OnUpdateTemplList();
00659         afx_msg void OnResDBLoad();
00660         //}}AFX_MSG
00661         afx_msg void OnChangeSelTempl();
00662         DECLARE_MESSAGE_MAP()
00663 };
00664 
00665 
00666 
00667 
00668 class ElectrostDlg : public CModelessDlg
00669 {
00670 // Construction
00671 public:
00672         ElectrostDlg(ElectrostMod* new_electrost_mod, CWnd* pParent = NULL);   // standard constructor
00673         virtual ~ElectrostDlg();
00674 
00675 // Dialog Data
00676         //{{AFX_DATA(ElectrostDlg)
00677         enum { IDD = IDD_CONTINUUM_ELECTR };
00678         //}}AFX_DATA
00679         
00680         static BOOL dlg_open;
00681 
00682 // Overrides
00683         // ClassWizard generated virtual function overrides
00684         //{{AFX_VIRTUAL(ElectrostDlg)
00685         protected:
00686         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00687         //}}AFX_VIRTUAL
00688 
00689 // Implementation
00690 
00691         BOOL OnInitDialog();
00692 protected:
00693         ElectrostMod* electrost_mod;
00694 
00695         // Generated message map functions
00696         //{{AFX_MSG(ElectrostDlg)
00697         afx_msg void OnColorSurfPot();
00698         afx_msg void OnElFieldLoad();
00699         afx_msg void OnElFieldSave();
00700         afx_msg void OnAvgPotDon();
00701         //}}AFX_MSG
00702         afx_msg void OnClose();
00703         afx_msg void OnSetParamMod();
00704         afx_msg void OnEditAtomParams();
00705         afx_msg void OnSaveInpFiles();
00706         afx_msg void OnETReorgEne();
00707         afx_msg void OnCalcRedoxPotShft();
00708         afx_msg void OnRun();
00709         afx_msg void OnCalcPotIsoLvl();
00710     afx_msg void OnCalcIndCharge();
00711     afx_msg void OnPlotIndCharge();
00712         afx_msg void OnCalcPotVdwDots();
00713 
00714         DECLARE_MESSAGE_MAP()
00715 };
00716 
00717 
00718 class AtomParamsDlg : public CModelessDlg
00719 {
00720 // Construction
00721 public:
00722         AtomParamsDlg(HaMolSet* new_pmset, CWnd* pParent = NULL);   // standard constructor
00723     virtual ~AtomParamsDlg();
00724 
00725 // Dialog Data
00726         //{{AFX_DATA(AtomParamsDlg)
00727         enum { IDD = IDD_ATOM_PARAMS };
00728         //}}AFX_DATA
00729 
00730         static BOOL     coord_edit_flag;
00731         static BOOL     element_edit_flag;
00732         static BOOL     charge_edit_flag;
00733         static BOOL     ff_symbol_edit_flag;
00734         static BOOL     mass_edit_flag;
00735         static BOOL     atname_edit_flag;
00736         static BOOL     radius_edit_flag;
00737         static BOOL     vdwrad_edit_flag;
00738         static BOOL     vdwene_edit_flag;
00739         static BOOL     temperature_edit_flag;
00740         static BOOL     hybridization_edit_flag;
00741         static BOOL     hb_status_edit_flag;
00742         static BOOL solv_access_area_flag;
00743        
00744         static int ResetEditFlags();
00745 
00746 // Column numbers of Atom Properties:
00747         int n_x_coord;
00748         int n_y_coord;
00749         int n_z_coord;
00750 
00751         int n_element;
00752         int n_charge;
00753         int n_ff_symbol;
00754         int n_mass;
00755         int n_atname;
00756         int n_radius;
00757         int n_vdwrad;
00758         int n_vdwene;
00759         int n_temp;
00760         int n_hybrid;
00761         int n_hb_status;
00762         int n_solv_access;
00763         
00764         static BOOL dlg_open;
00765 
00766 // Overrides
00767         // ClassWizard generated virtual function overrides
00768         //{{AFX_VIRTUAL(AtomParamsDlg)
00769         protected:
00770         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00771         //}}AFX_VIRTUAL
00772 
00773 // Implementation
00774 
00775         BOOL OnInitDialog();
00776 protected:
00777         HaMolSet* pmset;
00778         CListCtrlEx1 m_atom_lctrl;
00779 
00780         // Generated message map functions
00781         //{{AFX_MSG(AtomParamsDlg)
00782         afx_msg void OnChangeProp();
00783         afx_msg void OnEdtAtAmberCh();
00784         afx_msg void OnEdtAtHBondStatus();
00785         afx_msg void OnEdtAtAmberFFSymb();
00786         afx_msg void OnEdtAtElemMass();
00787         afx_msg void OnCopyToChmap();
00788         afx_msg void OnSetFromChmap();
00789         afx_msg void OnEditAtPhCh();
00790         afx_msg void OnMinDist();
00791         afx_msg void OnSetSpecRad();
00792         //}}AFX_MSG
00793         afx_msg void OnCalcDipole();
00794     afx_msg void OnSetVdwRad();
00795         afx_msg void OnSetParseRad();
00796         afx_msg void OnClose();
00797         afx_msg void OnSetStdCharges();
00798         afx_msg void OnSetZeroCharges();
00799         afx_msg void OnUpdateAtomList();
00800         afx_msg void OnEndLabelEdit(NMHDR* pnmhdr, LRESULT *pResult);
00801         DECLARE_MESSAGE_MAP()
00802 
00803         void SetColumns();
00804         void FillAtomList();
00805 };
00806 
00807 class SolvateDlg : public CModelessDlg
00808 {
00809 // Construction
00810 public:
00811         SolvateDlg(HaMolSet* new_pmset, CWnd* pParent = NULL);   // standard constructor
00812     virtual ~SolvateDlg();
00813 
00814 // Dialog Data
00815         //{{AFX_DATA(SolvateDlg)
00816         enum { IDD = IDD_SOLVATE };
00817         double  m_solv_buf;
00818         //}}AFX_DATA
00819         
00820         static BOOL dlg_open;
00821 
00822 // Overrides
00823         // ClassWizard generated virtual function overrides
00824         //{{AFX_VIRTUAL(SolvateDlg)
00825         protected:
00826         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00827         //}}AFX_VIRTUAL
00828 
00829 // Implementation
00830 
00831         BOOL OnInitDialog();
00832 protected:
00833         HaMolSet* pmset;
00834 
00835         // Generated message map functions
00836         //{{AFX_MSG(SolvateDlg)
00837         //}}AFX_MSG
00838         afx_msg void OnSolvMol();
00839         afx_msg void OnClose();
00840         DECLARE_MESSAGE_MAP()
00841 };
00842 
00843 class ResidueParamsDlg : public CModelessDlg
00844 {
00845 // Construction
00846 public:
00847         ResidueParamsDlg(HaMolSet* new_pmset, CWnd* pParent = NULL);   // standard constructor
00848     virtual ~ResidueParamsDlg();
00849 
00850 // Dialog Data
00851         //{{AFX_DATA(ResidueParamsDlg)
00852         enum { IDD = IDD_RESIDUE_PARAMS };
00853         //}}AFX_DATA
00854 
00855         static BOOL     res_name_flag;
00856         static BOOL     res_num_flag;
00857         static BOOL     res_name_modifier_flag;
00858         static BOOL     chain_name_flag;
00859         static BOOL     alt_states_flag;
00860         static BOOL     alt_states_pk_flag;
00861         static BOOL     alt_states_stdpk_flag;
00862         static BOOL     alt_states_inactive_flag;
00863        
00864         static int ResetEditFlags();
00865 
00866 // Column numbers of Residue Properties:
00867 
00868         int n_res_name;
00869         int n_res_name_modifier;
00870         int n_res_num;
00871         int n_chain_name;
00872         int n_alt_states;
00873         int n_alt_states_pk;
00874         int n_alt_states_stdpk;
00875         int n_alt_states_inactive;
00876         
00877         static BOOL dlg_open;
00878 
00879 // Overrides
00880         // ClassWizard generated virtual function overrides
00881         //{{AFX_VIRTUAL(ResidueParamsDlg)
00882         protected:
00883         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00884         //}}AFX_VIRTUAL
00885 
00886 // Implementation
00887 
00888         BOOL OnInitDialog();
00889 protected:
00890         HaMolSet* pmset;
00891         CListCtrlEx1 m_residue_lctrl;
00892 
00893         // Generated message map functions
00894         //{{AFX_MSG(ResidueParamsDlg)
00895         afx_msg void OnChangeProp();
00896         afx_msg void OnClose();
00897         afx_msg void OnStdPK();
00898         afx_msg void OnCalcPK();
00899         afx_msg void OnSetAltInactive();
00900         afx_msg void OnSetAltActive();
00901         afx_msg void OnStdPk1();
00902         afx_msg void OnCheckStruct();
00903         afx_msg void OnDelExtraAt();
00904         afx_msg void OnAddMissAt();
00905         //}}AFX_MSG
00906         afx_msg void OnUpdateResidueList();
00907         afx_msg void OnEndLabelEdit(NMHDR* pnmhdr, LRESULT *pResult);
00908         DECLARE_MESSAGE_MAP()
00909 
00910         void SetColumns();
00911         void FillResidueList();
00912 };
00913 
00914 
00915 class BuildFilmDlg : public CModelessDlg
00916 {
00917 // Dialog Class to build a 2-D layer of absorbed molecules
00918 // moldecules 
00919 public:
00920         BuildFilmDlg(HaMolSet* new_pmset, CWnd* pParent = NULL); 
00921         virtual ~BuildFilmDlg(); 
00922         // standard constructor
00923 
00924 // Dialog Data
00925         //{{AFX_DATA(BuildFilmDlg)
00926                 // NOTE: the ClassWizard will add data members here
00927         //}}AFX_DATA
00928 
00929         static BOOL dlg_open;
00930 
00931         double dx; //  increment between molecules along x direction
00932         double dy; //  increment metween molecules along y direction
00933         int nx;    //  the number of molecules along X axis
00934         int ny;    //  the number of molecules along Y axis
00935         
00936         double alpha; // angle between x and y directions
00937         double tilt;  // inclination angle of the molecules to the surface
00938         
00939         double nunit; // the number of monomers in the adsorbed molecule
00940 
00941         double num_surf_layers; // the Number of Surface layers
00942 
00943         int add_surf_below_flag;
00944         int add_surf_top_flag;
00945         int add_atom_top_flag;
00946         int add_atom_below_flag;
00947 
00948 
00949 
00950 
00951 
00952 // Overrides
00953         // ClassWizard generated virtual function overrides
00954         //{{AFX_VIRTUAL(BuildFilmDlg)
00955         protected:
00956         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00957         //}}AFX_VIRTUAL
00958 
00959 // Implementation
00960 
00961         BOOL OnInitDialog();
00962 protected:
00963         HaMolSet* pmset;
00964 
00965         // Generated message map functions
00966         //{{AFX_MSG(BuildFilmDlg)
00967         //}}AFX_MSG
00968         afx_msg void OnCreateFilm();
00969         afx_msg void OnCreateSurf();
00970         afx_msg void OnClose();
00971         DECLARE_MESSAGE_MAP()
00972 };
00973 
00974 
00975 class LoadQCDatDlg : public CModelessDlg
00976 {
00977 // Construction
00978 public:
00979         LoadQCDatDlg(HaQCMod* new_qcmod, CWnd* pParent = NULL);   // standard constructor
00980         virtual ~LoadQCDatDlg();
00981 
00982 // Dialog Data
00983         //{{AFX_DATA(LoadQCDatDlg)
00984                 // NOTE: the ClassWizard will add data members here
00985         //}}AFX_DATA
00986         
00987         static BOOL dlg_open;
00988 
00989 // Overrides
00990         // ClassWizard generated virtual function overrides
00991         //{{AFX_VIRTUAL(LoadQCDatDlg)
00992         protected:
00993         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00994         //}}AFX_VIRTUAL
00995 
00996 // Implementation
00997 
00998         BOOL OnInitDialog();
00999 protected:
01000         HaQCMod* qcmod;
01001 
01002         // Generated message map functions
01003         //{{AFX_MSG(LoadQCDatDlg)
01004         //}}AFX_MSG
01005         afx_msg void OnLoadData();
01006         afx_msg void OnExit();
01007         DECLARE_MESSAGE_MAP()
01008 };
01009 
01010 
01011 
01012 class EditGroupsDlg : public CModelessDlg
01013 {
01014 // Construction
01015 public:
01016         EditGroupsDlg(HaMolSet* new_pmset, int itype, CWnd* pParent = NULL);   // standard constructor
01017     virtual ~EditGroupsDlg();
01018 
01019 // Dialog Data
01020         //{{AFX_DATA(EditGroupsDlg)
01021         enum { IDD = IDD_EDIT_GROUPS };
01022         //}}AFX_DATA
01023 
01024         static BOOL dlg_open;
01025         static EditGroupsDlg* active_dlg_ptr;
01026  
01027 // Overrides
01028         // ClassWizard generated virtual function overrides
01029         //{{AFX_VIRTUAL(EditGroupsDlg)
01030         protected:
01031         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
01032         //}}AFX_VIRTUAL
01033 
01034 // Implementation
01035 
01036         BOOL OnInitDialog();
01037 protected:
01038         HaMolSet* pmset;
01039 
01040 //      AtomList* sel_at_list; //!< Selected Atom List
01041 
01042         int igrp_type; 
01043         enum {CHEM_GRP_TYPE=0, ATOM_LIST_TYPE,REDOX_CNT_TYPE};
01044 
01045         // Generated message map functions
01046         //{{AFX_MSG(EditGroupsDlg)
01047         afx_msg void OnTypeChemGrp();
01048         afx_msg void OnTypeRdxCnt();
01049         afx_msg void OnTypeAtomList();
01050         afx_msg void OnSetSelFromGrp();
01051         afx_msg void OnAddSelToGrp();
01052         afx_msg void OnDelSelFromGrp();
01053         afx_msg void OnCalcDonAccDist();
01054         afx_msg void OnRenameGrp();
01055         afx_msg void OnCopyGrp();
01056         afx_msg void OnPickAtom();
01057         afx_msg void OnPickResidue();
01058         afx_msg void OnPickChemGrp();
01059         //}}AFX_MSG
01060         afx_msg void OnClose();
01061         afx_msg void OnNewGroup();
01062         afx_msg void OnDelGroup();
01063         afx_msg void OnAtomSelect();
01064         afx_msg void OnResetMemb();
01065         afx_msg void OnDelMemb();
01066         afx_msg void OnInclMemb();
01067         afx_msg void OnOK();
01068         afx_msg void OnSetProt();
01069         afx_msg void OnStdGroups();
01070         afx_msg void OnRenumberGrp();
01071         afx_msg void OnChangeSelGroup();
01072         DECLARE_MESSAGE_MAP()
01073 
01074         void FillGroupList();
01075         AtomList* GetSelGroup(); 
01076 };
01077 
01078 
01079 class ETCoupl;
01080 
01082 // ETEffHamDlg  dialog
01083 
01084 class ETEffHamDlg : public CModelessDlg
01085 {
01086 // Construction
01087 public:
01088         ETEffHamDlg(ETCoupl* new_ptr_et_mod); // standard constructor
01089         virtual ~ETEffHamDlg();
01090 
01091 // Dialog Data
01092         //{{AFX_DATA(ETEffHamDlg)
01093         enum { IDD = IDD_ET_EFF_HAM };
01094         //}}AFX_DATA
01095 
01096         static BOOL dlg_open;
01097 
01098 // Overrides
01099         // ClassWizard generated virtual function overrides
01100         //{{AFX_VIRTUAL(ETEffHamDlg)
01101         protected:
01102         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
01103         //}}AFX_VIRTUAL
01104 
01105 // Implementation
01106 
01107         BOOL OnInitDialog();
01108 protected:
01109         ETCoupl* ptr_et_mod;
01110 
01111         void DDX_eig_val(int set_var);
01112         void DDX_tun_ener(int set_var);
01113         void DDX_da_eig(int set_var);
01114         void DDX_da_field(int set_var);
01115         void DDX_list_loc_orb_gf(int set_var);
01116 
01117         // Generated message map functions
01118         //{{AFX_MSG(ETEffHamDlg)
01119         afx_msg void OnSetParam();
01120         afx_msg void OnClearHeff();
01121         afx_msg void OnCalcHeff();
01122         afx_msg void OnCalcScanEne();
01123         afx_msg void OnDiagHeff();
01124         afx_msg void OnMinSplit();
01125         afx_msg void OnSaveDB();
01126         afx_msg void OnBuildDB();
01127         afx_msg void OnChooseLorbSrc();
01128         afx_msg void OnChooseLorbTgt();
01129         afx_msg void OnResetSrcLorb();
01130         afx_msg void OnResetTgtLorb();
01131         afx_msg void OnCalcGFfromMO();
01132         afx_msg void OnCalcGFfromHeff();
01133         afx_msg void OnPrintProtectMat();
01134         afx_msg void OnPlotEigenVec();
01135         afx_msg void OnCalcHDAfromGF();
01136         afx_msg void OnCalcHDAPert();
01137         afx_msg void OnSetDACoef1();
01138         afx_msg void OnPrintEigVec();
01139         afx_msg void OnZeroLong();
01140         afx_msg void OnPrintOvlpElem();
01141         afx_msg void OnPrintHeffElem();
01142         //}}AFX_MSG
01143         DECLARE_MESSAGE_MAP()
01144  
01145         void FillListBoxHeffEigene();
01146 };
01147 
01148 
01150 // HaOpenMolFile dialog
01151 
01152 class HaOpenMolDlg : public CFileDialog
01153 {
01154         DECLARE_DYNAMIC(HaOpenMolDlg)
01155 
01156 public:
01157         HaOpenMolDlg();
01158         ~HaOpenMolDlg();
01159 
01160         virtual void DoDataExchange(CDataExchange* pDX);
01161 
01162         BOOL OnInitDialog();
01163 protected:
01164         //{{AFX_MSG(HaOpenMolDlg)
01165         //}}AFX_MSG
01166 
01167         afx_msg void UpdateDlgData();
01168 
01169         DECLARE_MESSAGE_MAP()
01170 protected:
01171         virtual void OnFolderChange(void);
01172 };
01173 
01175 // HaSaveMolFile dialog
01176 
01177 class HaSaveMolDlg : public CFileDialog
01178 {
01179         DECLARE_DYNAMIC(HaSaveMolDlg)
01180 
01181 public:
01182         HaSaveMolDlg(HaMolSet* new_mol_set);
01183         virtual void DoDataExchange(CDataExchange* pDX);
01184         ~HaSaveMolDlg();
01185 
01186         BOOL OnInitDialog();
01187 
01188 protected:
01189         //{{AFX_MSG(HaSaveMolDlg)
01190         //}}AFX_MSG
01191 
01192         afx_msg void UpdateDlgData();
01193 
01194         DECLARE_MESSAGE_MAP()
01195 protected:
01196         HaMolSet* m_mol_set;
01197 };
01198 
01199 
01201 // Custom Edit Control to Enter Text Commands:
01202 //
01203 class CCommandEdit: public CEdit
01204 {
01205 public:
01206         CCommandEdit();
01207         BOOL SubclassEdit(UINT nID, CWnd* pParent);
01208 
01209 protected:
01210         //{{AFX_MSG(CCommandEdit)
01211         afx_msg void OnChar(UINT, UINT, UINT); // to intercept character enter
01212         afx_msg void OnKeyDown(UINT, UINT, UINT); // to intercept character enter
01213         afx_msg UINT OnGetDlgCode(); // To change the behavior to intersept ENTER message
01214         //}}AFX_MSG
01215 
01216         DECLARE_MESSAGE_MAP()
01217 };
01218 
01219 
01221 // Custom Edit Control to be filled by Atom, Residue or Molecule 
01222 // Reference which was pointed by a mouse 
01223 //
01224 class HaAtom;
01225 
01226 class CAtomEdit: public CEdit
01227 {
01228 public:
01229         CAtomEdit();
01230         virtual ~CAtomEdit();
01231         BOOL SubclassEdit(UINT nID, CWnd* pParent);
01232 
01233         static list<CAtomEdit*> active_controls;
01234         static int BroadCastPickedAtom(HaAtom* PickAtom);
01235 
01236         int OnAtomPicked(HaAtom* PickAtom);
01237 
01238         enum PICK_MODE { PICK_ATOM, PICK_RESIDUE, PICK_MOLECULE, PICK_GROUP} pick_mode;
01239 
01240 protected:
01241         //{{AFX_MSG(CAtomEdit)
01242         //}}AFX_MSG
01243 
01244         DECLARE_MESSAGE_MAP()
01245 };
01246 
01247 extern "C"{ 
01248 #if defined(MOLMECHDLG_CPP)
01249    void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, HaString& value);
01250 #else
01251    extern AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, HaString& value);
01252 #endif
01253 }
01254 
01255 //{{AFX_INSERT_LOCATION}}
01256 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
01257 
01258 
01259 
01260 
01261 #endif // !defined(WIN_DIALOGS_2_H)

Generated on Tue Feb 17 02:03:08 2004 for harlem by doxygen 1.3.6