From 67e9aeec638c5a14d85bfc9c476a213f838430cf Mon Sep 17 00:00:00 2001 From: Zetok Zalbavar Date: Sat, 6 Jun 2015 02:40:08 +0100 Subject: [PATCH] Fix incorrect copyright headers The qTox Project is not associated with the Tox Project in any way, with the exception of "qTox" using the Tox Projet's "toxcore" collection of libraries. In particular, the Tox Projet does not own copyright over the qTox Project's "qTox" collection of software, source code, and assets. The qTox Project's assets are under the sole copyright of the qTox contributors, and no partiular rights are granted to the Tox Project. --- src/audio/audio.cpp | 17 ++-- src/audio/audio.h | 15 ++- src/audio/audiofilterer.cpp | 15 ++- src/audio/audiofilterer.h | 15 ++- src/chatlog/chatline.cpp | 15 ++- src/chatlog/chatline.h | 15 ++- src/chatlog/chatlinecontent.cpp | 15 ++- src/chatlog/chatlinecontent.h | 15 ++- src/chatlog/chatlinecontentproxy.cpp | 15 ++- src/chatlog/chatlinecontentproxy.h | 15 ++- src/chatlog/chatlog.cpp | 15 ++- src/chatlog/chatlog.h | 15 ++- src/chatlog/chatmessage.cpp | 15 ++- src/chatlog/chatmessage.h | 15 ++- src/chatlog/content/filetransferwidget.cpp | 15 ++- src/chatlog/content/filetransferwidget.h | 15 ++- src/chatlog/content/image.cpp | 15 ++- src/chatlog/content/image.h | 15 ++- src/chatlog/content/notificationicon.cpp | 15 ++- src/chatlog/content/notificationicon.h | 15 ++- src/chatlog/content/spinner.cpp | 15 ++- src/chatlog/content/spinner.h | 15 ++- src/chatlog/content/text.cpp | 15 ++- src/chatlog/content/text.h | 15 ++- src/chatlog/content/timestamp.cpp | 15 ++- src/chatlog/content/timestamp.h | 15 ++- src/chatlog/customtextdocument.cpp | 15 ++- src/chatlog/customtextdocument.h | 15 ++- src/chatlog/documentcache.cpp | 15 ++- src/chatlog/documentcache.h | 15 ++- src/chatlog/pixmapcache.cpp | 15 ++- src/chatlog/pixmapcache.h | 15 ++- src/core/cdata.cpp | 16 +-- src/core/cdata.h | 14 ++- src/core/core.cpp | 14 ++- src/core/core.h | 14 ++- src/core/coreav.cpp | 14 ++- src/core/coreav.h | 20 ++++ src/core/coredefines.h | 20 ++++ src/core/coreencryption.cpp | 15 ++- src/core/corefile.cpp | 20 ++++ src/core/corefile.h | 20 ++++ src/core/cstring.cpp | 14 ++- src/core/cstring.h | 14 ++- src/core/toxid.cpp | 20 ++++ src/core/toxid.h | 20 ++++ src/friend.cpp | 20 ++-- src/friend.h | 15 ++- src/friendlist.cpp | 15 ++- src/friendlist.h | 15 ++- src/group.cpp | 15 ++- src/group.h | 15 ++- src/grouplist.cpp | 15 ++- src/grouplist.h | 15 ++- src/ipc.cpp | 15 ++- src/ipc.h | 15 ++- src/main.cpp | 17 ++-- src/net/autoupdate.cpp | 15 ++- src/net/autoupdate.h | 15 ++- src/net/avatarbroadcaster.cpp | 20 ++++ src/net/avatarbroadcaster.h | 20 ++++ src/net/toxdns.cpp | 15 ++- src/net/toxdns.h | 15 ++- src/net/toxme.cpp | 20 ++++ src/net/toxme.h | 20 ++++ src/net/toxuri.cpp | 15 ++- src/net/toxuri.h | 15 ++- src/nexus.cpp | 20 ++++ src/nexus.h | 20 ++++ src/persistence/db/encrypteddb.cpp | 15 ++- src/persistence/db/encrypteddb.h | 15 ++- src/persistence/db/genericddinterface.cpp | 15 ++- src/persistence/db/genericddinterface.h | 15 ++- src/persistence/db/plaindb.cpp | 15 ++- src/persistence/db/plaindb.h | 15 ++- src/persistence/historykeeper.cpp | 15 ++- src/persistence/historykeeper.h | 15 ++- src/persistence/offlinemsgengine.cpp | 15 ++- src/persistence/offlinemsgengine.h | 15 ++- src/persistence/profile.cpp | 20 ++++ src/persistence/profile.h | 20 ++++ src/persistence/profilelocker.cpp | 20 ++++ src/persistence/profilelocker.h | 20 ++++ src/persistence/serialize.cpp | 15 ++- src/persistence/serialize.h | 15 ++- src/persistence/settings.cpp | 14 ++- src/persistence/settings.h | 14 ++- src/persistence/smileypack.cpp | 25 +++-- src/persistence/smileypack.h | 15 ++- src/persistence/toxsave.cpp | 15 ++- src/persistence/toxsave.h | 15 ++- src/platform/autorun.h | 15 ++- src/platform/autorun_osx.cpp | 15 ++- src/platform/autorun_win.cpp | 15 ++- src/platform/autorun_xdg.cpp | 15 ++- src/platform/camera/directshow.cpp | 21 ++++ src/platform/camera/directshow.h | 20 ++++ src/platform/camera/v4l2.cpp | 22 +++++ src/platform/camera/v4l2.h | 18 ++++ src/platform/install_osx.cpp | 20 ++++ src/platform/install_osx.h | 18 ++++ src/platform/statusnotifier/enums.c | 32 +++--- src/platform/statusnotifier/enums.h | 22 +++++ src/platform/timer.h | 15 ++- src/platform/timer_osx.cpp | 18 +++- src/platform/timer_win.cpp | 15 ++- src/platform/timer_x11.cpp | 13 ++- src/video/cameradevice.cpp | 20 ++++ src/video/cameradevice.h | 20 ++++ src/video/camerasource.cpp | 15 ++- src/video/camerasource.h | 15 ++- src/video/corevideosource.cpp | 20 ++++ src/video/corevideosource.h | 20 ++++ src/video/netcamview.cpp | 15 ++- src/video/netcamview.h | 15 ++- src/video/videoframe.cpp | 15 ++- src/video/videoframe.h | 15 ++- src/video/videomode.h | 20 ++++ src/video/videosource.h | 15 ++- src/video/videosurface.cpp | 19 ++-- src/video/videosurface.h | 17 ++-- src/widget/androidgui.cpp | 20 ++++ src/widget/androidgui.h | 20 ++++ src/widget/emoticonswidget.cpp | 15 ++- src/widget/emoticonswidget.h | 15 ++- src/widget/form/addfriendform.cpp | 15 ++- src/widget/form/addfriendform.h | 15 ++- src/widget/form/chatform.cpp | 29 +++--- src/widget/form/chatform.h | 15 ++- src/widget/form/filesform.cpp | 23 +++-- src/widget/form/filesform.h | 17 ++-- src/widget/form/genericchatform.cpp | 39 ++++---- src/widget/form/genericchatform.h | 15 ++- src/widget/form/groupchatform.cpp | 19 ++-- src/widget/form/groupchatform.h | 15 ++- src/widget/form/loadhistorydialog.cpp | 15 ++- src/widget/form/loadhistorydialog.h | 15 ++- src/widget/form/profileform.cpp | 15 ++- src/widget/form/profileform.h | 17 ++-- src/widget/form/setpassworddialog.cpp | 15 ++- src/widget/form/setpassworddialog.h | 15 ++- src/widget/form/settings/advancedform.cpp | 15 ++- src/widget/form/settings/advancedform.h | 17 ++-- src/widget/form/settings/avform.cpp | 21 ++-- src/widget/form/settings/avform.h | 19 ++-- src/widget/form/settings/generalform.cpp | 15 ++- src/widget/form/settings/generalform.h | 17 ++-- src/widget/form/settings/genericsettings.h | 13 ++- src/widget/form/settings/privacyform.cpp | 15 ++- src/widget/form/settings/privacyform.h | 15 ++- .../form/settings/verticalonlyscroller.cpp | 15 ++- .../form/settings/verticalonlyscroller.h | 15 ++- src/widget/form/settingswidget.cpp | 17 ++-- src/widget/form/settingswidget.h | 15 ++- src/widget/form/tabcompleter.cpp | 15 ++- src/widget/form/tabcompleter.h | 15 ++- src/widget/friendlistwidget.cpp | 15 ++- src/widget/friendlistwidget.h | 15 ++- src/widget/friendwidget.cpp | 13 ++- src/widget/friendwidget.h | 13 ++- src/widget/genericchatroomwidget.cpp | 15 ++- src/widget/genericchatroomwidget.h | 15 ++- src/widget/groupwidget.cpp | 15 ++- src/widget/groupwidget.h | 15 ++- src/widget/gui.cpp | 20 ++++ src/widget/gui.h | 20 ++++ src/widget/loginscreen.cpp | 20 ++++ src/widget/loginscreen.h | 20 ++++ src/widget/maskablepixmapwidget.cpp | 15 ++- src/widget/maskablepixmapwidget.h | 15 ++- src/widget/qrwidget.cpp | 20 ++++ src/widget/qrwidget.h | 20 ++++ src/widget/style.cpp | 15 ++- src/widget/style.h | 15 ++- src/widget/systemtrayicon.cpp | 20 ++++ src/widget/systemtrayicon.h | 20 ++++ src/widget/systemtrayicon_private.h | 20 ++++ src/widget/tool/adjustingscrollarea.cpp | 15 ++- src/widget/tool/adjustingscrollarea.h | 15 ++- src/widget/tool/callconfirmwidget.cpp | 20 ++++ src/widget/tool/callconfirmwidget.h | 20 ++++ src/widget/tool/chattextedit.cpp | 15 ++- src/widget/tool/chattextedit.h | 17 ++-- src/widget/tool/croppinglabel.cpp | 15 ++- src/widget/tool/croppinglabel.h | 15 ++- src/widget/tool/flyoutoverlaywidget.cpp | 42 ++++---- src/widget/tool/flyoutoverlaywidget.h | 38 +++---- src/widget/tool/friendrequestdialog.cpp | 18 ++-- src/widget/tool/friendrequestdialog.h | 9 +- .../tool/screengrabberchooserrectitem.cpp | 99 ++++++++++--------- .../tool/screengrabberchooserrectitem.h | 47 +++++---- src/widget/tool/screengrabberoverlayitem.cpp | 29 +++--- src/widget/tool/screengrabberoverlayitem.h | 27 ++--- src/widget/tool/screenshotgrabber.cpp | 47 +++++---- src/widget/tool/screenshotgrabber.h | 39 ++++---- src/widget/tool/toolboxgraphicsitem.cpp | 23 +++-- src/widget/tool/toolboxgraphicsitem.h | 26 ++--- src/widget/translator.cpp | 20 ++++ src/widget/translator.h | 20 ++++ src/widget/widget.cpp | 21 ++-- src/widget/widget.h | 15 ++- 201 files changed, 2618 insertions(+), 985 deletions(-) diff --git a/src/audio/audio.cpp b/src/audio/audio.cpp index dc93aff21..d206d2c5f 100644 --- a/src/audio/audio.cpp +++ b/src/audio/audio.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ @@ -260,7 +265,7 @@ void Audio::playMono16Sound(const QByteArray& data) ALuint buffer; alGenBuffers(1, &buffer); alBufferData(buffer, AL_FORMAT_MONO16, data.data(), data.size(), 44100); - alSourcef(alMainSource, AL_GAIN, outputVolume); + alSourcef(alMainSource, AL_GAIN, outputVolume); alSourcei(alMainSource, AL_BUFFER, buffer); alSourcePlay(alMainSource); alDeleteBuffers(1, &buffer); diff --git a/src/audio/audio.h b/src/audio/audio.h index d5c67f171..68f1b7c2e 100644 --- a/src/audio/audio.h +++ b/src/audio/audio.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/audio/audiofilterer.cpp b/src/audio/audiofilterer.cpp index bfa113175..7607c1f4c 100644 --- a/src/audio/audiofilterer.cpp +++ b/src/audio/audiofilterer.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/audio/audiofilterer.h b/src/audio/audiofilterer.h index a3faacc1b..7054902a9 100644 --- a/src/audio/audiofilterer.h +++ b/src/audio/audiofilterer.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifdef QTOX_FILTER_AUDIO diff --git a/src/chatlog/chatline.cpp b/src/chatlog/chatline.cpp index c8dfc9180..e52956568 100644 --- a/src/chatlog/chatline.cpp +++ b/src/chatlog/chatline.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "chatline.h" diff --git a/src/chatlog/chatline.h b/src/chatlog/chatline.h index a6f91c3fe..e2e46cef8 100644 --- a/src/chatlog/chatline.h +++ b/src/chatlog/chatline.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATLINE_H diff --git a/src/chatlog/chatlinecontent.cpp b/src/chatlog/chatlinecontent.cpp index ce34e80e6..8e4f10e7a 100644 --- a/src/chatlog/chatlinecontent.cpp +++ b/src/chatlog/chatlinecontent.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "chatlinecontent.h" diff --git a/src/chatlog/chatlinecontent.h b/src/chatlog/chatlinecontent.h index 7c47dad25..778095158 100644 --- a/src/chatlog/chatlinecontent.h +++ b/src/chatlog/chatlinecontent.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATLINECONTENT_H diff --git a/src/chatlog/chatlinecontentproxy.cpp b/src/chatlog/chatlinecontentproxy.cpp index eacffc3df..03e946d78 100644 --- a/src/chatlog/chatlinecontentproxy.cpp +++ b/src/chatlog/chatlinecontentproxy.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "chatlinecontentproxy.h" diff --git a/src/chatlog/chatlinecontentproxy.h b/src/chatlog/chatlinecontentproxy.h index 265dfb6f3..0ebca88e9 100644 --- a/src/chatlog/chatlinecontentproxy.h +++ b/src/chatlog/chatlinecontentproxy.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATLINECONTENTPROXY_H diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index c4735bd25..749eae950 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "chatlog.h" diff --git a/src/chatlog/chatlog.h b/src/chatlog/chatlog.h index f62c603ec..19b3d86a6 100644 --- a/src/chatlog/chatlog.h +++ b/src/chatlog/chatlog.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATLOG_H diff --git a/src/chatlog/chatmessage.cpp b/src/chatlog/chatmessage.cpp index d0ce8384f..89120f07d 100644 --- a/src/chatlog/chatmessage.cpp +++ b/src/chatlog/chatmessage.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "chatmessage.h" diff --git a/src/chatlog/chatmessage.h b/src/chatlog/chatmessage.h index d28967199..c92150d76 100644 --- a/src/chatlog/chatmessage.h +++ b/src/chatlog/chatmessage.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATMESSAGE_H diff --git a/src/chatlog/content/filetransferwidget.cpp b/src/chatlog/content/filetransferwidget.cpp index 95e0aa084..4f87969a5 100644 --- a/src/chatlog/content/filetransferwidget.cpp +++ b/src/chatlog/content/filetransferwidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "filetransferwidget.h" diff --git a/src/chatlog/content/filetransferwidget.h b/src/chatlog/content/filetransferwidget.h index b64e6e6d5..c065afd9e 100644 --- a/src/chatlog/content/filetransferwidget.h +++ b/src/chatlog/content/filetransferwidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FILETRANSFERWIDGET_H diff --git a/src/chatlog/content/image.cpp b/src/chatlog/content/image.cpp index 594d3e4f6..d3eff2a68 100644 --- a/src/chatlog/content/image.cpp +++ b/src/chatlog/content/image.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "image.h" diff --git a/src/chatlog/content/image.h b/src/chatlog/content/image.h index 957713a96..409cc7c90 100644 --- a/src/chatlog/content/image.h +++ b/src/chatlog/content/image.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef IMAGE_H diff --git a/src/chatlog/content/notificationicon.cpp b/src/chatlog/content/notificationicon.cpp index fec54fb8f..cda2c6e2d 100644 --- a/src/chatlog/content/notificationicon.cpp +++ b/src/chatlog/content/notificationicon.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "notificationicon.h" diff --git a/src/chatlog/content/notificationicon.h b/src/chatlog/content/notificationicon.h index 30ffd6140..1637a1348 100644 --- a/src/chatlog/content/notificationicon.h +++ b/src/chatlog/content/notificationicon.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef NOTIFICATIONICON_H diff --git a/src/chatlog/content/spinner.cpp b/src/chatlog/content/spinner.cpp index daa384f10..d6ff87e8b 100644 --- a/src/chatlog/content/spinner.cpp +++ b/src/chatlog/content/spinner.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "spinner.h" diff --git a/src/chatlog/content/spinner.h b/src/chatlog/content/spinner.h index 1041c5782..d83b4b537 100644 --- a/src/chatlog/content/spinner.h +++ b/src/chatlog/content/spinner.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SPINNER_H diff --git a/src/chatlog/content/text.cpp b/src/chatlog/content/text.cpp index 0fa08832d..bd2bec7ee 100644 --- a/src/chatlog/content/text.cpp +++ b/src/chatlog/content/text.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "text.h" diff --git a/src/chatlog/content/text.h b/src/chatlog/content/text.h index 24bfe0805..451fa84f7 100644 --- a/src/chatlog/content/text.h +++ b/src/chatlog/content/text.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef TEXT_H diff --git a/src/chatlog/content/timestamp.cpp b/src/chatlog/content/timestamp.cpp index 37bb2e4ec..cd4ceed30 100644 --- a/src/chatlog/content/timestamp.cpp +++ b/src/chatlog/content/timestamp.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "timestamp.h" diff --git a/src/chatlog/content/timestamp.h b/src/chatlog/content/timestamp.h index 576fc2643..ae5ad86ac 100644 --- a/src/chatlog/content/timestamp.h +++ b/src/chatlog/content/timestamp.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef TIMESTAMP_H diff --git a/src/chatlog/customtextdocument.cpp b/src/chatlog/customtextdocument.cpp index 3b17b34f5..dd7143887 100644 --- a/src/chatlog/customtextdocument.cpp +++ b/src/chatlog/customtextdocument.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "customtextdocument.h" diff --git a/src/chatlog/customtextdocument.h b/src/chatlog/customtextdocument.h index 225ac78d2..86733c726 100644 --- a/src/chatlog/customtextdocument.h +++ b/src/chatlog/customtextdocument.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CUSTOMTEXTDOCUMENT_H diff --git a/src/chatlog/documentcache.cpp b/src/chatlog/documentcache.cpp index d5cc552c7..b4845eb2d 100644 --- a/src/chatlog/documentcache.cpp +++ b/src/chatlog/documentcache.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "documentcache.h" diff --git a/src/chatlog/documentcache.h b/src/chatlog/documentcache.h index 5fb40bd1f..1930fc74c 100644 --- a/src/chatlog/documentcache.h +++ b/src/chatlog/documentcache.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef DOCUMENTCACHE_H diff --git a/src/chatlog/pixmapcache.cpp b/src/chatlog/pixmapcache.cpp index 95ff24aa4..2a72bd98d 100644 --- a/src/chatlog/pixmapcache.cpp +++ b/src/chatlog/pixmapcache.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "pixmapcache.h" diff --git a/src/chatlog/pixmapcache.h b/src/chatlog/pixmapcache.h index 5887dd5af..5a5d7c80c 100644 --- a/src/chatlog/pixmapcache.h +++ b/src/chatlog/pixmapcache.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef ICONCACHE_H diff --git a/src/core/cdata.cpp b/src/core/cdata.cpp index 9ff8cc722..7704368fe 100644 --- a/src/core/cdata.cpp +++ b/src/core/cdata.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is free software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "cdata.h" diff --git a/src/core/cdata.h b/src/core/cdata.h index 3b37b0627..ffb84ddf5 100644 --- a/src/core/cdata.h +++ b/src/core/cdata.h @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CDATA_H diff --git a/src/core/core.cpp b/src/core/core.cpp index ea50015c5..c87d75731 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "core.h" diff --git a/src/core/core.h b/src/core/core.h index 40450c15a..c188f4e48 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CORE_HPP diff --git a/src/core/coreav.cpp b/src/core/coreav.cpp index 1ad33eaf3..2a6fcbcd1 100644 --- a/src/core/coreav.cpp +++ b/src/core/coreav.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "core.h" diff --git a/src/core/coreav.h b/src/core/coreav.h index b4b057471..98844683c 100644 --- a/src/core/coreav.h +++ b/src/core/coreav.h @@ -1,3 +1,23 @@ +/* + Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + #ifndef COREAV_H #define COREAV_H diff --git a/src/core/coredefines.h b/src/core/coredefines.h index b09c70df0..f95baeda6 100644 --- a/src/core/coredefines.h +++ b/src/core/coredefines.h @@ -1,3 +1,23 @@ +/* + Copyright © 2014-2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef COREDEFINES_H #define COREDEFINES_H diff --git a/src/core/coreencryption.cpp b/src/core/coreencryption.cpp index 886c9ee8f..aa3402600 100644 --- a/src/core/coreencryption.cpp +++ b/src/core/coreencryption.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ /* This file is part of the Core class, but was separated for my sanity */ diff --git a/src/core/corefile.cpp b/src/core/corefile.cpp index 024a4dee4..e104344a3 100644 --- a/src/core/corefile.cpp +++ b/src/core/corefile.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "core.h" #include "corefile.h" #include "corestructs.h" diff --git a/src/core/corefile.h b/src/core/corefile.h index e94481fd8..5a4b3e241 100644 --- a/src/core/corefile.h +++ b/src/core/corefile.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef COREFILE_H #define COREFILE_H diff --git a/src/core/cstring.cpp b/src/core/cstring.cpp index 8624ae8eb..18edb4a0b 100644 --- a/src/core/cstring.cpp +++ b/src/core/cstring.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "cstring.h" diff --git a/src/core/cstring.h b/src/core/cstring.h index ee21a99a9..122a2629e 100644 --- a/src/core/cstring.h +++ b/src/core/cstring.h @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CSTRING_H diff --git a/src/core/toxid.cpp b/src/core/toxid.cpp index da8d6b01e..5b4b7410c 100644 --- a/src/core/toxid.cpp +++ b/src/core/toxid.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "toxid.h" #include "core.h" diff --git a/src/core/toxid.h b/src/core/toxid.h index ee8c2daa5..65551df9e 100644 --- a/src/core/toxid.h +++ b/src/core/toxid.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef TOXID_H #define TOXID_H diff --git a/src/friend.cpp b/src/friend.cpp index 903f882e3..4a0a4bca3 100644 --- a/src/friend.cpp +++ b/src/friend.cpp @@ -1,17 +1,23 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ + #include "friend.h" #include "friendlist.h" #include "widget/friendwidget.h" @@ -60,7 +66,7 @@ void Friend::setName(QString name) if (widget->isActive()) GUI::setWindowTitle(name); - + emit displayedNameChanged(getFriendWidget(), getStatus(), hasNewEvents); } } @@ -75,7 +81,7 @@ void Friend::setAlias(QString name) if (widget->isActive()) GUI::setWindowTitle(dispName); - + emit displayedNameChanged(getFriendWidget(), getStatus(), hasNewEvents); } diff --git a/src/friend.h b/src/friend.h index 1f1c9985e..da6463949 100644 --- a/src/friend.h +++ b/src/friend.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FRIEND_H diff --git a/src/friendlist.cpp b/src/friendlist.cpp index e4d2c0153..7e4d76edd 100644 --- a/src/friendlist.cpp +++ b/src/friendlist.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "friend.h" diff --git a/src/friendlist.h b/src/friendlist.h index c2b06c49d..250da904f 100644 --- a/src/friendlist.h +++ b/src/friendlist.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FRIENDLIST_H diff --git a/src/group.cpp b/src/group.cpp index 4000145b5..8c430c362 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "group.h" diff --git a/src/group.h b/src/group.h index 5b542fae9..8ccde2497 100644 --- a/src/group.h +++ b/src/group.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GROUP_H diff --git a/src/grouplist.cpp b/src/grouplist.cpp index 0681e1a99..6b3fbc6db 100644 --- a/src/grouplist.cpp +++ b/src/grouplist.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "grouplist.h" diff --git a/src/grouplist.h b/src/grouplist.h index 6e354ca66..3cf3ec743 100644 --- a/src/grouplist.h +++ b/src/grouplist.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GROUPLIST_H diff --git a/src/ipc.cpp b/src/ipc.cpp index 4947934ef..d7a6f98f3 100644 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "src/ipc.h" diff --git a/src/ipc.h b/src/ipc.h index 3a718a2ad..736343332 100644 --- a/src/ipc.h +++ b/src/ipc.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/main.cpp b/src/main.cpp index e917c87c6..56ea03795 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "widget/widget.h" @@ -89,7 +94,7 @@ int main(int argc, char *argv[]) a.setApplicationName("qTox"); a.setOrganizationName("Tox"); a.setApplicationVersion("\nGit commit: " + QString(GIT_VERSION)); - + #ifdef HIGH_DPI a.setAttribute(Qt::AA_UseHighDpiPixmaps, true); #endif diff --git a/src/net/autoupdate.cpp b/src/net/autoupdate.cpp index 2cfb64435..999b039c3 100644 --- a/src/net/autoupdate.cpp +++ b/src/net/autoupdate.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/net/autoupdate.h b/src/net/autoupdate.h index c2187a566..aec677866 100644 --- a/src/net/autoupdate.h +++ b/src/net/autoupdate.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/net/avatarbroadcaster.cpp b/src/net/avatarbroadcaster.cpp index 65136528f..07f96d73a 100644 --- a/src/net/avatarbroadcaster.cpp +++ b/src/net/avatarbroadcaster.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "avatarbroadcaster.h" #include "src/core/core.h" #include diff --git a/src/net/avatarbroadcaster.h b/src/net/avatarbroadcaster.h index ce0a3b218..529beba01 100644 --- a/src/net/avatarbroadcaster.h +++ b/src/net/avatarbroadcaster.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef AVATARBROADCASTER_H #define AVATARBROADCASTER_H diff --git a/src/net/toxdns.cpp b/src/net/toxdns.cpp index 9c9f23ce0..339cf0a97 100644 --- a/src/net/toxdns.cpp +++ b/src/net/toxdns.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/net/toxdns.h b/src/net/toxdns.h index b2b66ed0c..f22c08fa9 100644 --- a/src/net/toxdns.h +++ b/src/net/toxdns.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/net/toxme.cpp b/src/net/toxme.cpp index 44064c6c5..3b92cd354 100644 --- a/src/net/toxme.cpp +++ b/src/net/toxme.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "toxme.h" #include "src/core/core.h" #include diff --git a/src/net/toxme.h b/src/net/toxme.h index 6ea1ad4dc..2e98f9257 100644 --- a/src/net/toxme.h +++ b/src/net/toxme.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef TOXME_H #define TOXME_H diff --git a/src/net/toxuri.cpp b/src/net/toxuri.cpp index 4c31cb3b9..f5a5436d8 100644 --- a/src/net/toxuri.cpp +++ b/src/net/toxuri.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/net/toxuri.h b/src/net/toxuri.h index 376d1d418..c1e30c77a 100644 --- a/src/net/toxuri.h +++ b/src/net/toxuri.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/nexus.cpp b/src/nexus.cpp index 8fd399e21..4debfb165 100644 --- a/src/nexus.cpp +++ b/src/nexus.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2014-2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "nexus.h" #include "src/persistence/profile.h" #include "src/core/core.h" diff --git a/src/nexus.h b/src/nexus.h index 17a636372..be161c7ee 100644 --- a/src/nexus.h +++ b/src/nexus.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef NEXUS_H #define NEXUS_H diff --git a/src/persistence/db/encrypteddb.cpp b/src/persistence/db/encrypteddb.cpp index 759087a2b..1373c86ae 100644 --- a/src/persistence/db/encrypteddb.cpp +++ b/src/persistence/db/encrypteddb.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "encrypteddb.h" diff --git a/src/persistence/db/encrypteddb.h b/src/persistence/db/encrypteddb.h index 5d1b4a7b0..e2eb442ce 100644 --- a/src/persistence/db/encrypteddb.h +++ b/src/persistence/db/encrypteddb.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef ENCRYPTEDDB_H diff --git a/src/persistence/db/genericddinterface.cpp b/src/persistence/db/genericddinterface.cpp index f58b7ad6f..4298baa9f 100644 --- a/src/persistence/db/genericddinterface.cpp +++ b/src/persistence/db/genericddinterface.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "genericddinterface.h" diff --git a/src/persistence/db/genericddinterface.h b/src/persistence/db/genericddinterface.h index fc14eda3c..eee736598 100644 --- a/src/persistence/db/genericddinterface.h +++ b/src/persistence/db/genericddinterface.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GENERICDDINTERFACE_H diff --git a/src/persistence/db/plaindb.cpp b/src/persistence/db/plaindb.cpp index 36713f5fe..a6f6bc90f 100644 --- a/src/persistence/db/plaindb.cpp +++ b/src/persistence/db/plaindb.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "plaindb.h" diff --git a/src/persistence/db/plaindb.h b/src/persistence/db/plaindb.h index 59273b2ab..37cd66a78 100644 --- a/src/persistence/db/plaindb.h +++ b/src/persistence/db/plaindb.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef PLAINDB_H diff --git a/src/persistence/historykeeper.cpp b/src/persistence/historykeeper.cpp index 85ae13a4b..8c16e2531 100644 --- a/src/persistence/historykeeper.cpp +++ b/src/persistence/historykeeper.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "historykeeper.h" diff --git a/src/persistence/historykeeper.h b/src/persistence/historykeeper.h index 46b3ca9dd..b62853250 100644 --- a/src/persistence/historykeeper.h +++ b/src/persistence/historykeeper.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef HISTORYKEEPER_H diff --git a/src/persistence/offlinemsgengine.cpp b/src/persistence/offlinemsgengine.cpp index f1b3e4e0b..c3667646c 100644 --- a/src/persistence/offlinemsgengine.cpp +++ b/src/persistence/offlinemsgengine.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "offlinemsgengine.h" diff --git a/src/persistence/offlinemsgengine.h b/src/persistence/offlinemsgengine.h index 3e360f209..6cce8c919 100644 --- a/src/persistence/offlinemsgengine.h +++ b/src/persistence/offlinemsgengine.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef OFFLINEMSGENGINE_H diff --git a/src/persistence/profile.cpp b/src/persistence/profile.cpp index 76d9c26c5..d9b636127 100644 --- a/src/persistence/profile.cpp +++ b/src/persistence/profile.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "profile.h" #include "profilelocker.h" #include "src/persistence/settings.h" diff --git a/src/persistence/profile.h b/src/persistence/profile.h index e71105627..cc62ad872 100644 --- a/src/persistence/profile.h +++ b/src/persistence/profile.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef PROFILE_H #define PROFILE_H diff --git a/src/persistence/profilelocker.cpp b/src/persistence/profilelocker.cpp index c94a20565..d28bec3c8 100644 --- a/src/persistence/profilelocker.cpp +++ b/src/persistence/profilelocker.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "profilelocker.h" #include "src/persistence/settings.h" #include diff --git a/src/persistence/profilelocker.h b/src/persistence/profilelocker.h index a3cc071f5..b88ca1fa7 100644 --- a/src/persistence/profilelocker.h +++ b/src/persistence/profilelocker.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef PROFILELOCKER_H #define PROFILELOCKER_H diff --git a/src/persistence/serialize.cpp b/src/persistence/serialize.cpp index 33025b32f..e703c875a 100644 --- a/src/persistence/serialize.cpp +++ b/src/persistence/serialize.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/persistence/serialize.h b/src/persistence/serialize.h index aea3e6aba..766294e3b 100644 --- a/src/persistence/serialize.h +++ b/src/persistence/serialize.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ diff --git a/src/persistence/settings.cpp b/src/persistence/settings.cpp index 73f9aa6c9..a97c6da16 100644 --- a/src/persistence/settings.cpp +++ b/src/persistence/settings.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "settings.h" diff --git a/src/persistence/settings.h b/src/persistence/settings.h index 1fec001bd..d891bbf7e 100644 --- a/src/persistence/settings.h +++ b/src/persistence/settings.h @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro + Copyright © 2014-2015 by The qTox Project - This file is part of Tox Qt GUI. + This file is part of qTox, a Qt-based graphical interface for Tox. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SETTINGS_HPP diff --git a/src/persistence/smileypack.cpp b/src/persistence/smileypack.cpp index fea8caac6..e3d80a735 100644 --- a/src/persistence/smileypack.cpp +++ b/src/persistence/smileypack.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "smileypack.h" @@ -70,7 +75,7 @@ QList > SmileyPack::listSmileyPacks(const QStringList &p if (!smileyPacks.contains(QPair(packageName, absPath))) smileyPacks << QPair(packageName, absPath); else if (!smileyPacks.contains(QPair(packageName, relPath))) - smileyPacks << QPair(packageName, relPath); // use relative path for subdirectories + smileyPacks << QPair(packageName, relPath); // use relative path for subdirectories } } dir.cdUp(); @@ -131,16 +136,16 @@ bool SmileyPack::load(const QString& filename) QString emoticon = stringElement.text() .replace("<","<").replace(">",">"); filenameTable.insert(emoticon, file); - + cacheSmiley(file); // preload all smileys if (!getCachedSmiley(emoticon).isNull()) emoticonSet.push_back(emoticon); - + stringElement = stringElement.nextSibling().toElement(); - + } - + if (emoticonSet.size() > 0) emoticons.push_back(emoticonSet); } diff --git a/src/persistence/smileypack.h b/src/persistence/smileypack.h index 5278f2347..262be026a 100644 --- a/src/persistence/smileypack.h +++ b/src/persistence/smileypack.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SMILEYPACK_H diff --git a/src/persistence/toxsave.cpp b/src/persistence/toxsave.cpp index fd4a4a423..59b8e1c44 100644 --- a/src/persistence/toxsave.cpp +++ b/src/persistence/toxsave.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "toxsave.h" diff --git a/src/persistence/toxsave.h b/src/persistence/toxsave.h index 768578326..901e6536c 100644 --- a/src/persistence/toxsave.h +++ b/src/persistence/toxsave.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef TOXSAVE_H diff --git a/src/platform/autorun.h b/src/platform/autorun.h index 90b1f34c5..65da9fa82 100644 --- a/src/platform/autorun.h +++ b/src/platform/autorun.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifdef QTOX_PLATFORM_EXT diff --git a/src/platform/autorun_osx.cpp b/src/platform/autorun_osx.cpp index 4877e8ed8..99362e236 100644 --- a/src/platform/autorun_osx.cpp +++ b/src/platform/autorun_osx.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #if defined(__APPLE__) && defined(__MACH__) diff --git a/src/platform/autorun_win.cpp b/src/platform/autorun_win.cpp index d32e0cf9b..34049640f 100644 --- a/src/platform/autorun_win.cpp +++ b/src/platform/autorun_win.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include diff --git a/src/platform/autorun_xdg.cpp b/src/platform/autorun_xdg.cpp index f3be84552..fd0140a40 100644 --- a/src/platform/autorun_xdg.cpp +++ b/src/platform/autorun_xdg.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include diff --git a/src/platform/camera/directshow.cpp b/src/platform/camera/directshow.cpp index 05a863172..f0d8208f8 100644 --- a/src/platform/camera/directshow.cpp +++ b/src/platform/camera/directshow.cpp @@ -1,3 +1,24 @@ +/* + Copyright (c) 2010 Ramiro Polla + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "directshow.h" #include diff --git a/src/platform/camera/directshow.h b/src/platform/camera/directshow.h index ba204231d..c0113f8b9 100644 --- a/src/platform/camera/directshow.h +++ b/src/platform/camera/directshow.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef DIRECTSHOW_H #define DIRECTSHOW_H diff --git a/src/platform/camera/v4l2.cpp b/src/platform/camera/v4l2.cpp index 08c3bd135..c2d8ebab4 100644 --- a/src/platform/camera/v4l2.cpp +++ b/src/platform/camera/v4l2.cpp @@ -1,3 +1,25 @@ +/* + Copyright (c) 2000,2001 Fabrice Bellard + Copyright (c) 2006 Luca Abeni + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "v4l2.h" #include diff --git a/src/platform/camera/v4l2.h b/src/platform/camera/v4l2.h index 1eb4be8d3..794328095 100644 --- a/src/platform/camera/v4l2.h +++ b/src/platform/camera/v4l2.h @@ -1,3 +1,21 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ #ifndef V4L2_H #define V4L2_H diff --git a/src/platform/install_osx.cpp b/src/platform/install_osx.cpp index 1971fdb46..4638a0168 100644 --- a/src/platform/install_osx.cpp +++ b/src/platform/install_osx.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "install_osx.h" #include #include diff --git a/src/platform/install_osx.h b/src/platform/install_osx.h index d1b01687e..115fabd60 100644 --- a/src/platform/install_osx.h +++ b/src/platform/install_osx.h @@ -1,3 +1,21 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ #ifndef INSTALLOSX_H #define INSTALLOSX_H diff --git a/src/platform/statusnotifier/enums.c b/src/platform/statusnotifier/enums.c index a30343fb7..31ca15fb6 100644 --- a/src/platform/statusnotifier/enums.c +++ b/src/platform/statusnotifier/enums.c @@ -1,16 +1,24 @@ /* - This file is part of qTox, a Qt-based graphical interface for Tox. - - This program is libre software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - See the COPYING file for more details. -*/ + * statusnotifier - Copyright (C) 2014 Olivier Brunel + * + * interfaces.h + * Copyright (C) 2014 Olivier Brunel + * + * This file is part of statusnotifier. + * + * statusnotifier is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) any + * later version. + * + * statusnotifier is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * statusnotifier. If not, see http://www.gnu.org/licenses/ + */ #include "enums.h" diff --git a/src/platform/statusnotifier/enums.h b/src/platform/statusnotifier/enums.h index 0a60f2683..7fa1e168a 100644 --- a/src/platform/statusnotifier/enums.h +++ b/src/platform/statusnotifier/enums.h @@ -1,3 +1,25 @@ +/* + * statusnotifier - Copyright (C) 2014 Olivier Brunel + * + * interfaces.h + * Copyright (C) 2014 Olivier Brunel + * + * This file is part of statusnotifier. + * + * statusnotifier is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) any + * later version. + * + * statusnotifier is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * statusnotifier. If not, see http://www.gnu.org/licenses/ + */ + #ifndef __STATUS_NOTIFIER_ENUMS_H__ #define __STATUS_NOTIFIER_ENUMS_H__ #include "statusnotifier.h" diff --git a/src/platform/timer.h b/src/platform/timer.h index e7c481ef5..e4486fff7 100644 --- a/src/platform/timer.h +++ b/src/platform/timer.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifdef QTOX_PLATFORM_EXT diff --git a/src/platform/timer_osx.cpp b/src/platform/timer_osx.cpp index 37e4848d4..8dfa1c899 100644 --- a/src/platform/timer_osx.cpp +++ b/src/platform/timer_osx.cpp @@ -4,17 +4,23 @@ source distribution (which can be found at ). + Copyright © 2006 by Richard Laager + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include @@ -26,6 +32,8 @@ uint32_t Platform::getIdleTime() { // https://hg.pidgin.im/pidgin/main/file/13e4ae613a6a/pidgin/gtkidle.c + // relevant code introduced to Pidgin in: + // https://hg.pidgin.im/pidgin/main/diff/8ff1c408ef3e/src/gtkidle.c static io_service_t service = 0; CFTypeRef property; uint64_t idleTime_ns = 0; diff --git a/src/platform/timer_win.cpp b/src/platform/timer_win.cpp index 008775937..a8363b3f4 100644 --- a/src/platform/timer_win.cpp +++ b/src/platform/timer_win.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include diff --git a/src/platform/timer_x11.cpp b/src/platform/timer_x11.cpp index 813239285..a3a4450ef 100644 --- a/src/platform/timer_x11.cpp +++ b/src/platform/timer_x11.cpp @@ -1,15 +1,18 @@ /* This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include diff --git a/src/video/cameradevice.cpp b/src/video/cameradevice.cpp index 5e09394e2..782994b96 100644 --- a/src/video/cameradevice.cpp +++ b/src/video/cameradevice.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include #include #include diff --git a/src/video/cameradevice.h b/src/video/cameradevice.h index 76fa087d0..edf50549d 100644 --- a/src/video/cameradevice.h +++ b/src/video/cameradevice.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef CAMERADEVICE_H #define CAMERADEVICE_H diff --git a/src/video/camerasource.cpp b/src/video/camerasource.cpp index eb05e56b9..7f1a2898e 100644 --- a/src/video/camerasource.cpp +++ b/src/video/camerasource.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ extern "C" { diff --git a/src/video/camerasource.h b/src/video/camerasource.h index bc15f09a7..241180c52 100644 --- a/src/video/camerasource.h +++ b/src/video/camerasource.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CAMERA_H diff --git a/src/video/corevideosource.cpp b/src/video/corevideosource.cpp index 7febe4541..c01f0cb18 100644 --- a/src/video/corevideosource.cpp +++ b/src/video/corevideosource.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + extern "C" { #include } diff --git a/src/video/corevideosource.h b/src/video/corevideosource.h index 91f595c32..f0bff0bdd 100644 --- a/src/video/corevideosource.h +++ b/src/video/corevideosource.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef COREVIDEOSOURCE_H #define COREVIDEOSOURCE_H diff --git a/src/video/netcamview.cpp b/src/video/netcamview.cpp index 479f5c587..eb0cc54e7 100644 --- a/src/video/netcamview.cpp +++ b/src/video/netcamview.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "netcamview.h" diff --git a/src/video/netcamview.h b/src/video/netcamview.h index f5de26f24..a208c10a6 100644 --- a/src/video/netcamview.h +++ b/src/video/netcamview.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef NETCAMVIEW_H diff --git a/src/video/videoframe.cpp b/src/video/videoframe.cpp index 0c0be6b84..b1af3505e 100644 --- a/src/video/videoframe.cpp +++ b/src/video/videoframe.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include diff --git a/src/video/videoframe.h b/src/video/videoframe.h index 9191c0a4d..e6003541c 100644 --- a/src/video/videoframe.h +++ b/src/video/videoframe.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef VIDEOFRAME_H diff --git a/src/video/videomode.h b/src/video/videomode.h index 0cbe52f74..ff76c063b 100644 --- a/src/video/videomode.h +++ b/src/video/videomode.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef VIDEOMODE_H #define VIDEOMODE_H diff --git a/src/video/videosource.h b/src/video/videosource.h index 878e18701..ae3a9d9ce 100644 --- a/src/video/videosource.h +++ b/src/video/videosource.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef VIDEOSOURCE_H diff --git a/src/video/videosurface.cpp b/src/video/videosurface.cpp index 5eff9b61c..290539ef3 100644 --- a/src/video/videosurface.cpp +++ b/src/video/videosurface.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + (at your option) any later version. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "videosurface.h" @@ -23,7 +28,7 @@ VideoSurface::VideoSurface(QWidget* parent) , frameLock{false} , hasSubscribed{false} { - + } VideoSurface::VideoSurface(VideoSource *source, QWidget* parent) diff --git a/src/video/videosurface.h b/src/video/videosurface.h index f8bcbb242..cbe288d80 100644 --- a/src/video/videosurface.h +++ b/src/video/videosurface.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + (at your option) any later version. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SELFCAMVIEW_H diff --git a/src/widget/androidgui.cpp b/src/widget/androidgui.cpp index 43223475d..500dc0964 100644 --- a/src/widget/androidgui.cpp +++ b/src/widget/androidgui.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "androidgui.h" #include "ui_android.h" #include "friendlistwidget.h" diff --git a/src/widget/androidgui.h b/src/widget/androidgui.h index 158c5e693..20efd04a7 100644 --- a/src/widget/androidgui.h +++ b/src/widget/androidgui.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef ANDROIDGUI_H #define ANDROIDGUI_H diff --git a/src/widget/emoticonswidget.cpp b/src/widget/emoticonswidget.cpp index bdc31ae17..9aafb761f 100644 --- a/src/widget/emoticonswidget.cpp +++ b/src/widget/emoticonswidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "emoticonswidget.h" diff --git a/src/widget/emoticonswidget.h b/src/widget/emoticonswidget.h index 7c801743e..476e1d069 100644 --- a/src/widget/emoticonswidget.h +++ b/src/widget/emoticonswidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef EMOTICONSWIDGET_H diff --git a/src/widget/form/addfriendform.cpp b/src/widget/form/addfriendform.cpp index 9f7090fad..347903813 100644 --- a/src/widget/form/addfriendform.cpp +++ b/src/widget/form/addfriendform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "addfriendform.h" diff --git a/src/widget/form/addfriendform.h b/src/widget/form/addfriendform.h index 61c856126..22b631170 100644 --- a/src/widget/form/addfriendform.h +++ b/src/widget/form/addfriendform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef ADDFRIENDFORM_H diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 6111f16d6..62be59ec4 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include @@ -870,7 +875,7 @@ void ChatForm::loadHistory(QDateTime since, bool processUndelivered) void ChatForm::onScreenshotClicked() { doScreenshot(); - + // Give the window manager a moment to open the fullscreen grabber window QTimer::singleShot(500, this, SLOT(hideFileMenu())); } @@ -892,16 +897,16 @@ void ChatForm::onScreenshotTaken(const QPixmap &pixmap) { tr("qTox wasn't able to save the screenshot")); return; } - + file.setAutoRemove(false); - + pixmap.save(&file, "PNG"); - + long long filesize = file.size(); file.close(); QFileInfo fi(file); - - emit sendFile(f->getFriendID(), fi.fileName(), fi.filePath(), filesize); + + emit sendFile(f->getFriendID(), fi.fileName(), fi.filePath(), filesize); } void ChatForm::onLoadHistory() @@ -992,7 +997,7 @@ void ChatForm::hideEvent(QHideEvent* event) { if (callConfirm) callConfirm->hide(); - + GenericChatForm::hideEvent(event); } diff --git a/src/widget/form/chatform.h b/src/widget/form/chatform.h index 5b9001a72..4d6650457 100644 --- a/src/widget/form/chatform.h +++ b/src/widget/form/chatform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATFORM_H diff --git a/src/widget/form/filesform.cpp b/src/widget/form/filesform.cpp index 3abde2fce..fddedf9ae 100644 --- a/src/widget/form/filesform.cpp +++ b/src/widget/form/filesform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "filesform.h" @@ -30,13 +35,13 @@ FilesForm::FilesForm() headLabel.setFont(bold); head->setLayout(&headLayout); headLayout.addWidget(&headLabel); - + recvd = new QListWidget; sent = new QListWidget; - + main.addTab(recvd, QString()); main.addTab(sent, QString()); - + connect(sent, SIGNAL(itemActivated(QListWidgetItem*)), this, SLOT(onFileActivated(QListWidgetItem*))); connect(recvd, SIGNAL(itemActivated(QListWidgetItem*)), this, SLOT(onFileActivated(QListWidgetItem*))); @@ -77,7 +82,7 @@ void FilesForm::onFileUploadComplete(const QString& path) // sadly, the ToxFile struct in core only has the file name, not the file path... // so currently, these don't work as intended (though for now, downloads might work // whenever they're not saved anywhere custom, thanks to the hack) -// I could do some digging around, but for now I'm tired and others already +// I could do some digging around, but for now I'm tired and others already // might know it without me needing to dig, so... void FilesForm::onFileActivated(QListWidgetItem* item) { diff --git a/src/widget/form/filesform.h b/src/widget/form/filesform.h index c67a656c9..22b30e3c7 100644 --- a/src/widget/form/filesform.h +++ b/src/widget/form/filesform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FILESFORM_H @@ -37,7 +42,7 @@ public: public slots: void onFileDownloadComplete(const QString& path); void onFileUploadComplete(const QString& path); - + private slots: void onFileActivated(QListWidgetItem* item); diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index a23acbd8e..a43bde3ce 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "genericchatform.h" @@ -86,7 +91,7 @@ GenericChatForm::GenericChatForm(QWidget *parent) micButton = new QPushButton(); // micButton->setFixedSize(25,20); micButton->setToolTip(""); - + fileFlyout = new FlyoutOverlayWidget; QHBoxLayout *fileLayout = new QHBoxLayout(fileFlyout); fileLayout->addWidget(screenshotButton); @@ -179,7 +184,7 @@ GenericChatForm::GenericChatForm(QWidget *parent) chatWidget->setStyleSheet(Style::getStylesheet(":/ui/chatArea/chatArea.css")); headWidget->setStyleSheet(Style::getStylesheet(":/ui/chatArea/chatHead.css")); - + fileFlyout->setFixedSize(24, 24); fileFlyout->setParent(this); fileButton->installEventFilter(this); @@ -206,7 +211,7 @@ void GenericChatForm::showFileMenu() if (!fileFlyout->isShown() && !fileFlyout->isBeingShown()) { adjustFileMenuPosition(); } - + fileFlyout->animateShow(); } @@ -214,7 +219,7 @@ void GenericChatForm::hideFileMenu() { if(fileFlyout->isShown() || fileFlyout->isBeingShown()) fileFlyout->animateHide(); - + } bool GenericChatForm::isEmpty() @@ -450,34 +455,34 @@ bool GenericChatForm::eventFilter(QObject* object, QEvent* event) { if (object != this->fileButton && object != this->fileFlyout) return false; - + if (!qobject_cast(object)->isEnabled()) return false; - + switch(event->type()) { case QEvent::Enter: showFileMenu(); break; - + case QEvent::Leave: { QPoint pos = mapFromGlobal(QCursor::pos()); QRect fileRect(fileFlyout->pos(), fileFlyout->size()); fileRect = fileRect.united(QRect(fileButton->pos(), fileButton->size())); - + if (!fileRect.contains(pos)) hideFileMenu(); - + } break; - + case QEvent::MouseButtonPress: hideFileMenu(); break; - + default: break; } - + return false; } diff --git a/src/widget/form/genericchatform.h b/src/widget/form/genericchatform.h index 87a07109f..015d83c0b 100644 --- a/src/widget/form/genericchatform.h +++ b/src/widget/form/genericchatform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GENERICCHATFORM_H diff --git a/src/widget/form/groupchatform.cpp b/src/widget/form/groupchatform.cpp index 69d3e448b..6625b14fb 100644 --- a/src/widget/form/groupchatform.cpp +++ b/src/widget/form/groupchatform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "groupchatform.h" @@ -63,14 +68,14 @@ GroupChatForm::GroupChatForm(Group* chatGroup) namesListLayout = new FlowLayout(0,5,0); QStringList names(group->getPeerList()); - + for (const QString& name : names) { QLabel *l = new QLabel(name); l->setTextFormat(Qt::PlainText); namesListLayout->addWidget(l); } - + headTextLayout->addWidget(nusersLabel); headTextLayout->addLayout(namesListLayout); headTextLayout->addStretch(); diff --git a/src/widget/form/groupchatform.h b/src/widget/form/groupchatform.h index ac3d964da..b4d014f65 100644 --- a/src/widget/form/groupchatform.h +++ b/src/widget/form/groupchatform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GROUPCHATFORM_H diff --git a/src/widget/form/loadhistorydialog.cpp b/src/widget/form/loadhistorydialog.cpp index 1ba1ecf43..6e94b9441 100644 --- a/src/widget/form/loadhistorydialog.cpp +++ b/src/widget/form/loadhistorydialog.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "loadhistorydialog.h" diff --git a/src/widget/form/loadhistorydialog.h b/src/widget/form/loadhistorydialog.h index c2064ce28..046ee0c2a 100644 --- a/src/widget/form/loadhistorydialog.h +++ b/src/widget/form/loadhistorydialog.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef LOADHISTORYDIALOG_H diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index c16ab0048..1bd2f14ad 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "src/core/core.h" diff --git a/src/widget/form/profileform.h b/src/widget/form/profileform.h index 57bdc11f0..e4f604598 100644 --- a/src/widget/form/profileform.h +++ b/src/widget/form/profileform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef IDENTITYFORM_H @@ -39,7 +44,7 @@ public: signals: void clicked(); protected: - void mouseReleaseEvent(QMouseEvent*) {emit clicked();} + void mouseReleaseEvent(QMouseEvent*) {emit clicked();} }; class ProfileForm : public QWidget diff --git a/src/widget/form/setpassworddialog.cpp b/src/widget/form/setpassworddialog.cpp index 0de9e99ac..9722d9339 100644 --- a/src/widget/form/setpassworddialog.cpp +++ b/src/widget/form/setpassworddialog.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "setpassworddialog.h" diff --git a/src/widget/form/setpassworddialog.h b/src/widget/form/setpassworddialog.h index ae73b8879..12d7849e1 100644 --- a/src/widget/form/setpassworddialog.h +++ b/src/widget/form/setpassworddialog.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SETPASSWORDDIALOG_H diff --git a/src/widget/form/settings/advancedform.cpp b/src/widget/form/settings/advancedform.cpp index 74e7abb7e..e73dea62b 100644 --- a/src/widget/form/settings/advancedform.cpp +++ b/src/widget/form/settings/advancedform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "ui_advancedsettings.h" diff --git a/src/widget/form/settings/advancedform.h b/src/widget/form/settings/advancedform.h index b00f9abf5..0c6a16500 100644 --- a/src/widget/form/settings/advancedform.h +++ b/src/widget/form/settings/advancedform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef ADVANCEDFORM_H @@ -30,7 +35,7 @@ public: AdvancedForm(); virtual ~AdvancedForm(); QString getFormName() final {return tr("Advanced");} - + protected: bool eventFilter(QObject *o, QEvent *e); diff --git a/src/widget/form/settings/avform.cpp b/src/widget/form/settings/avform.cpp index 09de08560..19371a416 100644 --- a/src/widget/form/settings/avform.cpp +++ b/src/widget/form/settings/avform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "avform.h" @@ -277,7 +282,7 @@ void AVForm::getAudioInDevices() while (*pDeviceList) { int len = strlen(pDeviceList); -#ifdef Q_OS_WIN32 +#ifdef Q_OS_WIN32 QString inDev = QString::fromUtf8(pDeviceList,len); #else QString inDev = QString::fromLocal8Bit(pDeviceList,len); @@ -311,7 +316,7 @@ void AVForm::getAudioOutDevices() while (*pDeviceList) { int len = strlen(pDeviceList); -#ifdef Q_OS_WIN32 +#ifdef Q_OS_WIN32 QString outDev = QString::fromUtf8(pDeviceList,len); #else QString outDev = QString::fromLocal8Bit(pDeviceList,len); @@ -387,7 +392,7 @@ void AVForm::killVideoSurface() QLayoutItem *child; while ((child = bodyUI->gridLayout->takeAt(0)) != 0) delete child; - + delete camVideoSurface; camVideoSurface = nullptr; } diff --git a/src/widget/form/settings/avform.h b/src/widget/form/settings/avform.h index 2fd931664..64470c603 100644 --- a/src/widget/form/settings/avform.h +++ b/src/widget/form/settings/avform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef AVFORM_H @@ -62,9 +67,9 @@ private slots: virtual void hideEvent(QHideEvent*); virtual void showEvent(QShowEvent*); - + protected: - bool eventFilter(QObject *o, QEvent *e); + bool eventFilter(QObject *o, QEvent *e); void updateVideoModes(int curIndex); private: diff --git a/src/widget/form/settings/generalform.cpp b/src/widget/form/settings/generalform.cpp index be6d5e55e..7ff002d12 100644 --- a/src/widget/form/settings/generalform.cpp +++ b/src/widget/form/settings/generalform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "ui_generalsettings.h" diff --git a/src/widget/form/settings/generalform.h b/src/widget/form/settings/generalform.h index c60d057b0..aa2dca802 100644 --- a/src/widget/form/settings/generalform.h +++ b/src/widget/form/settings/generalform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GENERALFORM_H @@ -45,7 +50,7 @@ private slots: void onProxyPortEdited(int port); void onUseProxyUpdated(); void onEmoticonSizeChanged(); - void onStyleSelected(QString style); + void onStyleSelected(QString style); void onTimestampSelected(int index); void onDateFormatSelected(int index); void onSetStatusChange(); diff --git a/src/widget/form/settings/genericsettings.h b/src/widget/form/settings/genericsettings.h index 84e2a5599..9ccd32c86 100644 --- a/src/widget/form/settings/genericsettings.h +++ b/src/widget/form/settings/genericsettings.h @@ -1,15 +1,18 @@ /* This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GENERICFORM_H diff --git a/src/widget/form/settings/privacyform.cpp b/src/widget/form/settings/privacyform.cpp index bb56f880d..5eefcc87a 100644 --- a/src/widget/form/settings/privacyform.cpp +++ b/src/widget/form/settings/privacyform.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "privacyform.h" diff --git a/src/widget/form/settings/privacyform.h b/src/widget/form/settings/privacyform.h index e1afa2823..5e83a7aa6 100644 --- a/src/widget/form/settings/privacyform.h +++ b/src/widget/form/settings/privacyform.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef PRIVACYFORM_H diff --git a/src/widget/form/settings/verticalonlyscroller.cpp b/src/widget/form/settings/verticalonlyscroller.cpp index 4a0dd3210..8b7c02fcd 100644 --- a/src/widget/form/settings/verticalonlyscroller.cpp +++ b/src/widget/form/settings/verticalonlyscroller.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include diff --git a/src/widget/form/settings/verticalonlyscroller.h b/src/widget/form/settings/verticalonlyscroller.h index 93d6917c6..44f2626d5 100644 --- a/src/widget/form/settings/verticalonlyscroller.h +++ b/src/widget/form/settings/verticalonlyscroller.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef VERTICALONLYSCROLLER_H diff --git a/src/widget/form/settingswidget.cpp b/src/widget/form/settingswidget.cpp index ff3630286..e9089901c 100644 --- a/src/widget/form/settingswidget.cpp +++ b/src/widget/form/settingswidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "settingswidget.h" @@ -70,7 +75,7 @@ SettingsWidget::~SettingsWidget() void SettingsWidget::setBodyHeadStyle(QString style) { - head->setStyle(QStyleFactory::create(style)); + head->setStyle(QStyleFactory::create(style)); body->setStyle(QStyleFactory::create(style)); } diff --git a/src/widget/form/settingswidget.h b/src/widget/form/settingswidget.h index ca8c1383d..f13676049 100644 --- a/src/widget/form/settingswidget.h +++ b/src/widget/form/settingswidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SETTINGSWIDGET_H diff --git a/src/widget/form/tabcompleter.cpp b/src/widget/form/tabcompleter.cpp index a3b203b92..f5fbd921b 100644 --- a/src/widget/form/tabcompleter.cpp +++ b/src/widget/form/tabcompleter.cpp @@ -2,17 +2,22 @@ Copyright (C) 2005-2014 by the Quassel Project devel@quassel-irc.org + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ /* This file was taken from the Quassel IRC client source (src/uisupport), and diff --git a/src/widget/form/tabcompleter.h b/src/widget/form/tabcompleter.h index f74d9c91c..b3fc23222 100644 --- a/src/widget/form/tabcompleter.h +++ b/src/widget/form/tabcompleter.h @@ -2,17 +2,22 @@ Copyright (C) 2005-2014 by the Quassel Project devel@quassel-irc.org + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ /* This file was taken from the Quassel IRC client source (src/uisupport), and diff --git a/src/widget/friendlistwidget.cpp b/src/widget/friendlistwidget.cpp index 4eda21960..836a21d16 100644 --- a/src/widget/friendlistwidget.cpp +++ b/src/widget/friendlistwidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "friendlistwidget.h" #include diff --git a/src/widget/friendlistwidget.h b/src/widget/friendlistwidget.h index c3a4b3ab3..01f48b000 100644 --- a/src/widget/friendlistwidget.h +++ b/src/widget/friendlistwidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FRIENDLISTWIDGET_H diff --git a/src/widget/friendwidget.cpp b/src/widget/friendwidget.cpp index 0699939d0..255f0c2ee 100644 --- a/src/widget/friendwidget.cpp +++ b/src/widget/friendwidget.cpp @@ -1,15 +1,18 @@ /* This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "friendwidget.h" diff --git a/src/widget/friendwidget.h b/src/widget/friendwidget.h index 39718901a..6f39d6f3e 100644 --- a/src/widget/friendwidget.h +++ b/src/widget/friendwidget.h @@ -1,15 +1,18 @@ /* This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FRIENDWIDGET_H diff --git a/src/widget/genericchatroomwidget.cpp b/src/widget/genericchatroomwidget.cpp index 16c527e04..1ef455c1a 100644 --- a/src/widget/genericchatroomwidget.cpp +++ b/src/widget/genericchatroomwidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "genericchatroomwidget.h" diff --git a/src/widget/genericchatroomwidget.h b/src/widget/genericchatroomwidget.h index dbf8c3834..3742811f3 100644 --- a/src/widget/genericchatroomwidget.h +++ b/src/widget/genericchatroomwidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GENERICCHATROOMWIDGET_H diff --git a/src/widget/groupwidget.cpp b/src/widget/groupwidget.cpp index bae9a9744..2f0991d99 100644 --- a/src/widget/groupwidget.cpp +++ b/src/widget/groupwidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "groupwidget.h" diff --git a/src/widget/groupwidget.h b/src/widget/groupwidget.h index 52a2804e0..3bf112305 100644 --- a/src/widget/groupwidget.h +++ b/src/widget/groupwidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef GROUPWIDGET_H diff --git a/src/widget/gui.cpp b/src/widget/gui.cpp index 7c4ccc9bd..736d23993 100644 --- a/src/widget/gui.cpp +++ b/src/widget/gui.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "gui.h" #include "src/nexus.h" #include diff --git a/src/widget/gui.h b/src/widget/gui.h index a7c0d34db..00eb25de2 100644 --- a/src/widget/gui.h +++ b/src/widget/gui.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef GUI_H #define GUI_H diff --git a/src/widget/loginscreen.cpp b/src/widget/loginscreen.cpp index 9e53f5865..0eca2655e 100644 --- a/src/widget/loginscreen.cpp +++ b/src/widget/loginscreen.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "loginscreen.h" #include "ui_loginscreen.h" #include "src/persistence/profile.h" diff --git a/src/widget/loginscreen.h b/src/widget/loginscreen.h index 0e5b23833..2c3cedcfc 100644 --- a/src/widget/loginscreen.h +++ b/src/widget/loginscreen.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef LOGINSCREEN_H #define LOGINSCREEN_H diff --git a/src/widget/maskablepixmapwidget.cpp b/src/widget/maskablepixmapwidget.cpp index 751510847..958d3af52 100644 --- a/src/widget/maskablepixmapwidget.cpp +++ b/src/widget/maskablepixmapwidget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "maskablepixmapwidget.h" diff --git a/src/widget/maskablepixmapwidget.h b/src/widget/maskablepixmapwidget.h index aaa395c47..b583c85e2 100644 --- a/src/widget/maskablepixmapwidget.h +++ b/src/widget/maskablepixmapwidget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef MASKABLEPIXMAPWIDGET_H diff --git a/src/widget/qrwidget.cpp b/src/widget/qrwidget.cpp index 1011f35f1..093a52604 100644 --- a/src/widget/qrwidget.cpp +++ b/src/widget/qrwidget.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "qrwidget.h" #include #include diff --git a/src/widget/qrwidget.h b/src/widget/qrwidget.h index 59bfc479b..c1455bf7f 100644 --- a/src/widget/qrwidget.h +++ b/src/widget/qrwidget.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef QRWIDGET_H #define QRWIDGET_H diff --git a/src/widget/style.cpp b/src/widget/style.cpp index 18fa99bc8..370d573ae 100644 --- a/src/widget/style.cpp +++ b/src/widget/style.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "style.h" diff --git a/src/widget/style.h b/src/widget/style.h index f37b7b1b3..de5936cd1 100644 --- a/src/widget/style.h +++ b/src/widget/style.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef STYLE_H diff --git a/src/widget/systemtrayicon.cpp b/src/widget/systemtrayicon.cpp index 3e6ce853b..f55a767eb 100644 --- a/src/widget/systemtrayicon.cpp +++ b/src/widget/systemtrayicon.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "systemtrayicon.h" #include #include diff --git a/src/widget/systemtrayicon.h b/src/widget/systemtrayicon.h index f15dec04a..8c137913b 100644 --- a/src/widget/systemtrayicon.h +++ b/src/widget/systemtrayicon.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef SYSTEMTRAYICON_H #define SYSTEMTRAYICON_H diff --git a/src/widget/systemtrayicon_private.h b/src/widget/systemtrayicon_private.h index 5380c2a05..0023bf684 100644 --- a/src/widget/systemtrayicon_private.h +++ b/src/widget/systemtrayicon_private.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef SYSTEMTRAYICON_PRIVATE_H #define SYSTEMTRAYICON_PRIVATE_H diff --git a/src/widget/tool/adjustingscrollarea.cpp b/src/widget/tool/adjustingscrollarea.cpp index e26a27058..ef4302f3b 100644 --- a/src/widget/tool/adjustingscrollarea.cpp +++ b/src/widget/tool/adjustingscrollarea.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "adjustingscrollarea.h" diff --git a/src/widget/tool/adjustingscrollarea.h b/src/widget/tool/adjustingscrollarea.h index 17d87735c..3bc48bc9a 100644 --- a/src/widget/tool/adjustingscrollarea.h +++ b/src/widget/tool/adjustingscrollarea.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef ADJUSTINGSCROLLAREA_H diff --git a/src/widget/tool/callconfirmwidget.cpp b/src/widget/tool/callconfirmwidget.cpp index 606d4f643..b1adde72f 100644 --- a/src/widget/tool/callconfirmwidget.cpp +++ b/src/widget/tool/callconfirmwidget.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "callconfirmwidget.h" #include "src/widget/gui.h" #include diff --git a/src/widget/tool/callconfirmwidget.h b/src/widget/tool/callconfirmwidget.h index e14484c97..b443ce401 100644 --- a/src/widget/tool/callconfirmwidget.h +++ b/src/widget/tool/callconfirmwidget.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef CALLCONFIRMWIDGET_H #define CALLCONFIRMWIDGET_H diff --git a/src/widget/tool/chattextedit.cpp b/src/widget/tool/chattextedit.cpp index f6ac4c727..f9eebfa74 100644 --- a/src/widget/tool/chattextedit.cpp +++ b/src/widget/tool/chattextedit.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "chattextedit.h" diff --git a/src/widget/tool/chattextedit.h b/src/widget/tool/chattextedit.h index fc7c4fa96..6728ec716 100644 --- a/src/widget/tool/chattextedit.h +++ b/src/widget/tool/chattextedit.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CHATTEXTEDIT_H @@ -25,7 +30,7 @@ public: ~ChatTextEdit(); virtual void keyPressEvent(QKeyEvent * event) override; void setLastMessage(QString lm); - + signals: void enterPressed(); void tabPressed(); diff --git a/src/widget/tool/croppinglabel.cpp b/src/widget/tool/croppinglabel.cpp index f0693bd03..a21d4f54c 100644 --- a/src/widget/tool/croppinglabel.cpp +++ b/src/widget/tool/croppinglabel.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "croppinglabel.h" diff --git a/src/widget/tool/croppinglabel.h b/src/widget/tool/croppinglabel.h index 3d2a50a0f..6c34360de 100644 --- a/src/widget/tool/croppinglabel.h +++ b/src/widget/tool/croppinglabel.h @@ -1,15 +1,20 @@ /* + Copyright © 2014 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef CROPPINGLABEL_H diff --git a/src/widget/tool/flyoutoverlaywidget.cpp b/src/widget/tool/flyoutoverlaywidget.cpp index 777e59077..12711db25 100644 --- a/src/widget/tool/flyoutoverlaywidget.cpp +++ b/src/widget/tool/flyoutoverlaywidget.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro - - This file is part of Tox Qt GUI. - + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + + qTox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - See the COPYING file for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "flyoutoverlaywidget.h" @@ -26,21 +30,21 @@ FlyoutOverlayWidget::FlyoutOverlayWidget(QWidget *parent) : QWidget(parent) { setContentsMargins(0, 0, 0, 0); - + animation = new QPropertyAnimation(this, QByteArrayLiteral("flyoutPercent"), this); animation->setKeyValueAt(0, 0.0f); animation->setKeyValueAt(1, 1.0f); animation->setDuration(200); - + connect(animation, &QAbstractAnimation::finished, this, &FlyoutOverlayWidget::finishedAnimation); setFlyoutPercent(0); hide(); - + } FlyoutOverlayWidget::~FlyoutOverlayWidget() { - + } int FlyoutOverlayWidget::animationDuration() const @@ -61,12 +65,12 @@ qreal FlyoutOverlayWidget::flyoutPercent() const void FlyoutOverlayWidget::setFlyoutPercent(qreal progress) { percent = progress; - + QSize self = size(); setMask(QRegion(0, 0, self.width() * progress + 1, self.height())); move(startPos.x() + self.width() - self.width() * percent, startPos.y()); setVisible (progress != 0); - + } bool FlyoutOverlayWidget::isShown() const @@ -88,10 +92,10 @@ void FlyoutOverlayWidget::animateShow() { if (percent == 1.0f) return; - + if (animation->state() != QAbstractAnimation::Running) this->startPos = pos(); - + startAnimation(true); } @@ -99,18 +103,18 @@ void FlyoutOverlayWidget::animateHide() { if (animation->state() != QAbstractAnimation::Running) this->startPos = pos(); - + startAnimation(false); } void FlyoutOverlayWidget::finishedAnimation() { bool hide = (animation->direction() == QAbstractAnimation::Backward); - + // Delay it by a few frames to let the system catch up on rendering if (hide) QTimer::singleShot(50, this, SIGNAL(hidden())); - + } void FlyoutOverlayWidget::startAnimation(bool forward) @@ -119,5 +123,5 @@ void FlyoutOverlayWidget::startAnimation(bool forward) animation->setDirection(forward ? QAbstractAnimation::Forward : QAbstractAnimation::Backward); animation->start(); animation->setCurrentTime(animation->duration() * percent); - + } diff --git a/src/widget/tool/flyoutoverlaywidget.h b/src/widget/tool/flyoutoverlaywidget.h index 9b4be531c..6330eef8a 100644 --- a/src/widget/tool/flyoutoverlaywidget.h +++ b/src/widget/tool/flyoutoverlaywidget.h @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro - - This file is part of Tox Qt GUI. - + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + + qTox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - See the COPYING file for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FLYOUTOVERLAYWIDGET_HPP @@ -28,34 +32,34 @@ class FlyoutOverlayWidget : public QWidget public: explicit FlyoutOverlayWidget(QWidget *parent = 0); ~FlyoutOverlayWidget(); - + int animationDuration() const; void setAnimationDuration(int timeMs); - + qreal flyoutPercent() const; void setFlyoutPercent(qreal progress); - + bool isShown() const; bool isBeingAnimated() const; bool isBeingShown() const; - + void animateShow(); void animateHide(); - + signals: - + void hidden(); - + private: - + void finishedAnimation(); void startAnimation(bool forward); - + QWidget *container; QPropertyAnimation *animation; qreal percent = 1.0f; QPoint startPos; - + }; #endif // FLYOUTOVERLAYWIDGET_HPP diff --git a/src/widget/tool/friendrequestdialog.cpp b/src/widget/tool/friendrequestdialog.cpp index ef0fa805b..6ac4b1027 100644 --- a/src/widget/tool/friendrequestdialog.cpp +++ b/src/widget/tool/friendrequestdialog.cpp @@ -1,17 +1,21 @@ /* Copyright (C) 2013 by Maxim Biro - - This file is part of Tox Qt GUI. - + Copyright © 2014-2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + + qTox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - See the COPYING file for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "friendrequestdialog.h" diff --git a/src/widget/tool/friendrequestdialog.h b/src/widget/tool/friendrequestdialog.h index 0b7f936f7..0c85994b7 100644 --- a/src/widget/tool/friendrequestdialog.h +++ b/src/widget/tool/friendrequestdialog.h @@ -7,11 +7,14 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + + qTox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - See the COPYING file for more details. + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef FRIENDREQUESTDIALOG_HPP diff --git a/src/widget/tool/screengrabberchooserrectitem.cpp b/src/widget/tool/screengrabberchooserrectitem.cpp index 8d22fb4cd..c0d933e12 100644 --- a/src/widget/tool/screengrabberchooserrectitem.cpp +++ b/src/widget/tool/screengrabberchooserrectitem.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "screengrabberchooserrectitem.h" @@ -30,7 +35,7 @@ ScreenGrabberChooserRectItem::ScreenGrabberChooserRectItem(QGraphicsScene* scene { scene->addItem(this); setCursor(QCursor(Qt::OpenHandCursor)); - + this->mainRect = createHandleItem(scene); this->topLeft = createHandleItem(scene); this->topCenter = createHandleItem(scene); @@ -40,7 +45,7 @@ ScreenGrabberChooserRectItem::ScreenGrabberChooserRectItem(QGraphicsScene* scene this->bottomCenter = createHandleItem(scene); this->bottomLeft = createHandleItem(scene); this->leftCenter = createHandleItem(scene); - + this->topLeft->setCursor(QCursor(Qt::SizeFDiagCursor)); this->bottomRight->setCursor(QCursor(Qt::SizeFDiagCursor)); this->topRight->setCursor(QCursor(Qt::SizeBDiagCursor)); @@ -49,15 +54,15 @@ ScreenGrabberChooserRectItem::ScreenGrabberChooserRectItem(QGraphicsScene* scene this->rightCenter->setCursor(QCursor(Qt::SizeHorCursor)); this->topCenter->setCursor(QCursor(Qt::SizeVerCursor)); this->bottomCenter->setCursor(QCursor(Qt::SizeVerCursor)); - + this->mainRect->setRect(QRect()); hideHandles(); - + } ScreenGrabberChooserRectItem::~ScreenGrabberChooserRectItem() { - + } QRectF ScreenGrabberChooserRectItem::boundingRect() const @@ -72,7 +77,7 @@ void ScreenGrabberChooserRectItem::beginResize(QPointF mousePos) mainRect->setRect(QRect()); state = Resizing; startPos = mousePos; - + setCursor(QCursor(Qt::CrossCursor)); hideHandles(); mainRect->grabMouse(); @@ -86,13 +91,13 @@ QRect ScreenGrabberChooserRectItem::chosenRect() const rect.setX(rect.x() + rectWidth); rect.setWidth(-rectWidth); } - + if (rectHeight < 0) { rect.setY(rect.y() + rectHeight); rect.setHeight(-rectHeight); } - + return rect; } @@ -127,7 +132,7 @@ void ScreenGrabberChooserRectItem::mousePress(QGraphicsSceneMouseEvent* event) this->state = Moving; setCursor(QCursor(Qt::ClosedHandCursor)); } - + } void ScreenGrabberChooserRectItem::mouseMove(QGraphicsSceneMouseEvent* event) @@ -144,14 +149,14 @@ void ScreenGrabberChooserRectItem::mouseMove(QGraphicsSceneMouseEvent* event) mainRect->setRect (0, 0, size.x(), size.y()); rectWidth = size.x(); rectHeight = size.y(); - + updateHandlePositions(); } else { return; } - + emit regionChosen(chosenRect()); } @@ -160,7 +165,7 @@ void ScreenGrabberChooserRectItem::mouseRelease(QGraphicsSceneMouseEvent* event) if (event->button() == Qt::LeftButton) { setCursor(QCursor(Qt::OpenHandCursor)); - + QPointF delta = (event->scenePos() - startPos); if (qAbs(delta.x()) < MinRectSize || qAbs(delta.y()) < MinRectSize) { @@ -170,21 +175,21 @@ void ScreenGrabberChooserRectItem::mouseRelease(QGraphicsSceneMouseEvent* event) else { QRect normalized = chosenRect(); - + rectWidth = normalized.width(); rectHeight = normalized.height(); setPos(normalized.x(), normalized.y()); mainRect->setRect(0, 0, rectWidth, rectHeight); - + updateHandlePositions(); showHandles(); } - + emit regionChosen(chosenRect()); state = None; mainRect->ungrabMouse(); } - + } void ScreenGrabberChooserRectItem::mouseDoubleClick(QGraphicsSceneMouseEvent* event) @@ -197,38 +202,38 @@ void ScreenGrabberChooserRectItem::mousePressHandle(int x, int y, QGraphicsScene { Q_UNUSED(x); Q_UNUSED(y); - + if(event->button() == Qt::LeftButton) this->state = HandleResizing; - + } void ScreenGrabberChooserRectItem::mouseMoveHandle(int x, int y, QGraphicsSceneMouseEvent* event) { if (this->state != HandleResizing) return; - + QPointF delta = event->scenePos() - event->lastScenePos(); delta.rx() *= qreal(std::abs(x)); delta.ry() *= qreal(std::abs(y)); - + // We increase if the multiplier and the delta have the same sign bool increaseX = ((x < 0) == (delta.x() < 0)); bool increaseY = ((y < 0) == (delta.y() < 0)); - + if((delta.x() < 0 && increaseX) || (delta.x() >= 0 && !increaseX)) { moveBy(delta.x(), 0); delta.rx() *= -1; } - + if((delta.y() < 0 && increaseY) || (delta.y() >= 0 && !increaseY)) { moveBy(0, delta.y()); delta.ry() *= -1; } - - // + + // this->rectWidth += delta.x(); this->rectHeight += delta.y(); this->mainRect->setRect (0, 0, this->rectWidth, this->rectHeight); @@ -240,38 +245,38 @@ void ScreenGrabberChooserRectItem::mouseReleaseHandle(int x, int y, QGraphicsSce { Q_UNUSED(x); Q_UNUSED(y); - + if (event->button() == Qt::LeftButton) this->state = None; - + } QPoint ScreenGrabberChooserRectItem::getHandleMultiplier(QGraphicsItem* handle) { if (handle == this->topLeft) return QPoint(-1, -1); - + if (handle == this->topCenter) return QPoint(0, -1); - + if (handle == this->topRight) return QPoint(1, -1); - + if (handle == this->rightCenter) return QPoint(1, 0); - + if (handle == this->bottomRight) return QPoint(1, 1); - + if (handle == this->bottomCenter) return QPoint(0, 1); - + if (handle == this->bottomLeft) return QPoint(-1, 1); - + if (handle == this->leftCenter) return QPoint(-1, 0); - + return QPoint(); } @@ -292,10 +297,10 @@ QGraphicsRectItem* ScreenGrabberChooserRectItem::createHandleItem(QGraphicsScene QGraphicsRectItem* handle = new QGraphicsRectItem(0, 0, HandleSize, HandleSize); handle->setPen(QPen(Qt::blue)); handle->setBrush(Qt::NoBrush); - + scene->addItem(handle); addToGroup(handle); - + handle->installSceneEventFilter(this); return handle; } @@ -306,14 +311,14 @@ bool ScreenGrabberChooserRectItem::sceneEventFilter(QGraphicsItem* watched, QEve forwardMainRectEvent(event); else forwardHandleEvent(watched, event); - + return true; } void ScreenGrabberChooserRectItem::forwardMainRectEvent(QEvent* event) { QGraphicsSceneMouseEvent* mouseEvent = static_cast(event); - + switch(event->type()) { case QEvent::GraphicsSceneMousePress: @@ -327,17 +332,17 @@ void ScreenGrabberChooserRectItem::forwardMainRectEvent(QEvent* event) default: return; } - + } void ScreenGrabberChooserRectItem::forwardHandleEvent(QGraphicsItem* watched, QEvent* event) { QGraphicsSceneMouseEvent* mouseEvent = static_cast(event); QPoint multiplier = getHandleMultiplier(watched); - + if (multiplier.isNull()) return; - + switch(event->type()) { case QEvent::GraphicsSceneMousePress: @@ -349,5 +354,5 @@ void ScreenGrabberChooserRectItem::forwardHandleEvent(QGraphicsItem* watched, QE default: return; } - + } diff --git a/src/widget/tool/screengrabberchooserrectitem.h b/src/widget/tool/screengrabberchooserrectitem.h index 18d78b1a8..fee4c86fd 100644 --- a/src/widget/tool/screengrabberchooserrectitem.h +++ b/src/widget/tool/screengrabberchooserrectitem.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SCREENGRABBERCHOOSERRECTITEM_HPP @@ -23,54 +28,54 @@ class ScreenGrabberChooserRectItem : public QObject, public QGraphicsItemGroup public: ScreenGrabberChooserRectItem(QGraphicsScene* scene); ~ScreenGrabberChooserRectItem(); - + QRectF boundingRect() const; void beginResize(QPointF mousePos); - + QRect chosenRect() const; - + void showHandles(); void hideHandles(); - + signals: - + void doubleClicked(); void regionChosen(QRect rect); - + protected: bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); - + private: - + enum State { None, Resizing, HandleResizing, Moving, }; - + State state = None; int rectWidth = 0; int rectHeight = 0; QPointF startPos; - + void forwardMainRectEvent(QEvent* event); void forwardHandleEvent(QGraphicsItem* watched, QEvent* event); - + void mousePress(QGraphicsSceneMouseEvent* event); void mouseMove(QGraphicsSceneMouseEvent* event); void mouseRelease(QGraphicsSceneMouseEvent* event); void mouseDoubleClick(QGraphicsSceneMouseEvent* event); - + void mousePressHandle(int x, int y, QGraphicsSceneMouseEvent* event); void mouseMoveHandle(int x, int y, QGraphicsSceneMouseEvent* event); void mouseReleaseHandle(int x, int y, QGraphicsSceneMouseEvent* event); - + QPoint getHandleMultiplier(QGraphicsItem* handle); - + void updateHandlePositions(); QGraphicsRectItem* createHandleItem(QGraphicsScene* scene); - + QGraphicsRectItem* mainRect; QGraphicsRectItem* topLeft; QGraphicsRectItem* topCenter; @@ -80,7 +85,7 @@ private: QGraphicsRectItem* bottomCenter; QGraphicsRectItem* bottomLeft; QGraphicsRectItem* leftCenter; - + }; diff --git a/src/widget/tool/screengrabberoverlayitem.cpp b/src/widget/tool/screengrabberoverlayitem.cpp index aaffe85a6..9b47c06ca 100644 --- a/src/widget/tool/screengrabberoverlayitem.cpp +++ b/src/widget/tool/screengrabberoverlayitem.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "screengrabberoverlayitem.h" @@ -24,18 +29,18 @@ ScreenGrabberOverlayItem::ScreenGrabberOverlayItem(ScreenshotGrabber* grabber) : screnshootGrabber(grabber) { - + QBrush overlayBrush(QColor(0x00, 0x00, 0x00, 0x70)); // Translucent black - + setCursor(QCursor(Qt::CrossCursor)); setBrush(overlayBrush); setPen(QPen(Qt::NoPen)); - + } ScreenGrabberOverlayItem::~ScreenGrabberOverlayItem() { - + } void ScreenGrabberOverlayItem::setChosenRect(QRect rect) @@ -49,20 +54,20 @@ void ScreenGrabberOverlayItem::mousePressEvent(QGraphicsSceneMouseEvent* event) { if (event->button() == Qt::LeftButton) this->screnshootGrabber->beginRectChooser(event); - + } void ScreenGrabberOverlayItem::paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*) { painter->setBrush(brush()); painter->setPen(pen()); - + QRectF self = rect(); qreal leftX = chosenRect.x(); qreal rightX = chosenRect.x() + chosenRect.width(); qreal topY = chosenRect.y(); qreal bottomY = chosenRect.y() + chosenRect.height(); - + painter->drawRect(0, 0, leftX, self.height()); // Left of chosen painter->drawRect(rightX, 0, self.width() - rightX, self.height()); // Right of chosen painter->drawRect(leftX, 0, chosenRect.width(), topY); // Top of chosen diff --git a/src/widget/tool/screengrabberoverlayitem.h b/src/widget/tool/screengrabberoverlayitem.h index 04c184316..4e7dae84c 100644 --- a/src/widget/tool/screengrabberoverlayitem.h +++ b/src/widget/tool/screengrabberoverlayitem.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SCREENGRABBEROVERLAYITEM_HPP @@ -25,20 +30,18 @@ class ScreenGrabberOverlayItem : public QObject, public QGraphicsRectItem public: ScreenGrabberOverlayItem(ScreenshotGrabber* grabber); ~ScreenGrabberOverlayItem(); - + void setChosenRect(QRect rect); - + void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); - + protected: void mousePressEvent(QGraphicsSceneMouseEvent* event); - + private: ScreenshotGrabber* screnshootGrabber; - + QRect chosenRect; - - }; #endif // SCREENGRABBEROVERLAYITEM_HPP diff --git a/src/widget/tool/screenshotgrabber.cpp b/src/widget/tool/screenshotgrabber.cpp index 0e713adb6..fc2eb3238 100644 --- a/src/widget/tool/screenshotgrabber.cpp +++ b/src/widget/tool/screenshotgrabber.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "screenshotgrabber.h" @@ -31,14 +36,14 @@ ScreenshotGrabber::ScreenshotGrabber(QWidget* parent) : QWidget(parent) { - + scene = new QGraphicsScene; window = new QGraphicsView (scene); // Top-level widget setupWindow(); setupScene(scene); - + installEventFilter(this); - + } ScreenshotGrabber::~ScreenshotGrabber() @@ -50,7 +55,7 @@ bool ScreenshotGrabber::eventFilter(QObject* object, QEvent* event) { if (event->type() == QEvent::KeyPress) return handleKeyPress(static_cast(event)); - + return QWidget::eventFilter(object, event); } @@ -73,7 +78,7 @@ bool ScreenshotGrabber::handleKeyPress(QKeyEvent* event) acceptRegion(); else return false; - + return true; } @@ -82,8 +87,8 @@ void ScreenshotGrabber::acceptRegion() QRect rect = this->chooserRect->chosenRect(); if (rect.width() < 1 || rect.height() < 1) return; - - // + + // qDebug() << "Screenshot accepted, chosen region" << rect; emit screenshotTaken(this->screenGrab.copy(rect)); this->window->close(); @@ -97,7 +102,7 @@ void ScreenshotGrabber::setupWindow() this->window->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); this->window->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); this->window->setFrameShape(QFrame::NoFrame); - + connect(this->window, &QObject::destroyed, this, &QObject::deleteLater); this->window->installEventFilter(this); } @@ -106,17 +111,17 @@ void ScreenshotGrabber::setupScene(QGraphicsScene* scene) { this->overlay = new ScreenGrabberOverlayItem(this); this->helperToolbox = new ToolBoxGraphicsItem; - + this->screenGrabDisplay = scene->addPixmap(this->screenGrab); this->helperTooltip = scene->addText(QString()); scene->addItem(this->overlay); this->chooserRect = new ScreenGrabberChooserRectItem(scene); scene->addItem(this->helperToolbox); - + this->helperToolbox->addToGroup(this->helperTooltip); this->helperTooltip->setDefaultTextColor(Qt::black); useNothingSelectedTooltip(); - + connect(this->chooserRect, &ScreenGrabberChooserRectItem::doubleClicked, this, &ScreenshotGrabber::acceptRegion); connect(this->chooserRect, &ScreenGrabberChooserRectItem::regionChosen, this, &ScreenshotGrabber::chooseHelperTooltipText); connect(this->chooserRect, &ScreenGrabberChooserRectItem::regionChosen, this->overlay, &ScreenGrabberOverlayItem::setChosenRect); @@ -142,25 +147,25 @@ void ScreenshotGrabber::chooseHelperTooltipText(QRect rect) useNothingSelectedTooltip(); else useRegionSelectedTooltip(); - + } void ScreenshotGrabber::adjustTooltipPosition() { QRectF size = this->helperToolbox->childrenBoundingRect(); QRect screenRect = QApplication::desktop()->screen()->rect(); - + // Align the toolbox center-top. helperToolbox->setX(screenRect.x() + (screenRect.width() - size.width() + size.x()) / 2); helperToolbox->setY(screenRect.y()); - + } void ScreenshotGrabber::reject() { qDebug() << "Rejected screenshot"; this->window->close(); - + } QRect ScreenshotGrabber::getSystemScreenRect() @@ -172,7 +177,7 @@ void ScreenshotGrabber::adjustWindowSize() { QRect systemScreenRect = getSystemScreenRect(); qDebug() << "adjusting grabber size to" << systemScreenRect; - + this->window->setGeometry(systemScreenRect); this->window->scene()->setSceneRect(systemScreenRect); this->overlay->setRect(systemScreenRect); diff --git a/src/widget/tool/screenshotgrabber.h b/src/widget/tool/screenshotgrabber.h index 13b0b4816..bd4d0ec33 100644 --- a/src/widget/tool/screenshotgrabber.h +++ b/src/widget/tool/screenshotgrabber.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef SCREENSHOTGRABBER_H @@ -33,41 +38,41 @@ class ScreenshotGrabber : public QWidget { Q_OBJECT public: - + ScreenshotGrabber(QWidget* parent); ~ScreenshotGrabber() override; - + bool eventFilter(QObject* object, QEvent* event); - + public slots: - + void showGrabber(); void acceptRegion(); - + signals: void screenshotTaken(const QPixmap &pixmap); void rejected(); - + private: friend class ScreenGrabberOverlayItem; - + void setupWindow(); void setupScene(QGraphicsScene* scene); - + void useNothingSelectedTooltip(); void useRegionSelectedTooltip(); void chooseHelperTooltipText(QRect rect); void adjustTooltipPosition(); - + bool handleKeyPress(QKeyEvent* event); void reject(); - + QRect getSystemScreenRect(); void adjustWindowSize(); QPixmap grabScreen(); - + void beginRectChooser(QGraphicsSceneMouseEvent* event); - + QPixmap screenGrab; QGraphicsScene* scene; QGraphicsView* window; diff --git a/src/widget/tool/toolboxgraphicsitem.cpp b/src/widget/tool/toolboxgraphicsitem.cpp index e538d809d..890381053 100644 --- a/src/widget/tool/toolboxgraphicsitem.cpp +++ b/src/widget/tool/toolboxgraphicsitem.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "toolboxgraphicsitem.h" @@ -19,17 +24,17 @@ ToolBoxGraphicsItem::ToolBoxGraphicsItem() { this->opacityAnimation = new QPropertyAnimation(this, QByteArrayLiteral("opacity"), this); - + this->opacityAnimation->setKeyValueAt(0, this->idleOpacity); this->opacityAnimation->setKeyValueAt(1, this->activeOpacity); this->opacityAnimation->setDuration(this->fadeTimeMs); - + setOpacity(this->idleOpacity); } ToolBoxGraphicsItem::~ToolBoxGraphicsItem() { - + } void ToolBoxGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) @@ -57,6 +62,6 @@ void ToolBoxGraphicsItem::paint(QPainter* painter, const QStyleOptionGraphicsIte painter->setBrush(QBrush(QColor(0xFF, 0xE2, 0x82))); painter->drawRect(childrenBoundingRect()); painter->restore(); - + QGraphicsItemGroup::paint(painter, option, widget); } diff --git a/src/widget/tool/toolboxgraphicsitem.h b/src/widget/tool/toolboxgraphicsitem.h index 9bfcf8fd1..1dd78f818 100644 --- a/src/widget/tool/toolboxgraphicsitem.h +++ b/src/widget/tool/toolboxgraphicsitem.h @@ -1,15 +1,20 @@ /* + Copyright © 2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef TOOLBOXGRAPHICSITEM_HPP @@ -26,22 +31,21 @@ class ToolBoxGraphicsItem : public QObject, public QGraphicsItemGroup public: ToolBoxGraphicsItem(); ~ToolBoxGraphicsItem(); - + void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); - + protected: void hoverEnterEvent(QGraphicsSceneHoverEvent* event); void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); - + private: - + void startAnimation(QAbstractAnimation::Direction direction); - + QPropertyAnimation* opacityAnimation; qreal idleOpacity = 0.7f; qreal activeOpacity = 1.0f; int fadeTimeMs = 300; - }; #endif // TOOLBOXGRAPHICSITEM_HPP diff --git a/src/widget/translator.cpp b/src/widget/translator.cpp index e3df43a49..83125b674 100644 --- a/src/widget/translator.cpp +++ b/src/widget/translator.cpp @@ -1,3 +1,23 @@ +/* + Copyright © 2014-2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #include "translator.h" #include "src/persistence/settings.h" #include diff --git a/src/widget/translator.h b/src/widget/translator.h index 2fff880fc..17898bbad 100644 --- a/src/widget/translator.h +++ b/src/widget/translator.h @@ -1,3 +1,23 @@ +/* + Copyright © 2015 by The qTox Project + + This file is part of qTox, a Qt-based graphical interface for Tox. + + qTox is libre software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . +*/ + + #ifndef TRANSLATOR_H #define TRANSLATOR_H diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index ef061a438..2ab0d5452 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #include "widget.h" @@ -832,17 +837,17 @@ void Widget::removeFriend(Friend* f, bool fake) else if (removeFriendMB == QMessageBox::Yes) HistoryKeeper::getInstance()->removeFriendHistory(f->getToxId().publicKey); } - + f->getFriendWidget()->setAsInactiveChatroom(); if (static_cast(f->getFriendWidget()) == activeChatroomWidget) { activeChatroomWidget = nullptr; onAddClicked(); } - + FriendList::removeFriend(f->getFriendID(), fake); Nexus::getCore()->removeFriend(f->getFriendID(), fake); - + delete f; if (ui->mainHead->layout()->isEmpty()) onAddClicked(); diff --git a/src/widget/widget.h b/src/widget/widget.h index 86a076da0..0617405a8 100644 --- a/src/widget/widget.h +++ b/src/widget/widget.h @@ -1,15 +1,20 @@ /* + Copyright © 2014-2015 by The qTox Project + This file is part of qTox, a Qt-based graphical interface for Tox. - This program is libre software: you can redistribute it and/or modify + qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the COPYING file for more details. + qTox is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with qTox. If not, see . */ #ifndef WIDGET_H