Skip to content

Commit

Permalink
Qui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjunkie committed May 14, 2019
1 parent e4c0bae commit 5b6d52b
Show file tree
Hide file tree
Showing 4 changed files with 403 additions and 134 deletions.
12 changes: 12 additions & 0 deletions src/Qui/InputDialog.C
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,12 @@ void InputDialog::toggleStack(QStackedWidget* stack, bool on, QString model)
}


void InputDialog::on_qui_none(bool on)
{
toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesNone");
}


void InputDialog::on_qui_cfmm_toggled(bool on)
{
toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesCFMM");
Expand All @@ -958,6 +964,12 @@ void InputDialog::on_ftc_toggled(bool on)
toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesFTC");
}

void InputDialog::on_qui_use_ri_toggled(bool on)
{
toggleStack(m_ui.largeMoleculesStack, on, "LargeMoleculesRI");
}



/*
void InputDialog::on_qui_solvent_cosmo_toggled(bool on)
Expand Down
2 changes: 2 additions & 0 deletions src/Qui/InputDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class InputDialog : public QMainWindow {
void on_qui_use_case_toggled(bool);
void on_ftc_toggled(bool);
void on_qui_cfmm_toggled(bool);
void on_qui_use_ri_toggled(bool);
void on_qui_none(bool on);

void on_solvent_method_currentTextChanged(QString const&);

Expand Down
24 changes: 24 additions & 0 deletions src/Qui/InputDialogLogic.C
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,30 @@ void InputDialog::initializeQuiLogic()
Disable(m_ui.scf_guess_mix) + Disable(m_ui.label_scf_guess_mix))
);

// GenScfMan

QtNode& gen_scfman(reg.get("GEN_SCFMAN"));
gen_scfman.addRule(
If(gen_scfman == QtTrue,
Enable(m_ui.internal_stability)
+ Enable(m_ui.os_roscf)
+ Enable(m_ui.ghf)
+ Enable(m_ui.complex),
Disable(m_ui.internal_stability)
+ Disable(m_ui.os_roscf)
+ Disable(m_ui.ghf)
+ Disable(m_ui.complex)
)
);

QtNode& complexNode(reg.get("COMPLEX"));
complexNode.addRule(
If(complexNode == QtTrue,
Enable(m_ui.complex_mix) + Enable(m_ui.label_complex_mix),
Disable(m_ui.complex_mix) + Disable(m_ui.label_complex_mix)
)
);


QtNode& dualBasisEnergy(reg.get("DUAL_BASIS_ENERGY"));

Expand Down
Loading

0 comments on commit 5b6d52b

Please sign in to comment.