unified icon set used for PyLoT in order to match the license restriction
10
QtPyLoT.py
@ -133,11 +133,13 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
# create resource icons
|
# create resource icons
|
||||||
p_icon = QIcon()
|
p_icon = QIcon()
|
||||||
p_icon.addPixmap(QPixmap(':/icons/picon.png'))
|
p_icon.addPixmap(QPixmap(':/icons/key_P.png'))
|
||||||
s_icon = QIcon()
|
s_icon = QIcon()
|
||||||
s_icon.addPixmap(QPixmap(':/icons/sicon.png'))
|
s_icon.addPixmap(QPixmap(':/icons/key_S.png'))
|
||||||
print_icon = QIcon()
|
print_icon = QIcon()
|
||||||
print_icon.addPixmap(QPixmap(':/icons/printer.png'))
|
print_icon.addPixmap(QPixmap(':/icons/printer.png'))
|
||||||
|
filter_icon = QIcon()
|
||||||
|
filter_icon.addPixmap(QPixmap(':/icons/filter.png'))
|
||||||
|
|
||||||
newEventAction = self.createAction(self, "&New event ...",
|
newEventAction = self.createAction(self, "&New event ...",
|
||||||
self.createNewEvent,
|
self.createNewEvent,
|
||||||
@ -166,7 +168,7 @@ class MainWindow(QMainWindow):
|
|||||||
"Close event and quit PyLoT")
|
"Close event and quit PyLoT")
|
||||||
self.filterAction = self.createAction(self, "&Filter ...",
|
self.filterAction = self.createAction(self, "&Filter ...",
|
||||||
self.filterWaveformData,
|
self.filterWaveformData,
|
||||||
"Ctrl+F", QIcon(":/filter.png"),
|
"Ctrl+F", filter_icon,
|
||||||
"""Toggle un-/filtered waveforms
|
"""Toggle un-/filtered waveforms
|
||||||
to be displayed, according to the
|
to be displayed, according to the
|
||||||
desired seismic phase.""", True)
|
desired seismic phase.""", True)
|
||||||
@ -259,7 +261,7 @@ class MainWindow(QMainWindow):
|
|||||||
if recentEvents:
|
if recentEvents:
|
||||||
for i, eventID in enumerate(recentEvents):
|
for i, eventID in enumerate(recentEvents):
|
||||||
fname = fnConstructor(eventID)
|
fname = fnConstructor(eventID)
|
||||||
action = QAction(QIcon(":/icon.png"),
|
action = QAction(self.windowIcon(),
|
||||||
"&{0} {1}".format(i + 1,
|
"&{0} {1}".format(i + 1,
|
||||||
QFileInfo(fname).fileName()),
|
QFileInfo(fname).fileName()),
|
||||||
self)
|
self)
|
||||||
|
16
icons.qrc
@ -2,11 +2,21 @@
|
|||||||
<qresource>
|
<qresource>
|
||||||
<file>icons/pylot.ico</file>
|
<file>icons/pylot.ico</file>
|
||||||
<file>icons/printer.png</file>
|
<file>icons/printer.png</file>
|
||||||
<file>icons/picon.png</file>
|
<file>icons/key_E.png</file>
|
||||||
<file>icons/sicon.png</file>
|
<file>icons/key_N.png</file>
|
||||||
|
<file>icons/key_P.png</file>
|
||||||
|
<file>icons/key_Q.png</file>
|
||||||
|
<file>icons/key_R.png</file>
|
||||||
|
<file>icons/key_S.png</file>
|
||||||
|
<file>icons/key_T.png</file>
|
||||||
|
<file>icons/key_U.png</file>
|
||||||
|
<file>icons/key_V.png</file>
|
||||||
|
<file>icons/key_W.png</file>
|
||||||
|
<file>icons/key_Z.png</file>
|
||||||
<file>icons/pick.png</file>
|
<file>icons/pick.png</file>
|
||||||
<file>icons/filter.png</file>
|
<file>icons/filter.png</file>
|
||||||
<file>icons/zoom.png</file>
|
<file>icons/zoom_in.png</file>
|
||||||
|
<file>icons/zoom_out.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/help">
|
<qresource prefix="/help">
|
||||||
<file>help/index.html</file>
|
<file>help/index.html</file>
|
||||||
|
BIN
icons/key_E.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
BIN
icons/key_N.png
Executable file
After Width: | Height: | Size: 4.0 KiB |
BIN
icons/key_P.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
BIN
icons/key_Q.png
Executable file
After Width: | Height: | Size: 4.1 KiB |
BIN
icons/key_R.png
Executable file
After Width: | Height: | Size: 4.0 KiB |
BIN
icons/key_S.png
Executable file
After Width: | Height: | Size: 4.0 KiB |
BIN
icons/key_T.png
Executable file
After Width: | Height: | Size: 3.8 KiB |
BIN
icons/key_U.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
BIN
icons/key_V.png
Executable file
After Width: | Height: | Size: 4.0 KiB |
BIN
icons/key_W.png
Executable file
After Width: | Height: | Size: 4.1 KiB |
BIN
icons/key_Z.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
BIN
icons/picon.png
Before Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 6.5 KiB |
BIN
icons/sicon.png
Before Width: | Height: | Size: 726 B |
BIN
icons/zoom.png
Before Width: | Height: | Size: 7.5 KiB |
BIN
icons/zoom_in.png
Executable file
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 6.9 KiB |
BIN
icons/zoom_out.png
Executable file
After Width: | Height: | Size: 6.9 KiB |
@ -224,7 +224,7 @@ class PickDlg(QDialog):
|
|||||||
filter_icon = QIcon()
|
filter_icon = QIcon()
|
||||||
filter_icon.addPixmap(QPixmap(':/icons/filter.png'))
|
filter_icon.addPixmap(QPixmap(':/icons/filter.png'))
|
||||||
zoom_icon = QIcon()
|
zoom_icon = QIcon()
|
||||||
zoom_icon.addPixmap(QPixmap(':/icons/zoom.png'))
|
zoom_icon.addPixmap(QPixmap(':/icons/zoom_in.png'))
|
||||||
|
|
||||||
# create actions
|
# create actions
|
||||||
self.filterAction = createAction(parent=self, text='Filter',
|
self.filterAction = createAction(parent=self, text='Filter',
|
||||||
|