add completion for variables and variable references

This commit is contained in:
Axel Kohlmeyer
2023-09-08 08:53:06 -04:00
parent f293c5dd87
commit 778263673c
3 changed files with 64 additions and 6 deletions

View File

@ -57,6 +57,7 @@ public:
void setVariableList(const QStringList &words);
void setUnitsList(const QStringList &words);
void setGroupList();
void setVarNameList();
static constexpr int NO_HIGHLIGHT = 1 << 30;
@ -83,7 +84,8 @@ private:
QShortcut *help_action;
QCompleter *current_comp, *command_comp, *fix_comp, *compute_comp, *dump_comp, *atom_comp,
*pair_comp, *bond_comp, *angle_comp, *dihedral_comp, *improper_comp, *kspace_comp,
*region_comp, *integrate_comp, *minimize_comp, *variable_comp, *units_comp, *group_comp;
*region_comp, *integrate_comp, *minimize_comp, *variable_comp, *units_comp, *group_comp,
*varname_comp, *fixid_comp, *compid_comp;
int highlight;
bool reformat_on_return;