noavarice
d48a479a39
refactor: applyMarkdown() function logic is more rigorous
...
Brief list of changes:
- changed way of getting count of formatting symbols for captured
string: patternSignsCount() function replaced with constant index
which points to regex group that captures formatting symbols.
Regexes updated accordingly;
- updated docs for applyMarkdown() function;
- applyMarkdown() function refactored:
* changed var names;
* logic is more strict: get captured string -> crop formatting symbols
if necessary -> wrap captured string into HTML and replace in result.
2017-11-03 21:00:08 +03:00
noavarice
5e5352c268
refactor: changed markdown regexes and related constants
...
Brief list of changes:
- removed several headers;
- added single array of pairs for direct mapping regexes to HTML
wrapper strings;
- COMMON_PATTERN splitted into two regexes;
- wrapper for hrefs is a single constant.
2017-11-03 21:00:08 +03:00
noavarice
1ac21c07db
refactor: replace TextFormatter class with function
...
Brief list of changes:
- removed TextFormatter class and its unnecessary instantiation;
- added single method for applying markdown.
2017-11-03 21:00:08 +03:00
noavarice
e9209b06f9
refactor: independent URL highlighting
...
Brief list of changes:
- removed workarounds while applying markdown;
- URL highlighting now is independent for markdown support;
- URL patterns reverted to the state they were before.
2017-11-03 21:00:01 +03:00
anthony.bilinski
1394dd1b7f
fix(call): fix bugs introduced from ToxCall refactor
...
-inverted call active booleans
-audio subscription leak on move assignment
-NullVideoBitrate check
-return peers list by reference so that adding audio source in GroupCallCallback is persisted
-fix output muting for friend calls
2017-11-02 13:41:44 -07:00
Jiachen Yang
70b235f271
fix: using current setting in autoaccept dialog
...
This should fixes #4777
2017-11-02 02:05:54 +09:00
Diadlo
4af90a7f97
Merge pull request #4677
...
anthony.bilinski (1):
fix(logout): Synchronously call showLogin to avoid multiple deletion
2017-11-01 12:51:53 +03:00
Diadlo
d07f53f292
Merge pull request #4671
...
anthony.bilinski (1):
fix(settings): Delete dynamically allocated members on destruction
2017-11-01 12:45:13 +03:00
Diadlo
e4064ba8b1
docs(toxmedata): Add docs to functions
2017-10-31 17:51:26 +03:00
Diadlo
6a18ca5243
refactor(toxmedata): Use QJsonObject to parse and build json
2017-10-31 17:51:26 +03:00
sudden6
967dab8700
style: run format-code.sh on the files
2017-10-31 09:32:53 +01:00
sudden6
90bf0a7e2c
refactor(toxcall): make toxcall a class with getters and setters
2017-10-31 09:32:53 +01:00
sudden6
1dce8f6468
refactor(core): rename corestructs to toxfile.cpp
...
It only contains this struct now.
2017-10-31 09:32:53 +01:00
sudden6
cac25b4477
refactor(core): move Status class to core.h
2017-10-31 09:32:52 +01:00
sudden6
d2adfe4ca7
refactor: fix some warnings reported with "-Wall"
2017-10-31 09:32:52 +01:00
sudden6
2a15927a16
refactor(core): remove unused declaration
2017-10-31 09:32:47 +01:00
Zetok Zalbavar
641a80842e
feat(l10n): add Serbian (latin) translation to UI
2017-10-29 11:36:02 +00:00
Zetok Zalbavar
3c4b1f117d
feat(l10n): add Serbian translation to UI
2017-10-29 11:36:02 +00:00
Zetok Zalbavar
76df9a4535
feat(l10n): add Persian translation to UI
2017-10-29 11:36:01 +00:00
Zetok Zalbavar
37419825ca
fix: remove unnecessary semicolon to compile with -pedantic
flag
2017-10-29 06:36:31 +00:00
sudden6
b07ea763cd
refactor(toxcall): remove callId from ToxCall members
2017-10-28 11:47:56 +02:00
sudden6
4149b5b252
refactor(coreav): remove unused IndexedList
2017-10-28 11:47:56 +02:00
sudden6
ed4b063994
refactor(coreav): replace IndexedList with std::map
2017-10-28 11:47:51 +02:00
Diadlo
3c8bf628bd
refactor(callconfirm): Remove unused friend parameter
2017-10-26 16:59:26 +03:00
Diadlo
25ab974f1e
Merge pull request #4761
...
anthony.bilinski (1):
fix(profile): Fix status message and username signal connection typo
2017-10-26 16:58:10 +03:00
sudden6
fed7060270
fix(video): prevent segfault when ending videocall
2017-10-26 12:32:35 +02:00
anthony.bilinski
d41031bd15
fix(profile): Fix status message and username signal connection typo
...
Fixes #4760
2017-10-25 14:17:01 -07:00
Diadlo
92def839d0
fix(cameradevice): Save string in local variable to avoid errors
2017-10-23 21:04:34 +03:00
sudden6
ecea41045c
fix(video): reduce default video bitrate to make it more usable
2017-10-23 14:22:26 +02:00
sudden6
1d790190d8
Merge pull request #4747
...
anthony.bilinski (1):
fix(video): Set toxav video bitrate to 0 if answering audio-only call
2017-10-23 13:46:34 +02:00
sudden6
923fd48c33
Merge pull request #4748
...
anthony.bilinski (1):
fix(ui): Set tooltip colour and background for all tooltips
2017-10-23 13:43:45 +02:00
sudden6
acfe237e74
Merge pull request #4734
...
anthony.bilinski (1):
fix(preview): only downscale preview images, never upscale
2017-10-22 14:00:03 +02:00
anthony.bilinski
b1f40decd8
fix(ui): Set tooltip colour and background for all tooltips
...
Fixes #4667
2017-10-21 15:30:40 -07:00
anthony.bilinski
5046fc9010
fix(logout): Synchronously call showLogin to avoid multiple deletion
...
Fixes #4201
2017-10-20 14:14:37 -07:00
noavarice
5e45569973
fix: add missed <functional> header
2017-10-20 22:39:10 +03:00
anthony.bilinski
45b3575d79
fix(preview): only downscale preview images, never upscale
...
Fixes #4733
2017-10-20 12:01:34 -07:00
sudden6
6d1b1f62ab
fix(settings): prevent signed overflow and associated warning
2017-10-20 00:17:10 +02:00
anthony.bilinski
1613044c68
fix(video): Set toxav video bitrate to 0 if answering audio-only call
...
Before we would set the video bitrate to 0 if sending an audio-only call, but we would still set the video bitrate to default when receiving an audio only call. In bad network conditions, this caused tox to ask us to decrease video bitrate in audio-only calls.
2017-10-19 12:18:44 -07:00
sudden6
2f13796acc
fix(ffmpeg): don't use deprecated features
2017-10-19 00:41:57 +02:00
anthony.bilinski
7170b48589
fix(init): register AV connects and call after AV is ready
...
Fixes #4651
2017-10-13 15:22:24 -07:00
Diadlo
2f1bf10780
fix(toxme): Add #include <ctime> to toxmedata
...
Fix #4730
2017-10-13 17:10:10 +03:00
Diadlo
9a543548e0
refactor(toxme): Move json generation to ToxmeData class
2017-10-13 14:56:15 +03:00
Diadlo
ae7b47342d
refactor(profile): Move core connect from form to model
2017-10-13 09:12:42 +03:00
Diadlo
36adfc89e9
refactor(profileform): Integrate ProfileInfo in ProfileForm
2017-10-13 09:12:41 +03:00
Diadlo
49915c0a45
refactor(profileinfo): Move some methods in profile info class
2017-10-13 09:12:41 +03:00
Diadlo
4a11a0eb22
refactor(profileinfo): Add profile info model class
2017-10-13 09:12:41 +03:00
Diadlo
78966c1f02
refactor(profileform): Use new connect style
2017-10-13 09:12:41 +03:00
Diadlo
b41767d087
fix: Use correct initialization order
...
Fix #4727
2017-10-12 23:45:53 +03:00
Diadlo
6a87ff8853
docs(interface): Add docs to interface macroses
2017-10-11 08:51:32 +03:00
Diadlo
68813a37c3
refactor: Remove Settings from Core
2017-10-11 08:51:32 +03:00
Diadlo
7f2bd726ef
refactor: Integrate ICoreSettings in Core
2017-10-11 08:51:32 +03:00
Diadlo
4e3b2291f5
refactor: Create interface for core settings
2017-10-11 08:51:32 +03:00
Diadlo
0c8c16e743
refactor: Extract DhtServer in separate file
2017-10-11 08:51:32 +03:00
Diadlo
256b24ff21
refactor: Improve interface
2017-10-11 08:51:32 +03:00
sudden6
1fc7fe2d58
Merge pull request #4638
...
noavarice (1):
refactor(toxid): use left instead of mid
2017-10-10 13:08:15 +02:00
Zetok Zalbavar
c089c80e53
fix: remove unused variables
2017-10-08 12:44:56 +01:00
sudden6
b609a8f99a
Merge pull request #4697
...
tox-user (5):
feat(settings): Add audio quality setting
feat(settings): make audio quality setting persistent
refactor(settings): use constants in audio quality setting
refactor(settings): use a cleaner way to read and set audio bitrate
style(settings): change names of local constants to camel case
2017-10-08 00:18:06 +02:00
sudden6
003fc6b0b0
feat(identicon): use Identicons instead of empty avatars
...
fixes #711
2017-10-06 23:57:55 +02:00
sudden6
f82f57ec91
refactor: don't pass ToxPk as QString
2017-10-06 23:57:55 +02:00
sudden6
61b36d1bce
feat(identicon): add algorithm to create identicons
...
ported from https://github.com/sudden6/rust-identicon/blob/master/src/lib.rs
but slightly changed the algorithm
2017-10-06 23:57:51 +02:00
Vincas Dargis
729dc7740b
fix(platform): use result to remove -Wunused-result warning
...
Check for write() and read() results and abort in case of unexpected
failure.
2017-10-04 19:11:52 +03:00
tox-user
78c6869e4c
style(settings): change names of local constants to camel case
2017-09-30 17:22:35 +02:00
tox-user
e4b0c54965
refactor(settings): use a cleaner way to read and set audio bitrate
2017-09-30 15:49:11 +02:00
tox-user
b36a7bdec9
refactor(settings): use constants in audio quality setting
2017-09-30 12:52:09 +02:00
tox-user
7ed2d97aad
feat(settings): make audio quality setting persistent
2017-09-29 12:33:30 +02:00
sudden6
ab12555935
Merge pull request #4679
...
anthony.bilinski (1):
fix(IPC): don't double lock shared memory
2017-09-28 18:42:53 +02:00
tox-user
61eddc1f6b
feat(settings): Add audio quality setting
...
Fixes #4693
2017-09-28 16:14:36 +02:00
sudden6
ce0c102011
Merge pull request #4675
...
anthony.bilinski (1):
feat(login): Add command line argument to open login screen
2017-09-27 19:43:14 +02:00
Yuri
8522141b1e
fix(threads): Always stop the camera device thread
2017-09-26 22:42:48 -07:00
anthony.bilinski
0906b8eb1f
feat(login): Add command line argument to open login screen
...
Fixes #4673
2017-09-26 13:41:46 -07:00
Diadlo
f790747f2a
fix: ATOMIC_FLAG_INIT can't be used inside braces initializer
2017-09-26 21:00:49 +03:00
Diadlo
f97c776a87
fix: Return value
2017-09-26 21:00:39 +03:00
Diadlo
43c2308b7b
fix(ipc): Reorder initialize list
2017-09-26 21:00:39 +03:00
Diadlo
aa356bb73a
fix(audio): Fix signed and unsigned comparation
2017-09-26 21:00:39 +03: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
anthony.bilinski
0bf27a000a
fix(IPC): don't double lock shared memory
...
Fixes #4678
2017-09-25 10:37:01 -07:00
anthony.bilinski
94cb6ce1c5
fix(settings): Delete dynamically allocated members on destruction
...
Fixes #4670
2017-09-21 13:29:20 -07:00
sudden6
6a5a7564aa
Merge pull request #4644
...
anthony.bilinski (1):
feat(paste): Implement pasting images from clipboard
2017-09-20 11:16:08 +02:00
sudden6
75438d46b2
Merge pull request #4643
...
anthony.bilinski (1):
feat(exif): Honour exif orientation tag
2017-09-20 11:14:42 +02:00
sudden6
ed634ae0f4
Merge pull request #4610
...
drswinghead (1):
feat(settings): add group chat local member black list
2017-09-19 21:23:55 +02:00
anthony.bilinski
414fa178b4
feat(exif): Honour exif orientation tag
...
Fixes #1848
2017-09-19 10:00:05 -07:00
anthony.bilinski
5fed37365f
feat(paste): Implement pasting images from clipboard
...
Fixes #1290
2017-09-19 09:56:34 -07:00
sudden6
9c01eec268
Merge pull request #4607
...
anthony.bilinski (1):
fix(receipts): Prevent double message send for received receipt
2017-09-17 23:19:24 +02:00
noavarice
b967d28465
refactor: use GroupInvite instead of set of parameters
2017-09-17 19:54:06 +03:00
noavarice
d514b48ef6
refactor: register GroupInvite as meta-type
2017-09-17 19:54:06 +03:00
noavarice
fd1fbebae0
refactor: more rigorous types for GroupInvite
2017-09-17 19:54:06 +03:00
noavarice
ad3584c469
refactor: GroupInvite moved to model directory
2017-09-17 19:54:01 +03:00
sudden6
d746ea9daf
Merge pull request #4650
...
anthony.bilinski (1):
feat(ui): output instructions when user tries to open a second instance
2017-09-17 11:24:34 +02:00
drswinghead
27ecace752
feat(settings): add group chat local member black list
2017-09-16 10:22:08 +08:00
anthony.bilinski
a601df31da
fix(exit): delete heap-based QApplication before exit
...
Fixes #4648
2017-09-14 00:01:38 -07:00
anthony.bilinski
48d65c269a
feat(ui): output instructions when user tries to open a second instance
...
Fixes #3483
2017-09-14 00:00:38 -07:00
Diadlo
c49959711e
Merge pull request #4620
...
anthony.bilinski (1):
fix(chatform): Hide author on history like on new messages
2017-09-11 08:42:42 +03:00
Diadlo
bd6516eab7
fix: Fix crash on auto accept click in AboutFriendForm
...
Fix #4600
2017-09-10 13:22:54 +03:00
Diadlo
aae23c4154
refactor: Make direct connection
2017-09-10 13:21:33 +03:00
Diadlo
2020f7c4f8
refactor: Add signals in settings
2017-09-10 13:21:33 +03:00
Diadlo
a626888daa
refactor(interface): Add connectTo_* virtual method instead of signals
2017-09-10 13:21:33 +03:00
Diadlo
918cdf1368
refactor: Add using AboutFriend model in AboutFriendForm
2017-09-10 13:21:33 +03:00
Diadlo
b0a591e0f0
refactor(aboutfriend): Add AboutFriend model and interface
2017-09-10 13:21:33 +03:00
Diadlo
8368f2413d
refactor: Rename AboutUser to AboutFriendForm
2017-09-10 13:21:32 +03:00
Diadlo
c6d76da0dd
refactor: Use ToxPk instead of ToxId
2017-09-10 13:21:32 +03:00
noavarice
6b93a41a40
refactor: removed unused constant
2017-09-09 23:06:53 +03:00
noavarice
28aed05d0a
refactor: removed unused quitGroupChat method
...
`removeGroup` is used instead of this method
2017-09-09 23:06:53 +03:00
Diadlo
b87248c36b
Merge pull request #4581
...
Vincas Dargis (1):
fix(platform): handle terminating POSIX signals
2017-09-09 23:05:01 +03:00
Diadlo
b0d11b442f
Merge pull request #4632
...
anthony.bilinski (1):
fix(friends): Friend request button target location
2017-09-09 22:37:56 +03:00
Diadlo
549738dc9e
Merge pull request #4634
...
anthony.bilinski (1):
fix(popup): Don't create two error popups for friend requests
2017-09-09 22:31:25 +03:00
Diadlo
e67713527c
Merge pull request #4630
...
anthony.bilinski (1):
fix(avatar): Don't invert default avatar colour on connect
2017-09-09 22:30:15 +03:00
noavarice
b7323e3164
refactor(toxid): use left instead of mid
2017-09-09 22:25:39 +03:00
Vincas Dargis
32b97cb927
fix(platform): handle terminating POSIX signals
...
Add PosixSignalNotifier utility class to covert POSIX signals to
Qt signals and allow qTox to quit appropriately on Linux, FreeBSD
and macOS.
Might protect from data corruption bugs when application is being
terminated during I/O.
Fixes : #4470
2017-09-09 17:19:51 +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
anthony.bilinski
1f787cc475
fix(popup): Don't create two error popups for friend requests
...
Fixes #4633
2017-09-06 19:34:17 -07:00
anthony.bilinski
7f36ec9219
fix(friends): Friend request button target location
...
Change friendform pane numbering to use existing enum instead of hardcoded values, udpate enum to match current pane layout.
Fixes #4631
2017-09-06 19:25:25 -07:00
anthony.bilinski
be324b932b
fix(avatar): Don't invert default avatar colour on connect
...
Fixes #4629
2017-09-06 18:08:54 -07:00
anthony.bilinski
28979f5771
fix(chatform): Hide author on history like on new messages
...
Fix #4619
2017-09-05 11:29:46 -07:00
sudden6
1f44d603c4
Merge pull request #4617
...
LittleVulpix (1):
fix(toxme): Remove HTML tags from ID to un-break toxme integration
2017-09-03 19:01:22 +02:00
Diadlo
c2140e21ad
fix(ipc): Call processEvent on timer timeout
...
Fix #4609
2017-09-02 12:10:55 +03:00
LittleVulpix
5af1b4af73
fix(toxme): Remove HTML tags from ID to un-break toxme integration
...
Due to the colours, the current implementation sends a bunch of html tags along with the ID, which obviously isn't desirable.
To remove these tags, I am using the same implementation as in copyIdClicked .
2017-09-01 20:12:52 +02:00
sudden6
89198f5e2d
Merge pull request #4604
...
Nikolay Korotkiy (1):
fix(l10n): use native language names
2017-08-30 20:07:51 +02:00
Diadlo
359a42f78e
fix: Fix crash on accept or reject friend request
...
Fix #4603
2017-08-28 23:18:51 +03:00
Nikolay Korotkiy
817a9897c2
fix(l10n): use native language names
2017-08-28 22:36:56 +03:00
Karl
56ac95dad9
fix(i18n): string Call with %1 ended. %2
is no longer translatable
...
Fixes #4552
2017-08-26 18:09:56 +02:00
noavarice
776b37f689
refactor: headers order is changed properly
2017-08-25 21:48:27 +03:00
noavarice
a29e80bbe0
refactor: onUserListChanged refactored
2017-08-25 21:48:27 +03:00
noavarice
26b16386ae
refactor: 'correctNames' function refactoring
...
'correctNames' function moved from class, renamed and refactored
according to its purpose
2017-08-25 21:48:27 +03:00
noavarice
30cae05d26
refactor: GroupChatForm::onUserListChanged is a slot now
2017-08-25 21:48:19 +03:00
Diadlo
1ac97c4734
refactor: Use extra comment to make code cleaner
2017-08-20 23:57:40 +03:00
Diadlo
15987ece3d
refactor: Use const in AddFriendForm
2017-08-20 23:57:40 +03:00
Diadlo
196eb8d77a
refactor: Extract the same code to 'addFriend function'
2017-08-20 23:57:40 +03:00
tux3
0974da543a
feat: UI to import a list of contacts from a file
...
Resolves #4181
2017-08-20 23:57:40 +03:00
Diadlo
e606d3cb55
fix(group): Fix crash on group quit
...
Fix 'GroupWidget' removing
2017-08-19 16:18:52 +03:00
Diadlo
638cdba58d
fix(widget): Add removing friends and group on main window close
2017-08-18 21:45:51 +03:00
Diadlo
775d9987a3
refactor(widget): Extract friendId in variable
2017-08-18 21:45:51 +03:00
Diadlo
a1c7bb3c43
refactor(widget): Fix map key type
2017-08-18 21:45:51 +03:00
Diadlo
070e33a46b
refactor(group): Remove GroupWidget from Group
2017-08-18 21:45:51 +03:00
Diadlo
6c650f8b24
refactor(widget): Remove using getGroupWidget from Widget
2017-08-18 21:45:51 +03:00
Diadlo
a1be4bc940
refactor(group): Get name from group
2017-08-18 21:45:51 +03:00
Diadlo
e19bd67381
refactor(group): Move GroupWidget creation out of Group
2017-08-18 21:45:51 +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
7429614188
refactor(group): Store title name in Group
2017-08-06 20:28:06 +03:00
Diadlo
aaf1029667
refactor(group): Replace signal groupTitleChanged on Group::titleChanged
2017-08-06 20:28:06 +03:00
Diadlo
4fee43cded
refactor(group): Replace 'renameRequest' signal on Group::titleChanged
2017-08-06 20:28:05 +03:00
Diadlo
11e75104f4
refactor(group): Don't pass widget on model change
2017-08-06 14:51:14 +03:00
Diadlo
9495a411cb
refactor(group): Move UI code out of Group::setName
2017-08-06 14:51:14 +03:00
Diadlo
14c2a30f4c
refactor(groupwidget): Extract setTitle in method
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
0adf026b4b
refactor: Make Contact parent of Friend and Group
2017-08-06 13:55:02 +03:00
Diadlo
90f4750e73
refactor(contact): Add Contact class
2017-08-06 13:55:02 +03:00
Diadlo
6c85e542a3
refactor(friend): Pass QString by const reference
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
7f3887f67c
refactor(audio): fix some remarks from review
2017-08-05 21:25:15 +02:00
sudden6
8652fe99e3
feat(audio): make the libfilteraudio dependency optional
2017-08-05 21:25:14 +02:00
sudden6
e1da943e4e
refactor(audio): move channel count to audio backend
2017-08-05 21:25:13 +02:00
sudden6
8f2401fee6
fix(build): add install steps for libfilteraudio on OSX
2017-08-05 21:25:01 +02:00
sudden6
526701fa9f
fix(build): make the OpenAL backend build with OpenALSoft < 1.15
...
This is needed for Ubuntu 14.04 which we use on Travis CI.
2017-08-05 21:12:34 +02: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
sudden6
809c5e6b04
fix(audio): Echo cancelling supports only mono audio
2017-08-05 21:12:33 +02:00
sudden6
c34999c9d0
refactor(audio): simplify the code
2017-08-05 21:12:33 +02:00
sudden6
5d60f09df4
feat(audio): make echo cancellation work and improve some minor stuff
2017-08-05 21:12:33 +02:00
sudden6
9c603e8654
feat(audio): add libfilteraudio
2017-08-05 21:12:33 +02:00
sudden6
c715729167
feat(audio): add alternative OpenAL backend
2017-08-05 21:12:32 +02:00
Nils Fenner
93fa1e712b
refactor: remove unused signal
2017-08-02 08:41:12 +03:00
Nils Fenner
e1aa0195ac
refactor: declare final overrides private
2017-07-31 23:21:15 +03:00
Diadlo
4f25e01b96
refactor: Add nullptr check on getChatForm value
2017-07-30 11:45:18 +03:00
Diadlo
4dd1fb5967
refactor: Remove useless connection
...
This connection exists in Widget
2017-07-30 11:45:18 +03:00
Diadlo
72bb70aa74
refactor: Remove Friend::getChatForm usage from Widget
2017-07-30 11:45:18 +03:00
Diadlo
3473090ec1
refactor: Remove ChatForm creation from Friend
2017-07-30 11:45:18 +03:00
Diadlo
ad58c1767b
fix(friendwidget): Add correct index calculation
2017-07-29 19:39:43 +03:00
Diadlo
c4baff4b04
refactor(friendwidget): Add using const
2017-07-29 11:31:41 +03:00
Diadlo
eb13908926
refactor: Make few methods ConstDialog const
2017-07-29 11:31:41 +03:00
Diadlo
c3297600be
refactor(friendwidget): Extract Settings in variable
2017-07-29 11:31:39 +03:00
Diadlo
bd99e10ac1
refactor(friendwidget): Make fields private, remove unused
2017-07-29 11:27:16 +03:00
Diadlo
fe4a89d906
refactor(friendwidget): Remove friendId field
2017-07-29 11:27:15 +03:00
Diadlo
1b07cd553e
refactor(friendwidget): FriendWidget refactoring
2017-07-29 00:20:05 +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
90a262e9b5
refactor(circlewidget): Get Friend from FriendWidget
2017-07-28 17:52:51 +03:00
Diadlo
6ba24b65ca
refactor(aboutuser): Use const Friend pointer and union methods
2017-07-28 17:52:51 +03:00
Diadlo
9fe503c708
fix(autoaway): Improve autoaway algorithm.
...
Fix #3992
Don't reset autoaway flag if the status was changed without UI activity.
It is necessary that otherwise the flag is reseted then tox goes offline
because of not stable internet connection.
2017-07-28 17:51:31 +03:00
sudden6
14e43445ab
Merge pull request #4525
...
Yuri (1):
fix: Keep open and share X11 connection
2017-07-28 16:03:00 +02:00
Diadlo
d59c722389
refactor(friend): Make getter constant method
2017-07-26 13:05:19 +03:00
Maxim Biro
e7b5c93bfe
fix(build): fix sqlcipher header inclusion
2017-07-24 08:16:23 -04:00
Yuri
ae5cb4bcc2
fix: Keep open and share X11 connection
...
This prevents opening and closing of X11 connection and associated files every 1 second.
X11 connection is used for userAutoAway feature and to read CapsLock status.
2017-07-23 14:41:04 -07:00
Diadlo
c82b66104c
Merge pull request #4531
...
tWido (1):
feat(video): Error message on call fail
2017-07-24 00:28:23 +03:00
tWido
ac75f7b594
feat(video): Error message on call fail
...
notifies user if call ended unexpectedly
2017-07-23 21:19:06 +02:00
sudden6
da4f6222d8
fix(settings): set default values for some important settings
...
fix #4513
2017-07-16 13:25:55 +02:00
Zetok Zalbavar
bf405e17fb
feat(l10n): add Tamil translation to UI
2017-07-14 07:26:30 +01:00
sudden6
8c2703b756
Merge pull request #4507
...
Andrew Morgan (1):
fix(ui): Use native file picker dialog
2017-07-13 18:34:28 +02:00
Andrew Morgan
42a9534b24
fix(ui): Use native file picker dialog
...
The original reason that the Qt picker was used instead of the native
picker was that the native option would cause Nautilus/GNOME-based
pickers to hang.
This turned out to be due with a Qt bug with parenting Gtk windows. As a
result the parent of each file dialog window has been set to NULL,
eliminating the crash. As far as tests have shown, this produces no
adverse effects on either floating or tiling wms.
Fixes #3494
2017-07-06 06:40:33 -07:00
Diadlo
d704f5d21d
perf: Optimize open/close device
...
Because while device thread wait for a freeing 'streamMutex', in another
thread someone can subscribe or unsubscribe => it will require useless
pair (close + open) or (open + close)
2017-07-05 23:53:17 +03:00
Diadlo
d86912eacd
fix: Invoke device methods in deviceThread
...
Fix #2058
2017-07-05 23:53:17 +03:00
Diadlo
d720cca969
refactor: Split device and stream mutexes
2017-07-05 23:53:17 +03:00
Diadlo
50eaea8f8e
refactor: Add deviceThread
2017-07-05 23:53:17 +03:00
Diadlo
60dc4b34a4
refactor: Remove extra checks in [un]subscribe
2017-07-05 23:53:17 +03:00
Diadlo
a22694c9e8
refactor: Remove unused bool result
2017-07-05 23:53:17 +03:00
Diadlo
b562b31413
refactor: Remove unused functions
2017-07-05 23:53:17 +03:00
Diadlo
3b2352a0ee
refactor: Rename methods in CameraSource
...
To make the method more correctly reflect the essence
2017-07-05 23:53:17 +03:00
Diadlo
3c21af200c
revert: "refactor(core): Remove unused Core::reset method"
...
This reverts commit 4664c6249a
.
2017-07-05 23:53:06 +03:00
Diadlo
7b3bd45d50
feat(aboutform): Add OS name in issue template
2017-06-27 00:34:31 +03:00
Diadlo
dd9b324ec3
chore(qt): Remove old qt code
2017-06-26 23:06:55 +03:00
Diadlo
bb65a18de5
feat: Add message count in tooltip to LoadHistoryDialog
2017-06-26 16:01:49 +03:00
Diadlo
23fd6962a1
Merge pull request #4488
...
tWido (1):
feat(chatform): Highlight chat history
2017-06-26 11:48:59 +03:00
Diadlo
c667cf5c84
refactor(widget): Remove 'chatFormIsSet'
...
'charFormIsSet' is small static method used in one place, replaced
on direct using.
2017-06-25 22:42:44 +03:00
Diadlo
31d35ecc62
refactor: Remove Friend::getChatForm using
2017-06-25 22:42:44 +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
tWido
5e4ab76944
feat(chatform): Export chat history to file
...
Export chat history to plaintext
Fixes #4143
2017-06-25 20:22:42 +02:00
Diadlo
8b6d3a19ef
refactor(chatform): Use offlineEngine directly
2017-06-23 13:36:28 +03:00
Diadlo
0b5b3fcf1a
fix(main): Use correct way to handle application quit
...
Handle apllication aboutToQuit signal
2017-06-22 10:22:18 +03:00
Diadlo
9908c7473b
refactor(main): Use application pointer
2017-06-22 10:22:18 +03:00
Diadlo
b39a15873d
Merge pull request #4467
...
Yuri (1):
feat(toxid): Show NoSpam and checksum parts of ToxID in colors.
2017-06-16 14:18:34 +03:00
Yuri
c0951a5675
feat(toxid): Show NoSpam and checksum parts of ToxID in colors.
...
Also added the explanation to the ToxID tooltip message.
2017-06-15 08:02:09 -07:00
Alice Weigt
a06ad7048e
feat(audio):OutgoingCallSound
...
Adds outgoing call sound when call is started
2017-06-14 15:19:30 -07:00
Diadlo
23ed1a3966
refactor: Move iterator declaration in foreach scope
...
Narrow the iterator scope
2017-06-12 13:46:43 +03:00
Diadlo
3f7380db48
refactor: Add deleted copy constructor
...
GenericChatItemLayout allocates memory in constructor, so it's require a
copy constructor. Because we don't copy it I've declare this constructor
as deleted
2017-06-12 13:46:43 +03:00
Diadlo
6045e57829
refactor: Make constructor with one argument explicit
2017-06-12 13:46:43 +03:00
Diadlo
6e697053a7
refactor: Reorder FrameBufferKey
...
Reordered to be same with docs and prototype.
2017-06-12 13:46:43 +03:00
Diadlo
6c4c5d86fc
refactor: Remove audioInputFlag and audioOutputFlag
...
They exists in the parent class
2017-06-12 13:46:43 +03:00
Diadlo
efcad35fd5
fix: Fix warning about stack protection
...
Replace local array on stack with dynamic size on QByteArray with
dynamic size
2017-06-12 13:46:42 +03:00
Diadlo
8e93af7fca
refactor: Add copy and move assignment operator to toxid and toxpk
...
Add assignment operator to classes which has copy constructor
2017-06-12 13:46:42 +03:00
Diadlo
365d703e8a
perf: Pass std::function by reference
2017-06-12 13:46:38 +03:00
Diadlo
7895bcdaa0
refactor: Remove useless check
...
uint32_t always greater of equal 0
2017-06-12 12:42:54 +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
sudden6
98a01dfefc
Merge pull request #4440
...
ezavod (1):
fix(ui): add date message before info messages
2017-06-04 23:52:13 +02: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
ezavod
ed45359863
fix(ui): add date message before info messages
...
Fixes #4388 .
Separated date message in its own function.
Also added date message before info messages like it is already done with normal chat messages.
2017-06-03 18:12:59 +02: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
Diadlo
4d15aed53f
fix: Fix freez on circle removing
...
Fix #4419
2017-06-02 18:48:09 +03:00
sudden6
dd60edb3d7
Merge pull request #4432
...
ezavod (1):
refactor(ui): set icon in dialog constructor
2017-06-01 21:13:52 +02:00
sudden6
a3b234e6dd
chore(formatting): run clang-format
2017-06-01 09:50:59 +02:00
sudden6
a1181e10f2
chore(formatting): disable clang-format for certain code sections
2017-06-01 09:49:32 +02:00
ezavod
b518aa8488
refactor(ui): set icon in dialog constructor
...
Fixes #4430 .
Moved `setWindowIcon` to dialog constructor and removed all other occurrences.
2017-05-31 18:42:08 +02:00
sudden6
d87f222c5c
Merge pull request #4427
...
Zatsepin Nikita (1):
fix(chatform): add space for current copy link
2017-05-31 13:50:03 +02:00
sudden6
46c848c07f
Merge pull request #4424
...
ezavod (1):
fix(ui): do not save splitter state in multiple windows mode
2017-05-30 12:55:01 +02:00
Zatsepin Nikita
41a781d3f8
fix(chatform): add space for current copy link
2017-05-29 00:14:23 +03:00
ezavod
7e5387cad2
fix(ui): do not save splitter state in multiple windows mode
...
In multiple windows mode there are no two widgets that are separated by the splitter, there is just one widget.
This changes the splitter state without the users intention.
2017-05-27 17:12:34 +02:00
ezavod
6b767e4765
fix(ui): Set Qt::Window
flag in multi windows mode
...
This sets the flag to `Qt::Window` for open dialogs in multi windows mode.
Commit changes the appearance of non-chat windows (Settings, Add Friend, ...).
2017-05-26 16:25:02 +02:00
Diadlo
65b1463933
refactor(core): Move setAvatar to profile from core
2017-05-24 19:43:47 +03:00
Diadlo
4664c6249a
refactor(core): Remove unused Core::reset method
2017-05-24 19:43:47 +03:00
Diadlo
c2f82f7808
fix(IPC): Add update profileId in to IPC
...
Fix #4384
2017-05-24 19:41:54 +03:00
sudden6
54a269e8c4
Merge pull request #4407
...
ezavod (1):
fix(ui): switch to settings after multiple windows mode
2017-05-17 23:05:35 +02:00
sudden6
9428092a3d
Merge pull request #4404
...
Mario Preksavec (1):
fix: gcc-7 build
2017-05-14 23:36:18 +02:00
Mario Preksavec
246e23abf3
fix: gcc-7 build
2017-05-14 20:38:02 +02:00
ezavod
0c98f6a548
fix(ui): switch to settings after multiple windows mode
...
Switch back to settings after disabling multiple windows mode instead of switch to add friend page.
2017-05-14 20:36:18 +02:00
sudden6
50768abbab
Merge pull request #4394
...
Yuri (1):
fix(message size): Replaced TOX_MAX_*_LENGTH with API calls.
2017-05-14 12:53:41 +02:00
sudden6
afeca313ba
Merge pull request #4389
...
ezavod (1):
fix(ui): restore splitter state
2017-05-14 12:51:52 +02:00
sudden6
9aca348db9
Merge pull request #4391
...
Łukasz Żarnowiecki (1):
fix(settings): compute toxcore version in runtime
2017-05-14 12:48:20 +02:00
Maxim Biro
4e5b191553
fix(core): use correct byte representation when bootstrapping
...
Revert a bug introduced in d126b18d76
where qTox calls tox_bootstrap() and tox_add_relay() with an invalid
argument, which results in qTox not connecting to the bootstrap nodes
from its list of bootsrap nodes and therefore failing to connect to the
Tox DHT network in the case when that list is the only source of nodes
to connect to. The invalid argument is node's public key, which is
non-nullable but is passed a null due to invalid ToxPk object being
constructed. ToxPk's constructor expects the QByteArray argument to be
the byte representation of a public key, but a textual representation
is passed to it instead, which creats an invalid ToxPk that resolves to
null when queried for public key's bytes for calls to tox_bootstrap()
and tox_add_relay().
Fixes #4385
2017-05-11 17:19:28 -04:00
Yuri
3963d3c150
fix(message size): Replaced TOX_MAX_*_LENGTH with API calls.
...
It is good for flexibility to have fewer hardcoded values.
2017-05-11 09:24:54 -07:00
Łukasz Żarnowiecki
2d0a4e794d
fix(settings): compute toxcore version in runtime
...
Past this change toxcore version was set during compilation. This
caused a problem when you changed version of toxcore while qTox would
still display its old. This behaviour was misleading.
2017-05-11 14:32:56 +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
Jerome Pinguet
71a838b53e
fix(profile): set maxLength on userName QLineEdit
...
Set maxLength of userName QLineEdit to TOX_MAX_NAME_LENGTH
Fixes #4335
2017-05-09 07:28:31 +02:00
Diadlo
a913f150e1
Merge pull request #4381
...
Yuri (1):
fix(macro): Fixed clang warning about USING_V4L
2017-05-08 23:40:48 +03:00
Diadlo
eacdafff5f
refactor(group): Changed Group flags types to bool
2017-05-08 22:39:00 +03:00
Diadlo
8634e26694
refactor: Methods renamed
...
existsFriendWidget -> friendWidgetExists
existsGroupWidget -> groupWidgetExists
2017-05-08 22:39:00 +03:00
Diadlo
4afd13839a
refactor(toxuri): Add using GUI to show warning
2017-05-08 22:36:13 +03:00
Diadlo
b126d21922
refactor(core): Merge friendAdded and friendshipChanged
2017-05-08 22:12:14 +03:00
Diadlo
49e9eb8de2
refactor(core): Move saving request to history to Profile
2017-05-08 22:12:14 +03:00
Diadlo
b25f5b5ed6
fix(core): Add action message with friend request text
2017-05-08 22:12:14 +03:00
Diadlo
d77cb084d6
refactor: Remove unused MicFeedback widget
2017-05-08 22:11:41 +03:00
Yuri
dd59f5ee90
fix(macro): Fixed clang warning about USING_V4L
...
Clang produced this warning:
"macro expansion producing 'defined' has undefined behavior"
2017-05-08 09:28:29 -07:00
Diadlo
7e3ad7ba87
refactor(chatform): Remove Audio dependencies from ChatForm
2017-05-08 14:12:45 +03:00
Diadlo
695abadd7c
refactor(chatform): Remove Audio::play usage from ChatForm
2017-05-08 14:12:45 +03:00
sudden6
28c2298ad9
feat(audio): split the audio interface from the backend library
...
This paves the way to support multiple audio backends
2017-05-08 10:37:05 +02:00
sudden6
13029e3047
fix(groupinvite): prevent multiple groupinvites to the same group from showing up
...
fix #2305
2017-05-07 17:08:02 +02:00
sudden6
c41f533818
Merge pull request #4340
...
ezavod (1):
fix(settings): changing language sets title to "Add Friend"
2017-05-07 16:08:06 +02:00
sudden6
407413c65b
fix(core): add missing nullptr check
...
fix #4324
2017-05-07 01:03:35 +02:00
sudden6
6a6e30d639
fix(settings): remove legacy code
2017-05-06 15:21:37 +02:00
Diadlo
5d117e6af8
refactor: Remove getCompactLayout from GenericChatroomWidget
2017-05-04 20:31:56 +03:00
Diadlo
5feb81d757
refactor(translator): Remove Settings from Translator
2017-05-04 20:31:56 +03:00
Diadlo
7d3020cba3
refactor(IPC): Remove IPC singlton
2017-05-04 20:31:56 +03:00
Diadlo
f11860680b
refactor(IPC): Remove Settings from IPC
2017-05-04 20:31:56 +03:00
Diadlo
b3015ab0a8
refactor(friend): Remove Settings from Friend
2017-05-04 20:31:54 +03:00
Zetok Zalbavar
0192e9275f
feat(l10n): add Romanian translation to UI
2017-04-30 20:18:02 +01:00
noavarice
b5f4628c89
fix: fix segfault while trying to send messages
...
Unfortunately, can not pass local variable on ChatLine::Ptr through
several method calls so ChatMessage inserted after its creating in the
same scope. Updated docs
2017-04-26 14:30:22 +03:00
noavarice
4b3d86d172
refactor: another small changes
...
Brief list of changes:
- "resolveToxId" method's name replaced with "resolveToxPk";
- updated comments for "resolveToxPk" and "needsToHideName";
- changed "resolveToxPk" return value for fail case;
- fixed typo.
2017-04-25 22:09:38 +03:00
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.
2017-04-25 12:30:34 +03:00
noavarice
a83f8d1dfd
refactor: returned correct code style
2017-04-25 12:30:34 +03:00
noavarice
7e1f8cb23e
docs: added docs to some GenericChatForm methods
2017-04-25 12:30:34 +03:00
noavarice
e9c7caf3e7
refactor: sorted (several removed) headers, class declarations and fields
2017-04-25 12:30:34 +03:00
noavarice
b074c831d3
refactor: refactored message-adding methods
...
Return value of "addMessage" was not used at all, so now this method
(and "addSelfMessage" too) does not have return value - just inserts
message into ChatLog. Also messages are creating with "createMessage"
and "createSelfMessage"
2017-04-25 12:30:34 +03:00
noavarice
2598973c76
refactor: remove unnecessary methods
...
"isEmpty" method is just completely redundant, while "fontToCss" and
"resolveToxId" don't relate to "GenericChatForm" class
2017-04-25 12:30:34 +03:00
noavarice
27f65be289
refactor: literals replaced with constants
2017-04-25 12:30:34 +03:00
ezavod
4886868ece
fix(settings): changing language sets title to "Add Friend"
...
This fixes issue #3708 .
Changing language sets title of settings widget to "Settings" instead
of wrong "Add Friend".
2017-04-23 16:21:27 +02:00
sudden6
5b31cf6d9d
fix(profile): toxsave wasn't correctly encrypted
...
fix #4344
2017-04-23 13:51:31 +02:00
sudden6
52617ad075
Merge pull request #4341
...
ezavod (1):
fix(chatform): disable Tab in add friend message text area
2017-04-22 15:44:27 +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
ezavod
195e891da1
fix(chatform): disable Tab in add friend message text area
...
This is related to #2100 .
Tab is no longer accepted as input in add friend message text area,
instead it changes the focus.
2017-04-19 09:19:09 +02:00
Diadlo
b691cf9bed
refactor: Add parentheses around the '&&' expression
2017-04-18 00:14:49 +03:00
Diadlo
15a385ba75
refactor(time): Make enum class
2017-04-14 13:57:57 +03:00
Diadlo
470c17cd1f
refactor(time): Cleanup time-related code
...
- Remove manual category creation.
- Remove shitty code duplication.
BREAKING CHANGE: Now 'last 7 days' can contains days from the last month.
2017-04-14 13:57:55 +03:00
sudden6
b68ad4ced2
feat(audio): don't use dynamic memory allocation and remove resource leak
2017-04-14 09:09:56 +02:00
noavarice
532e05cb0f
fix: fixed segfault after accepting group invite
...
Fix #4327
Description:
- QString::arg call with mulpiple arguments replaced with chained
QString::arg calls;
- dynamic memory allocation for array of names replaced with
allocation on the stack, unfortunately I do not notice this while
making Core refactoring.
Also code style is formatted with script
2017-04-12 22:57:31 +03:00
sudden6
c472cdcab5
Merge pull request #4328
...
Yuri (1):
fix(includes): Added missing #include <ctime>
2017-04-12 00:15:55 +02:00
Yuri
e597d391fc
fix(includes): Added missing #include <ctime>
...
time(3) requires this include. Found when qTox failed to build on the FreeBSD due to the missing include.
2017-04-11 00:04:48 -07:00
sudden6
084f3b0626
feat: stop using plaintext passwords in the code
2017-04-08 12:24:29 +02:00
sudden6
0f54e44262
Merge pull request #4305
...
ezavod (1):
feat(chatform): mark message with triple click
2017-04-07 18:40:07 +02:00
sudden6
20db8b740b
fix(core): don't continue when the tox file is corrupted
2017-04-04 11:43:24 +02:00
noavarice
c1e01710b4
refactor: returned correct code format
2017-04-03 21:05:25 +03:00
noavarice
931e5803cd
refactor: next part of Core refactoring
...
Changes:
- several parts of code extracted into single methods;
- fixed several TODO's
2017-04-03 16:13:56 +03:00
noavarice
d126b18d76
refactor: Core refactoring
...
Brief list of changes:
- removed unnecessary headers from core.h and core.cpp;
- added missing brackets and aligned long lists of parameters;
- some other small changes.
2017-04-03 16:13:56 +03:00
Zetok Zalbavar
c8ed535bba
fix(UI): improve unclear message about text being resized in chatform
2017-04-02 18:41:43 +01:00
noavarice
83b3449d0a
refactor: onTextEditChanged method refactoring
...
Made as single commit because this change requires an explanation. As i
understand, `getTypingNotification` always return the same value because
`setTypingNotification` is not connected for any signal and the only
time it's called - from `PrivacyForm`'s method which is never called and
also is not connected to signals. I guess that removing `getTypingNotification`
from `onTextEditChanged` will not affect anything
2017-03-29 15:17:37 +03:00
noavarice
731f588f05
refactor: slight refactoring of ChatForm class
2017-03-29 15:17:37 +03:00
noavarice
2c91280d9b
refactor: removed unnecessary headers and updated copyright info
2017-03-29 15:17:37 +03:00
sudden6
aeb9df0750
refactor(core): reduce line lenghts
2017-03-28 21:57:14 +02:00
sudden6
3e50757ddb
refactor(profile): reduce code duplication
2017-03-28 21:57:13 +02:00
ezavod
3acbc148f5
feat(chatform): mark message with triple click
...
This is an implementation of proposal #4003 .
2017-03-28 17:20:01 +02:00
ezavod
96b2977a5f
fix: set CSS font-weight of editbox always to normal
...
This fixes issue #4292 by setting CSS `font-weight: normal` always.
2017-03-28 10:45:27 +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
sudden6
e9515f4898
fix: remove useless line that caused a warning
2017-03-23 13:36:29 +01:00
noavarice
08208e9aa5
fix: fixed wrong formatting for multiple URL's in one message
...
Fix #4275
I did not consider that replacing one substring with another will point
to shifting position of next URL found with regexp. That's the behavior
of Qt's "QRegularExpression" class - it takes a string into constructor
and seems to make its copy inside so changing source string does not
affect this regex object
2017-03-22 14:23:57 +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
Diadlo
c7202c8b24
fix(widget): Add friendWidget deletation
...
Thanks @noavarice for help.
Fix #4254 , #4229
2017-03-21 01:06:51 +03:00
sudden6
f0cec44a8c
fix: silence various warnings
2017-03-20 22:21:38 +01:00
tux3
f07daaf159
fix: Stop using deprecated avcodec_decode_video2
2017-03-20 21:10:27 +03:00
tux3
91414b4fce
fix: Remove unnecessary calls to av_frame_unref
...
If we immediately free it, the refcount goes to zero!
2017-03-20 21:10:27 +03:00
tux3
9674bff0cf
fix: Stop using deprecated AVStream::codec
...
We now use the AVCodecParameters instead, as recommended
2017-03-20 21:10:27 +03:00
sudden6
300ac12e3f
fix: silence warning by not using dynamic arrays on stack
2017-03-19 19:27:50 +01:00
DX37
0fc3911318
fix: Fix incorrect headers order
...
Because of incorrect order, qTox on Windows can't be compiled properly.
Fixes #4220
2017-03-18 19:36:50 +06:00
noavarice
18c3f3a217
fix: URL's are not affected by markdown
...
Fix #4242
Just running in a loop through all of markdown symbols in found URL's,
replacing them with their associated HTML character code before the code
formatting to avoid any chance of interception
2017-03-12 23:14:44 +03:00
Zetok Zalbavar
bfd47733c2
fix(UI): actually load bundled Unicode font as soon as possible
...
Hopefully this fixes an issue with ugly fonts that started happening
some time ago for Windows & FreeBSD users.
2017-03-12 12:14:25 +00:00
Diadlo
d1ec8cc989
Merge pull request #4239
...
ezavod (1):
fix: iterate all blocks
2017-03-12 14:53:46 +03:00
ezavod
7a5c5a86fd
fix: iterate all blocks
...
refactor: block iteration loop
refactor: replaced checks with chop()
2017-03-12 11:20:14 +01:00
sudden6
4e548662d7
refactor(core): remove CString
2017-03-09 11:01:43 +01:00
sudden6
25c279c320
refactor(core): replace CString with ToxString
2017-03-09 11:01:43 +01:00
sudden6
1f0467bb1b
refactor(core): add new class for easy string conversion
2017-03-09 11:01:34 +01:00
sudden6
bf0e6817af
refactor: correct indentation in filetransferwidget.cpp
2017-03-08 17:49:37 +01:00
Diadlo
ec81b07bb3
refactor(friend): Remove obsolete code from Friend class
2017-03-08 15:18:40 +03:00
Diadlo
ea50eaaef7
fix(core): Ignore online connection status
...
Fix #4010 .
qTox use status system, where offline is one of the status, but toxcore
use two different meaning: 'connection' and 'user status'. To correct
qTox status handling we should ignore online connection status.
2017-03-08 08:55:17 +03:00
noavarice
e8ed7e1f53
fix: fixed documentation mistake
2017-03-07 15:34:52 +03:00
noavarice
3e2bfdd548
refactor: further improvement of message formatting
...
Brief list of changes:
- names of some variables and constants were replaced for reading
convenience;
- URL-highlighting method moved to TextFormatter so URL's don't
conflict with italic text formatting;
- as I understand, in previous version 'file://' URL does not work
because of bad regex. I fix this with help of wiki page that
referenced in comment for old code. Important note: there are two
equal 'file://' URL syntax: 'file:///...' and 'file://localhost/...'
and the second one does NOT work in KDE but works in Gnome so that's
not a bug
Fix #4233
2017-03-06 11:55:54 +03:00
sudden6
aabf34ebad
refactor: remove unused file
2017-03-05 12:05:41 +01:00
sudden6
23b8b84bc9
Merge pull request #4232
...
DX37 (1):
revert: "fix(icons): Removed unnecessary icon preparation."
2017-03-05 11:26:41 +01:00
DX37
8174a4173d
revert: "fix(icons): Removed unnecessary icon preparation."
...
This reverts commit fac0021a47
.
2017-03-03 17:57:24 +07: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
Jimi Huotari
9322f29ef4
feat(UI): Move filetransferwidget buttons side-by-side.
...
This aims to prevent accidental clicks on the incorrect button in
cases where the chatlog moves at the time of the click.
Closes #2597 .
2017-03-01 23:44:49 +02:00
sudden6
ffd7d0e93e
chore(font): update default font and add its license
...
Also add a warning message, if the font wasn't loaded.
2017-02-26 20:54:20 +01: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
Nils Fenner
4b7fc5792d
refactor: use enum class
2017-02-25 22:20:04 +03:00
sudden6
de78e0dddb
Merge pull request #4120
...
Yuri (1):
fix(icons): Removed unnecessary icon preparation.
2017-02-25 20:03:17 +01:00
Diadlo
1d0a49c2b7
Merge pull request #4194
...
noavarice (2):
refactor: single group invite extracted into a widget
docs: added documentation for GroupInviteForm class
2017-02-25 20:41:36 +03:00
Nils Fenner
12bcc26154
feat(settings): create ui when needed instead of show/hide
...
note: no change in "embedded window" mode yet, but doesn't harm either
2017-02-25 19:25:29 +03:00
noavarice
0effac2bdd
fix: changed incorrect videocall button offline tooltip
2017-02-25 17:34:50 +03:00
Diadlo
bff25ce8b1
refactor: Remove FriendWidget from Friend class
2017-02-23 00:36:00 +03:00
noavarice
e68aef19f9
docs: added documentation for GroupInviteForm class
2017-02-22 23:53:59 +03:00
noavarice
adba773c6d
refactor: single group invite extracted into a widget
...
Previously GroupInviteForm included several collections of components
which were supposed to use as a single object. Now they are replaced
with a class and all functionality related to this collections moved
there too. Also fix #3621
2017-02-22 16:19:19 +03:00
Zetok Zalbavar
43d16d9181
feat(l10n): add Chinese (Taiwan) translation to UI
...
Thanks to @LNDDYL for the help with what should be put in the language
name.
2017-02-21 09:24:44 +00:00
noavarice
87f219a78f
refactor: message text formatting works better now
...
- tag intersection detected
- variables and constants' names became shorter
2017-02-19 23:53:11 +03:00
noavarice
5047a65e11
refactor: improved HTML-formatting mechanism for text messages
...
Added class provides text font formatting with HTML font tags
Supported stuff:
- nested formatting;
- several text pieces formatted with the same formatting style at the
one message;
- styling applies only if non-whitespace symbol follows opening
formatting symbol and also non-whitespace symbol preceds closing
symbol;
- only multiline code font formatting supports new line inside of
message text.
Also fix #3804
2017-02-19 10:06:26 +03:00
tux3
60e5375ef7
Merge pull request #4184
...
tux3 (1):
fix: Friend list avatars not updating
2017-02-19 00:46:18 +01:00
tux3
ea44095c94
Merge pull request #4183
...
tux3 (4):
fix: Accept IDs as tox URIs, not just ToxDNS addresses
fix: Various IPC event handling and related bugs on startup
fix: Don't even try to add ourselves as a friend in the Tox URI handler
fix: msleep in toxuri processEvents loops, to avoid 100% CPU
2017-02-19 00:46:11 +01:00
tux3
20ff68c3a6
fix: Autoupdater trying to open files twice could fail
2017-02-17 17:44:54 +01:00
tux3
2d0698af95
fix: msleep in toxuri processEvents loops, to avoid 100% CPU
...
Fixes #1926 for realsies.
2017-02-17 17:18:58 +01:00
tux3
bfda028a2a
fix: Don't even try to add ourselves as a friend in the Tox URI handler
2017-02-17 17:18:57 +01: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
tux3
055c41bc30
fix: Friend list avatars not updating
...
Possibly related to #4172
2017-02-17 16:42:40 +01:00
tux3
1d307bcc0e
fix: Accept IDs as tox URIs, not just ToxDNS addresses
...
Fixes #1925
2017-02-17 03:59:23 +01:00
sudden6
08fdb7561e
Merge pull request #4161
...
Yuri (1):
fix(font): Made the font combobox not editable.
2017-02-11 02:11:53 +01:00
sudden6
14ee8af3cd
fix(toxencrypt): return the plaintext after decryption
...
fix #4162
2017-02-10 22:33:57 +01:00
sudden6
1e7fc8cc52
Merge pull request #4141
...
Yuri (1):
feat(shortcut): Implemented F11 shortcut for toggling fullscreen.
2017-02-09 16:35:15 +01:00
Yuri
ba28f163fd
fix(font): Made the font combobox not editable.
...
There is no need for the user to be able to type into this combobox.
2017-02-08 21:22:55 -08:00
sudden6
01b9327827
Merge pull request #4146
...
agrecascino (1):
fix(audio): alternate audio fix implementation from #4139
2017-02-08 13:34:22 +01:00
sudden6
39b473cc86
Merge pull request #3309
...
Nils Fenner (1):
refactor(audio): remove obsolete signal "groupAudioPlayed"
2017-02-08 13:32:47 +01:00
agrecascino
62ac480171
fix(audio): alternate audio fix implementation from #4139
2017-02-07 15:44:35 -05: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
Diadlo
f5c0d61ae6
feat(toxpk): Add 'ToxPk::getPkSize()' method
2017-02-07 20:10:44 +03:00
Yuri
3a20a4ba43
feat(shortcut): Implemented F11 shortcut for toggling fullscreen.
...
Allow to make qTox fullscreen, similar to how browsers switch to fullscreen.
2017-02-06 11:08:41 -08:00
sudden6
d320b1f259
Merge pull request #4137
...
Yuri (1):
fix(font): Made font changes in settings apply on screen instantly.
2017-02-06 15:18:14 +01:00
sudden6
a6bc9db188
Merge pull request #4121
...
Yuri (1):
style(video): Simplified ifdefs, made them USING_V4L to be explicit.
2017-02-06 15:15:48 +01:00
sudden6
a5955c67ed
feat(toxencrypt): add function to get min length for isEncrypted() to
...
succeed
Also improve documentation
2017-02-06 11:09:59 +01:00
Yuri
742583bb9e
fix(font): Made font changes in settings apply on screen instantly.
...
Before the user had to restart qTox for the font change to take effect.
Now it changes instantly.
2017-02-05 21:49:30 -08: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
Yuri
2340a7491a
style(video): Simplified ifdefs, made them USING_V4L to be explicit.
...
Changed complex ifdef statements into simpler ones using the easy to
read token USING_V4L.
2017-02-05 10:44:58 -08:00
Yuri
fac0021a47
fix(icons): Removed unnecessary icon preparation.
...
In Qt5 QIcon supports svg without preparation.
2017-02-05 10:35:54 -08:00
Nils Fenner
36f7f65732
refactor: correct virtual overrides
2017-02-05 17:24:43 +03:00
Nils Fenner
ec4a5d08ef
refactor(widget): fix static analyzer warning and some cleanup
2017-02-05 17:24:43 +03:00
Nils Fenner
456e429cac
refactor: minor cleanup in Widget and Friend
2017-02-05 17:24:43 +03:00
sudden6
bb2098d929
Merge pull request #4119
...
Yuri (1):
fix(clipboard): Made clipboard operations work the same on all OSes.
2017-02-05 10:53:30 +01:00
sudden6
5a04359901
Merge pull request #4124
...
Yuri (1):
fix(font): Fixed the editbox font reset problem
2017-02-04 22:51:07 +01:00
Yuri
c84837d662
fix(font): Fixed the editbox font reset problem
...
Steps to reproduce:
* Select some obviously larger font
* Restart qTox
* Type something (you will see it with the correct font)
* Erase it completely
* Type something again
* Observe the current font now is small (back to the default)
This is a bug in Qt having to do with manipulation with both the css style and QFont of QTextEdit control at the same time.
The solution is to convert QFont to CSS style and apply it this way.
2017-02-04 09:56:31 -08:00
noavarice
034c507cc4
fix: Now cannot send party invite to a friend which has "Offline" status
...
Fix #4018
2017-02-03 23:24:06 +03:00
Yuri
a18e0b6a2c
fix(clipboard): Made clipboard operations work the same on all OSes.
...
Qt should handle all OS differences, not individual apps.
2017-02-02 20:18:26 -08:00
sudden6
5c5dce4d33
refactor(core): use factory methods for ToxEncrypt
2017-01-29 13:48:48 +01:00
sudden6
d07d0cfbf0
refactor(core): Introduce new class ToxEncrypt to interface with toxencryptsave
2017-01-29 13:48:43 +01:00
Diadlo
f0467abc34
fix(osx): Remove useless '#ifdef Q_OS_MAC'
2017-01-28 22:11:42 +00:00
Diadlo
320099faf8
fix(chatform): Add ability to cancel call
...
Fix #4016 .
2017-01-29 00:37:31 +03:00
sudden6
dd8ae8109e
Merge pull request #4094
...
Diadlo (5):
feat(chatform): Changed mic and vol buttons
fix(chatform): Fixed buttons
refactor: Small Generic chat form refactoring
refactor(buttons): Mic and vol buttons now are QToolButton
refactor(chatform): Small ChatForm refactoring.
Zetok Zalbavar (1):
refactor: adjust to changes in Friend and ToxPk classes
2017-01-28 22:29:50 +01:00
Zetok Zalbavar
7168d2b858
refactor: adjust to changes in Friend and ToxPk classes
...
With this it compiles.
2017-01-27 00:59:29 +00:00
Diadlo
3307fcd96f
refactor(chatform): Small ChatForm refactoring.
2017-01-27 00:25:37 +00:00
Diadlo
2aed859bdb
refactor(buttons): Mic and vol buttons now are QToolButton
2017-01-27 00:25:37 +00:00
Diadlo
ece4d9e446
refactor: Small Generic chat form refactoring
2017-01-27 00:23:17 +00:00
Diadlo
aff0c6f3a5
fix(chatform): Fixed buttons
2017-01-27 00:20:01 +00:00
Diadlo
5381d55e94
feat(chatform): Changed mic and vol buttons
2017-01-27 00:20:01 +00: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
sudden6
a5d2c573dd
fix(addfriend): create ToxId from QString before emitting the signal
...
fix #4086
2017-01-21 11:57:33 +01:00