Anthony Bilinski
a3517d4291
refactor(Nexus): Remove all uses of getProfile in child classes
...
Pass Profile to where it's needed to move away from requiring singleton Nexus.
Keep non-static getProfile for use by by main.
3 years ago
Anthony Bilinski
71c3f997b4
refactor: Move FriendList global state into class
3 years ago
Anthony Bilinski
b24faabf42
refactor(GUI): Move remaining messsage box functionality to new class
...
* Pass MessageBoxManager instantiation around instead of relying on a singleton
* Mock MessageBoxManager for unit tests when needed, since they don't have a
QApplication which is required for creating QWidgets
* Remove GUI class, which didn't have a clear purpose
3 years ago
Anthony Bilinski
b067aae207
refactor: Move Style global shared state into class
3 years ago
Anthony Bilinski
cabcf4111f
refactor(style): Match declaration and definition argument names
...
Conform with readability-named-parameter and
readability-inconsistent-declaration-parameter-name
3 years ago
Anthony Bilinski
0c967725df
refactor: Remove Settings singleton
...
* Make main.cpp's toxSave free functions into a ToxSave class so that it can be
given Settings on construction.
* Add void* to IPC callbacks so that classes can get back to themselves.
3 years ago
Anthony Bilinski
fc2e445294
refactor: Comply with Wshadow
...
Avoid shadowing variables:
* Rename variables to something better if possible
* If not, postfix shadowing arguments with _. Favour leaving member
variables without postfixes.
* Rename variables prefixed with _ to avoid library function collisions
* Avoid double underscore anywhere in names
* Make definition and declaration argument names match where seen
* Favour using class variable over argument variable, where equivalent
* Remove explicit this-> where equivalent
3 years ago
bodwok
18b34b325f
refactor(ui): separation of responsibility for sorting the contact list
4 years ago
Anthony Bilinski
f3f1f08afb
refactor(ui): using the isCompact function
4 years ago
Anthony Bilinski
e6bc355bc7
fix(ui): passing arguments from the CircleWidget constructor
4 years ago
sudden6
445340a0e9
refactor: remove getInstance from ContentDialog
...
This UI element probably should never depend on Core, but this is to fix
for a later time.
5 years ago
jenli669
7fca93bde9
refactor(circlewidget): link CircleWidget ContentDialogs using signals
6 years ago
jenli669
09f37a97f9
refactor(widget): make searchWidget always use signals
6 years ago
jenli669
04a9bc46f4
docs(copyright): update and add copyright info
...
zealously updates and adds qTox copyright information.
Fixes #5713
6 years ago
Anthony Bilinski
c0fdc42e33
refactor(mime): store ToxPk and GroupId as mimedata
6 years ago
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files
7 years ago
Diadlo
254f5cc4b1
refactor: Remove using 'Friend::getChatForm'
8 years ago
Diadlo
61e0dff8a4
refactor: Remove 'FriendWidget::setChatForm'
8 years ago
Diadlo
017653470d
refactor: Move friend and group in model directory
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
90a262e9b5
refactor(circlewidget): Get Friend from FriendWidget
8 years ago
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format
9 years ago
Diadlo
fcd8eed7cd
style: Fix style of a lot of pointers
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
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
2da9de096f
refactor(drag&drop): Remove FriendWidget dependency
9 years ago
iphydf
d94712b2e2
refactor: Avoid RTTI by using qobject_cast.
...
This allows us to save some memory and executable size by removing the
need to generate and compile C++ RTTI.
9 years ago
TheSpiritXIII
4e5c4cb678
Multi-window: Fix circle modified from dialog window, fix groupchat leave warnings, flip dialog window title
10 years ago
TheSpiritXIII
868099d484
Multi-window: Normalize window size on separate change, notification separate fix, segfault groupchat fix
10 years ago
TheSpiritXIII
014ba45ebb
Multi-window: Keep window size, fix segfault, circle integration, changed defaults
10 years ago
TheSpiritXIII
7f7ab9a1bc
Circles: Fix quick switch crash, remove circle crash
10 years ago
TheSpiritXIII
d9d6f20bf7
Circles: Fix convention, crash and activity cycling
10 years ago
TheSpiritXIII
858b005567
Circles: Fix memory leaks and extraneous saving
10 years ago
TheSpiritXIII
9dd277623a
Fix circles: Fix rename on creation and graphical bug
10 years ago
TheSpiritXIII
e233d7d1c6
Allow circles to be created while sorted by activity
10 years ago
TheSpiritXIII
15f10c2f34
Recent list (right click empty list to test)
10 years ago
TheSpiritXIII
62873e9d71
Fix circle related rebase bugs
10 years ago
tux3
33a33ef051
Rebase on master
10 years ago
TheSpiritXIII
cc9edf6f90
Minor code cleanup for circles and related
10 years ago
TheSpiritXIII
8e796a1d8b
Update renamed friends and groups during search
10 years ago
TheSpiritXIII
167a8971ec
Search optimizations and bug fixes, rename focus fix
10 years ago
TheSpiritXIII
ac2263b3e8
Save circle settings after each modification
10 years ago
TheSpiritXIII
38fa6fc291
Fix sorting and cycling bugs for circles
10 years ago
TheSpiritXIII
0d4ca979bc
Fix right click friend in circle
10 years ago
TheSpiritXIII
24f75a6b43
Don't show empty circles while searching
10 years ago
Daniel Hrabovcak
e0b9e81938
Minor circle widget base class cleanup
10 years ago
Daniel Hrabovcak
715ef0ce65
Store circle widgets, fixed related bugs
10 years ago