Commit Graph

1919 Commits

Author SHA1 Message Date
miruka
5c8fd4500d Fix garbage collection of ListModelMap items
Prevent ListModel items from being deleted on the C++ side (specially
when using .get() from QML and a new ListModel is created)
by setting their parent to the ListModelMap.
2019-04-13 09:59:34 -04:00
miruka
13fca98838 Rooms and threads fixes
- Fix roomList height again, now based on model.count().
  All delegates are assumed to be the same height

- Properly update room list when a room is joined or left

- Catch exceptions happening in threads (futures), which previously
  passed silently

- Show "Empty room?" as "<i>Empty Room</i>" + gray [?] avatar
2019-04-13 08:59:10 -04:00
miruka
d8c6ffefe0 Fix roomList height calculation 2019-04-13 06:28:24 -04:00
miruka
30514fb7db Show joined rooms, delete left rooms
To make the models update correctly in QML:
- ListModel and _QtModel merged
- Return a ListModelMap QObject from properties instead of
  a DefaultDict → QVariantMap
2019-04-12 13:18:46 -04:00
miruka
381c6b5b1c Abort net manager talk for certain error codes 2019-04-12 04:48:00 -04:00
miruka
5d4c7b8520 Reorganize backend files, show accounts in UI 2019-04-12 04:33:09 -04:00
miruka
4f9a47027c matrix-nio backend start, QGuiApplication class
- Started work on the matrix-nio backend, which will be used instead
  of matrix-python-sdk for greater control and cleaner design

- Have an Application (QGuiApplication) class to habdle argument parsing
  and setting some Qt properties like application name
2019-04-11 13:22:43 -04:00
miruka
3b47fee77d Prevent sending empty message 2019-03-27 19:24:28 -04:00
miruka
e4a9fb40ac Add avatar with status icon componant
Will be used later for 1-to-1 user room delegates and room members pane
2019-03-27 19:24:23 -04:00
miruka
c35f7f35af Show last room message as roomDelegate subtitle 2019-03-27 18:43:08 -04:00
miruka
463dca7c55 Fix expand/collapse account button height 2019-03-27 16:43:25 -04:00
miruka
4872c3bf39 Recursive watch folders for reloading, --debug
Watching folders will only be done if --debug is provided, to avoid
filesystem scan slowdowns and over watch limit errors.
2019-03-27 16:21:31 -04:00
miruka
9d838ff57a Disable roomList scrolling within accountLists 2019-03-27 15:53:29 -04:00
miruka
76b699ad64 Organize project files
Put QML components into folders, remove unused ones, split __init__.py
with engine.py.
2019-03-26 05:52:43 -04:00
miruka
cccc43a9ae Reorganize sidePane, accounts and rooms
- Accordion design for accounts and rooms (not finished)
- Toolbar and account/room lists reduce correctly, buttons become
  hamburger menu if not enough width
- Can set status using the "Set status message" account fields
- Uniformized avatar sizes for sidePane, roomHeader and SendBox
2019-03-26 03:19:55 -04:00
miruka
16aa6142bb Change toolbar model 2019-03-25 18:29:46 -04:00
miruka
12f14a6a7d Make room pane resizable, spacing between accounts 2019-03-22 20:45:22 -04:00
miruka
65a9e420bf Add action buttons toolbar and placeholder pages 2019-03-22 06:24:19 -04:00
miruka
0434c13cf9 Initial commit 2019-03-21 23:28:14 -04:00