1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-28 19:35:38 +02:00
Commit graph

1053 commits

Author SHA1 Message Date
Andreas Traczyk
32ac718ef4 qmlengine: bump version to 1.1 for custom modules
Change-Id: I6e912c7a3dbba63f874b063770ba5c68a3f2de2f
2021-08-23 14:40:18 -04:00
Andreas Traczyk
0521bd21f7 qmlengine: homogenize qml module registration
Make sure all the calls to register are using the same versions
from qmlregister.h.

Change-Id: I1b6d2b168778fa91d16342765c93ad732de596e0
2021-08-23 14:28:23 -04:00
Andreas Traczyk
e49e7805e7 misc: don't use 'required' qml keyword
Support Qt versions less than 5.15. This is not a good idea.
Something is wrong with package deployment.

Change-Id: Idc3daef154f7994f8e5ca089a3a0c6fe4d97dacf
2021-08-23 14:22:38 -04:00
Andreas Traczyk
e87e0d97e0 qrcode: fix account qr code generation
The current account id is passed to the qr image provider but is
interpreted as a model index.

Change-Id: I5e2a94d5d02d07daa4826315a5d76925e80f033e
Gitlab: #490
2021-08-17 15:26:08 -04:00
Andreas Traczyk
f2ba34ca51 accounts: introduce currentaccount
A structure to represent the currently selected account and it's
properties as observables.

Change-Id: I6b4ae92e15b492a4c4d61ec5da019e2c7e937401
2021-08-17 10:14:57 -04:00
Andreas Traczyk
2410262fae chatview: focus on the message bar when selecting a conversation
This patch restores the auto focus with new QML message send bar.

Change-Id: I34e76c246c3d22c27d5e07f0294f18404a612f2c
2021-08-17 08:53:59 -04:00
Andreas Traczyk
db6c39cc4c chatview: hide the show plugins button for read-only conversations
Gitlab: #492
Change-Id: I4f5d0ed77dd8d2b4ed20af37525b9d33e967d649
2021-08-17 08:53:59 -04:00
Andreas Traczyk
53b5add8e7 chatview: make participant avatars available in the webview
Gitlab: #492
Change-Id: Ia9df04b26d80b9178993d73bb6ec3f8d187178f9
2021-08-17 08:53:59 -04:00
Ming Rui Zhang
51c09e0142 filesToSendDelegate: use js startsWith to check qt resource url
Gitlab: #492

Change-Id: I67c9c1eafe29ce8d8a150af2b914a15f9c74d7f2
2021-08-16 12:16:06 -04:00
Ming Rui Zhang
a811b9666c materialLineEdit: ui simplification
materialLineEdit should be a rather simple component and
any futher changes should be in another component such as
UsernameLineEdit.

Change-Id: I7d284c6fa87653468e64fd42874f8042a58d99cf
2021-08-16 09:20:32 -04:00
Ming Rui Zhang
37fd251413 wizardview: line edit enter key submits
Add enter key event handle for lineEdits in wizardview

Gitlab: #470

Change-Id: I41948196742068cd0a03ff37efe93982410e91ce
2021-08-16 09:20:19 -04:00
Ming Rui Zhang
77b8f2858e keyEvent: replace the unclear StandardKey comparisons
StandardKey.MoveToNextLine, StandardKey.MoveToPreviousLine
and StandardKey.InsertParagraphSeparator maybe confusing and
better to be replaced by direct key comparisons

Change-Id: I13361a43437214b9368d01a97b2e542f57835964
2021-08-16 09:20:02 -04:00
Ming Rui Zhang
6ceba6a792 profilepage: improvments on ui
1. Remove the "Select file" button during the camera picture-taking process
2. Add missing cancel (x) button during the first step of the camera picture-taking process
3. Disable all interactive components when the account creation is unfinished

Gitlab: #486
Change-Id: I91e279052aecdd9327f59e9a1377c344d9052323
2021-08-16 09:19:55 -04:00
Andreas Traczyk
9d6fe53f40 callpages: consume currentconversation observables
Change-Id: Ib8a1cf6fe3ba90c973c89e4806cfd3d6da1aa390
2021-08-13 16:20:22 -04:00
Andreas Traczyk
014362c8c3 convs: remove user interface to removeConversation
Change-Id: I2e11054cdbc73b3b196c4d9559836afe2e90a69b
2021-08-13 13:43:52 -04:00
Andreas Traczyk
a45754ed8c conversations: provide descriptive help banner for read-only convs
Adds a new chat view footer to describe for read-only conversations
to describe the concept and provide options to remove the contact
or restart a new conversation with the contact.

Gitlab: #475
Change-Id: I6ca0e8dfbf49f17a6ff93a2744c552b76d923773
2021-08-13 10:21:15 -04:00
Andreas Traczyk
6d0c125546 misc: remove some uses of the "ring" uri prefix
Change-Id: I3c9e065264b551eb0d28de743b4568116b1e0ec0
2021-08-12 15:08:54 -04:00
Andreas Traczyk
9914d496de misc: refactor materialbutton
A button component should have implicit dimensions based on it's
content item. This patch provides implicit dimensioning around the
content item so that non-fixed size buttons can be made by not
specifying the preferredWidth property.

Change-Id: Idc30eb1d9a33d8dd4b416e1060b45593b4fc4cba
2021-08-12 15:08:30 -04:00
Ming Rui Zhang
2bbb452e65 importFromDevicePage: clear all textFields when entering the page
Change-Id: Ia72453166b28b0a598288663c4b5d84461556b38
2021-08-12 15:03:52 -04:00
Sébastien Blin
7ccfd469d4
messagesadapter: re-add isSwarm
This show "Copy to Downloads" for file transfer in swarm.

Change-Id: I7002ce22898ced361ca3df1fa535dd7ec88e0d70
GitLab: https://git.jami.net/savoirfairelinux/ring-project/-/issues/1282
2021-08-11 16:59:13 -04:00
Andreas Traczyk
748e161b2b video: don't start the camera for no reason when it's plugged in
When the video device count goes to 1 from 0, previewing is
activated even if we're not in the av settings view. This patch
emits a signal that can be responded to by the settings view.

Gitlab: #489
Change-Id: Id0ed2809015359423ec0f829d8494f598a89c8ea
2021-08-11 10:08:00 -04:00
Andreas Traczyk
2ea0a000e1 swarm: fix chatview ui state when selecting conversations
depends on: https://review.jami.net/c/ring-lrc/+/18979

Change-Id: Ic29e5a6f6eced04a095dd097352c37ca0b253eda
2021-08-09 16:59:22 -04:00
Sébastien Blin
7531305be2 account: add support for sendReadReceipt
Change-Id: Iba44d7b7618c61db01d37477aee0a73ead094ca8
GitLab: https://git.jami.net/savoirfairelinux/ring-daemon/-/issues/599
2021-08-09 09:30:27 -04:00
Andreas Traczyk
6b3bf5149f misc: add a qml adapter class to represent the current conversation
Provides observable property representations of a conversation info
structure. Is updated when the selected conversation Id changes.

This object is only exposed in this commit, and will be used in
subsequent commits to introduce a more declarative approach in the
UI code.

Change-Id: I25be0f6b82cf9341b67fbf04fdeb04bffbf8ab24
2021-08-06 11:56:01 -04:00
Ming Rui Zhang
c2be09f55a test: add wizardview key navigation test
Gitlab: #470

Change-Id: I598cab490149739858958e89cc40cabb5820714a
2021-08-05 12:48:04 -04:00
Ming Rui Zhang
576da3e087 wizardview: add key navigations
Gitlab: #470

Change-Id: I2ec5c4a4b490895ea32fef64baf1e7c5b85cf9d5
2021-08-05 12:48:04 -04:00
Ming Rui Zhang
b6a566d13f wizardview: hide back button while waiting for account generations
Gitlab: #470

Change-Id: I79d1b5c77ae9e983e1c264532727616afb23f3ab
2021-08-05 12:48:04 -04:00
Ming Rui Zhang
4f56712c67 wizardviewstepmodel: remove profile page flow from imported accounts
Gitlab: #470

Change-Id: I9dd65e83885e89b447d6354c984d3d707e9f7061
2021-08-05 12:48:04 -04:00
Ming Rui Zhang
4884708a3d welcomepage: refine showAdvancedButton toolTipText
Gitlab: #460

Change-Id: I9f6bba8b93974922ad45f68365e2eb8d60eff2b3
2021-08-05 12:48:04 -04:00
Ming Rui Zhang
bbdecfaa9b wizardview: add tests & small issue fixes
1. Move accountStatusChanged and profileUpdated signals
   out from safeInit.
2. Add interrupter concept into Utils::oneShotConnect
   to avoid oneShotConnect being triggered after.
3. Add varieties of tests for wizardview including
   accounts creation tests (SIP, Jami, Rendezvous, Backup)
4. Remove uncleared stackLayoutIndex

Gitlab: #470

Change-Id: I22c04811110b277eee53610f4ae34c924316a20a
2021-08-05 12:48:04 -04:00
Andreas Traczyk
a3aea50985 misc: prevent tooltips from being clipped by the main window
Change-Id: Id46bb3920e992101561fcb558fb4f8cb7571f6b1
2021-08-03 13:07:44 -04:00
Andreas Traczyk
f42cd49c25 chatview: avoid drawing a duplicate id in the header
Change-Id: I88e37cac4bce5ba2b66ea7d35d54da84df7ecb86
2021-08-03 13:07:39 -04:00
Andreas Traczyk
519ced58f7 chatview: don't call printHistory
Use updateHistory instead. This prevents "Contact added" message
duplication. We also clear the unread messages at this point which
will prevent an uncleared unread first message when adding a new
conversation.

Gitlab: #482
Change-Id: I927e15dfe945aa3f2f33db3fb91739522db5ea9b
2021-08-03 08:55:56 -04:00
Andreas Traczyk
f05ffbce44 swarm: prevent interacting with read-only conversations
Read-only conversation has:
- a lock icon in the smartlist item
- no message send bar in the chat view
- no call actions available from the chat view header
- no call actions available from the smartlist context menu
- no double click to call

Change-Id: I0497b94038b450f0a0a22fc007de1281b7b2214d
Gitlab: #475
2021-08-02 12:10:41 -04:00
Ming Rui Zhang
0aa3275b93 misc: use BackButton when necessary
Change-Id: I220038edeb4dc83d85d8e4048168c97c2a992940
2021-07-29 10:48:50 -04:00
Ming Rui Zhang
234ee7a2e9 wizardview: refactor account creation ui and enhance flow
1. Use MaterialToolTip in MaterialButton
2. Add BubbleLabel and BackButton
3. Add WizardViewStepModel
4. Focus re-visit

Gitlab: #470

Change-Id: I818da76c4b97cb08d2b6df6b2c8e2752d7a522f2
2021-07-29 10:48:39 -04:00
Ming Rui Zhang
7657de1176 ringtones: use correct default ringtone folder for FileDialog
Change-Id: I95c4713ffdb8e772dcea3edc5cdeb0eaa1080c75
2021-07-28 15:37:17 -04:00
Andreas Traczyk
397b799cbf swarm: swarmify the message view
Change-Id: I85a070e8ea44b108fa75d69a8c6f544e8e2c8581
2021-07-28 12:25:32 -04:00
Sébastien Blin
488d735dfd wizardview: do not show profile page for imported account
as the avatar and alias will come from other connected devices
and from the archive too.

Change-Id: Ia3cbb91d4802c4119538c709a2432e45d396624c
2021-07-27 13:27:34 -04:00
Andreas Traczyk
279f92d2af misc: generate image resource files during cmake configure
resources.qrc & src/constant/JamiResources.qml are unversioned.

Glob checks for changes to the resource dir and forces a
reconfigure.

Change-Id: Ic88e4e861b8367ba44bc0eea6c323e08310afb8b
Gitlab: #477
2021-07-27 13:26:53 -04:00
Andreas Traczyk
1a61af02f3 resources: remove unused images and icons
gen-resources.py should be used to generate resources.qrc and
JamiResources.qml. Steps to add an image resource:
- add the resource file to the appropriate path under resources/
- run gen-resources.py
- use the newly available resource

Note: only icons and images will be represented by Qml properties.

The resource file generation may be made to run during CMake
configuration in a subsequent commit.

Some unused components were also removed during the refactor.

Gitlab: #477
Change-Id: I8e7f13d465031666be2bbadd5f29f9afc94d210d
2021-07-20 21:57:27 -04:00
Ming Rui Zhang
6e4fadcf11 accountComboBox: provide initial value for account status
If the account is initially disabled, the presense indicator
will still show the green color since the initial value is missed.

Change-Id: Ic580e485d4a73867789ef3774045a6939acbae4a
2021-07-20 09:46:00 -04:00
Ming Rui Zhang
14661adac6 tests: add FilesToSendContainer and MessageWebViewFooter tests
1. Adjust QML main setup
2. Add resources.qrc for test and Qt Creator display
3. Change LRCInstance and ScreenInfo to QML Singletons
4. Move QML type registration entirely to qmlregister

Change-Id: I5c8a854173a2ec1f85ffa971707af262fa344505
2021-07-20 09:45:42 -04:00
Sébastien Blin
912fd3f595 accountcombobox: only show username if different from best alias
This follow changes from lrc fixing getBestId.

Change-Id: I6ef298dfbcac9095cd5557c7b1d3caf42c0c3f3e
2021-07-19 16:06:30 -04:00
Sébastien Blin
a6ec3930fc settings: improve update dialog
Change-Id: I5aa4a5d9fa7c4c40fd001fa78237eb1d96531750
GitLab: #332
2021-07-19 15:43:08 -04:00
Andreas Traczyk
ab4c68adb5 avatars: add clear feature to photobooth
A property is provided to notify of changes to the content of the
current account's stored avatar. If one is stored, then a button
used to clear the avatar becomes available.

Gitlab: #473
Change-Id: I37640acaea3ca43e5abd14678d68b4eeebb3829e
2021-07-19 12:57:31 -04:00
Andreas Traczyk
275530746a smartlist: filter conversation update/reselection
Filter either the same conv id or peer list of the currently
selected item when responding to the conversationReady signal.

For dialogs we make sure the peer list(1) is same and for all other
swarm conversations we match the conv id.

This will prevent programmatic auto-selection of the smartlist
during account sync.

Depends on: https://review.jami.net/c/ring-lrc/+/18793

Change-Id: I6cedb8494f7c001bf886fe36dd03adffd201bb51
2021-07-19 12:57:18 -04:00
Ming Rui Zhang
37c45c27a5 settings: add allow IP auto rewrite option
Change-Id: I09c24f1185b37c728eb9ce1968cca21a99b79452
2021-07-16 11:01:54 -04:00
Ming Rui Zhang
a31fb6c0d8 conversationsadapter: make conversation filter correct when rejecting invitations
Gitlab: #471

Change-Id: I00db0c43c76f46ab934a196df1896005d936f4ff
2021-07-15 15:03:33 -04:00
Ming Rui Zhang
29b51b5a2a misc: remove unused onFilesToSendCountChanged slot
Change-Id: If0f4c70e4ebec83af1b99da35a8c2d428a2d68c7
2021-07-15 15:03:33 -04:00