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
Zetok Zalbavar
1df9f5726d
fix(l10n): rename zh
translation to zh_CN
...
Closes #4080 .
2017-01-17 20:13:16 +00:00
Zetok Zalbavar
1fc412df72
feat(UI): remove unnecessary spacings on the Profile page
...
Moved "header" under the scrollbar.
Renamed `Profile` and `User Profile` to `My profile`.
There is a regression with profile page header title no longer being
bold; according it Qt Creator it should be bold. No idea how to fix
that.
Thanks to @Diadlo for the code removing unnecessary header.
2017-01-15 15:26:20 +00:00
Zetok Zalbavar
26e372dc54
chore: bump copyright date in About settings tab to 2017
2017-01-11 20:54:53 +00:00
Diadlo
52642578a0
fix: Remove old ChatForm code from Widget
...
Remove double status messages
2017-01-10 00:54:25 +03:00
Diadlo
fcd8eed7cd
style: Fix style of a lot of pointers
2017-01-06 23:03:58 +03:00
Diadlo
7d1564e586
refactor: Remove using getFriendWidget from FriendWidget
2017-01-06 23:03:58 +03:00
Diadlo
4d806a3661
refactor: Remove using getFriendWidget from FriendListWidget
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
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
Diadlo
328d0b6ddf
fix(nexus): Add qRegisterMetaType call for ToxPk
...
Fixed warning message: QObject::connect: Cannot queue arguments of type
'ToxPk' (Make sure 'ToxPk' is registered using qRegisterMetaType().)
2017-01-04 06:46:17 +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
sudden6
2f4e8dc3e8
refactor(toxpk): add class representing a Tox Public Key
2017-01-02 22:58:05 +01:00
sudden6
0b2f22d521
refactor(toxid): improve checks for valid ToxIDs
2016-12-30 15:54:56 +01:00
sudden6
a223510cf7
fix(toxid): Tox ID construction from ToxMe
2016-12-30 15:54:56 +01:00
Zetok Zalbavar
541bc0e174
refactor(core): simplify code for tox interval during file transfer
...
Also some style changes.
2016-12-30 13:57:55 +00:00
Zetok Zalbavar
dccef4d49f
fix(UI): fix own status message not being properly displayed in tooltip
...
This causes a slight regression where own status can become quite huge
when user sets e.g. 120 newlines between first and last character of the
status message.
Given that this fixes a problem with incorrect (broken) formatting of
display of own status messages, the slight regression is insignificant.
There is also a Qt bug involved that causes formatting to be broken if
text contains "HTML" tags.
https://bugreports.qt.io/browse/QTBUG-57477
Used workaround requires using additional HTML to preserve newlines even
if HTML is a part of the status message.
Related to #935 .
2016-12-30 08:24:28 +00: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
efcff57601
fix(addfriend): do not load own Tox ID from clipboard
...
fix #4024
2016-12-29 15:08:48 +01:00
sudden6
d196611ffe
feat(toxid): Improve validation of Tox IDs
2016-12-29 13:37:01 +01:00
sudden6
3d0938a3c6
refactor(toxid): improve code clarity and documentation
2016-12-29 13:37:01 +01:00
sudden6
152c134a4b
refactor(toxid): drop the cData class in favour of ToxId
2016-12-29 13:37:01 +01: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
sudden6
8d320ca3be
chore: Make building for FreeBSD easier
...
Add some patches from https://svnweb.freebsd.org/ports/head/net-im/qTox/
and make some things more platform independent.
2016-12-28 22:15:16 +01:00
Diadlo
9314dd3382
refactor(widget): Small refactoring
2016-12-27 22:22:58 +03:00
Diadlo
b4c4569299
feat(toxid): Added correct checksum validation.
...
Fix #3837
2016-12-27 01:40:44 +03:00
sudden6
e7276e7b43
fix(warnings): fix some warnings about the stack protector not working
2016-12-26 14:40:32 +01:00
Zetok Zalbavar
4bcf57b236
style: adjust function arg names in header to changes in core.cpp
2016-12-25 18:24:52 +00:00
Diadlo
eff27f690e
fix(videoButton): Added disabling button while call is active
...
Fix #4004
Cherry-picked and slighly modified from #3935
2016-12-25 14:47:46 +01:00
Diadlo
4f9cb0b008
refactor: rename args to conform to C++11 § 17.6.4.3.2
...
Fixed typo and small style improvements.
2016-12-19 01:08:33 +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
3c304c50bc
refactor(core): Added error handling
2016-12-19 00:42:54 +03:00
Diadlo
98fa64f841
refactor(core): Remove code duplication for different types of messages
2016-12-19 00:42:54 +03:00
Diadlo
d371e78871
refactor(core): Update toxcore callbacks
2016-12-19 00:42:54 +03:00
Diadlo
e9a2fc6b57
refactor(core, widget): Update toxcore group API (new: conference)
2016-12-19 00:42:54 +03:00
Diadlo
49b3c4d4af
refactor(core): Add Core* as userdata to tox_iterate
2016-12-19 00:42:54 +03:00
Zetok Zalbavar
f5011cdb2f
fix: add missing Q_OBJECT macro to the PasswordEdit class
...
Silences a warning.
2016-12-18 18:09:58 +00:00
Diadlo
32bbdb2b98
docs(profile): Removed @example tag from createProfile method
2016-12-18 17:24:37 +00:00
Zetok Zalbavar
c14cbdf4fd
feat(UI): make font in message input field use font settings
...
Right now it requires qTox restart to take effect in all chats.
Should help with 4k high-dpi displays.
2016-12-18 15:35:42 +00:00
Zetok Zalbavar
326d5219bc
fix(UI): make link in About
setting page point to all contributors
...
Github shows only top 100 contributors, so point to an automatically
generated from qTox source page with all contributors shown.
Fix #3898 .
2016-12-18 14:47:31 +00:00
Zetok Zalbavar
785e546e9e
feat(UI): add My
to text labels on Profile page
...
That should make it more clear what input fields are there for.
2016-12-17 23:11:36 +00:00
Zetok Zalbavar
fba5f8ccc4
fix(UI): remove unnecessary space between a word and colon
2016-12-17 01:34:46 +03:00
Zetok Zalbavar
93feae0c95
feat(l10n): add Pirate translation to UI
2016-12-16 14:52:35 +03:00
Zetok Zalbavar
e9778e81a2
feat(UI): make information text in settings selectable
2016-12-13 23:12:15 +00:00
Diadlo
f870bf1953
fix: Fixed compact layout
...
Fix #3944
2016-12-12 01:15:57 +03:00
Zetok Zalbavar
0660695873
feat(UI): make it possible to select text of the received friend request
2016-12-09 21:26:33 +00:00
Zetok Zalbavar
9d1275b396
fix(UI): copy friend's non-truncated status message instead of truncated
...
qTox still internally replaces newlines with spaces which breaks
formatting, but now at least whole status message gets copied.
2016-12-09 19:32:52 +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
8b67132337
feat(l10n): add Swahili translation to interface and docs
2016-12-09 02:10:17 +00:00
tux3
a7de2680d9
feat(UI): Add 'Copy link' context menu item
...
Fixes #927
2016-12-07 13:54:40 +01:00
Zetok Zalbavar
584b2d85f1
style: add a missing space between #include
and "
2016-12-06 12:38:18 +00:00
Zetok Zalbavar
feaedeed84
feat(UI): make link to filled issue template on About page visible
...
Should help with no one realizing that qTox even has the functionality.
2016-12-05 20:03:21 +00:00
Nils Fenner
917812daaa
fix: Status reflection for friend calls
2016-12-01 08:55:13 +03:00
Zetok Zalbavar
7b60a5dd36
chore: explicitly mention that copyright belongs to qTox contributors
2016-11-29 11:12:06 +00:00
Zetok Zalbavar
25e9d3c46c
feat(UI): add accessibility labels to all remaining .ui files
2016-11-29 00:17:52 +00:00
Zetok Zalbavar
5267b19503
feat(l10n): add Korean translation to interface and docs
2016-11-28 22:23:41 +00:00
Diadlo
b4a9f04f92
refactor: Added to include path and exclude it from all includes
2016-11-28 23:28:42 +03:00
Zetok Zalbavar
8854589b0d
feat(UI): add accessibility labels to the add friend page
2016-11-26 20:44:22 +00: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
Zetok Zalbavar
949e3cb830
feat(UI): add accessibility labels to the Profile page
2016-11-20 11:13:55 +00:00
Diadlo
f7899d7b50
fix(UI): Changed tab order to be same with visual order
2016-11-16 23:36:52 +03:00
sudden6
355fb2ae41
fix(core): don't emit idSet signal twice
2016-11-15 12:27:16 +01:00
Diadlo
2a88e5c069
refactor(toxid): Removed Core dependency from ToxId
...
It's needed to make ToxId just data structure
2016-11-15 02:18:48 +03:00
Zetok Zalbavar
953fe2416a
feat(UI): add some accessibility labels to login pages
...
Fix #2101 .
2016-11-14 20:01:48 +00:00
Diadlo
5d6445065e
refactor(core): Changed Core interface, added documentation
...
Implementation by @antis81
2016-11-14 16:16:59 +03:00
Diadlo
74eb06b2aa
refactor: Added emiting signal on window activation in ContentDialog
2016-11-14 14:23:42 +03:00
Diadlo
ed11a17dce
refactor(widget): Remove FriendWidget creation from Friend constructor
2016-11-14 14:23:42 +03:00
Zetok Zalbavar
2433fa9dce
feat(UI): rename Toxme register
→ Register on ToxMe
...
Also add some Tooltips.
2016-11-13 23:47:21 +00:00
Zetok Zalbavar
a2912a376c
docs(doxygen): fix some warnings for toxcall.cpp
2016-11-13 23:14:38 +00:00
Diadlo
9fd0dd790b
fix(settings): Changed grid layout on form layout
...
Improves #3861
2016-11-13 12:10:19 +03:00
sudden6
8ff0d28abf
fix(chatlog): silence warning about unused parameters
2016-11-11 00:12:07 +01:00
initramfs
28c29157f8
fix(ui): prevent text style from being reset during retranslation
...
Fixes #3805
2016-11-09 15:47:03 -05:00
Diadlo
b522da5bed
refactor(history): Moved creaton of RawDatabase from History constuctor
2016-11-06 12:37:39 +03:00
Diadlo
0a0db25f68
style(corefile): Small style fixes
2016-11-06 12:37:39 +03:00
Diadlo
2da9de096f
refactor(drag&drop): Remove FriendWidget dependency
2016-11-05 10:20:36 +03:00
Nils Fenner
89138bb52b
refactor: fix virtual overrides
2016-11-05 10:20:36 +03:00
Zetok Zalbavar
64bbc6cfbb
style: change postfix increment to prefix increment
2016-11-03 07:57:14 +00:00
Diadlo
4c020865c6
Merge pull request #3829
...
Alice Weigt (1):
fix(settings): Properly update taskbar on disconnect
2016-10-29 10:10:10 +03:00
sudden6
c8a08530b7
Merge pull request #3834
...
Alice Weigt (1):
refactor: Use new getSound function
2016-10-27 19:56:38 +02:00
sudden6
6ed8235298
Merge pull request #3833
...
Alice Weigt (1):
fix(audio): Clear audio buffer when ending audio loop
2016-10-27 19:54:28 +02:00
Zetok Zalbavar
52ae7093f7
feat(l10n): add Slovak translation to interface and docs
2016-10-26 13:02:00 +01:00
Alice Weigt
244d1dc386
fix(audio): Clear audio buffer when ending audio loop
2016-10-26 02:20:50 -07:00
Alice Weigt
3c310f4aa6
refactor: Use new getSound function
2016-10-26 02:17:08 -07:00
initramfs
775b6a325b
fix(chatform): remove std::dynamic_pointer_cast in favor of static cast
...
With the removal of RTTI such a cast can cause compile failures as not
all compilers automatically convert dynamic casts to static casts at
compile time.
Fixes #3801
2016-10-25 05:59:00 -04:00
Alice Weigt
6e165ceb47
fix(settings): Properly update taskbar on disconnect
...
Fixes : #3795
2016-10-24 22:47:39 -07:00
Zetok Zalbavar
2d472004cd
feat: bump font size from undersized
...
Fix #2280 .
2016-10-14 16:20:43 +01:00
Alice Weigt
22b89beaf1
fix(settings): Change test sound button to checkbox
...
Fixes #3800 & #3809
2016-10-12 03:49:03 -07:00
Diadlo
c600609f9f
Merge pull request #3756
...
Alice Weigt (1):
feat(settings): Export and copy debug log
2016-10-09 15:05:34 +03:00
Diadlo
d674722118
Merge pull request #3755
...
Alice Weigt (1):
fix(settings): Play test sound when user enables test sound
2016-10-09 14:55:45 +03:00
Alice Weigt
9b46cf6404
fix(settings): Play test sound when user enables test sound
...
Fixes #3735
2016-10-09 04:37:15 -07:00
Alice Weigt
3c6bd043a0
feat(settings): Export and copy debug log
...
Fixes #2890
2016-10-09 04:20:57 -07:00
Diadlo
15181c431a
fix(avform): Fixed empty value in audio and video lists
2016-10-09 00:51:33 +03:00
Diadlo
f5f7b5abba
fix(i18n): Remove HTML tags from translation
2016-10-09 00:32:24 +03:00
Diadlo
13baf9326d
fix(uiform): Added format constraints
2016-10-08 01:01:06 +03:00
Diadlo
d909d99bd2
feat(uiform): Separated time and date format and examples
2016-10-08 01:01:06 +03:00
agilob
661388d731
fix(timeformat): Remove duplicate of timeformat
2016-10-08 01:01:06 +03:00
agilob
d6f323cefc
fix(timeformat): Make timestamp editable same as date format
2016-10-08 01:01:06 +03:00
Nils Fenner
35e7da85d3
fix(timeformat): Fixed list of available time formats
2016-10-08 01:01:06 +03:00
Nils Fenner
b3083250ff
feat(dateformat): Edit the date format string
...
The edited date format string is saved in the qTox settings.
It is overwritten by selecting one of the default date format strings.
2016-10-08 01:01:06 +03:00
sudden6
86a9c5fe26
Merge pull request #3788
...
Keegan Drake H.P (2):
fix(audio): keep the data pointed to by tmpDevName in scope
style(audio): remove redundant checks in src/audio/audio.cpp
2016-10-07 23:48:53 +02:00
sudden6
c8bde5bc45
fix(i18n): remove HTML from translations
...
fixes #3781
2016-10-07 23:23:33 +02:00
Keegan Drake H.P
099d7d0ac6
style(audio): remove redundant checks in src/audio/audio.cpp
...
This change removes an unnecessary ternary expression from both
Audio::initInput and Audio::initOutput.
2016-10-06 04:26:06 -05:00
Keegan Drake H.P
af37fa7b20
fix(audio): keep the data pointed to by tmpDevName in scope
...
Fix the use after free in Audio::initInput and Audio::initOutput
by storing the buffer returned by QString::toUtf8 (which contains data
pointed to by tmpDevName) in an intermediate variable, preventing the
buffer from falling out of scope for the duration of the function.
Fixes #3786
2016-10-06 02:33:58 -05: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
Zetok Zalbavar
1d4ea1ec40
fix(UI): string for option auto-accepting files
...
Regressed in 7fe8a86c03
.
2016-10-02 09:02:06 +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
Diadlo
7c4e9e6153
Merge pull request #3741
...
bitok (1):
refactor: fixes of static analyze warnings
2016-09-25 00:57:04 +03:00
sudden6
febde259bc
Merge pull request #3738
...
iphydf (1):
refactor: Avoid RTTI by using qobject_cast.
2016-09-24 12:06:41 +02:00
Zetok Zalbavar
355cd453e3
Merge pull request #3717
...
Diadlo (2):
fix(text): Change idealSize calculation
refactor(text): Add early break
2016-09-23 21:47:56 +01: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
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.
2016-09-23 03:14:58 +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
c3bf4b7085
refactor(text): Add early break
2016-09-21 14:13:38 +03:00
Diadlo
c8512fa984
fix(text): Change idealSize calculation
...
Ideal size of doc can not be used because in the case of using it for
boundingRect (which uses 0,0 as the upper-left corner) leads to the
clipping right side of RTL languages.
Fixed #1887 .
2016-09-21 14:08:28 +03:00
Diadlo
601c53e516
Merge pull request #3714
...
PKEv (1):
fix(settings): correct empty listbox audio device
2016-09-17 22:22:18 +03:00
PKEv
84a9570039
fix(settings): correct empty listbox audio device
...
fix incorrect checking index
fix #3709
2016-09-16 09:49:01 +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
sudden6
077a844461
Merge pull request #3702
...
Vincas Dargis (1):
fix(widget): do not block logout on Linux desktop environments v2
2016-09-12 12:56:25 +02:00
sudden6
c3800b937e
Merge pull request #3686
...
iphydf (1):
chore: Shorten source file names in log messages.
2016-09-12 12:51:36 +02:00
Diadlo
da9366c70d
refactor: Removed HTML tags from translation
...
Fixed #2985 .
2016-09-11 13:21:04 +03:00
Diadlo
a7ddf5ef56
refactor(profileform): Removed HTML tags from translation
2016-09-11 00:06:14 +03:00
Diadlo
2d63e441d4
refactor(about): Removed HTML tags from translation
2016-09-11 00:06:14 +03:00
Diadlo
fde9ad5356
fix(i18n): Removed extra tag from translation
2016-09-11 00:06:06 +03:00
Diadlo
4d8e704c30
Merge pull request #3691
...
Diadlo (1):
fix(settings): Fixed group to load makeToxPortable setting
2016-09-10 23:43:51 +03:00
Vincas Dargis
6b00779dde
fix(widget): do not block logout on Linux desktop environments v2
...
Revert commit 191fc15b9f
to use closeEvent()
but without QEvent::ignore() which blocked logout on various Linux desktops,
and without redundant hide(). Previous fix with hideEvent() produced
regressions because hide() is used in various places, which produced closing
behavior.
Since qApp->setQuitOnLastWindowClosed(false) is used, and
Qt::WA_DeleteOnClose is *NOT* used, default closeEvent() handling is enough
for implementing close-to-systray feature.
Improves fix for #1485 and closes #3699
2016-09-10 17:39:50 +03:00
Diadlo
191fc15b9f
Merge pull request #3687
...
Vincas Dargis (1):
fix(widget): do not block logout on Linux desktop environments
2016-09-06 16:12:16 +03:00
Diadlo
a3c201d3b2
fix(settings): Fixed group to load makeToxPortable setting
...
Fixed #3681 .
2016-09-06 15:15:28 +03:00
sudden6
894b47ad77
Merge pull request #3635
...
iphydf (1):
chore: Make the windows code compatible with TCHAR.
2016-09-05 22:00:37 +02:00
iphydf
e20dffab07
chore: Make the windows code compatible with TCHAR.
...
This adds support for multi-byte builds. Users building qTox in
multi-byte instead of unicode mode would otherwise get compiler errors.
This is one step in the direction of making qTox a library with the UI
being just one application of it: it gives library users a choice of how
they build it.
2016-09-05 20:07:17 +01:00
Vincas Dargis
7ee883bcc7
fix(widget): do not block logout on Linux desktop environments
...
Change closeEvent() to hideEvent() for handling main window closing.
Close event is no longer ignored, which prevented logging out from
various Linux desktop environments.
Closes #1485
2016-09-04 22:15:10 +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
iphydf
153ebb339d
chore: Shorten source file names in log messages.
...
In cmake builds, `__FILE__` is the absolute file path. In qmake, it's a
relative path. For in-tree qmake builds, it would be `"src/..."`, for
out of tree, it could be `"../src/..."` or `"../qTox/src/..."` or any
other relative path depending on how qTox was built. This change
normalises them to paths based in src.
2016-09-04 18:29:30 +01:00
Diadlo
76c4cf7d39
Merge pull request #3648
...
Diadlo (1):
refactor(toxdns): Removed using of toxdns
2016-09-01 23:43:46 +03:00
Nils Fenner
b7d12222ae
Merge pull request #3668
...
Diadlo (1):
fix: Fixed crash on profile import
2016-08-31 11:51:25 +02:00
Diadlo
a130a60e9a
fix: Fixed crash on profile import
...
Fixed #3660 . Removed using of GUI class in Profile Importer. Because, it
cannot be used before Nexus instance will be created. As result, it
provide crash in some cases.
2016-08-31 11:47:30 +03:00
Diadlo
4a5f89bb98
feat(reconnect): Made Reconnect
button wider
...
After #3457 `Reconnect` button was moved on `Advanced` tab. It can be
harder to find it (#3662 ). So it made wider.
2016-08-28 03:32:53 +03:00
Diadlo
f197523155
fix(settingsform): Fix layout spacing
2016-08-26 16:30:22 +03:00
Diadlo
8da695e748
refactor(toxdns): Removed using of toxdns
...
BREAKING CHANGE: Remove ability of ToxDNS lookup.
2016-08-26 14:14:13 +03:00
Diadlo
fad6cb8e86
refactor: Fixed typo
2016-08-26 13:53:58 +03:00
Diadlo
b6f14a658f
docs(settingsform): Added docs to settings forms
2016-08-26 13:51:27 +03:00
Diadlo
db758e29c5
refactor: Remove html tags from author block
2016-08-26 13:20:12 +03:00
Diadlo
740d91b61a
fix(settings): Added loader for old settings
2016-08-26 13:20:12 +03:00
Diadlo
61f81b824d
refactor: Remove html tags from 'IMPORTANT NOTE'
2016-08-26 13:20:12 +03:00
Diadlo
f0402bb3d3
refactor(settings): Changed manual connects to auto-connections
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
9499bdd458
feat(settings): Added privacy block
2016-08-26 13:11:57 +03:00
Diadlo
a1041ed11a
feat(settings): Deleted settings header
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
fb4aa4c8f6
feat(settings): Extracted user interface settings on new tab
2016-08-26 13:10:57 +03:00
Diadlo
ef70b20a2b
refactor(avform): Changed combobox index checks on asserts
2016-08-25 22:48:23 +03:00
Diadlo
9478377868
feat(avform): Made warning and debug info more useful
2016-08-25 13:13:09 +03:00
Diadlo
08229735b2
feat(avform): Added automatic screen rescan
2016-08-24 22:35:31 +03:00
Diadlo
eaccbf3da9
fix(avform): Added shift screen region
...
Fix #3552 .
2016-08-24 22:35:31 +03:00
Diadlo
26a27cf3f8
fix(videomode): Added ability to store negative coordinates
2016-08-24 22:35:31 +03:00
iphydf
9795ec2e1c
chore: Improve diagnostics when toxcore failed to initialise.
...
This shows error codes in case of unknown errors, and handles malloc error
explicitly.
2016-08-23 22:40:29 +01:00
Zetok Zalbavar
b5efc2bb71
fix: hide option to Load automatically
for encrypted profiles
...
There have been numerous issues about it from confused users,
e.g. #2698 , #2870 , #3638 . Clearly tooltip alone is not enough.
Could have been done long time ago in #2818 , if not for naive belief
that tooltip will suffice.
2016-08-20 19:08:57 +01:00
initramfs
54350fd24f
chore(aboutform): update license year to include 2016
2016-08-20 15:52:43 +08: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
9a62f44c33
docs(core): Added leading stars
2016-08-19 00:20:23 +03:00
Diadlo
672744de96
docs(audio, video): Added leading stars
2016-08-19 00:20:23 +03:00
Diadlo
956a04af8d
docs(net): Added leading stars
2016-08-19 00:20:23 +03:00
Diadlo
902828fcc2
docs(persistence): Added leading stars
2016-08-19 00:20:23 +03:00
Diadlo
1332abed11
docs(chatlog): Added leading stars
2016-08-19 00:20:23 +03:00
initramfs
ef157ca8af
fix(video): fix scaling issues under HiDPI displays with desktop video
...
This commit fixes missing scaling factors with desktop video to allow
desktop video under HiDPI scaling to work as intended. Also removes a
few obsolete lines of scaling that that was required for older Qt
versions.
2016-08-16 14:27:56 +08:00
Zetok Zalbavar
79c249be55
fix: use qAbs()
instead of abs()
for better platform compatibility
...
Apparently FreeBSD doesn't include by default `stdlib.h` that provides
`abs()`.
Fix suggested by @antis81.
Fixes #3613 .
2016-08-15 23:27:44 +01:00
Nils Fenner
63db185b6b
refactor(settings): connect "value changed" signals to settings
2016-08-14 18:08:45 +02: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
iphydf
e4d41acdc6
chore: Return a well-defined value from setAutorun.
...
There is no documentation about what this function is supposed to do or what it
should return, so I'm just guessing it's a success boolean, so it should be
returning true.
2016-08-11 12:36:03 +01:00
sudden6
2045585c77
Merge pull request #3185
...
initramfs (26):
feat(video): redesign and improve VideoFrame class
fix(video): fix CoreAV and VideoSurface to conform to new VideoFrame
refactor(video): rename and make the frame alignment propety public
fix(video): fix memory leak caused by unfreed buffers in CoreVideoSource
fix(video): fix slanted video when video size is not divisible by 8
refactor(video): use a new ToxAVFrame structure instead of vpx_image
refactor(video): static cast video dimensions to suppress warnings
feat(video): adds an ID parameter to the VideoSource class
refactor(video): internalize frame reference counting
feat(video): add accessor functions for sourceID and frameID
refactor(video): make type aliases public
refactor(video): use generics to simply VideoFrame conversion functions
refactor(video): rename ToxAVFrame to ToxYUVFrame and add documentation
refactor(video): update documentation to match new format (issue #3559 )
refactor(videoframe): correct mistakes in commit documentation format
fix(video): fix a use-after-free with VideoFrame
fix(video): added declaration for missing biglock in CameraSource
docs(video): remove old unnecessary comment pertaining to removed code
fix(video): fix invalid VideoSource ID allocation
fix(video): specify color ranges for pixel formats that are not YUV
fix(video): use a QReadWriteLock to manage camera access
fix(video): force the use of non-deprecated pixel formats for YUV
refactor(video): update code and documentation to honour QSize validity
refactor(videoframe): move all inline/template functions into source
fix(video): guard storeVideoFrame() against freeing in-use memory
feat(video): add a isValid() function to ToxTUVFrame
2016-08-09 18:16:38 +02:00
Nils Fenner
018360887e
refactor(audio): remove obsolete signal "groupAudioPlayed"
2016-08-08 14:22:02 +02:00
Zetok Zalbavar
59352ae797
Merge pull request #3580
...
sudden6 (1):
fix(systemtray): don't activate qTox widget on tray icon click in Unity backend
2016-08-08 11:07:47 +01:00
Nils Fenner
32c158bc61
fix(gui): don't quit application before last event
...
Quitting the application kills the event loop. So any event past that will not be handled. Probably causes the "BAD!" entries in log.
2016-08-08 10:26:56 +02:00
sudden6
f50d914c23
Merge pull request #3591
...
Nils Fenner (1):
feat(settings): add RecursiveSignalBlocker
2016-08-08 06:21:37 +02:00
Zetok Zalbavar
a446294ea8
Merge pull request #3589
...
initramfs (2):
fix(avform): add missing "first" video mode back to video modes
fix(avform): display true video height in video mode selection
2016-08-07 20:26:57 +01:00
initramfs
192c1e8ff5
fix(avform): display true video height in video mode selection
2016-08-08 03:23:16 +08:00
Nils Fenner
b71c919f2a
feat(settings): add RecursiveSignalBlocker
...
can be used to block any signals during settings ui initialization
2016-08-07 04:56:10 +02:00
initramfs
3e7d55e833
feat(video): add a isValid() function to ToxTUVFrame
2016-08-06 22:12:32 +08:00
sudden6
12df069eaa
refactor(groupinvite): remove HTML from translation and simplify function
2016-08-06 15:19:42 +02:00
sudden6
2f0ffdd27e
fix(systemtray): don't activate qTox widget on tray icon click in Unity backend
...
based on #3423 by @abbat
2016-08-06 15:18:25 +02:00
Waylon Cude
237351fdd2
feat(l10n): add Lojban translation from weblate
2016-08-06 10:37:01 +01:00
initramfs
5b31b5db72
fix(video): guard storeVideoFrame() against freeing in-use memory
...
This commit fixes an issue where storeVideoFrame() can in rare cases
free memory that is still in use. Also adds extra documentation
documenting it's precise usage.
2016-08-05 10:42:07 +08:00
initramfs
f6a698bec5
refactor(videoframe): move all inline/template functions into source
2016-08-05 09:20:21 +08:00
initramfs
07f5cf3a65
refactor(video): update code and documentation to honour QSize validity
2016-08-05 09:16:31 +08:00
initramfs
5324e768c3
fix(avform): add missing "first" video mode back to video modes
...
This commit fixes the fact that the selectBestModes() function strips
off the first video mode, often a 1080p or 720p mode.
Fixes #3588 .
2016-08-05 02:45:53 +08:00
initramfs
df3345dce5
fix(video): force the use of non-deprecated pixel formats for YUV
2016-08-04 23:46:37 +08:00
initramfs
de6475f3d3
fix(video): use a QReadWriteLock to manage camera access
...
This commit changes the mutex-memfence combination to a pure-mutex
implementation within CameraSource. This should prevent a lot of
pre-existing race conditions from happening.
2016-08-04 23:18:37 +08:00
initramfs
00270ee4d2
fix(video): specify color ranges for pixel formats that are not YUV
2016-08-04 23:16:46 +08:00
initramfs
707f7af29a
fix(video): fix invalid VideoSource ID allocation
...
This commit fixes the an invalid ID allocation by VideoSource, before
this commit all VideoSources receives the same ID causing VideoFrame to
believe all frames belong to the same video source.
Additionally, this commit addresses issues with deprecated pixel
formats and silences libswscale warnings.
2016-08-04 19:51:15 +08:00
initramfs
607b8d5a20
docs(video): remove old unnecessary comment pertaining to removed code
2016-08-04 18:59:30 +08:00
initramfs
4e9d34b78d
chore: rewrite forgotten tux3 link to qTox
2016-08-04 15:56:30 +08:00
initramfs
c4f88df7c9
fix(video): added declaration for missing biglock in CameraSource
2016-08-04 06:33:40 +08:00
initramfs
8487dcecf8
fix(video): fix a use-after-free with VideoFrame
2016-08-04 06:33:40 +08:00
initramfs
8ef89a267e
refactor(videoframe): correct mistakes in commit documentation format
2016-08-04 06:33:40 +08:00
initramfs
8d3aef9269
refactor(video): update documentation to match new format (issue #3559 )
2016-08-04 06:33:40 +08:00
initramfs
f85a299e75
refactor(video): rename ToxAVFrame to ToxYUVFrame and add documentation
2016-08-04 06:33:40 +08:00
initramfs
6d18c109e8
refactor(video): use generics to simply VideoFrame conversion functions
...
This commit replaces the contents of toQImage(), toToxAVFrame() and
getAVFrame() with speciailized calls to a generic toGenericObject()
function for better code clarity.
2016-08-04 06:33:40 +08:00
initramfs
897cec4e75
refactor(video): make type aliases public
...
This allows other classes to use the type aliases defined in the
respective classes within their own code.
2016-08-04 06:33:40 +08:00
initramfs
8952208e8a
feat(video): add accessor functions for sourceID and frameID
...
Additionally refactors some code to be more optimized.
2016-08-04 06:33:40 +08:00
initramfs
80a776475c
refactor(video): internalize frame reference counting
...
This commit takes the frame tracking code and internalizes it into the
VideoFrame class itself for better reusability. The code in
CameraSource has since been removed.
2016-08-04 06:33:40 +08:00
initramfs
4ac20c7b46
feat(video): adds an ID parameter to the VideoSource class
2016-08-04 06:33:40 +08:00
initramfs
57f38e281b
refactor(video): static cast video dimensions to suppress warnings
2016-08-04 06:33:40 +08:00
initramfs
8bfbae1b47
refactor(video): use a new ToxAVFrame structure instead of vpx_image
...
Instead of misusing an existing structure from another library, defines
a new simpler structure that reflects the capabilities of the ToxAV
transport mechanism.
2016-08-04 06:33:40 +08:00
initramfs
904495d2bf
fix(video): fix slanted video when video size is not divisible by 8
2016-08-04 06:33:40 +08:00
initramfs
3df6b990ae
fix(video): fix memory leak caused by unfreed buffers in CoreVideoSource
...
Fixes a memory leak caused by old code within CoreVideoSource in the
way AVFrame buffers are allocated.
2016-08-04 06:33:40 +08:00
initramfs
50f67b3cef
refactor(video): rename and make the frame alignment propety public
...
Making the frame alignment property public allows for a standardized
parameter for frame alignment, usable by other code that allocates
frame buffers.
2016-08-04 06:33:40 +08:00
initramfs
277ddc3d2f
fix(video): fix CoreAV and VideoSurface to conform to new VideoFrame
2016-08-04 06:33:40 +08:00
initramfs
38b1a9b63d
feat(video): redesign and improve VideoFrame class
...
This commit redesigns the VideoFrame class to be more robust,
documented and performant
2016-08-04 06:33:40 +08:00
initramfs
b7aa982a57
chore: rewrite all links to the qTox repository from tux3 to qTox
2016-08-04 06:25:50 +08:00
Diadlo
8bc3c3c8d2
fix: Added forgotten return statement
2016-08-02 03:17:45 +03:00
sudden6
349a1ffb02
Merge pull request #3563
...
Diadlo (2):
refactor(filetransferwidget): Added ability to check activity
fix(chatlog): Don't delete active transfer widget
2016-08-01 22:08:48 +02:00
sudden6
904d5c1621
Merge pull request #3569
...
bitok (1):
fix(widget):change received files execution method
2016-08-01 21:57:28 +02:00
sudden6
6296f5de34
Merge pull request #3571
...
Diadlo (1):
fix(text): Using modified text, instead of raw
2016-08-01 21:53:35 +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
sudden6
79b9895874
Merge pull request #3551
...
Diadlo (1):
fix(translator): Added layout direction reset on translation.
2016-08-01 21:30:46 +02: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
31c154293b
refactor(coreav): fix static analysis warnings and code style
2016-08-01 21:24:53 +02:00
Nils Fenner
9f8ad3cf77
refactor(core): fix IndexedList comparison type casts from signed/unsigned
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
sudden6
05bd55d8a5
Merge pull request #3566
...
bitok (1):
fix(avform):Add skipped camera open call
2016-08-01 21:09:00 +02:00
Diadlo
df7bf32072
refactor(profileimporter): Removed extra spaces
2016-08-01 12:22:52 +03:00
Diadlo
58ea0afed1
fix(toxsave, profileimporter): Added remove
function call before overwrite file
...
Fix #3558 .
2016-08-01 12:22:52 +03:00
Diadlo
927d512fa2
fix(translator): Added layout direction reset on translation.
...
Fix #3542 .
2016-07-31 14:21:15 +03:00
sudden6
a163d18754
Merge pull request #3561
...
Diadlo (1):
feat(gui, setpassworddialog): Added buttons translation
2016-07-31 13:03:54 +02:00
sudden6
66bf2b130a
Merge pull request #3539
...
Diadlo (2):
fix(avform): Changed "best modes" search algorithm.
fix(avform): Added rounding height in mode name.
2016-07-31 12:41:23 +02:00
Diadlo
f7018c42c9
fix(text): Using modified text, instead of raw
...
Fix #3568 .
2016-07-31 13:38:51 +03:00
Diadlo
abf7b42324
fix(chatlog): Don't delete active transfer widget
...
Fix #3275 .
2016-07-31 11:44:21 +03:00
Diadlo
233cc412ac
refactor(filetransferwidget): Added ability to check activity
2016-07-31 11:20:57 +03:00
bitok
1f9b7b13de
fix(avform):Add skipped camera open call
...
Fixed desktop sharing without camera connected. Fixes #3476 .
2016-07-31 00:49:56 +03:00
bitok
def2e880c9
fix(widget):change received files execution method
...
Remove incorrect file execute method, it replaced by associations-aware method. Fixes #3140 .
2016-07-31 00:34:52 +03:00
Diadlo
c2e3358dd2
fix(avform): Added rounding height in mode name.
2016-07-30 23:28:34 +03:00
Diadlo
58e503bb14
feat(gui, setpassworddialog): Added buttons translation
...
Fix #3479 .
2016-07-30 18:15:07 +03:00
sudden6
a556762c54
Merge pull request #3528
...
Diadlo (1):
fix(chatform): Fixed call buttons
2016-07-28 21:53:26 +02:00
Diadlo
dbe0a15963
fix(chatform): Fixed call buttons
...
Fix #3521 .
2016-07-28 22:55:46 +03:00
sudden6
dca537954c
Merge pull request #3555
...
Diadlo (1):
feat(main): Changed time in logs on UTC.
2016-07-28 21:29:26 +02:00
Diadlo
2696a9265a
docs(core): Change comment style
2016-07-27 23:39:22 +03:00
Diadlo
1c547fc73f
docs(persistence): Change comment style
2016-07-27 23:39:22 +03:00
Diadlo
1552bfb114
docs(widget): Change comment style
2016-07-27 23:39:18 +03:00
Diadlo
52ff1c2aa8
docs(net): Change comment style
2016-07-27 01:23:31 +03:00
Diadlo
394c4bcc99
docs(chatlog): Change comment style
2016-07-27 01:23:31 +03:00
Diadlo
29443040fb
docs(audio, video): Change comment style
2016-07-27 01:23:27 +03:00
Diadlo
3edd84c4d8
refactor(videomode): Move implementation in cpp file
2016-07-27 00:40:15 +03:00
Diadlo
4018c0041b
feat(main): Changed time in logs on UTC.
...
Fix #3554 .
2016-07-26 14:06:48 +03:00
Diadlo
6e1ef70651
fix(avform): Changed "best modes" search algorithm.
...
Mentioned in #3535 by @BiTOk
2016-07-24 23:07:02 +03:00
sudden6
1c8a7e49c1
Merge pull request #3534
...
Diadlo (1):
fix(corevideosource): Partial revert of ef641ce6d3
2016-07-24 16:00:45 +02:00
sudden6
d1da8a9ba4
Merge pull request #3533
...
Nils Fenner (2):
fix(screen-grabber): fix crash
refactor(chatform): cleanup if block and use positive comparison
2016-07-24 15:47:16 +02:00
Nils Fenner
eb1e0091c4
Merge pull request #3488
...
Diadlo (1):
style(toxid, widgets): Made constructor explicit
2016-07-24 09:51:16 +02:00
Diadlo
b1adef2fd0
fix(corevideosource): Partial revert of ef641ce6d3
...
Fixes crash, during video call with "None" video device.
Fixes #3527 .
2016-07-23 11:01:23 +03:00
Nils Fenner
2d520322a7
refactor(chatform): cleanup if block and use positive comparison
2016-07-21 10:51:50 +02:00
Nils Fenner
780a017928
fix(screen-grabber): fix crash
2016-07-21 10:49:50 +02:00
Nils Fenner
ff92a55950
refactor(avform): use auto-connections in ui signals
2016-07-20 23:49:12 +02:00
Nils Fenner
de438f1c23
fix(settings): block signals during initialization
...
Prevents unexpected writes to settings during object creation, which can potentially mess up various settings values.
2016-07-20 23:49:12 +02:00
Nils Fenner
c9dbfa5eac
fix(avform): initialize slider value from settings
2016-07-20 23:49:12 +02:00
Nils Fenner
da94b4b83f
refactor(avform): fixed type conversion warnings and coding style
2016-07-20 23:49:12 +02:00
Nils Fenner
0b2dfc0305
refactor(avform): improve code flow
...
* rename file avsettings.ui -> avform.ui, introducing seamless switching between UI/Code
* switch to "private multi-inheritance" pattern, which has several advantages
2016-07-20 23:49:12 +02:00
Zetok Zalbavar
9301512936
feat(l10n): add Uighur language to UI
2016-07-19 19:21:17 +01:00
sudden6
b5c8c60d81
Merge pull request #3505
...
Colomban Wendling (1):
fix(x11grab): try and use the current display
2016-07-16 23:50:12 +02:00
sudden6
56fe94dd5e
Merge pull request #3512
...
TheNain38 (1):
fix(groupinviteform): escape HTML
2016-07-16 23:40:14 +02:00
TheNain38
24f0b11a4d
fix(avform): make "Screen" translatable
2016-07-14 13:05:28 +02:00
TheNain38
e4bc857037
fix(groupinviteform): escape HTML
2016-07-14 12:46:15 +02:00
sudden6
9bd8ec0193
Merge pull request #3506
...
Nils Fenner (1):
fix(about-qtox): fix QString "missing argument" warning
2016-07-13 21:43:43 +02:00
Nils Fenner
f2f48a8f07
fix(about-qtox): fix QString "missing argument" warning
2016-07-13 13:33:59 +02:00
Diadlo
f8eda7eb57
style(core): Style fixes
2016-07-13 01:54:37 +03:00
Diadlo
9471065feb
style(platform): Style fixes
2016-07-13 01:54:37 +03:00
Diadlo
20d3225f29
style(chatlog, persistence): Style fixes
2016-07-13 01:54:37 +03:00
Diadlo
2258748d28
style(audio, video): Style fixes
2016-07-13 01:54:37 +03:00
Diadlo
76f694fe73
style(widget): Style fixes
2016-07-13 01:54:30 +03:00
Nils Fenner
88eca7e200
Merge pull request #3487
...
Diadlo (1):
style(toxcall): Copy constructor return non-const reference
2016-07-13 00:14:20 +02:00
Diadlo
8e7a6c89c2
style(toxid, widgets): Made constructor explicit
2016-07-13 00:33:37 +03:00
Colomban Wendling
294bdab77f
fix(x11grab): try and use the current display
...
Don't hard-code ":0" as the display and try and use the DISPLAY
environment variable instead.
This fixes screen grabbing under X11 when the user is not on screen 0.
Fix #3500 .
2016-07-12 21:31:33 +02: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
sudden6
0a595ea679
Merge pull request #3453
...
Diadlo (2):
fix(genericchatform): Fixed position of screenshot button
fix(video): Changed minimum window size with video
2016-07-12 19:49:29 +02:00
Nils Fenner
b7f65ffe28
refactor(chat): fix type conversion warnings
2016-07-12 10:26:25 +02:00
Nils Fenner
b204d0abad
refactor(chat): cleanup document cache
2016-07-12 10:26:25 +02:00
Nils Fenner
b99a9e494a
refactor(chat): cleanup elided text
2016-07-12 10:26:25 +02:00
sudden6
939c97a0e9
Merge pull request #3441
...
Andrew Morgan (1):
feat(textstyle): Change markdown syntax to be more intuitive
2016-07-11 21:52:58 +02:00
Nils Fenner
989b15e656
fix(chat): cleanup chat css base style
...
fix chat area's inner stylesheet
note: the base font is never a bold font (respects html tags: e.g. <b>bold text</b>)
fix block colors:
* action -> blue
* alert -> red
* quote -> green
2016-07-10 13:43:50 +02:00
Diadlo
f8a45b4051
fix(video): Changed minimum window size with video
...
Fix #3396 .
2016-07-09 22:15:04 +03:00
Diadlo
86e44143ad
fix(genericchatform): Fixed position of screenshot button
...
Fix #2427 .
2016-07-09 22:15:04 +03: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
Diadlo
ed04b2debf
style(toxcall): Copy constructor return non-const reference
2016-07-08 01:21:31 +03:00
sudden6
1bd86f7eee
Merge pull request #3475
...
a68366 (2):
fix(groupinviteform): consider dateTime format in group invites
fix(generalform): call UI retranslation when date or time format changes
2016-07-08 00:09:26 +02:00
sudden6
06475b7424
Merge pull request #3411
...
PafXUS (1):
fix(persistence): pass by reference to const
2016-07-08 00:07:44 +02:00
sudden6
5be249e3fe
Merge pull request #3450
...
Diadlo (1):
fix(widget): Added saving window state before closing
2016-07-07 23:57:56 +02:00
Diadlo
bfb5dae6fa
fix(widget): Added saving window state before closing
...
It's needed if user setup `Close to tray`
Fix #3397 .
2016-07-08 00:32:34 +03:00
sudden6
ee0294bb4c
Merge pull request #3464
...
Andrew Morgan (1):
feat(chatform): Disable call buttons if friend is offline
2016-07-07 23:31:54 +02:00
a68366
d601599de8
fix(generalform): call UI retranslation when date or time format changes
...
Needed to update date and time display.
2016-07-08 00:18:12 +03:00
a68366
6030b083b1
fix(groupinviteform): consider dateTime format in group invites
...
Closes #3058
2016-07-07 00:55:23 +03:00
Nils Fenner
b4a87a3a0e
Merge PR #3447 branch from 'anoadragon453:nautilus-fix'
2016-07-05 10:38:02 +02:00
Nils Fenner
1dd730841a
refactor(chat-settings): use safe methods to get the font's pixel size
...
Further rename the pixel size vars to improve readability.
2016-07-05 08:48:09 +02:00
Nils Fenner
9ec5c11caa
fix(chat-settings): change order during chat-base-font UI initialization
...
Setting "currentFont" fires a "currentFontChanged" signal, causing the wrong font pixel-size. After changing the order, the values still overwrite the font settings - yet with the correct values. Probably all signals should be blocked in c'tor during initialization of the settings widget(s) to avoid overwriting any settings.
2016-07-05 08:48:09 +02:00
Andrew Morgan
bbefe0119d
feat(chatform): Disable call buttons if friend is offline
...
Call buttons would be enabled but non-functional if you were looking at a friend who was offline. We now check if the friend is offline and disable the call buttons if so.
2016-07-04 01:05:13 -07:00
tux3
2bdd9824c7
fix(ui): Prevent suicide crash on logout
...
Fixes #2480
The GUI was deleting itself on logout, but was doing while deep inside the middle of GUI code, resulting in a series of use-after-free on the return path. We now freeze the GUI and logout asynchronously in a more suitable call stack.
2016-07-03 12:49:13 +02:00
Andrew Morgan
881409b91f
fix(profile): Fix for opening file dialog using Nautilus file manager
...
Importing a profile, saving a QR code image or setting an auto-accept directory using Nautilus as the default file manager, which many users use, was causing a hang in Qt's method. Setting Qt to use it's own file manager in this circumstance fixes the issue. Closes #3436 , closes #3443 .
2016-07-02 15:17:02 -07: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
81df534c9a
refactor(audio): cleanup initialization of audio device lists
...
API:
* open default in/out device, when device name is empty
* move privatized code
* fix unsigned/signed conversion warnings
UI (settings):
* refactor: select audio devices by combobox index
2016-07-01 10:41:41 +02:00
Nils Fenner
bec635ad11
refactor(audio): cleanup initialization of audio device lists
...
* move private code
* fix unsigned/signed conversion warnings
2016-07-01 10:41:41 +02:00
Nils Fenner
6189ecbf47
refactor(chatform): use reference var when initializing from settings
2016-06-30 20:24:00 +02:00
Nils Fenner
41c96eb159
feat(chat): add the ui settings to alter font and size for chat messages
2016-06-30 20:24:00 +02:00
Nils Fenner
67136e29ed
feat(chat): consistent use of the chat font settings
...
Note: Currently a CSS stylesheet has to be set, resembling the font settings for the HTML document, that is used to render chat messages.
2016-06-30 20:24:00 +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
bf7c62d6fa
fix(chatform, screenshotgrabber): Fixed memory leak
...
Memory for ScreenshotGrabber was allocated, but don't deallocated
2016-06-30 14:45:47 +03:00
sudden6
2c49ada955
Merge pull request #3445
...
Diadlo (2):
fix(main): Closing file before removing
style(main): Small style fixes
2016-06-30 13:13:13 +02:00
sudden6
35669cb12b
Merge pull request #3446
...
Diadlo (1):
fix(addfriendform): Fixed problem with reading friend request
2016-06-30 13:09:06 +02:00
Diadlo
7be8ad01da
fix(addfriendform): Fixed problem with reading friend request
...
Fix #3421
2016-06-28 23:07:47 +03:00
Diadlo
104c7c6e0c
style(main): Small style fixes
2016-06-28 22:42:49 +03:00
sudden6
4f493c5df7
Merge pull request #3424
...
Colomban Wendling (1):
refactor(passwordedit): optimize event handler unregistration
2016-06-28 19:03:13 +02:00
Diadlo
29ab61efdf
fix(main): Closing file before removing
...
Fix #3440
2016-06-26 21:13:39 +03:00
Zetok Zalbavar
dc26379eeb
Merge pull request #3437
...
Vincas Dargis (1):
fix(loginscreen.cpp): fix password input focus after mouse click
2016-06-25 16:20:53 +01:00
Zetok Zalbavar
6e2cca7ad1
Merge pull request #3433
...
Vincas Dargis (1):
fix(chattextedit.cpp): fix drag-and-drop to be consistent across systems
2016-06-25 16:14:56 +01:00
Vincas Dargis
6e8ea15a15
fix(loginscreen.cpp): fix password input focus after mouse click
...
Add setFocus() call to make password input focus work after user
clicks Load button (hence losing focus) with invalid password.
Without this patch, focus only works when using Enter key to login.
2016-06-25 17:45:14 +03:00
Diadlo
504ad534e0
fix(directshow): Fixed problem with crosses initialization
2016-06-25 14:20:13 +03:00
Diadlo
c3de6238ca
feat(camerasource): Change default video mode to preferred
2016-06-25 14:20:13 +03:00
Diadlo
1c5158213d
fix(avform): Added restoring selected region
2016-06-25 14:20:13 +03:00
Diadlo
1ddc1371a0
fix(videoframe): Added correct image copy
2016-06-25 14:20:13 +03:00
Diadlo
ef641ce6d3
style(corevideosource): Small style fixes
2016-06-25 14:20:13 +03:00
Diadlo
9cfd678c26
feat(avform, screenshotgrabber): Added custom screen region selection
2016-06-25 14:20:13 +03:00
Diadlo
d781a4f762
feat(cameradevice, avform): Added ability of screen selection
2016-06-25 14:20:08 +03:00
Diadlo
fd701df101
feat(videomode): Added possible video shift
2016-06-25 14:19:46 +03:00
Diadlo
2d861ee25b
fix(avform): Took default resolution from middle of list
2016-06-25 14:19:46 +03:00
Diadlo
33729dcf4a
refactor(avform): Separeted search of preferred index in function
2016-06-25 14:19:45 +03:00
Diadlo
3f82396173
refactor(avform): Replace bestModeInds
on videoMode index and video height as quality name
2016-06-25 14:19:45 +03:00
Diadlo
6f3ef0cf59
refactor(avform): Extracted functions with best mode search and combo box filling
2016-06-25 14:19:45 +03:00
Andrew Morgan
fca5f15532
fix(markdown): Remove spaces from markdown translation
...
Spaces were being inserted before and after markdown translated code which could potentially change intended meaning and/or presentation of the user's message. I believe these were necessary for dealing with an earlier bug but from my testing they are no longer needed.
2016-06-25 01:59:11 -07:00
Vincas Dargis
70fc247b70
fix(chattextedit.cpp): fix drag-and-drop to be consistent across systems
...
Add explicit setAcceptDrops(false) to allow parent widget to handle
drag-and-drops consistently across various desktop environments.
Closes : #2847
2016-06-24 20:26:45 +03:00
Eugene
684835de1b
feat(l10n): add initial Belarusian translation from weblate
2016-06-23 22:52:56 +01:00
Colomban Wendling
ebc3a60e97
refactor(passwordedit): optimize event handler unregistration
...
Only search the vector once, and using old enough Qt API.
Follow up to #3418 .
2016-06-21 02:49:38 +02:00
Vincas Dargis
f18db4fd50
fix(passwordedit.cpp): Fix build issue with Qt 5.3
...
QVector<T>::removeOne() was added in Qt 5.4, and this method usage
broke build for Debian 8 whitch has Qt 5.3.2.
Add alternative implementation and comment for the future to use
removeOne() when this becomes possible.
Closes #3416
2016-06-19 19:15:09 +03:00
sudden6
fd2e5859fb
Merge pull request #3383
...
Colomban Wendling (10):
fix(capslockindicator): fix altering the line edit height
fix(capslock_x11): properly release the X display handle
refactor(capslockindicator): encapsulate event handling
fix(capslockindicator): also update indicator when the app gets focus
refactor(capslockindicator): expose as a QAction to simplify API
refactor(capslockindicator): use a single shared event handler
refactor(capslockindicator): avoid overhead on OSX
refactor: replace CapsLockIndicator with new PasswordEdit widget
fix(passwordfields): use PasswordEdit widget for all password fields
refactor(passwordedit): don't add the caps indicator at all if disabled
2016-06-19 13:49:28 +02:00
PafXUS
e852ed92f6
fix(persistence): pass by reference to const
2016-06-18 07:49:40 +03:00
Colomban Wendling
473b29b2a7
refactor(passwordedit): don't add the caps indicator at all if disabled
2016-06-18 00:45:31 +02:00
Colomban Wendling
e3d0cc0e55
fix(passwordfields): use PasswordEdit widget for all password fields
...
Fixes #3378 .
2016-06-17 21:55:27 +02:00
Colomban Wendling
5f34a959fc
refactor: replace CapsLockIndicator with new PasswordEdit widget
...
Introduce a new PasswordEdit widget extending QLineEdit that takes care
of all the specifics of a QLineEntry when it is used to input a
password, including echo mode and caps lock indicator.
Also optimize the event handling to only listen to global events when
it is actually needed, e.g. when a password field is actually visible.
2016-06-17 21:55:27 +02:00
Colomban Wendling
3454f96d4c
refactor(capslockindicator): avoid overhead on OSX
...
On OSX the indicator is disabled, so avoid most of the overhead by not
listening to any events that wouldn't lead to any change anyway.
2016-06-17 21:55:27 +02:00
Colomban Wendling
61892d0c18
refactor(capslockindicator): use a single shared event handler
...
Optimize the implementation by using a single shared event handler,
managing the caps lock state check and propagating it appropriately to
all instances at once.
2016-06-17 21:55:27 +02:00
Colomban Wendling
6a40ca0b55
refactor(capslockindicator): expose as a QAction to simplify API
2016-06-17 21:55:27 +02:00
Colomban Wendling
2fe41071be
fix(capslockindicator): also update indicator when the app gets focus
...
This allows to have an up-to-date indicator when the caps lock state
changed outside of the application and the user comes back to it, even
if it doesn't trigger a Show event (e.g. the window was visible all the
time).
2016-06-17 21:55:27 +02:00
Colomban Wendling
5fc67284cd
refactor(capslockindicator): encapsulate event handling
...
Use an event filter on QCoreApplication instead of requiring the caller
to manually call updateIndicator() when the caps lock state changed.
2016-06-17 21:55:19 +02:00
Colomban Wendling
f9190734d7
fix(capslock_x11): properly release the X display handle
...
This fixes caps lock detection after a while, and removes the "Maximum
number of clients reached" message on stdout.
2016-06-15 18:44:12 +02:00
Colomban Wendling
a13c566736
fix(systemtrayicon): don't set an invalid and useless icon on GTK
...
* The initial status icon to set on GTK didn't exist (anymore?).
* GTK resources aren't compatible with Qt's, so the resource lookup
couldn't work anyway, even if it did exist.
* The caller calls SystemTryIcon::setIcon() right after instancing it
anyway, so there's no need for an initial icon.
This fixes a runtime critical warning from GTK as we tried to unref a
NULL icon, which is invalid.
Fixes #3154 .
2016-06-14 19:52:33 +02:00
Colomban Wendling
cf4c46ff0b
refactor(systemtrayicon): unify QIcon to GdkPixbuf conversion
...
Also simplify the memory management by using the C++ allocator and by
using the bytes directly as passed to the free callback instead of
passing it again as user data.
2016-06-14 19:50:38 +02:00
a68366
c17c3405bf
fix(widget): properly open chat window
...
Closes #3386
2016-06-14 00:12:28 +03:00
sudden6
6173199a5b
fix(widget): rename "Activate" to "Show"
2016-06-13 16:46:42 +02:00
Colomban Wendling
653e0b5af2
fix(capslockindicator): fix altering the line edit height
...
Fix altering the Line Edit widget height when the indicator is on (e.g.
when caps lock is active).
To avoid messing with the style and all the complex issues that arise
from it, use an action to display the icon inside the line edit, as it
is a built-in feature that work just fine.
Fixes #3379 .
2016-06-12 23:57:10 +02:00
sudden6
a851a5b18d
feat(systemtray): add "Show" action to context menu
...
Makes it possible for all users to get qTox back from the tray.
2016-06-12 22:29:17 +02:00
sudden6
f74ba9131c
Merge pull request #3376
...
Colomban Wendling (1):
fix(video): do not list the same mode twice
2016-06-12 22:19:54 +02:00
sudden6
53953912e0
Merge pull request #3375
...
Colomban Wendling (1):
feat(video): add setting for 120p very-low-res video
2016-06-12 22:18:03 +02:00
Colomban Wendling
03c3923694
fix(video): do not list the same mode twice
...
Do not provide more than one entry in the settings for the same actual
mode, even if it was selected for different expected resolutions.
For example, do not list 640x480 twice for both 480p and 360p if the
device doesn't have a better 360p mode, and simply skip the 360p entry.
2016-06-12 16:21:15 +02: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
sudden6
7ca98093a2
Merge pull request #3257
...
Diadlo (10):
feat(capslock): Added caps lock checker
feat(loginform): Added caps lock indicator to newPass
feat(loginscreen): Created new CapsLockIndicator class
feat(capslockindicator): Added tooltip
fix(platform): Added checkCapsLock OSX implementation
docs(INSTALL.md): Added libX11 in dependencies
refactor(loginscreen, capslockindicator): Caps Lock indicator class was made independent
fix(capslockindicator): Tooltip color was changed. Tooltip translation was added
style(capslockindicator): Fixed code style
fix(capslockindicator): Fix position of capslock indicator
2016-06-12 00:31:40 +02:00
Diadlo
124769017d
fix(capslockindicator): Fix position of capslock indicator
2016-06-12 01:34:02 +03:00
sudden6
5e5e27cf60
Merge pull request #3365
...
PafXUS (4):
fix(widget): delete icon in destructor
fix(systemtrayicon): delete qtIcon in destructor
fix(profileform): set parent for validator
fix(friendwidget): check pointer before using it
2016-06-11 20:45:38 +02:00
Colomban Wendling
6045ced3f8
feat(video): add setting for 120p very-low-res video
2016-06-11 20:16:03 +02:00
Colomban Wendling
b4df3c8b4a
fix(video): fix video resolution setting
...
Index the filtered modes we show to the user when selecting from the
combobox, not the full list of modes actually supported by the device.
Fixes #1033 .
2016-06-11 20:13:28 +02:00
Zetok Zalbavar
76239aa890
chore(l18n): update translation files for Weblate
...
Also add Esperanto.
2016-06-09 17:20:49 +01:00
sudden6
8589f944aa
Merge pull request #3360
...
Alexander Zhdanov (3):
feat(genericchatform): add "Quote selected text" feature to chat window
docs(user_manual_en.md): add some documentation about quotes
docs(user_manual_en.md): fix documentation about quotes
2016-06-08 23:59:03 +02:00
sudden6
e8a4599f69
Merge pull request #3348
...
a68366 (1):
fix(widget): open a chat window instead of contacts list in multi-window mode
2016-06-08 22:35:24 +02:00
PafXUS
e24f3dbc20
fix(friendwidget): check pointer before using it
2016-06-08 22:31:05 +03:00
PafXUS
93c6aa8ac0
fix(profileform): set parent for validator
2016-06-08 22:31:04 +03:00
PafXUS
f997d51b66
fix(systemtrayicon): delete qtIcon in destructor
2016-06-08 22:31:03 +03:00
PafXUS
f82f49da4d
fix(widget): delete icon in destructor
2016-06-08 22:30:51 +03:00
Diadlo
d7da2f98c0
style(capslockindicator): Fixed code style
2016-06-07 11:34:12 +03:00
Diadlo
bbe158c7d9
fix(capslockindicator): Tooltip color was changed. Tooltip translation was added
2016-06-07 11:27:58 +03:00
Diadlo
af497a9efd
refactor(loginscreen, capslockindicator): Caps Lock indicator class was made independent
2016-06-07 11:27:58 +03:00
Diadlo
35a0e1fb6f
fix(platform): Added checkCapsLock OSX implementation
2016-06-07 11:27:58 +03:00
Diadlo
c7d485f515
feat(capslockindicator): Added tooltip
2016-06-07 11:27:58 +03:00
Diadlo
fb7fcaaa8c
feat(loginscreen): Created new CapsLockIndicator class
2016-06-07 11:27:58 +03:00
Diadlo
cbe8fb8ef9
feat(loginform): Added caps lock indicator to newPass
2016-06-07 11:27:58 +03:00
Diadlo
97f95e7e91
feat(capslock): Added caps lock checker
2016-06-07 11:27:58 +03:00
Alexander Zhdanov
40a805c2fd
feat(genericchatform): add "Quote selected text" feature to chat window
...
add "Quote selected text" feature to chat window context menu and set keyboard shortcut ALT+Q
2016-06-06 21:46:18 +03: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
Zetok Zalbavar
a77afca1ec
fix: increase timer for checking offline messages timeout (again)
...
Should make duplicated messages even less common (#2726 )
Increased ~proportionally to change in
76d8e19320
2016-06-03 18:18:34 +01:00
a68366
fdf0cbb1e1
fix(widget): open a chat window instead of contacts list in multi-window mode
...
Closes #3212
2016-06-03 12:01:49 +03:00
Nils Fenner
431a10f82b
feat(audio): add slider tickmarks, improving better visible orientation
2016-06-02 22:16:58 +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
Diadlo
e7785ab4c2
feat(widget): Disable sound notification for busy
status
...
Fix #2893 .
BREAKING CHANGE: Disabling notification sound for `busy` status.
2016-05-15 22:15:44 +03:00
sudden6
3231ca2982
Merge pull request #3305
...
a68366 (2):
fix(profile): change password buttons behaviour
refactor(profile): reorder statements
2016-05-15 13:43:05 +02:00
sudden6
e0961722bf
Merge pull request #3302
...
Diadlo (1):
refactor(android): All android code is removed
2016-05-15 13:37:55 +02:00
sudden6
3830a1940c
Merge pull request #3253
...
initramfs (1):
refactor(hidpi): enable HiDPI support if Qt supports it
2016-05-15 13:14:44 +02:00
Zetok Zalbavar
dbd16ae6a3
fix: correctly tab-complete nicks starting with $
...
Without it, nicks starting with `$` would have doubled `$`.
Continuation of #1377
Pointed out by @ProMcTagonist in #1167
2016-05-15 11:54:49 +01:00