Skip to content

Commit

Permalink
added setting icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Nov 11, 2023
1 parent f68e275 commit 9936343
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
__all__ = ['DOCKEY_VERSION', 'DOCKEY_BUILD', 'DOCKEY_ABOUT',
'DOCKEY_THANKS']

DOCKEY_VERSION = "0.10.0"
DOCKEY_VERSION = "0.10.1"

DOCKEY_BUILD = "231110"
DOCKEY_BUILD = "231111"

DOCKEY_ABOUT = """
<p>Dockey - Molecular Docking and Virtual Screening</p>
Expand Down
1 change: 1 addition & 0 deletions src/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
<file>icons/chembl.png</file>
<file>icons/pdb.png</file>
<file>icons/pubchem.png</file>
<file>icons/setting.svg</file>
</qresource>
</RCC>
20 changes: 20 additions & 0 deletions src/icons/setting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
139 changes: 136 additions & 3 deletions src/rc_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -4702,6 +4702,133 @@
\x0d\x0b!\xc30\x0c\xe3\xd5\xb0\x102\x0c\xc30^\x0d\
\x0b!\xc30\x0c\xe3\xd5\xfc\x7f\xc1B\xbf\x1a\xacwR\
\xa6\x00\x00\x00\x00IEND\xaeB`\x82\
\x00\x00\x07\xc1\
<\
?xml version=\x221.\
0\x22 encoding=\x22utf\
-8\x22?>\x0d\x0a<!-- Gene\
rator: Adobe Ill\
ustrator 26.2.1,\
SVG Export Plug\
-In . SVG Versio\
n: 6.00 Build 0)\
-->\x0d\x0a<svg vers\
ion=\x221.1\x22 id=\x22\xe5\x9b\
\xbe\xe5\xb1\x82_1\x22 xmlns=\x22h\
ttp://www.w3.org\
/2000/svg\x22 xmlns\
:xlink=\x22http://w\
ww.w3.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>\x0d\x0a\
\
\x00\x00\x03\xd1\
<\
?xml version=\x221.\
Expand Down Expand Up @@ -4924,6 +5051,10 @@
\x03\x82j\xc7\
\x00c\
\x00h\x00e\x00m\x00b\x00l\x00.\x00p\x00n\x00g\
\x00\x0b\
\x00\xbd\xcd\xa7\
\x00s\
\x00e\x00t\x00t\x00i\x00n\x00g\x00.\x00s\x00v\x00g\
\x00\x08\
\x08\xc8U\xe7\
\x00s\
Expand All @@ -4937,10 +5068,12 @@
qt_resource_struct = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x1d\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x1e\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x01r\x00\x00\x00\x00\x00\x01\x00\x00J\xa2\
\x00\x00\x01\x87\xbd\xc52\xfe\
\x00\x00\x02\x8c\x00\x00\x00\x00\x00\x01\x00\x01!\xe5\
\x00\x00\x01\x8b\xbc\x91\xc8\xa1\
\x00\x00\x02,\x00\x00\x00\x00\x00\x01\x00\x00\xf0z\
\x00\x00\x01\x806k\x809\
\x00\x00\x02r\x00\x00\x00\x00\x00\x01\x00\x00\xf9C\
Expand Down Expand Up @@ -4971,7 +5104,7 @@
\x00\x00\x01\x806k\x80:\
\x00\x00\x01\x9e\x00\x00\x00\x00\x00\x01\x00\x00a\x7f\
\x00\x00\x01\x80\x94\xceT\xed\
\x00\x00\x02\x8c\x00\x00\x00\x00\x00\x01\x00\x01!\xe5\
\x00\x00\x02\xa8\x00\x00\x00\x00\x00\x01\x00\x01)\xaa\
\x00\x00\x01\x806k\x80>\
\x00\x00\x00\x82\x00\x00\x00\x00\x00\x01\x00\x00%\xd7\
\x00\x00\x01\x806k\x809\
Expand All @@ -4989,7 +5122,7 @@
\x00\x00\x01\x806k\x809\
\x00\x00\x02\x16\x00\x00\x00\x00\x00\x01\x00\x00\xed\xe9\
\x00\x00\x01\x806k\x80>\
\x00\x00\x02\xa2\x00\x00\x00\x00\x00\x01\x00\x01%\xba\
\x00\x00\x02\xbe\x00\x00\x00\x00\x00\x01\x00\x01-\x7f\
\x00\x00\x01\x806k\x80>\
\x00\x00\x00j\x00\x00\x00\x00\x00\x01\x00\x00#F\
\x00\x00\x01\x82\x96\x83\xa2\xf4\
Expand Down
6 changes: 4 additions & 2 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,10 @@ def create_actions(self):
self.del_chain_act.triggered.connect(self.pymol_remove_chain)

#preferences actions
self.setting_act = QAction("Settings", self)
self.setting_act = QAction(QIcon(':/icons/setting.svg'), "Settings", self)
self.setting_act.setIconVisibleInMenu(False)
self.setting_act.triggered.connect(self.open_setting_dialog)
#self.setting_act.setShortcut(QKeySequence.Preferences)
self.setting_act.setShortcut(QKeySequence.Preferences)

#self.dock_tool_act = QAction("Docking Tools", self)
#self.dock_tool_act.triggered.connect(self.docking_tool_settings)
Expand Down Expand Up @@ -731,6 +732,7 @@ def create_toolbar(self):
self.toolbar.addSeparator()
self.toolbar.addAction(self.export_image_act)
self.toolbar.addSeparator()
self.toolbar.addAction(self.setting_act)
self.toolbar.addAction(self.check_cpu_act)
self.toolbar.addAction(self.pymol_cmd_act)
self.feedback_act = self.toolbar.addWidget(self.feedback_edit)
Expand Down

0 comments on commit 9936343

Please sign in to comment.