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): ...@@ -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.release_notes_action.triggered.connect(partial(QDesktopServices.openUrl, QUrl(u'http://icanblink.com/changelog-qt.phtml')))
self.quit_action.triggered.connect(self.close) 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.mute_action.triggered.connect(self._SH_MuteButtonClicked)
self.silent_action.triggered.connect(self._SH_SilentButtonClicked) self.silent_action.triggered.connect(self._SH_SilentButtonClicked)
# Devices menu actions
self.output_devices_group.triggered.connect(self._AH_AudioOutputDeviceChanged) self.output_devices_group.triggered.connect(self._AH_AudioOutputDeviceChanged)
self.input_devices_group.triggered.connect(self._AH_AudioInputDeviceChanged) self.input_devices_group.triggered.connect(self._AH_AudioInputDeviceChanged)
self.alert_devices_group.triggered.connect(self._AH_AudioAlertDeviceChanged) self.alert_devices_group.triggered.connect(self._AH_AudioAlertDeviceChanged)
# History menu actions # History menu actions
self.redial_action.triggered.connect(self._AH_RedialActionTriggered)
# Tools menu actions # Tools menu actions
self.answering_machine_action.triggered.connect(self._AH_EnableAnsweringMachineTriggered) self.answering_machine_action.triggered.connect(self._AH_EnableAnsweringMachineTriggered)
......
...@@ -936,14 +936,6 @@ padding: 2px;</string> ...@@ -936,14 +936,6 @@ padding: 2px;</string>
<property name="title"> <property name="title">
<string>&amp;History</string> <string>&amp;History</string>
</property> </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"> <widget class="QMenu" name="missed_calls_menu">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
...@@ -980,17 +972,15 @@ padding: 2px;</string> ...@@ -980,17 +972,15 @@ padding: 2px;</string>
<normaloff>icons/received-calls.png</normaloff>icons/received-calls.png</iconset> <normaloff>icons/received-calls.png</normaloff>icons/received-calls.png</iconset>
</property> </property>
</widget> </widget>
<addaction name="redial_action"/>
<addaction name="history_action"/> <addaction name="history_action"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="voicemail_menu"/>
<addaction name="missed_calls_menu"/> <addaction name="missed_calls_menu"/>
<addaction name="placed_calls_menu"/> <addaction name="placed_calls_menu"/>
<addaction name="received_calls_menu"/> <addaction name="received_calls_menu"/>
</widget> </widget>
<widget class="QMenu" name="audio_menu"> <widget class="QMenu" name="devices_menu">
<property name="title"> <property name="title">
<string>&amp;Audio</string> <string>&amp;Devices</string>
</property> </property>
<widget class="QMenu" name="output_device_menu"> <widget class="QMenu" name="output_device_menu">
<property name="title"> <property name="title">
...@@ -1019,9 +1009,6 @@ padding: 2px;</string> ...@@ -1019,9 +1009,6 @@ padding: 2px;</string>
<normaloff>icons/bell.png</normaloff>icons/bell.png</iconset> <normaloff>icons/bell.png</normaloff>icons/bell.png</iconset>
</property> </property>
</widget> </widget>
<addaction name="mute_action"/>
<addaction name="silent_action"/>
<addaction name="separator"/>
<addaction name="output_device_menu"/> <addaction name="output_device_menu"/>
<addaction name="input_device_menu"/> <addaction name="input_device_menu"/>
<addaction name="alert_device_menu"/> <addaction name="alert_device_menu"/>
...@@ -1041,8 +1028,24 @@ padding: 2px;</string> ...@@ -1041,8 +1028,24 @@ padding: 2px;</string>
<addaction name="file_transfers_action"/> <addaction name="file_transfers_action"/>
<addaction name="logs_action"/> <addaction name="logs_action"/>
</widget> </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="blink_menu"/>
<addaction name="audio_menu"/> <addaction name="call_menu"/>
<addaction name="devices_menu"/>
<addaction name="history_menu"/> <addaction name="history_menu"/>
<addaction name="tools_menu"/> <addaction name="tools_menu"/>
</widget> </widget>
...@@ -1145,7 +1148,7 @@ padding: 2px;</string> ...@@ -1145,7 +1148,7 @@ padding: 2px;</string>
</action> </action>
<action name="redial_action"> <action name="redial_action">
<property name="text"> <property name="text">
<string>Re&amp;dial</string> <string>&amp;Redial</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+R</string> <string>Ctrl+R</string>
...@@ -1173,7 +1176,7 @@ padding: 2px;</string> ...@@ -1173,7 +1176,7 @@ padding: 2px;</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Silent</string> <string>&amp;Silence alerts</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+S</string> <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