Commit dc4f9c38 authored by Dan Pascu's avatar Dan Pascu

Restructured main menu

parent 0b277697
......@@ -145,15 +145,17 @@ class MainWindow(base_class, ui_class):
self.release_notes_action.triggered.connect(partial(QDesktopServices.openUrl, QUrl(u'http://icanblink.com/changelog-qt.phtml')))
self.quit_action.triggered.connect(self.close)
# Audio menu actions
# Call menu actions
self.redial_action.triggered.connect(self._AH_RedialActionTriggered)
self.mute_action.triggered.connect(self._SH_MuteButtonClicked)
self.silent_action.triggered.connect(self._SH_SilentButtonClicked)
# Devices menu actions
self.output_devices_group.triggered.connect(self._AH_AudioOutputDeviceChanged)
self.input_devices_group.triggered.connect(self._AH_AudioInputDeviceChanged)
self.alert_devices_group.triggered.connect(self._AH_AudioAlertDeviceChanged)
# History menu actions
self.redial_action.triggered.connect(self._AH_RedialActionTriggered)
# Tools menu actions
self.answering_machine_action.triggered.connect(self._AH_EnableAnsweringMachineTriggered)
......
......@@ -936,14 +936,6 @@ padding: 2px;</string>
<property name="title">
<string>&amp;History</string>
</property>
<widget class="QMenu" name="voicemail_menu">
<property name="enabled">
<bool>true</bool>
</property>
<property name="title">
<string>&amp;Voicemail</string>
</property>
</widget>
<widget class="QMenu" name="missed_calls_menu">
<property name="enabled">
<bool>false</bool>
......@@ -980,17 +972,15 @@ padding: 2px;</string>
<normaloff>icons/received-calls.png</normaloff>icons/received-calls.png</iconset>
</property>
</widget>
<addaction name="redial_action"/>
<addaction name="history_action"/>
<addaction name="separator"/>
<addaction name="voicemail_menu"/>
<addaction name="missed_calls_menu"/>
<addaction name="placed_calls_menu"/>
<addaction name="received_calls_menu"/>
</widget>
<widget class="QMenu" name="audio_menu">
<widget class="QMenu" name="devices_menu">
<property name="title">
<string>&amp;Audio</string>
<string>&amp;Devices</string>
</property>
<widget class="QMenu" name="output_device_menu">
<property name="title">
......@@ -1019,9 +1009,6 @@ padding: 2px;</string>
<normaloff>icons/bell.png</normaloff>icons/bell.png</iconset>
</property>
</widget>
<addaction name="mute_action"/>
<addaction name="silent_action"/>
<addaction name="separator"/>
<addaction name="output_device_menu"/>
<addaction name="input_device_menu"/>
<addaction name="alert_device_menu"/>
......@@ -1041,8 +1028,24 @@ padding: 2px;</string>
<addaction name="file_transfers_action"/>
<addaction name="logs_action"/>
</widget>
<widget class="QMenu" name="call_menu">
<property name="title">
<string>&amp;Call</string>
</property>
<widget class="QMenu" name="voicemail_menu">
<property name="title">
<string>&amp;Voicemail</string>
</property>
</widget>
<addaction name="redial_action"/>
<addaction name="voicemail_menu"/>
<addaction name="separator"/>
<addaction name="mute_action"/>
<addaction name="silent_action"/>
</widget>
<addaction name="blink_menu"/>
<addaction name="audio_menu"/>
<addaction name="call_menu"/>
<addaction name="devices_menu"/>
<addaction name="history_menu"/>
<addaction name="tools_menu"/>
</widget>
......@@ -1145,7 +1148,7 @@ padding: 2px;</string>
</action>
<action name="redial_action">
<property name="text">
<string>Re&amp;dial</string>
<string>&amp;Redial</string>
</property>
<property name="shortcut">
<string>Ctrl+R</string>
......@@ -1173,7 +1176,7 @@ padding: 2px;</string>
<bool>true</bool>
</property>
<property name="text">
<string>&amp;Silent</string>
<string>&amp;Silence alerts</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment