1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

83 Commits

Author SHA1 Message Date
Anthony Bilinski
ec500b6673
refactor(status): add Blocked status, deduplicate status parsing
Blocked status will represent friends who are removed from Toxcore, but who still exist in UI and can be readded to Toxcore at a future time using their public key. Blocked friends are similar to offline friends, but have a different status icon and will be seperated in the friends list.
2019-04-14 13:35:46 -07:00
Diadlo
68bf26305c
style: Fix EOF, remove trailing space and add braces 2018-12-27 09:15:24 +03:00
Diadlo
3f5105d5c1
refactor: Connect ContentDialog::setStatusMessage to friend directly 2018-12-27 09:15:24 +03:00
Diadlo
52f8ba48c4
refactor: Remove using Manager from ContentDialog 2018-12-27 09:15:24 +03:00
Diadlo
4353468647
refactor: Rewrite update status message 2018-12-27 09:15:24 +03:00
Diadlo
8937f87f87
refactor: Rewrite update status 2018-12-27 09:15:24 +03:00
Diadlo
9129f256fa
refactor: Rewrite widget exists check 2018-12-27 09:15:24 +03:00
Diadlo
b806f9e7e3
refactor: Rewrite focus{Friend,Group} 2018-12-27 09:15:24 +03:00
Diadlo
ee5a7d8e94
refactor: Move some methods back to ContentDialog
Store in ContentDialog list of widgets and list of ContentDialogs in
ContentDialogManger
2018-12-27 09:15:24 +03:00
Diadlo
7ad8607c43
refactor: Create ContentDialogManager
Move all static methods from ContentDialog to ContentDialogManger. Make
if singletone for the first time. Also move some methods to avoid
compile errors.
2018-12-27 09:15:24 +03:00
Diadlo
a446d9b197
refactor: Remove ContentDialog::openNewDialog
It duplicates logic on Widget::openNewDialog
2018-12-27 09:15:24 +03:00
Jimi Huotari
71d1fa6f24
refactor(themes): load css and images from themes folder
Original work by tox-user.

The default theme is now placed in a different path:
- C:\users\%username%\AppData\roaming\qtox\themes - for Windows
- ~/Library/Application Support/qtox/themes - for MacOS
- ~/.config/qtox/themes - for other Unix systems including GNU/Linux

Thanks to that it's no longer required to recompile the program to modify
the theme.

In addition to that the default theme is also included as a resource. If
the theme folder or some file inside it is missing, qTox will load it
from resource.
2018-10-24 14:04:03 +02:00
Diadlo
66fe7f2852
refactor(groupwidget): Create GroupChatroom
And move some logic in 'FriendChatroom' from 'onContextMenuCalled'
2018-07-18 01:06:47 +03:00
Diadlo
059d0120be
refactor: Add FriendChatroom (model to FriendWidget) 2018-07-12 15:32:35 +03:00
ezavod
39968a313d
fix(chatform): name in window title and close detached chats
This displays the name of the currently used account in the window title
of detached chats. Also closes all open chats when switching back to one
window.
2018-06-04 22:56:53 +02:00
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files 2018-04-25 17:33:38 -07:00
sudden6
1f8c9a2e2f
refactor: update displayed user name from the friend model 2018-02-28 17:51:00 +01:00
Diadlo
0586e65e72
refactor: Remove using 'Group::getChatForm' 2018-02-08 09:01:22 +03:00
Diadlo
61e0dff8a4
refactor: Remove 'FriendWidget::setChatForm' 2018-02-06 10:46:09 +03:00
tox-user
4288785d31 feat(UI): new status icons for message notifications
implements #4858
2018-01-13 22:16:14 +01:00
Diadlo
62c60a89df
refactor: Remove unused 'SettingsWidget' from 'ContentDialog' 2017-11-13 15:25:02 +03:00
Zetok Zalbavar
c089c80e53
fix: remove unused variables 2017-10-08 12:44:56 +01:00
Diadlo
026517dc5a
chore(warning): Fix compile warnings
- change preprocessor warning on runtime qWarning
- add parentheses around ‘&&’ within ‘||’
2017-09-26 21:00:39 +03:00
Diadlo
1e90106a08
refactor(groupwidget): Move updatTitle in GroupWidget
Also, remove unused now slot ContentDialog::updateGroupWidget
2017-08-06 20:28:06 +03:00
Diadlo
47cf113868
refactor(groupwidget): Move call updateUserCount in GroupWidget 2017-08-06 20:28:06 +03:00
Diadlo
11e75104f4
refactor(group): Don't pass widget on model change 2017-08-06 14:51:14 +03:00
Diadlo
99ebb73562
refactor: Remove deprecated methods to get id 2017-08-06 13:55:02 +03:00
Diadlo
017653470d
refactor: Move friend and group in model directory 2017-08-06 13:55:02 +03:00
Diadlo
4dd1fb5967
refactor: Remove useless connection
This connection exists in Widget
2017-07-30 11:45:18 +03:00
Diadlo
eb13908926
refactor: Make few methods ConstDialog const 2017-07-29 11:31:41 +03:00
Diadlo
238f10c44f
refactor: Use const Friend pointer 2017-07-28 17:52:51 +03:00
Diadlo
1a0a1d6949
refactor: Pass Friend in ContentDialog::addFriend
friendId and name (old parameters) can be getted from Friend
2017-07-28 17:52:51 +03:00
Diadlo
331a8f1006
refactor: Split 'onChatrootWidgetClicked' on 2 methods
onChatrootWidgetClicked was used for 2 different actions.
Now it's splitted on 'activate' and 'openNewDialog'
2017-06-02 18:49:08 +03:00
sudden6
a3b234e6dd
chore(formatting): run clang-format 2017-06-01 09:50:59 +02:00
ezavod
9d94cd0c50
fix(ui): restore splitter state
Fixes #4387 and #2378.

This restores the state of the splitter correctly from settings in
multiple window mode and if this mode is quited.
2017-05-11 13:05:16 +02:00
Diadlo
8634e26694
refactor: Methods renamed
existsFriendWidget -> friendWidgetExists
existsGroupWidget -> groupWidgetExists
2017-05-08 22:39:00 +03:00
Diadlo
5d117e6af8
refactor: Remove getCompactLayout from GenericChatroomWidget 2017-05-04 20:31:56 +03:00
Diadlo
b691cf9bed
refactor: Add parentheses around the '&&' expression 2017-04-18 00:14:49 +03:00
Diadlo
74356abda4
docs: Add docs to ContentDialog 2017-03-21 01:38:03 +03:00
Diadlo
add8d51a29
refactor: ContentDialog refactoring 2017-03-21 01:38:03 +03:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format 2017-02-26 11:52:45 +00:00
Diadlo
a231532bd0
fix: Add splitter restorer
Added splitter restorer, which reset splitter state if it's broken
Fix #2587
2017-02-26 03:14:57 +03:00
Diadlo
bff25ce8b1
refactor: Remove FriendWidget from Friend class 2017-02-23 00:36:00 +03:00
Diadlo
fcd8eed7cd
style: Fix style of a lot of pointers 2017-01-06 23:03:58 +03:00
Diadlo
d223d916c8
refactor: Connect all chatroomWidget clicks to friend list clicks
Remove using getGroupWidget, getFriendWidget and getChatForm from
ContentDialog.
2017-01-05 00:56:32 +03:00
Diadlo
29bb319025
refactor(friend): Small refactoring
Method renamed to be same with `Group` i.e. `getGroupId`, changed Friend
eventFlag type on bool
2017-01-05 00:56:32 +03:00
sudden6
e07d8d358f
feat(toxid): reduce passing Tox IDs around
reasons:
- most of the time we don't even know the Tox ID but only the Public Key
- use well defined objects instead of strings that could be anything
2017-01-04 00:20:24 +01:00
Zetok Zalbavar
d4ac13dbf4
revert: "refactor: Added to include path and exclude it from all includes"
Revert needed, since otherwise there is no way to do automatic sorting
of includes.
Also reverted change to the docs, as leaving it would make incorrect
docs.

In case of conflicts, includes were sorted according to the coding
standards from #3839.

This reverts commit b4a9f04f92.
This reverts commit 5921122960.
2016-12-29 16:10:53 +00:00
Diadlo
f870bf1953
fix: Fixed compact layout
Fix #3944
2016-12-12 01:15:57 +03:00
Zetok Zalbavar
7b60a5dd36
chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00