Commit Graph

26 Commits

Author SHA1 Message Date
Tobias Fella
878369901c Cleanup userlistmodel 2022-10-11 18:40:42 +00:00
Tobias Fella
4bfd857093 Refactor input stuff
This is the start of a significant refactoring of everything related to sending messages, which is roughly:
- the chatbox
- action handling
- message sending on the c++ side
- autocompletion of users/rooms/emojis/commands/things i forgot

Notable changes so far include:
- ChatBox is now a ColumnLayout. As part of this, i removed the height animations for now. <del>as far as i can tell, they were broken anyway.</del> I'll readd them later
- Actions were refactored to live outside of the message sending function and are now each an object; it's mostly a wrapper around a function that is executed when the action is invoked
- Everything that used to live in ChatBoxHelper is now in NeoChatRoom; that means that the exact input status (text, message being replied to, message being edited, attachment) is now saved between room switching).
- To edit/reply an event, set `NeoChatRoom::chatBox{edit,reply}Id` to the desired event id, `NeoChatRoom::chatBox{reply,edit}{User,Message}` will then be updated automatically
- Attachments behave equivalently with `NeoChatRoom::chatBoxAttachmentPath`
- Error message reporting from ActionsHandler has been fixed (same fix as in !517) and moved to NeoChatRoom


Broken at the moment:
- [x] Any kind of autocompletion
- [x] Mentions
- [x] Fancy effects
- [x] sed-style edits
- [x] last-user-message edits and replies
- [x] Some of the actions, probably
- [x] Replies from notifications
- [x] Lots of keyboard shortcuts
- [x] Custom emojis
- [x] ChatBox height animations

TODO:
- [x] User / room mentions based on QTextCursors instead of the hack we currently use
- [x] Refactor autocompletion stuff
- [x] ???
- [x] Profit
2022-10-10 23:10:00 +00:00
Tobias Fella
22448ea9ae Clean up includes 2022-10-08 19:03:49 +02:00
Tobias Fella
d70a8a652a Always use system-style includes for libQuotient 2022-09-09 00:16:39 +02:00
Tobias Fella
2cb81d1276 Unify License header style in C++ 2021-04-06 19:25:06 +02:00
Tobias Fella
1cb6b3bbd6 Consistently use pragma once in all headers 2021-02-04 23:14:54 +01:00
Carl Schwan
136a8f2af8 Clang-tidy + clang-format 2020-11-27 00:26:39 +01:00
Tobias Fella
4e2b68dc0a Make Neochat compile against libQuotient 0.6 2020-11-19 08:13:55 +00:00
Tobias Fella
d8dde6e082 Add license headers to code files 2020-11-11 15:17:23 +00:00
Nicolas Fella
ca97b8ddc3 Properly sort includes 2020-11-04 20:29:19 +01:00
Nicolas Fella
a08d017c02 Normalize includes 2020-11-04 20:25:52 +01:00
Nicolas Fella
00b6908f25 Correct some whitespace issues 2020-11-04 19:43:56 +01:00
Carl Schwan
8b3f89cf2e Fix a bunch of clazy warnings 2020-11-03 15:15:16 +00:00
Carl Schwan
abea051f1c s/slots/Q_SLOTS and s/signals/Q_SIGNALS 2020-11-03 12:09:06 +01:00
Carl Schwan
bea870ad75 Apply Clang Format 2020-11-02 16:11:24 +01:00
Tobias Fella
5de778ea82 Fix compilation against newer libQuotient 2020-11-01 20:11:09 +01:00
Black Hat
d13a88a854 Improved user perms. 2020-01-06 01:39:55 +08:00
Black Hat
3544e5441f Show mod and admin in user list. 2020-01-01 23:13:19 +08:00
Black Hat
086891ef4e QMatrixClient -> Quotient 2019-08-15 22:52:12 +08:00
Black Hat
ced82bd666 Modern C++. 2019-08-04 22:36:32 +08:00
Black Hat
5ae1d41e92 Move dialogs into a separate dir and create them dynamically.
Add "ignore user".
Update libqmatrixclient.
2019-04-26 19:59:01 +08:00
Black Hat
8959be2cb8 Remove ImageItem, Paintable and use unified image provider. 2018-12-03 19:55:42 +08:00
Black Hat
5a46810016 Init rewritten avatar. 2018-11-04 19:14:02 +08:00
Black Hat
421316aa00 "View source" dialog. 2018-09-11 13:14:56 +08:00
Black Hat
2992804472 Minimum code to get multiple accounts working. 2018-09-09 10:12:45 +08:00
Black Hat
0ad9ed7b5d Init UserListModel.
Another model from Quaternion.
Also UI tweaks in RoomListModel.
2018-08-26 13:17:12 +08:00