ifilot / atom-architect

Visualization and building tool for electronic structure calculations
GNU Lesser General Public License v3.0
3 stars 0 forks source link

Feature request: Change Toggle frozen to freeze/unfreeze entire selection #4

Closed joerivan closed 1 month ago

joerivan commented 1 month ago

Currently, if you want to freeze an entire selection, you need to ensure that no part of the selection is already frozen. The Toggle Frozen action, as the name suggests, toggles the frozen state of the selected atoms.

In Atom Architect, which is commonly used with slabs, if the bottom few layers are already frozen and you want to freeze the entire system, you would need to individually select each atom and use Toggle Frozen. Using Ctrl+A to select the entire structure and then applying Toggle Frozen would result in the bottom layers becoming unfrozen.

To streamline this process, I recommend replacing the Toggle Frozen action with two distinct actions: Freeze Selection (with the hotkey Ctrl+F) and Unfreeze Selection (with the hotkey Ctrl+Shift+F or Ctrl+U).

joerivan commented 1 month ago

The functionality (through hotkeys) is correctly implemented. Only it is not yet implemented in the Select tab of the main window. I believe this is located inside src/gui/mainwindow.cpp.