Commit 175773e3 authored by Nico Alt's avatar Nico Alt
Browse files

Add private_chat module

parent 0ec06942
......@@ -3,9 +3,9 @@
# License-Filename: LICENSE.md
from briar_gtk.handlers.notification import NotificationHandler
from briar_gtk.presenters.private_chat import PrivateChatPresenter
from briar_gtk.private_chat.private_chat_presenter import PrivateChatPresenter
from briar_gtk.define import APP
from briar_gtk.views.private_chat import PrivateChatView
from briar_gtk.private_chat.private_chat_view import PrivateChatView
from briar_gtk.conversation_sidebar.conversation_sidebar_view import SidebarView
from briar_gtk.conversation.about_dialog import AboutDialogWidget
......
# Copyright (c) 2020 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
"""
Presenters (of MVP pattern) reacting to user input and model/data updates
in Briar GTK
"""
# Copyright (c) 2020 Nico Alt
# Copyright (c) 2021 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
"""
Widgets (small UI chunks) in Briar GTK
Private chat in Briar GTK
"""
......@@ -6,7 +6,7 @@ from gettext import gettext as _
from gi.repository import Gtk
class EditDialog(Gtk.Dialog):
class EditDialogWidget(Gtk.Dialog):
def __init__(self, parent: "Gtk.Window", flags: "Gtk.DialogFlags",
placeholder: str, text: str = ""):
......
# Copyright (c) 2020 Nico Alt
# Copyright (c) 2020-2021 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
......@@ -11,7 +11,7 @@ from briar_wrapper.models.contacts import Contacts
from briar_wrapper.models.private_chat import PrivateChat
from briar_gtk.define import APP
from briar_gtk.widgets.edit_dialog import EditDialog
from briar_gtk.private_chat.edit_dialog import EditDialogWidget
# pylint: disable=too-many-arguments
......@@ -32,7 +32,7 @@ class PrivateChatPresenter:
if self._view.contact_id == 0:
raise Exception("Can't change contact alias with ID 0")
confirmation_dialog = EditDialog(
confirmation_dialog = EditDialogWidget(
parent=APP().window,
flags=Gtk.DialogFlags.MODAL,
placeholder=self._get_contact_name(self._view.contact_id)
......
# Copyright (c) 2019-2020 Nico Alt
# Copyright (c) 2019-2021 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
#
......@@ -11,8 +11,8 @@ from gi.repository import GLib, Gtk, Handy
from briar_wrapper.models.private_chat import PrivateChat
from briar_gtk.define import APP, RESOURCES_DIR
from briar_gtk.presenters.private_chat import PrivateChatPresenter
from briar_gtk.widgets.private_message import PrivateMessageWidget
from briar_gtk.private_chat.private_chat_presenter import PrivateChatPresenter
from briar_gtk.private_chat.private_message import PrivateMessageWidget
# pylint: disable=too-many-instance-attributes
......
# Copyright (c) 2020 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
"""
Views (of MVP pattern) displaying data in Briar GTK
"""
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