Disabled audio playback
This commit is contained in:
parent
ead1f186f0
commit
d4fa723155
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
## Changes in the current build ()
|
## Changes in the current build ()
|
||||||
|
|
||||||
* Added a new menu in the menu bar that allows you to control the audio playback. For some actions (like play, next and back), if you are not focusing an audio buffer, the program will take the song from the "my audios" buffer.
|
|
||||||
* Added two more buffers: "Followers" and "I follow", located in the people buffer, under "friendship requests".
|
* Added two more buffers: "Followers" and "I follow", located in the people buffer, under "friendship requests".
|
||||||
* Added an experimental photo viewer. Will show options for seeing the next and previous photo if the current post contains multiple images. Fullscreen button still doesn't work.
|
* Added an experimental photo viewer. Will show options for seeing the next and previous photo if the current post contains multiple images. Fullscreen button still doesn't work.
|
||||||
* Improved chats, now they should be more stable. Also you will be able to send the message by pressing enter in the text box. If you are trying to send the same message multiple times, you will be warned.
|
* Improved chats, now they should be more stable. Also you will be able to send the message by pressing enter in the text box. If you are trying to send the same message multiple times, you will be warned.
|
||||||
@ -11,6 +10,7 @@
|
|||||||
* Added basic tagging for users in posts and comments. You can tag only people in your friends buffer.
|
* Added basic tagging for users in posts and comments. You can tag only people in your friends buffer.
|
||||||
* Added a basic user profile viewer.
|
* Added a basic user profile viewer.
|
||||||
* Added support for listening voice messages in chats. Currently it is not possible to send them, until the new API will be released.
|
* Added support for listening voice messages in chats. Currently it is not possible to send them, until the new API will be released.
|
||||||
|
* For now, all features related to audio playback have been disabled.
|
||||||
|
|
||||||
## Changes in build 2016.07.08 (08/07/2016)
|
## Changes in build 2016.07.08 (08/07/2016)
|
||||||
|
|
||||||
|
@ -75,23 +75,24 @@ class Controller(object):
|
|||||||
self.buffers.append(feed)
|
self.buffers.append(feed)
|
||||||
# Translators: Own user's wall name in the tree view.
|
# Translators: Own user's wall name in the tree view.
|
||||||
self.window.insert_buffer(feed.tab, _(u"My wall"), self.window.search("posts"))
|
self.window.insert_buffer(feed.tab, _(u"My wall"), self.window.search("posts"))
|
||||||
audios = buffers.empty(parent=self.window.tb, name="audios")
|
### Disabled audio stuff for now.
|
||||||
self.buffers.append(audios)
|
# audios = buffers.empty(parent=self.window.tb, name="audios")
|
||||||
|
# self.buffers.append(audios)
|
||||||
# Translators: name for the music category in the tree view.
|
# Translators: name for the music category in the tree view.
|
||||||
self.window.add_buffer(audios.tab, _(u"Music"))
|
# self.window.add_buffer(audios.tab, _(u"Music"))
|
||||||
|
|
||||||
audio = buffers.audioBuffer(parent=self.window.tb, name="me_audio", composefunc="compose_audio", session=self.session, endpoint="get", parent_endpoint="audio", full_list=True, count=self.session.settings["buffers"]["count_for_audio_buffers"])
|
# audio = buffers.audioBuffer(parent=self.window.tb, name="me_audio", composefunc="compose_audio", session=self.session, endpoint="get", parent_endpoint="audio", full_list=True, count=self.session.settings["buffers"]["count_for_audio_buffers"])
|
||||||
self.buffers.append(audio)
|
# self.buffers.append(audio)
|
||||||
self.window.insert_buffer(audio.tab, _(u"My audios"), self.window.search("audios"))
|
# self.window.insert_buffer(audio.tab, _(u"My audios"), self.window.search("audios"))
|
||||||
p_audio = buffers.audioBuffer(parent=self.window.tb, name="popular_audio", composefunc="compose_audio", session=self.session, endpoint="getPopular", parent_endpoint="audio", full_list=True, count=self.session.settings["buffers"]["count_for_audio_buffers"])
|
# p_audio = buffers.audioBuffer(parent=self.window.tb, name="popular_audio", composefunc="compose_audio", session=self.session, endpoint="getPopular", parent_endpoint="audio", full_list=True, count=self.session.settings["buffers"]["count_for_audio_buffers"])
|
||||||
self.buffers.append(p_audio)
|
# self.buffers.append(p_audio)
|
||||||
self.window.insert_buffer(p_audio.tab, _(u"Populars"), self.window.search("audios"))
|
# self.window.insert_buffer(p_audio.tab, _(u"Populars"), self.window.search("audios"))
|
||||||
r_audio = buffers.audioBuffer(parent=self.window.tb, name="recommended_audio", composefunc="compose_audio", session=self.session, endpoint="getRecommendations", parent_endpoint="audio", full_list=True, count=self.session.settings["buffers"]["count_for_audio_buffers"])
|
# r_audio = buffers.audioBuffer(parent=self.window.tb, name="recommended_audio", composefunc="compose_audio", session=self.session, endpoint="getRecommendations", parent_endpoint="audio", full_list=True, count=self.session.settings["buffers"]["count_for_audio_buffers"])
|
||||||
self.buffers.append(r_audio)
|
# self.buffers.append(r_audio)
|
||||||
self.window.insert_buffer(r_audio.tab, _(u"Recommendations"), self.window.search("audios"))
|
# self.window.insert_buffer(r_audio.tab, _(u"Recommendations"), self.window.search("audios"))
|
||||||
albums = buffers.empty(parent=self.window.tb, name="albums")
|
# albums = buffers.empty(parent=self.window.tb, name="albums")
|
||||||
self.buffers.append(albums)
|
# self.buffers.append(albums)
|
||||||
self.window.insert_buffer(albums.tab, _(u"Albums"), self.window.search("audios"))
|
# self.window.insert_buffer(albums.tab, _(u"Albums"), self.window.search("audios"))
|
||||||
|
|
||||||
videos = buffers.empty(parent=self.window.tb, name="videos")
|
videos = buffers.empty(parent=self.window.tb, name="videos")
|
||||||
self.buffers.append(videos)
|
self.buffers.append(videos)
|
||||||
|
@ -16,11 +16,11 @@ class timelineDialog(widgetUtils.BaseDialog):
|
|||||||
userSizer.Add(self.cb, 0, wx.ALL, 5)
|
userSizer.Add(self.cb, 0, wx.ALL, 5)
|
||||||
actionsstatic = wx.StaticBox(panel, label=_(u"Buffer type"))
|
actionsstatic = wx.StaticBox(panel, label=_(u"Buffer type"))
|
||||||
self.wall = wx.RadioButton(panel, wx.NewId(), _(u"&Wall posts"), style=wx.RB_GROUP)
|
self.wall = wx.RadioButton(panel, wx.NewId(), _(u"&Wall posts"), style=wx.RB_GROUP)
|
||||||
self.audio = wx.RadioButton(panel, wx.NewId(), _(u"Audio"))
|
# self.audio = wx.RadioButton(panel, wx.NewId(), _(u"Audio"))
|
||||||
self.friends = wx.RadioButton(panel, wx.NewId(), _(u"Friends"))
|
self.friends = wx.RadioButton(panel, wx.NewId(), _(u"Friends"))
|
||||||
radioSizer = wx.StaticBoxSizer(actionsstatic, wx.HORIZONTAL)
|
radioSizer = wx.StaticBoxSizer(actionsstatic, wx.HORIZONTAL)
|
||||||
radioSizer.Add(self.wall, 0, wx.ALL, 5)
|
radioSizer.Add(self.wall, 0, wx.ALL, 5)
|
||||||
radioSizer.Add(self.audio, 0, wx.ALL, 5)
|
# radioSizer.Add(self.audio, 0, wx.ALL, 5)
|
||||||
radioSizer.Add(self.friends, 0, wx.ALL, 5)
|
radioSizer.Add(self.friends, 0, wx.ALL, 5)
|
||||||
sizer.Add(radioSizer, 0, wx.ALL, 5)
|
sizer.Add(radioSizer, 0, wx.ALL, 5)
|
||||||
ok = wx.Button(panel, wx.ID_OK, _(u"&OK"))
|
ok = wx.Button(panel, wx.ID_OK, _(u"&OK"))
|
||||||
@ -37,9 +37,9 @@ class timelineDialog(widgetUtils.BaseDialog):
|
|||||||
return self.cb.GetValue()
|
return self.cb.GetValue()
|
||||||
|
|
||||||
def get_buffer_type(self):
|
def get_buffer_type(self):
|
||||||
if self.audio.GetValue() == True:
|
# if self.audio.GetValue() == True:
|
||||||
return "audio"
|
# return "audio"
|
||||||
elif self.wall.GetValue() == True:
|
if self.wall.GetValue() == True:
|
||||||
return "wall"
|
return "wall"
|
||||||
elif self.friends.GetValue() == True:
|
elif self.friends.GetValue() == True:
|
||||||
return "friends"
|
return "friends"
|
@ -8,16 +8,19 @@ class mainWindow(wx.Frame):
|
|||||||
app_ = wx.Menu()
|
app_ = wx.Menu()
|
||||||
create = wx.Menu()
|
create = wx.Menu()
|
||||||
self.audio_album = create.Append(wx.NewId(), _(u"Audio album"))
|
self.audio_album = create.Append(wx.NewId(), _(u"Audio album"))
|
||||||
|
self.audio_album.Enable(False)
|
||||||
self.video_album = create.Append(wx.NewId(), _(u"Video album"))
|
self.video_album = create.Append(wx.NewId(), _(u"Video album"))
|
||||||
app_.AppendMenu(wx.NewId(), _(u"Create"), create)
|
app_.AppendMenu(wx.NewId(), _(u"Create"), create)
|
||||||
delete = wx.Menu()
|
delete = wx.Menu()
|
||||||
self.delete_audio_album = delete.Append(wx.NewId(), _(u"Audio album"))
|
self.delete_audio_album = delete.Append(wx.NewId(), _(u"Audio album"))
|
||||||
|
self.delete_audio_album.Enable(False)
|
||||||
self.delete_video_album = delete.Append(wx.NewId(), _(u"Video album"))
|
self.delete_video_album = delete.Append(wx.NewId(), _(u"Video album"))
|
||||||
app_.AppendMenu(wx.NewId(), _(u"Delete"), delete)
|
app_.AppendMenu(wx.NewId(), _(u"Delete"), delete)
|
||||||
self.settings_dialog = app_.Append(wx.NewId(), _(u"Preferences"))
|
self.settings_dialog = app_.Append(wx.NewId(), _(u"Preferences"))
|
||||||
buffer = wx.Menu()
|
buffer = wx.Menu()
|
||||||
search = wx.Menu()
|
search = wx.Menu()
|
||||||
self.search_audios = search.Append(wx.NewId(), _(u"Audio"))
|
self.search_audios = search.Append(wx.NewId(), _(u"Audio"))
|
||||||
|
self.search_audios.Enable(False)
|
||||||
self.search_videos = search.Append(wx.NewId(), _(u"Video"))
|
self.search_videos = search.Append(wx.NewId(), _(u"Video"))
|
||||||
self.timeline = buffer.Append(wx.NewId(), _(u"&New timeline"))
|
self.timeline = buffer.Append(wx.NewId(), _(u"&New timeline"))
|
||||||
buffer.AppendMenu(wx.NewId(), _(u"Search"), search)
|
buffer.AppendMenu(wx.NewId(), _(u"Search"), search)
|
||||||
@ -28,14 +31,23 @@ class mainWindow(wx.Frame):
|
|||||||
mb.Append(buffer, _(u"Buffer"))
|
mb.Append(buffer, _(u"Buffer"))
|
||||||
player = wx.Menu()
|
player = wx.Menu()
|
||||||
self.player_play = player.Append(wx.NewId(), _(u"Play"))
|
self.player_play = player.Append(wx.NewId(), _(u"Play"))
|
||||||
|
self.player_play.Enable(False)
|
||||||
self.player_play_all = player.Append(wx.NewId(), _(u"Play all"))
|
self.player_play_all = player.Append(wx.NewId(), _(u"Play all"))
|
||||||
|
self.player_play_all.Enable(False)
|
||||||
self.player_stop = player.Append(wx.NewId(), _(u"Stop"))
|
self.player_stop = player.Append(wx.NewId(), _(u"Stop"))
|
||||||
|
self.player_stop.Enable(False)
|
||||||
self.player_previous = player.Append(wx.NewId(), _(u"Previous"))
|
self.player_previous = player.Append(wx.NewId(), _(u"Previous"))
|
||||||
|
self.player_previous.Enable(False)
|
||||||
self.player_next = player.Append(wx.NewId(), _(u"Next"))
|
self.player_next = player.Append(wx.NewId(), _(u"Next"))
|
||||||
|
self.player_next.Enable(False)
|
||||||
self.player_shuffle = player.AppendCheckItem(wx.NewId(), _(u"Shuffle"))
|
self.player_shuffle = player.AppendCheckItem(wx.NewId(), _(u"Shuffle"))
|
||||||
|
self.player_shuffle.Enable(False)
|
||||||
self.player_volume_down = player.Append(wx.NewId(), _(u"Volume down"))
|
self.player_volume_down = player.Append(wx.NewId(), _(u"Volume down"))
|
||||||
|
self.player_volume_down.Enable(False)
|
||||||
self.player_volume_up = player.Append(wx.NewId(), _(u"Volume up"))
|
self.player_volume_up = player.Append(wx.NewId(), _(u"Volume up"))
|
||||||
|
self.player_volume_up.Enable(False)
|
||||||
self.player_mute = player.Append(wx.NewId(), _(u"Mute"))
|
self.player_mute = player.Append(wx.NewId(), _(u"Mute"))
|
||||||
|
self.player_mute.Enable(False)
|
||||||
help_ = wx.Menu()
|
help_ = wx.Menu()
|
||||||
self.about = help_.Append(wx.NewId(), _(u"About {0}").format(application.name,))
|
self.about = help_.Append(wx.NewId(), _(u"About {0}").format(application.name,))
|
||||||
self.documentation = help_.Append(wx.NewId(), _(u"Manual"))
|
self.documentation = help_.Append(wx.NewId(), _(u"Manual"))
|
||||||
|
Loading…
Reference in New Issue
Block a user