Diadlo
b806f9e7e3
refactor: Rewrite focus{Friend,Group}
7 years ago
Diadlo
ee5a7d8e94
refactor: Move some methods back to ContentDialog
...
Store in ContentDialog list of widgets and list of ContentDialogs in
ContentDialogManger
7 years ago
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.
7 years ago
Diadlo
a446d9b197
refactor: Remove ContentDialog::openNewDialog
...
It duplicates logic on Widget::openNewDialog
7 years ago
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.
7 years ago
Diadlo
66fe7f2852
refactor(groupwidget): Create GroupChatroom
...
And move some logic in 'FriendChatroom' from 'onContextMenuCalled'
7 years ago
Diadlo
059d0120be
refactor: Add FriendChatroom (model to FriendWidget)
7 years ago
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.
7 years ago
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files
7 years ago
sudden6
1f8c9a2e2f
refactor: update displayed user name from the friend model
8 years ago
Diadlo
0586e65e72
refactor: Remove using 'Group::getChatForm'
8 years ago
Diadlo
61e0dff8a4
refactor: Remove 'FriendWidget::setChatForm'
8 years ago
tox-user
4288785d31
feat(UI): new status icons for message notifications
...
implements #4858
8 years ago
Diadlo
62c60a89df
refactor: Remove unused 'SettingsWidget' from 'ContentDialog'
8 years ago
Zetok Zalbavar
c089c80e53
fix: remove unused variables
8 years ago
Diadlo
026517dc5a
chore(warning): Fix compile warnings
...
- change preprocessor warning on runtime qWarning
- add parentheses around ‘&&’ within ‘||’
8 years ago
Diadlo
1e90106a08
refactor(groupwidget): Move updatTitle in GroupWidget
...
Also, remove unused now slot ContentDialog::updateGroupWidget
8 years ago
Diadlo
47cf113868
refactor(groupwidget): Move call updateUserCount in GroupWidget
8 years ago
Diadlo
11e75104f4
refactor(group): Don't pass widget on model change
8 years ago
Diadlo
99ebb73562
refactor: Remove deprecated methods to get id
8 years ago
Diadlo
017653470d
refactor: Move friend and group in model directory
8 years ago
Diadlo
4dd1fb5967
refactor: Remove useless connection
...
This connection exists in Widget
8 years ago
Diadlo
eb13908926
refactor: Make few methods ConstDialog const
8 years ago
Diadlo
238f10c44f
refactor: Use const Friend pointer
8 years ago
Diadlo
1a0a1d6949
refactor: Pass Friend in ContentDialog::addFriend
...
friendId and name (old parameters) can be getted from Friend
8 years ago
Diadlo
331a8f1006
refactor: Split 'onChatrootWidgetClicked' on 2 methods
...
onChatrootWidgetClicked was used for 2 different actions.
Now it's splitted on 'activate' and 'openNewDialog'
8 years ago
sudden6
a3b234e6dd
chore(formatting): run clang-format
8 years ago
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.
8 years ago
Diadlo
8634e26694
refactor: Methods renamed
...
existsFriendWidget -> friendWidgetExists
existsGroupWidget -> groupWidgetExists
8 years ago
Diadlo
5d117e6af8
refactor: Remove getCompactLayout from GenericChatroomWidget
8 years ago
alexrazinkov
972c3f2353
refactor: another refactoring step
...
Brief list of changes:
- contentdialog.* and friendlistwidget.cpp reverted to their previous states;
- added macros for setting stylesheets for form components;
- added 'static' qualificator for 'fontToCss' function;
- added 'needsToHideName' method and several places in code replaced with this
method's calls;
- some changes which are related to previous listed;
- 'resolveToxId' returned to GenericChatForm class.
8 years ago
noavarice
a83f8d1dfd
refactor: returned correct code style
8 years ago
Diadlo
b691cf9bed
refactor: Add parentheses around the '&&' expression
8 years ago
Diadlo
74356abda4
docs: Add docs to ContentDialog
8 years ago
Diadlo
add8d51a29
refactor: ContentDialog refactoring
8 years ago
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format
9 years ago
Diadlo
a231532bd0
fix: Add splitter restorer
...
Added splitter restorer, which reset splitter state if it's broken
Fix #2587
9 years ago
Diadlo
bff25ce8b1
refactor: Remove FriendWidget from Friend class
9 years ago
Diadlo
fcd8eed7cd
style: Fix style of a lot of pointers
9 years ago
Diadlo
d223d916c8
refactor: Connect all chatroomWidget clicks to friend list clicks
...
Remove using getGroupWidget, getFriendWidget and getChatForm from
ContentDialog.
9 years ago
Diadlo
29bb319025
refactor(friend): Small refactoring
...
Method renamed to be same with `Group` i.e. `getGroupId`, changed Friend
eventFlag type on bool
9 years ago
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
9 years ago
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
.
9 years ago
Diadlo
f870bf1953
fix: Fixed compact layout
...
Fix #3944
9 years ago
Zetok Zalbavar
7b60a5dd36
chore: explicitly mention that copyright belongs to qTox contributors
9 years ago
Diadlo
b4a9f04f92
refactor: Added to include path and exclude it from all includes
9 years ago
Diadlo
74eb06b2aa
refactor: Added emiting signal on window activation in ContentDialog
9 years ago
Diadlo
2da9de096f
refactor(drag&drop): Remove FriendWidget dependency
9 years ago
Zetok Zalbavar
64bbc6cfbb
style: change postfix increment to prefix increment
9 years ago
bitok
2c03257700
refactor: fixes of static analyze warnings
...
There is many static analyze warnings for qTox. Fixed most dangerous and several simple.
9 years ago