Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
066e2e83
Commit
066e2e83
authored
Jun 29, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made status switch automatically to 'On the phone' during a call
parent
35e60fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
mainwindow.py
blink/mainwindow.py
+10
-0
No files found.
blink/mainwindow.py
View file @
066e2e83
...
@@ -86,6 +86,7 @@ class MainWindow(base_class, ui_class):
...
@@ -86,6 +86,7 @@ class MainWindow(base_class, ui_class):
self
.
identity
.
currentIndexChanged
[
int
]
.
connect
(
self
.
_SH_IdentityCurrentIndexChanged
)
self
.
identity
.
currentIndexChanged
[
int
]
.
connect
(
self
.
_SH_IdentityCurrentIndexChanged
)
self
.
display_name
.
editingFinished
.
connect
(
self
.
_SH_DisplayNameEditingFinished
)
self
.
display_name
.
editingFinished
.
connect
(
self
.
_SH_DisplayNameEditingFinished
)
self
.
status
.
activated
[
int
]
.
connect
(
self
.
_SH_StatusChanged
)
self
.
silent_button
.
clicked
.
connect
(
self
.
_SH_SilentButtonClicked
)
self
.
silent_button
.
clicked
.
connect
(
self
.
_SH_SilentButtonClicked
)
...
@@ -101,6 +102,8 @@ class MainWindow(base_class, ui_class):
...
@@ -101,6 +102,8 @@ class MainWindow(base_class, ui_class):
self
.
conference_button
.
breakConference
.
connect
(
self
.
_SH_BreakConference
)
self
.
conference_button
.
breakConference
.
connect
(
self
.
_SH_BreakConference
)
self
.
mute_button
.
clicked
.
connect
(
self
.
_SH_MuteButtonClicked
)
self
.
mute_button
.
clicked
.
connect
(
self
.
_SH_MuteButtonClicked
)
self
.
idle_status_index
=
0
notification_center
=
NotificationCenter
()
notification_center
=
NotificationCenter
()
notification_center
.
add_observer
(
self
,
name
=
'SIPApplicationWillStart'
)
notification_center
.
add_observer
(
self
,
name
=
'SIPApplicationWillStart'
)
...
@@ -286,12 +289,19 @@ class MainWindow(base_class, ui_class):
...
@@ -286,12 +289,19 @@ class MainWindow(base_class, ui_class):
else
:
else
:
self
.
conference_button
.
setEnabled
(
len
([
session
for
session
in
self
.
session_model
.
sessions
if
session
.
conference
is
None
and
not
session
.
pending_removal
])
>
1
)
self
.
conference_button
.
setEnabled
(
len
([
session
for
session
in
self
.
session_model
.
sessions
if
session
.
conference
is
None
and
not
session
.
pending_removal
])
>
1
)
self
.
conference_button
.
setChecked
(
False
)
self
.
conference_button
.
setChecked
(
False
)
if
self
.
session_model
.
active_sessions
:
self
.
status
.
setCurrentIndex
(
self
.
status
.
findText
(
u'On the phone'
))
else
:
self
.
status
.
setCurrentIndex
(
self
.
idle_status_index
)
def
_SH_SilentButtonClicked
(
self
,
silent
):
def
_SH_SilentButtonClicked
(
self
,
silent
):
settings
=
SIPSimpleSettings
()
settings
=
SIPSimpleSettings
()
settings
.
audio
.
silent
=
silent
settings
.
audio
.
silent
=
silent
settings
.
save
()
settings
.
save
()
def
_SH_StatusChanged
(
self
,
index
):
self
.
idle_status_index
=
index
def
_SH_SwitchViewButtonChangedView
(
self
,
view
):
def
_SH_SwitchViewButtonChangedView
(
self
,
view
):
self
.
main_view
.
setCurrentWidget
(
self
.
contacts_panel
if
view
is
SwitchViewButton
.
ContactView
else
self
.
sessions_panel
)
self
.
main_view
.
setCurrentWidget
(
self
.
contacts_panel
if
view
is
SwitchViewButton
.
ContactView
else
self
.
sessions_panel
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment