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

279 Commits

Author SHA1 Message Date
drswinghead
27ecace752 feat(settings): add group chat local member black list 2017-09-16 10:22:08 +08:00
Diadlo
2020f7c4f8
refactor: Add signals in settings 2017-09-10 13:21:33 +03:00
anthony.bilinski
e9d63397e1 fix(receipts): Prevent double message send for received receipt
Fixes #2726
Register for receipt handling only once, cache receipts that are received before message is writen to history and mark a message as sent once both its receipt has been received and it has been writen to history
2017-09-06 23:35:42 -07: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
sudden6
1914f52cdf
chore(audio): format code 2017-08-05 21:12:34 +02:00
sudden6
9d0498e0cf
feat(audio): add setting to switch between new and old audio backend 2017-08-05 21:12:33 +02:00
Maxim Biro
e7b5c93bfe fix(build): fix sqlcipher header inclusion 2017-07-24 08:16:23 -04:00
sudden6
da4f6222d8
fix(settings): set default values for some important settings
fix #4513
2017-07-16 13:25:55 +02:00
Diadlo
dd9b324ec3
chore(qt): Remove old qt code 2017-06-26 23:06:55 +03:00
tWido
3257770bfa feat(chatform): Highlight chat history
Calendar dates with chat history highlighted with bold
Fixes #2296
2017-06-25 21:23:04 +02:00
Diadlo
6045e57829
refactor: Make constructor with one argument explicit 2017-06-12 13:46:43 +03:00
Diadlo
365d703e8a
perf: Pass std::function by reference 2017-06-12 13:46:38 +03:00
Diadlo
d90a60bdf7
revert: "fix: Replace hardcored roaming path on QStandartPath"
Fix #4449
This reverts commit f616ff36b6.
2017-06-10 09:55:29 +03:00
Diadlo
f616ff36b6
fix: Replace hardcored roaming path on QStandartPath
Fix #4436

In most system user can change AppData location, so hardcored path can
lead to the wrong directory.
2017-06-04 23:09:40 +03:00
Diadlo
65b1463933
refactor(core): Move setAvatar to profile from core 2017-05-24 19:43:47 +03:00
Mario Preksavec
246e23abf3 fix: gcc-7 build 2017-05-14 20:38:02 +02:00
Diadlo
49e9eb8de2
refactor(core): Move saving request to history to Profile 2017-05-08 22:12:14 +03:00
sudden6
6a6e30d639
fix(settings): remove legacy code 2017-05-06 15:21:37 +02:00
sudden6
5b31cf6d9d
fix(profile): toxsave wasn't correctly encrypted
fix #4344
2017-04-23 13:51:31 +02:00
noavarice
39035f7b68 refactor: returned correct code format and some other small changes 2017-04-19 18:19:19 +03:00
noavarice
5329899d86 docs: added docs for SmileyPack 2017-04-19 18:19:19 +03:00
noavarice
935c1a2aa8 refactor: removed meaningless 'isValid' method 2017-04-19 18:19:19 +03:00
noavarice
e0f1a01a74 refactor: SmileyPack refactoring
Brief list of changes:
  - removed unnecessary headers;
  - QList several times replaced with QVector for faster iteration;
  - some other things
2017-04-19 18:19:18 +03:00
sudden6
084f3b0626
feat: stop using plaintext passwords in the code 2017-04-08 12:24:29 +02:00
sudden6
3e50757ddb
refactor(profile): reduce code duplication 2017-03-28 21:57:13 +02:00
sudden6
6a16a2bdbc
feat(groups): add option to automatically accept groupchat invites
Allows to accept group chat invites from select contacts automatically.

fix #1197
2017-03-25 21:50:00 +01:00
Yuri
54fb9f73cc fix(db): Made RawDatabase::execLater executes statements asynchronously.
Currently RawDatabase::execLater sometimes executes dependent statements
synchronously.
Qt::QueuedConnection ensures they are really executed later.
2017-03-03 01:04:46 -08:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format 2017-02-26 11:52:45 +00:00
tux3
c75ee8a661
fix: Various IPC event handling and related bugs on startup
Fixes #1926 : When an IPC event was processed locally, if the window was closed before the core could start, the event handler would be forever stuck in the background waiting for the core to start. We fix this by substituting QApplication::quit() by a Nexus::quit() function and a Nexus::isRunning() function, which gives us a condition for exiting blocking processEvents() loops. We cannot simply use QApplication::quit(), because this function has no effect before the start of the event loop.

The problem was further exacerbated by the Tox URI event handler being (incorrectly) blocking. The IPC owner would block in this event handler, and the sender of the event would give up waiting and process the event itself a second time, potentially triggering the first bug. We fix the event handlers accordingly to be (mostly) non-blocking.

Also fixes a related deadlock between ~Core and ~Profile in the case of an early exit
2017-02-17 17:18:52 +01:00
sudden6
7cd800374a
refactor(encryption): move everything to ToxEncrypt
This commit removes coreencryption.cpp and replaces it with ToxEncrypt.
2017-02-07 20:05:32 +01:00
sudden6
38cecdc780
refactor(history): remove deprecated historykeeper
This commit removes historykeeper and code only used by it.

BREAKING CHANGE:
qTox can't open old historykeeper chatlogs after this commit. Use
previous versions to migrate to the new database.
2017-02-05 22:20:12 +01:00
Diadlo
22d3aa11de
fix: Add workaround for FreeBSD and ICU
This patch fix problem with ICU on FreeBSD
Implementation by @VVD
2017-01-24 23:30:08 +03:00
Diadlo
fcd8eed7cd
style: Fix style of a lot of pointers 2017-01-06 23:03:58 +03:00
sudden6
0e4cff884d
fix(avatar): wrong conversion of own ToxId
e07d8d358f broke the loading of the own
avatar

fix #4048
2017-01-05 10:54:35 +01: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
sudden6
94ec5614f2
feat(toxid): Improve the ToxId class 2016-12-29 13:36:56 +01:00
Diadlo
074f345b2e
style(smileypack): Small style improvements 2016-12-29 00:44:15 +03:00
Diadlo
56d656502c
fix: Fix problem with unicode symbols on FreeBSD
Fix #4012
2016-12-29 00:44:15 +03:00
Diadlo
32909559b6
docs: Added docs to PassKeyDeleter and updated Core methods 2016-12-19 00:42:54 +03:00
iphydf
de407c4714
chore: Update qTox to the latest toxencryptsave API.
Since ownership is somewhat unclear, we now use shared_ptr to pass
these around instead of unique_ptr.
2016-12-19 00:42:54 +03:00
Diadlo
32bbdb2b98
docs(profile): Removed @example tag from createProfile method 2016-12-18 17:24:37 +00:00
Zetok Zalbavar
231e1d746a
fix: remove unnecessary variable when checking whether save is a TES
There is a reason why magic length is not exposed via TES header –
knowing it is not needed. Client should check whether file is a TES with
a define that is provided in the public API.
2016-12-09 04:37:25 +00:00
Zetok Zalbavar
7b60a5dd36
chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00
Diadlo
b4a9f04f92
refactor: Added to include path and exclude it from all includes 2016-11-28 23:28:42 +03:00
sudden6
330d6405f7
Merge pull request #3827
sudden6 (3):
      feat(database): use own public key as salt to encrypt the database
      feat(database): make a backup before upgrading
      refactor(database): reduce line length in some places
2016-11-24 10:50:07 +01:00
tux3
a4bda26525
fix: dataToString correctness regression
It would incorrectly prepend garbage to the output and then truncate it, regression introduced in 6c150a04c0
2016-11-23 21:38:22 +01:00
sudden6
456c4455fb
refactor(database): reduce line length in some places 2016-11-22 08:18:35 +01:00
sudden6
c1d471faa1
feat(database): make a backup before upgrading
If anything is wrong with the newly encrypted db this will save the
data.
2016-11-22 08:18:34 +01:00
sudden6
c4b9d302d0
feat(database): use own public key as salt to encrypt the database
fixes #3583

BREAKING CHANGE:
The database will be encrypted with a new key, qTox versions before this
commit won't be able to decrypt the database.
2016-11-22 08:18:30 +01:00
Diadlo
b522da5bed
refactor(history): Moved creaton of RawDatabase from History constuctor 2016-11-06 12:37:39 +03:00
Zetok Zalbavar
64bbc6cfbb
style: change postfix increment to prefix increment 2016-11-03 07:57:14 +00:00
Alice Weigt
22b89beaf1 fix(settings): Change test sound button to checkbox
Fixes #3800 & #3809
2016-10-12 03:49:03 -07:00
Zetok Zalbavar
3c9f8a68e2
style: remove unnecessary semicolon for Q_DECLARE_FLAGS
Fixes a -Wpedantic warning.
2016-10-05 12:18:09 +01:00
Zetok Zalbavar
bbdd4f044c
fix(UI): bump default emoticon size, since otherwise it can be too small
E.g. #3777
2016-10-04 10:05:47 +01:00
sudden6
29da2210c9
feat(smileys): try to load smileys from XDG_DATA_DIR directories
This provides a location where users can store custom smiley packs
2016-10-01 23:22:33 +02:00
sudden6
610e21169a
Merge pull request #3442
Jeanbon (1):
      feat(autoAnswer): add auto answer feature
2016-09-26 19:13:16 +02:00
Jeanbon
7fe8a86c03
feat(autoAnswer): add auto answer feature 2016-09-25 19:31:03 +02:00
bitok
2c03257700
refactor: fixes of static analyze warnings
There is many static analyze warnings for qTox. Fixed most dangerous and several simple.
2016-09-23 14:47:53 +01:00
Diadlo
4ecbf616dc
refactor(rawdatabase): Added license text 2016-09-21 23:29:46 +03:00
Diadlo
6c9f77530e
refactor(rawdatabase): Small style refactor 2016-09-21 23:29:46 +03:00
Diadlo
85ee69f008
fix(rawdatabase): Added anonymizing SQL query in logs
Fixed #3399.
2016-09-21 23:29:46 +03:00
Diadlo
212ab1d416
Merge pull request #3713
PKEv (1):
      fix(settings): correct default value of dateformat
2016-09-15 22:51:00 +03:00
Diadlo
6f0431ae50
fix(settings): Use old settings instead of default values
Using rollback instead of default values will save old settings
Fixed #3706.
2016-09-14 00:54:01 +03:00
PKEv
e794acbccc fix(settings): correct default value of dateformat
incorrect values of a default date format field remains empty in form
fix #3707
2016-09-13 14:35:47 +03:00
Diadlo
a3c201d3b2
fix(settings): Fixed group to load makeToxPortable setting
Fixed #3681.
2016-09-06 15:15:28 +03:00
Zetok Zalbavar
f41dbf5324
chore: add a TODO with removal date for deprecated historykeeper
Closes #3654
2016-09-04 19:03:16 +01:00
Diadlo
740d91b61a
fix(settings): Added loader for old settings 2016-08-26 13:20:12 +03:00
Diadlo
f0e26e0f48
refactor(proxy): Changed port type on unsigned int. 2016-08-26 13:11:57 +03:00
Diadlo
4dfe3ec226
feat(settings): Moved proxy to personal settings
Fix #2465
2016-08-26 13:11:57 +03:00
Diadlo
9c9f1c11d1
feat(settings): Added reset settings button 2016-08-26 13:11:56 +03:00
Diadlo
60aea2c2b4
docs: Removed comments which will not be in api doc 2016-08-19 00:20:24 +03:00
Diadlo
72780e6c7a
docs(todo): Changed todo format 2016-08-19 00:20:24 +03:00
Diadlo
31d8e7eef0
docs: Replaced simple on doxygen tag 2016-08-19 00:20:23 +03:00
Diadlo
902828fcc2
docs(persistence): Added leading stars 2016-08-19 00:20:23 +03:00
Nils Fenner
e2f9d2cfe8
fix(settings): const getters 2016-08-14 18:08:45 +02:00
Nils Fenner
f00b9008e6
feat(settings): add notification signals for changed settings values
Makes changes to settings application wide transparent. The properties section is optional in theory, but comes in very handy, if we decide to access settings e.g. from within a script context.
2016-08-14 18:08:24 +02:00
sudden6
eedc2a961f
Merge pull request #3560
Diadlo (3):
      fix(toxsave, profileimporter): Added `remove` function call before overwrite file
      refactor(profileimporter): Removed extra spaces
      refactor(toxsave, profileimporter): Removed code duplication
2016-08-01 21:35:32 +02:00
Diadlo
47cc252f76
refactor(toxsave, profileimporter): Removed code duplication 2016-08-01 22:35:25 +03:00
Nils Fenner
35c6ae3c10
docs(persistence): update copyright information 2016-08-01 21:24:53 +02:00
Nils Fenner
f1642e6f3e
refactor(settings): remove unused serialization methods
Conversion should be re-done with QVariant - if required at all.
2016-08-01 21:24:53 +02:00
Nils Fenner
6c150a04c0
refactor(settings): fixes some serious type conversion warnings from llvm code analysis 2016-08-01 21:24:53 +02:00
Diadlo
58ea0afed1
fix(toxsave, profileimporter): Added remove function call before overwrite file
Fix #3558.
2016-08-01 12:22:52 +03:00
Diadlo
1c547fc73f
docs(persistence): Change comment style 2016-07-27 23:39:22 +03:00
Diadlo
20d3225f29
style(chatlog, persistence): Style fixes 2016-07-13 01:54:37 +03:00
sudden6
e97a870c0f
Merge pull request #3392
Diadlo (12):
      refactor(avform): Extracted functions with best mode search and combo box filling
      refactor(avform): Replace `bestModeInds` on videoMode index and video height as quality name
      refactor(avform): Separeted search of preferred index in function
      fix(avform): Took default resolution from middle of list
      feat(videomode): Added possible video shift
      feat(cameradevice, avform): Added ability of screen selection
      feat(avform, screenshotgrabber): Added custom screen region selection
      style(corevideosource): Small style fixes
      fix(videoframe): Added correct image copy
      fix(avform): Added restoring selected region
      feat(camerasource): Change default video mode to preferred
      fix(directshow): Fixed problem with crosses initialization
2016-07-12 19:56:41 +02:00
Andrew Morgan
32e48a979c
feat(textstyle): Change markdown syntax to be more intuitive
BREAKING CHANGE: Current markdown syntax is unintuitive, and thus we have agreed on switching to @SkyzohKey's implementation. Replaces all instances of Markdown with Text Styling. Closes #3404.
2016-07-07 20:07:22 -07:00
sudden6
06475b7424
Merge pull request #3411
PafXUS (1):
      fix(persistence): pass by reference to const
2016-07-08 00:07:44 +02:00
Nils Fenner
9694d6b6d4
fix(audio): actually disable the audio in/out device in settings, when selected
As esecially the "Disabled" text is translated, the audio device will change from "disabled" to "default", just by changing the language.

In contrast to video devices, an audio device is either always available, or sound will be disabled. So "Disabled" is the correct term to use here.
2016-07-01 10:41:41 +02:00
Nils Fenner
8ba2054190
feat(chat): add settings to alter the chat view's base font
Defaults to GUI style font according to previous behavior.
2016-06-30 20:24:00 +02:00
Diadlo
1c5158213d
fix(avform): Added restoring selected region 2016-06-25 14:20:13 +03:00
Diadlo
fd701df101
feat(videomode): Added possible video shift 2016-06-25 14:19:46 +03:00
PafXUS
e852ed92f6
fix(persistence): pass by reference to const 2016-06-18 07:49:40 +03:00
sudden6
3f4a0abe6b
feat(smileys): add emojione emoji-pack and make it the default
Thanks to @ProMcTagonist who suggested to use emojis from emojione.com

Fixes #3315
2016-06-12 15:50:43 +02:00
Nils Fenner
792103f8b0
refactor(filter_audio): completely remove filter_audio dependency
The filter_audio API is not working for qTox/Tox and thus disabled by default via compiler switch. In current qTox UI, it is not configurable, even when this switch is enabled. According to issue #3194 the library is no longer maintained as well. I don't see any reason to keep it in qTox.
2016-06-04 22:12:27 +02:00
Nils Fenner
f72baa613f
feat(audio): add real gain control of the input device
The gain can be set now in dB values, providing acceptable results for a wide range of setups.

note: also introduces const-correctness and some minor cleanup.
2016-06-02 22:16:58 +02:00
Diadlo
e23eb1c5f7
feat(settings, generalform, widget): Added setting for sound notification in busy status 2016-05-15 22:26:17 +03:00
tux3
17e57982df
fix(settings): Look for portable setting in module path, not CWD 2016-05-09 15:55:48 +02:00