MoleditPy-linux 3.0.0__tar.gz → 3.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/PKG-INFO +1 -1
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/pyproject.toml +1 -1
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/PKG-INFO +1 -1
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/plugin_interface.py +33 -2
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/io_logic.py +2 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/main_window.py +7 -2
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/main_window_init.py +7 -14
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_dialog.py +5 -1
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_tabs/settings_3d_tabs.py +2 -4
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/view_3d_logic.py +2 -2
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/constants.py +1 -1
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/default_settings.py +1 -1
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/LICENSE +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/README.md +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/setup.cfg +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/SOURCES.txt +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/dependency_links.txt +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/entry_points.txt +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/requires.txt +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/top_level.txt +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/__init__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/__main__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/assets/file_icon.ico +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/assets/icon.icns +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/assets/icon.ico +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/assets/icon.png +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/core/__init__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/core/mol_geometry.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/core/molecular_data.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/main.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/__init__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/plugin_manager.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/plugin_manager_window.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/__init__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/about_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/align_plane_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/alignment_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/analysis_window.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/angle_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/app_state.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/atom_item.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/base_picking_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/bond_item.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/bond_length_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/calculation_worker.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/color_settings_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/compute_logic.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/constrained_optimization_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/custom_interactor_style.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/custom_qt_interactor.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/dialog_3d_picking_mixin.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/dialog_logic.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/dihedral_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/edit_3d_logic.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/edit_actions_logic.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/export_logic.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/geometry_base_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/mirror_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/molecular_scene_handler.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/molecule_scene.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/move_group_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/periodic_table_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/planarize_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_tabs/__init__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_tabs/settings_2d_tab.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_tabs/settings_other_tab.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_tabs/settings_tab_base.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/sip_isdeleted_safe.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/string_importers.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/template_preview_item.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/template_preview_view.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/translation_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/ui_manager.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/user_template_dialog.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/zoomable_view.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/__init__.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/sip_isdeleted_safe.py +0 -0
- {moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/system_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MoleditPy-linux
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
5
|
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MoleditPy-linux
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
5
|
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/plugin_interface.py
RENAMED
|
@@ -173,6 +173,14 @@ class PluginContext:
|
|
|
173
173
|
"""
|
|
174
174
|
return self._manager.get_main_window()
|
|
175
175
|
|
|
176
|
+
def show_status_message(self, message: str, timeout: int = 3000) -> None:
|
|
177
|
+
"""
|
|
178
|
+
Display a temporary message in the status bar of the main window.
|
|
179
|
+
"""
|
|
180
|
+
mw = self.get_main_window()
|
|
181
|
+
if mw and hasattr(mw, "ui_manager"):
|
|
182
|
+
mw.ui_manager.update_status_bar(message)
|
|
183
|
+
|
|
176
184
|
@property
|
|
177
185
|
def current_mol(self) -> Any:
|
|
178
186
|
"""
|
|
@@ -186,8 +194,7 @@ class PluginContext:
|
|
|
186
194
|
mw = self.get_main_window()
|
|
187
195
|
if mw and hasattr(mw, "view_3d_manager"):
|
|
188
196
|
mw.view_3d_manager.current_mol = mol
|
|
189
|
-
|
|
190
|
-
mw.view_3d_manager.draw_molecule_3d(mol)
|
|
197
|
+
mw.view_3d_manager.draw_molecule_3d(mol)
|
|
191
198
|
|
|
192
199
|
@property
|
|
193
200
|
def current_molecule(self) -> Any:
|
|
@@ -214,6 +221,30 @@ class PluginContext:
|
|
|
214
221
|
mw = self.get_main_window()
|
|
215
222
|
return mw.init_manager.scene if mw and hasattr(mw, "init_manager") else None
|
|
216
223
|
|
|
224
|
+
def draw_molecule_3d(self, mol: Any) -> None:
|
|
225
|
+
"""Draw a molecule in the 3D scene (Direct manager call)."""
|
|
226
|
+
mw = self.get_main_window()
|
|
227
|
+
if mw and hasattr(mw, "view_3d_manager"):
|
|
228
|
+
mw.view_3d_manager.draw_molecule_3d(mol)
|
|
229
|
+
|
|
230
|
+
def refresh_3d_view(self) -> None:
|
|
231
|
+
"""Force the 3D window to redraw using the current molecule."""
|
|
232
|
+
mw = self.get_main_window()
|
|
233
|
+
if mw and hasattr(mw, "view_3d_manager"):
|
|
234
|
+
mol = getattr(mw.view_3d_manager, "current_mol", None)
|
|
235
|
+
if mol:
|
|
236
|
+
mw.view_3d_manager.draw_molecule_3d(mol)
|
|
237
|
+
else:
|
|
238
|
+
# Also redraw/clear plotter if no molecule
|
|
239
|
+
if hasattr(mw.view_3d_manager, "plotter") and mw.view_3d_manager.plotter:
|
|
240
|
+
mw.view_3d_manager.plotter.render()
|
|
241
|
+
|
|
242
|
+
def reset_3d_camera(self) -> None:
|
|
243
|
+
"""Zoom in and re-center the 3D viewport to fit the current molecule."""
|
|
244
|
+
mw = self.get_main_window()
|
|
245
|
+
if mw and hasattr(mw, "view_3d_manager") and mw.view_3d_manager.plotter:
|
|
246
|
+
mw.view_3d_manager.plotter.reset_camera()
|
|
247
|
+
|
|
217
248
|
def add_export_action(self, label: str, callback: Callable):
|
|
218
249
|
"""
|
|
219
250
|
Register a custom export action.
|
|
@@ -502,6 +502,7 @@ class IOManager:
|
|
|
502
502
|
50, lambda: self.host.view_3d_manager.plotter.view_isometric()
|
|
503
503
|
)
|
|
504
504
|
QTimer.singleShot(100, lambda: self.host.view_3d_manager.plotter.render())
|
|
505
|
+
QTimer.singleShot(100, self.host.view_3d_manager.fit_to_view)
|
|
505
506
|
|
|
506
507
|
except FileNotFoundError:
|
|
507
508
|
self.host.statusBar().showMessage(f"File not found: {file_path}")
|
|
@@ -670,6 +671,7 @@ class IOManager:
|
|
|
670
671
|
50, lambda: self.host.view_3d_manager.plotter.view_isometric()
|
|
671
672
|
)
|
|
672
673
|
QTimer.singleShot(100, lambda: self.host.view_3d_manager.plotter.render())
|
|
674
|
+
QTimer.singleShot(100, self.host.view_3d_manager.fit_to_view)
|
|
673
675
|
except Exception as e:
|
|
674
676
|
self.host.statusBar().showMessage(f"Error loading file: {e}")
|
|
675
677
|
|
|
@@ -73,28 +73,33 @@ class MainWindow(QMainWindow):
|
|
|
73
73
|
self, initial_file=initial_file, safe_mode=safe_mode
|
|
74
74
|
)
|
|
75
75
|
|
|
76
|
-
# --- Core Proxy Properties ---
|
|
76
|
+
# --- Core Proxy Properties (Legacy Plugin Support Only. Bypassed by Core Logics) ---
|
|
77
77
|
@property
|
|
78
78
|
def current_mol(self):
|
|
79
|
+
"""Proxy for current molecule. Not for core logic use."""
|
|
79
80
|
return self.view_3d_manager.current_mol
|
|
80
81
|
|
|
81
82
|
@current_mol.setter
|
|
82
83
|
def current_mol(self, value):
|
|
84
|
+
"""Proxy for current molecule setter. Not for core logic use."""
|
|
83
85
|
self.view_3d_manager.current_mol = value
|
|
84
86
|
|
|
85
87
|
@property
|
|
86
88
|
def plotter(self):
|
|
89
|
+
"""Proxy for 3D plotter. Not for core logic use."""
|
|
87
90
|
return self.view_3d_manager.plotter
|
|
88
91
|
|
|
89
92
|
@property
|
|
90
93
|
def data(self):
|
|
94
|
+
"""Proxy for state data. Not for core logic use."""
|
|
91
95
|
return self.state_manager.data
|
|
92
96
|
|
|
93
97
|
@property
|
|
94
98
|
def scene(self):
|
|
99
|
+
"""Proxy for 2D scene. Not for core logic use."""
|
|
95
100
|
return self.init_manager.scene
|
|
96
101
|
|
|
97
102
|
def draw_molecule_3d(self, mol):
|
|
103
|
+
"""Proxy for 3D rendering. Not for core logic use."""
|
|
98
104
|
self.current_mol = mol
|
|
99
105
|
self.view_3d_manager.draw_molecule_3d(mol)
|
|
100
|
-
|
|
@@ -289,6 +289,7 @@ class MainInitManager:
|
|
|
289
289
|
self.host.io_manager.load_xyz_for_3d_viewing(file_path)
|
|
290
290
|
elif file_ext in ["pmeraw", "pmeprj"]:
|
|
291
291
|
self.host.io_manager.open_project_file(file_path=file_path)
|
|
292
|
+
QTimer.singleShot(100, self.host.view_3d_manager.fit_to_view)
|
|
292
293
|
else:
|
|
293
294
|
self.host.statusBar().showMessage(f"Unsupported file type: {file_ext}")
|
|
294
295
|
|
|
@@ -489,8 +490,8 @@ class MainInitManager:
|
|
|
489
490
|
logging.error("REPORT ERROR: Missing attribute 'conv_actions' on self")
|
|
490
491
|
|
|
491
492
|
# Intermolecular interaction
|
|
492
|
-
if hasattr(self, "intermolecular_rdkit_action"):
|
|
493
|
-
self.intermolecular_rdkit_action.setChecked(
|
|
493
|
+
if hasattr(self.host, "intermolecular_rdkit_action"):
|
|
494
|
+
self.host.intermolecular_rdkit_action.setChecked(
|
|
494
495
|
self.host.init_manager.settings.get(
|
|
495
496
|
"optimize_intermolecular_interaction_rdkit", True
|
|
496
497
|
)
|
|
@@ -524,6 +525,8 @@ class MainInitManager:
|
|
|
524
525
|
self.host.init_manager.scene.setBackgroundBrush(QBrush(QColor(bg_c)))
|
|
525
526
|
for item in self.host.init_manager.scene.items():
|
|
526
527
|
with contextlib.suppress(AttributeError, RuntimeError, TypeError):
|
|
528
|
+
if type(item).__name__ not in ("AtomItem", "BondItem"):
|
|
529
|
+
continue
|
|
527
530
|
if hasattr(item, "update_style"):
|
|
528
531
|
item.update_style()
|
|
529
532
|
else: # [REPORT ERROR MISSING ATTRIBUTE]
|
|
@@ -1316,12 +1319,7 @@ class MainInitManager:
|
|
|
1316
1319
|
action.setChecked(True)
|
|
1317
1320
|
action.triggered.connect(
|
|
1318
1321
|
lambda checked=False, k=key: (
|
|
1319
|
-
self.host.view_3d_manager.set_3d_style(k)
|
|
1320
|
-
self.host.view_3d_manager.draw_molecule_3d(
|
|
1321
|
-
self.host.view_3d_manager.current_mol
|
|
1322
|
-
)
|
|
1323
|
-
if getattr(self.host.view_3d_manager, "current_mol", None)
|
|
1324
|
-
else None,
|
|
1322
|
+
self.host.view_3d_manager.set_3d_style(k)
|
|
1325
1323
|
)
|
|
1326
1324
|
)
|
|
1327
1325
|
style_menu.addAction(action)
|
|
@@ -1334,12 +1332,7 @@ class MainInitManager:
|
|
|
1334
1332
|
action = QAction(style_name, self.host, checkable=True)
|
|
1335
1333
|
action.triggered.connect(
|
|
1336
1334
|
lambda checked=False, s=style_name: (
|
|
1337
|
-
self.host.view_3d_manager.set_3d_style(s)
|
|
1338
|
-
self.host.view_3d_manager.draw_molecule_3d(
|
|
1339
|
-
self.host.view_3d_manager.current_mol
|
|
1340
|
-
)
|
|
1341
|
-
if getattr(self.host.view_3d_manager, "current_mol", None)
|
|
1342
|
-
else None,
|
|
1335
|
+
self.host.view_3d_manager.set_3d_style(s)
|
|
1343
1336
|
)
|
|
1344
1337
|
)
|
|
1345
1338
|
style_menu.addAction(action)
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
5
|
MoleditPy — A Python-based molecular editing software
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
Author: Hiromichi Yokoyama
|
|
8
|
+
License: GPL-3.0 license
|
|
9
|
+
Repo: https://github.com/HiroYokoyama/python_molecular_editor
|
|
10
|
+
DOI: 10.5281/zenodo.17268532
|
|
7
11
|
"""
|
|
8
12
|
|
|
9
13
|
import logging # [REPORT ERROR MISSING ATTRIBUTE]
|
|
@@ -225,8 +225,7 @@ class SettingsModelTab(SettingsTabBase):
|
|
|
225
225
|
val = settings_dict.get(f"{p}_atom_scale", 1.0)
|
|
226
226
|
self.atom_scale_slider.setValue(int(val * 100))
|
|
227
227
|
if p in ["ball_stick", "wireframe", "stick"]:
|
|
228
|
-
|
|
229
|
-
val = settings_dict.get(f"{prefix}_bond_radius", 0.1)
|
|
228
|
+
val = settings_dict.get(f"{p}_bond_radius", 0.1)
|
|
230
229
|
self.bond_radius_slider.setValue(int(val * 100))
|
|
231
230
|
|
|
232
231
|
self.db_offset_slider.setValue(
|
|
@@ -261,8 +260,7 @@ class SettingsModelTab(SettingsTabBase):
|
|
|
261
260
|
if p in ["ball_stick", "cpk"]:
|
|
262
261
|
s[f"{p}_atom_scale"] = self.atom_scale_slider.value() / 100.0
|
|
263
262
|
if p in ["ball_stick", "wireframe", "stick"]:
|
|
264
|
-
|
|
265
|
-
s[f"{prefix}_bond_radius"] = self.bond_radius_slider.value() / 100.0
|
|
263
|
+
s[f"{p}_bond_radius"] = self.bond_radius_slider.value() / 100.0
|
|
266
264
|
s[f"{p}_double_bond_offset_factor"] = self.db_offset_slider.value() / 100.0
|
|
267
265
|
s[f"{p}_triple_bond_offset_factor"] = self.tr_offset_slider.value() / 100.0
|
|
268
266
|
s[f"{p}_double_bond_radius_factor"] = self.db_radius_slider.value() / 100.0
|
|
@@ -549,7 +549,7 @@ class View3DManager:
|
|
|
549
549
|
# Set bond radius and resolution based on style
|
|
550
550
|
if current_style == "wireframe":
|
|
551
551
|
cyl_radius = self.host.init_manager.settings.get(
|
|
552
|
-
"wireframe_bond_radius", 0.
|
|
552
|
+
"wireframe_bond_radius", 0.02
|
|
553
553
|
)
|
|
554
554
|
bond_resolution = self.host.init_manager.settings.get(
|
|
555
555
|
"wireframe_resolution", 6
|
|
@@ -935,7 +935,7 @@ class View3DManager:
|
|
|
935
935
|
)
|
|
936
936
|
elif current_style == "wireframe":
|
|
937
937
|
bond_radius = self.host.init_manager.settings.get(
|
|
938
|
-
"wireframe_bond_radius", 0.
|
|
938
|
+
"wireframe_bond_radius", 0.02
|
|
939
939
|
)
|
|
940
940
|
else:
|
|
941
941
|
bond_radius = 0.1 # Default
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/default_settings.py
RENAMED
|
@@ -35,7 +35,7 @@ DEFAULT_SETTINGS = {
|
|
|
35
35
|
"cpk_resolution": 32,
|
|
36
36
|
"cpk_colors": {},
|
|
37
37
|
# --- 3D Model Parameters (Wireframe) ---
|
|
38
|
-
"wireframe_bond_radius": 0.
|
|
38
|
+
"wireframe_bond_radius": 0.02,
|
|
39
39
|
"wireframe_resolution": 6,
|
|
40
40
|
"wireframe_double_bond_offset_factor": 3.0,
|
|
41
41
|
"wireframe_triple_bond_offset_factor": 3.0,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/MoleditPy_linux.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/plugin_manager.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/plugins/plugin_manager_window.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/align_plane_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/base_picking_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/bond_length_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/calculation_worker.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/color_settings_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/custom_interactor_style.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/custom_qt_interactor.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/dialog_3d_picking_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/edit_actions_logic.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/geometry_base_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/molecular_scene_handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/periodic_table_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/settings_tabs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/sip_isdeleted_safe.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/template_preview_item.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/template_preview_view.py
RENAMED
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/translation_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/ui/user_template_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-3.0.0 → moleditpy_linux-3.0.1}/src/moleditpy_linux/utils/sip_isdeleted_safe.py
RENAMED
|
File without changes
|
|
File without changes
|