MoleditPy-linux 2.4.4__tar.gz → 2.4.6__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-2.4.4 → moleditpy_linux-2.4.6}/PKG-INFO +1 -1
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/pyproject.toml +1 -1
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/PKG-INFO +1 -1
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/atom_item.py +16 -10
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/bond_item.py +44 -9
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/constants.py +1 -1
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_main_init.py +3 -4
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/settings_dialog.py +17 -4
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/LICENSE +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/README.md +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/setup.cfg +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/SOURCES.txt +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/dependency_links.txt +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/entry_points.txt +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/requires.txt +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/top_level.txt +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/__init__.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/__main__.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/main.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/__init__.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/about_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/align_plane_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/alignment_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/analysis_window.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/angle_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/assets/file_icon.ico +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/assets/icon.icns +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/assets/icon.ico +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/assets/icon.png +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/bond_length_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/calculation_worker.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/color_settings_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/constrained_optimization_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/custom_interactor_style.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/custom_qt_interactor.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/dialog3_d_picking_mixin.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/dihedral_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_app_state.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_compute.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_dialog_manager.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_edit_3d.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_edit_actions.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_export.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_molecular_parsers.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_project_io.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_string_importers.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_ui_manager.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_view_3d.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_view_loaders.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/mirror_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/molecular_data.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/molecule_scene.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/move_group_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/periodic_table_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/planarize_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/plugin_interface.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/plugin_manager.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/plugin_manager_window.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/template_preview_item.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/template_preview_view.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/translation_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/user_template_dialog.py +0 -0
- {moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/zoomable_view.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MoleditPy-linux
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.6
|
|
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: 2.4.
|
|
3
|
+
Version: 2.4.6
|
|
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
|
|
@@ -60,9 +60,13 @@ class AtomItem(QGraphicsItem):
|
|
|
60
60
|
win = self.scene().views()[0].window()
|
|
61
61
|
if win and hasattr(win, 'settings'):
|
|
62
62
|
font_size = win.settings.get('atom_font_size_2d', 20)
|
|
63
|
+
font_family = win.settings.get('atom_font_family_2d', FONT_FAMILY)
|
|
64
|
+
else:
|
|
65
|
+
font_family = FONT_FAMILY
|
|
63
66
|
except Exception:
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
font_family = FONT_FAMILY
|
|
68
|
+
|
|
69
|
+
self.font = QFont(font_family, font_size, FONT_WEIGHT_BOLD)
|
|
66
70
|
self.prepareGeometryChange()
|
|
67
71
|
|
|
68
72
|
self.is_visible = not (self.symbol == 'C' and len(self.bonds) > 0 and self.charge == 0 and self.radical == 0)
|
|
@@ -70,16 +74,18 @@ class AtomItem(QGraphicsItem):
|
|
|
70
74
|
|
|
71
75
|
def boundingRect(self):
|
|
72
76
|
# --- paint()メソッドと完全に同じロジックでテキストの位置とサイズを計算 ---
|
|
73
|
-
# Get dynamic font size
|
|
77
|
+
# Get dynamic font size and family
|
|
74
78
|
font_size = 20
|
|
79
|
+
font_family = FONT_FAMILY
|
|
75
80
|
try:
|
|
76
81
|
if self.scene() and self.scene().views():
|
|
77
82
|
win = self.scene().views()[0].window()
|
|
78
83
|
if win and hasattr(win, 'settings'):
|
|
79
84
|
font_size = win.settings.get('atom_font_size_2d', 20)
|
|
85
|
+
font_family = win.settings.get('atom_font_family_2d', FONT_FAMILY)
|
|
80
86
|
except Exception:
|
|
81
87
|
pass
|
|
82
|
-
font = QFont(
|
|
88
|
+
font = QFont(font_family, font_size, FONT_WEIGHT_BOLD)
|
|
83
89
|
fm = QFontMetricsF(font)
|
|
84
90
|
|
|
85
91
|
hydrogen_part = ""
|
|
@@ -197,7 +203,9 @@ class AtomItem(QGraphicsItem):
|
|
|
197
203
|
if self.scene() and self.scene().views():
|
|
198
204
|
win = self.scene().views()[0].window()
|
|
199
205
|
if win and hasattr(win, 'settings'):
|
|
200
|
-
|
|
206
|
+
# Force Hydrogen to use bond color (invisible on white bg otherwise)
|
|
207
|
+
# OR if the global setting is checked
|
|
208
|
+
if self.symbol == 'H' or win.settings.get('atom_use_bond_color_2d', False):
|
|
201
209
|
bond_col = win.settings.get('bond_color_2d', '#222222')
|
|
202
210
|
color = QColor(bond_col)
|
|
203
211
|
except Exception:
|
|
@@ -374,11 +382,9 @@ class AtomItem(QGraphicsItem):
|
|
|
374
382
|
res = super().itemChange(change, value)
|
|
375
383
|
if change == QGraphicsItem.GraphicsItemChange.ItemPositionHasChanged:
|
|
376
384
|
if self.flags() & QGraphicsItem.GraphicsItemFlag.ItemIsMovable:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
if bond.scene(): # Only update if bond is still in scene
|
|
381
|
-
bond.update_position()
|
|
385
|
+
for bond in self.bonds:
|
|
386
|
+
if bond.scene():
|
|
387
|
+
bond.update_position()
|
|
382
388
|
|
|
383
389
|
return res
|
|
384
390
|
|
|
@@ -94,10 +94,12 @@ class BondItem(QGraphicsItem):
|
|
|
94
94
|
if self.atom1 is None or self.atom2 is None:
|
|
95
95
|
return QLineF(0, 0, 0, 0)
|
|
96
96
|
try:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
# Use pos() directly - assuming items are in scene coords (no parent)
|
|
98
|
+
# This is robust and efficient.
|
|
99
|
+
p1 = self.atom1.pos()
|
|
100
|
+
p2 = self.atom2.pos()
|
|
101
|
+
return QLineF(QPointF(0, 0), p2 - p1)
|
|
102
|
+
except Exception:
|
|
101
103
|
return QLineF(0, 0, 0, 0)
|
|
102
104
|
|
|
103
105
|
def boundingRect(self):
|
|
@@ -120,12 +122,33 @@ class BondItem(QGraphicsItem):
|
|
|
120
122
|
except Exception:
|
|
121
123
|
bond_offset = globals().get('BOND_OFFSET', 3.5)
|
|
122
124
|
|
|
123
|
-
|
|
125
|
+
# Get dynamic wedge width
|
|
126
|
+
wedge_width = 6.0
|
|
127
|
+
try:
|
|
128
|
+
if self.scene() and self.scene().views():
|
|
129
|
+
win = self.scene().views()[0].window()
|
|
130
|
+
if win and hasattr(win, 'settings'):
|
|
131
|
+
wedge_width = win.settings.get('bond_wedge_width_2d', 6.0)
|
|
132
|
+
except Exception:
|
|
133
|
+
pass
|
|
134
|
+
|
|
135
|
+
extra = (getattr(self, 'order', 1) - 1) * bond_offset + 50 + wedge_width
|
|
124
136
|
rect = QRectF(line.p1(), line.p2()).normalized().adjusted(-extra, -extra, extra, extra)
|
|
125
137
|
|
|
126
138
|
# E/Zラベルの描画範囲も考慮して拡張(QFontMetricsFで正確に)
|
|
127
139
|
if self.order == 2 and self.stereo in [3, 4]:
|
|
128
|
-
|
|
140
|
+
font_size = 20
|
|
141
|
+
font_family = FONT_FAMILY
|
|
142
|
+
try:
|
|
143
|
+
if self.scene() and self.scene().views():
|
|
144
|
+
win = self.scene().views()[0].window()
|
|
145
|
+
if win and hasattr(win, 'settings'):
|
|
146
|
+
font_size = win.settings.get('atom_font_size_2d', 20)
|
|
147
|
+
font_family = win.settings.get('atom_font_family_2d', FONT_FAMILY)
|
|
148
|
+
except Exception:
|
|
149
|
+
pass
|
|
150
|
+
|
|
151
|
+
font = QFont(font_family, font_size, FONT_WEIGHT_BOLD)
|
|
129
152
|
font.setItalic(True)
|
|
130
153
|
text = "Z" if self.stereo == 3 else "E"
|
|
131
154
|
fm = QFontMetricsF(font)
|
|
@@ -383,7 +406,18 @@ class BondItem(QGraphicsItem):
|
|
|
383
406
|
painter.save() # 現在の描画設定を保存
|
|
384
407
|
|
|
385
408
|
# --- ラベルの設定 ---
|
|
386
|
-
|
|
409
|
+
font_size = 20
|
|
410
|
+
font_family = FONT_FAMILY
|
|
411
|
+
try:
|
|
412
|
+
if self.scene() and self.scene().views():
|
|
413
|
+
win = self.scene().views()[0].window()
|
|
414
|
+
if win and hasattr(win, 'settings'):
|
|
415
|
+
font_size = win.settings.get('atom_font_size_2d', 20)
|
|
416
|
+
font_family = win.settings.get('atom_font_family_2d', FONT_FAMILY)
|
|
417
|
+
except Exception:
|
|
418
|
+
pass
|
|
419
|
+
|
|
420
|
+
font = QFont(font_family, font_size, FONT_WEIGHT_BOLD)
|
|
387
421
|
font.setItalic(True)
|
|
388
422
|
text_color = QColor("gray")
|
|
389
423
|
# 輪郭の色を背景色と同じにする(scene()がNoneのときは安全なフォールバックを使う)
|
|
@@ -442,9 +476,10 @@ class BondItem(QGraphicsItem):
|
|
|
442
476
|
|
|
443
477
|
|
|
444
478
|
|
|
445
|
-
def update_position(self):
|
|
479
|
+
def update_position(self, notify=True):
|
|
446
480
|
try:
|
|
447
|
-
|
|
481
|
+
if notify:
|
|
482
|
+
self.prepareGeometryChange()
|
|
448
483
|
if self.atom1:
|
|
449
484
|
self.setPos(self.atom1.pos())
|
|
450
485
|
self.update()
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_main_init.py
RENAMED
|
@@ -1253,8 +1253,6 @@ class MainWindowMainInit(object):
|
|
|
1253
1253
|
|
|
1254
1254
|
plugin_menu.addSeparator()
|
|
1255
1255
|
|
|
1256
|
-
# Initial population of plugins
|
|
1257
|
-
self.update_plugin_menu(plugin_menu)
|
|
1258
1256
|
|
|
1259
1257
|
settings_menu = menu_bar.addMenu("&Settings")
|
|
1260
1258
|
# 1) 3D View settings (existing)
|
|
@@ -1420,11 +1418,12 @@ class MainWindowMainInit(object):
|
|
|
1420
1418
|
)
|
|
1421
1419
|
help_menu.addAction(manual_action)
|
|
1422
1420
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
1421
|
# 3D関連機能の初期状態を統一的に設定
|
|
1426
1422
|
self._enable_3d_features(False)
|
|
1427
1423
|
|
|
1424
|
+
# Finally, populate plugins now that all menus are created
|
|
1425
|
+
self.update_plugin_menu(plugin_menu)
|
|
1426
|
+
|
|
1428
1427
|
|
|
1429
1428
|
|
|
1430
1429
|
def init_worker_thread(self):
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/settings_dialog.py
RENAMED
|
@@ -12,11 +12,11 @@ DOI: 10.5281/zenodo.17268532
|
|
|
12
12
|
|
|
13
13
|
from PyQt6.QtWidgets import (
|
|
14
14
|
QDialog, QVBoxLayout, QTabWidget, QWidget, QFormLayout, QPushButton, QHBoxLayout,
|
|
15
|
-
QCheckBox, QComboBox, QLabel, QColorDialog, QSlider, QFrame, QMessageBox
|
|
15
|
+
QCheckBox, QComboBox, QLabel, QColorDialog, QSlider, QFrame, QMessageBox, QFontComboBox
|
|
16
16
|
)
|
|
17
17
|
from PyQt6.QtWidgets import QApplication
|
|
18
18
|
from PyQt6.QtCore import Qt
|
|
19
|
-
from PyQt6.QtGui import QColor
|
|
19
|
+
from PyQt6.QtGui import QColor, QFont
|
|
20
20
|
try:
|
|
21
21
|
from .constants import CPK_COLORS
|
|
22
22
|
except Exception:
|
|
@@ -101,6 +101,7 @@ class SettingsDialog(QDialog):
|
|
|
101
101
|
'bond_cap_style_2d': 'Round',
|
|
102
102
|
'bond_wedge_width_2d': 6.0,
|
|
103
103
|
'bond_dash_count_2d': 8,
|
|
104
|
+
'atom_font_family_2d': 'Arial',
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
# --- 選択された色を管理する専用のインスタンス変数 ---
|
|
@@ -275,6 +276,13 @@ class SettingsDialog(QDialog):
|
|
|
275
276
|
# --- Atom Settings ---
|
|
276
277
|
form_layout.addRow(QLabel("<b>Atom Settings</b>"))
|
|
277
278
|
|
|
279
|
+
# Font Family
|
|
280
|
+
self.atom_font_family_2d_combo = QFontComboBox()
|
|
281
|
+
self.atom_font_family_2d_combo.setEditable(False) # Force selection from list
|
|
282
|
+
# Filter mostly for scalable fonts if desired, but default is usually fine
|
|
283
|
+
self.atom_font_family_2d_combo.setFontFilters(QFontComboBox.FontFilter.ScalableFonts)
|
|
284
|
+
form_layout.addRow("Atom Label Font Family:", self.atom_font_family_2d_combo)
|
|
285
|
+
|
|
278
286
|
# Font Size
|
|
279
287
|
self.atom_font_size_2d_slider = QSlider(Qt.Orientation.Horizontal)
|
|
280
288
|
self.atom_font_size_2d_slider.setRange(8, 72)
|
|
@@ -813,10 +821,10 @@ class SettingsDialog(QDialog):
|
|
|
813
821
|
'background_color_2d': self.default_settings['background_color_2d'],
|
|
814
822
|
'bond_color_2d': self.default_settings['bond_color_2d'],
|
|
815
823
|
'atom_use_bond_color_2d': self.default_settings['atom_use_bond_color_2d'],
|
|
816
|
-
'atom_use_bond_color_2d': self.default_settings['atom_use_bond_color_2d'],
|
|
817
824
|
'bond_cap_style_2d': self.default_settings['bond_cap_style_2d'],
|
|
818
825
|
'bond_wedge_width_2d': self.default_settings['bond_wedge_width_2d'],
|
|
819
|
-
'bond_dash_count_2d': self.default_settings['bond_dash_count_2d']
|
|
826
|
+
'bond_dash_count_2d': self.default_settings['bond_dash_count_2d'],
|
|
827
|
+
'atom_font_family_2d': self.default_settings['atom_font_family_2d']
|
|
820
828
|
},
|
|
821
829
|
"3D Scene": {
|
|
822
830
|
'background_color': self.default_settings['background_color'],
|
|
@@ -1258,6 +1266,7 @@ class SettingsDialog(QDialog):
|
|
|
1258
1266
|
'bond_cap_style_2d': self.bond_cap_style_2d_combo.currentText(),
|
|
1259
1267
|
'bond_wedge_width_2d': self.bond_wedge_width_2d_slider.value() / 10.0,
|
|
1260
1268
|
'bond_dash_count_2d': self.bond_dash_count_2d_slider.value(),
|
|
1269
|
+
'atom_font_family_2d': self.atom_font_family_2d_combo.currentFont().family(),
|
|
1261
1270
|
}
|
|
1262
1271
|
|
|
1263
1272
|
def pick_bs_bond_color(self):
|
|
@@ -1519,6 +1528,10 @@ class SettingsDialog(QDialog):
|
|
|
1519
1528
|
self.atom_font_size_2d_slider.setValue(int(fs_2d))
|
|
1520
1529
|
self.atom_font_size_2d_label.setText(str(fs_2d))
|
|
1521
1530
|
|
|
1531
|
+
# Load Font Family
|
|
1532
|
+
font_family = settings_dict.get('atom_font_family_2d', self.default_settings['atom_font_family_2d'])
|
|
1533
|
+
self.atom_font_family_2d_combo.setCurrentFont(QFont(font_family))
|
|
1534
|
+
|
|
1522
1535
|
self.atom_use_bond_color_2d_checkbox.setChecked(settings_dict.get('atom_use_bond_color_2d', self.default_settings.get('atom_use_bond_color_2d', False)))
|
|
1523
1536
|
|
|
1524
1537
|
self.current_bg_color_2d = settings_dict.get('background_color_2d', self.default_settings['background_color_2d'])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/MoleditPy_linux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/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
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/align_plane_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/alignment_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/analysis_window.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/assets/file_icon.ico
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/assets/icon.icns
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/bond_length_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/calculation_worker.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/color_settings_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/custom_qt_interactor.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/dihedral_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_app_state.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_compute.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_edit_3d.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_export.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/main_window_view_3d.py
RENAMED
|
File without changes
|
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/mirror_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/molecular_data.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/molecule_scene.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/move_group_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/periodic_table_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/planarize_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/plugin_interface.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/plugin_manager.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/plugin_manager_window.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/template_preview_item.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/template_preview_view.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/translation_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/user_template_dialog.py
RENAMED
|
File without changes
|
{moleditpy_linux-2.4.4 → moleditpy_linux-2.4.6}/src/moleditpy_linux/modules/zoomable_view.py
RENAMED
|
File without changes
|