|
qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <widget.h>


Public Slots | |
| void | reloadTheme () |
| void | onShowSettings () |
| void | onSeparateWindowClicked (bool separate) |
| void | onSeparateWindowChanged (bool separate, bool clicked) |
| void | setWindowTitle (const QString &title) |
| void | forceShow () |
| void | onConnected () |
| void | onDisconnected () |
| void | onStatusSet (Status::Status status) |
| void | onFailedToStartCore () |
| void | onBadProxyCore () |
| void | onSelfAvatarLoaded (const QPixmap &pic) |
| void | setUsername (const QString &username) |
| void | setStatusMessage (const QString &statusMessage) |
| void | addFriend (uint32_t friendId, const ToxPk &friendPk) |
| void | addFriendFailed (const ToxPk &userId, const QString &errorInfo=QString()) |
| void | onCoreFriendStatusChanged (int friendId, Status::Status status) |
| void | onFriendStatusChanged (const ToxPk &friendPk, Status::Status status) |
| void | onFriendStatusMessageChanged (int friendId, const QString &message) |
| void | onFriendDisplayedNameChanged (const QString &displayed) |
| void | onFriendUsernameChanged (int friendId, const QString &username) |
| void | onFriendAliasChanged (const ToxPk &friendId, const QString &alias) |
| void | onFriendMessageReceived (uint32_t friendnumber, const QString &message, bool isAction) |
| void | onReceiptReceived (int friendId, ReceiptNum receipt) |
| void | onExtendedMessageSupport (uint32_t friendNumber, bool supported) |
| void | onFriendExtMessageReceived (uint32_t friendNumber, const QString &message) |
| void | onExtReceiptReceived (uint32_t friendNumber, uint64_t receiptId) |
| void | onFriendRequestReceived (const ToxPk &friendPk, const QString &message) |
| void | onFileReceiveRequested (const ToxFile &file) |
| void | onEmptyGroupCreated (uint32_t groupnumber, const GroupId &groupId, const QString &title) |
| void | onGroupJoined (int groupNum, const GroupId &groupId) |
| void | onGroupInviteReceived (const GroupInvite &inviteInfo) |
| void | onGroupInviteAccepted (const GroupInvite &inviteInfo) |
| void | onGroupMessageReceived (int groupnumber, int peernumber, const QString &message, bool isAction) |
| void | onGroupPeerlistChanged (uint32_t groupnumber) |
| void | onGroupPeerNameChanged (uint32_t groupnumber, const ToxPk &peerPk, const QString &newName) |
| void | onGroupTitleChanged (uint32_t groupnumber, const QString &author, const QString &title) |
| void | titleChangedByUser (const QString &title) |
| void | onGroupPeerAudioPlaying (int groupnumber, ToxPk peerPk) |
| void | onGroupSendFailed (uint32_t groupnumber) |
| void | onFriendTypingChanged (uint32_t friendnumber, bool isTyping) |
| void | nextContact () |
| void | previousContact () |
| void | onFriendDialogShown (const Friend *f) |
| void | onGroupDialogShown (Group *g) |
| void | toggleFullscreen () |
| void | refreshPeerListsLocal (const QString &username) |
| void | onUpdateAvailable () |
| void | onCoreChanged (Core &core) |
Signals | |
| void | friendRequestAccepted (const ToxPk &friendPk) |
| void | friendRequested (const ToxId &friendAddress, const QString &message) |
| void | statusSet (Status::Status status) |
| void | statusSelected (Status::Status status) |
| void | usernameChanged (const QString &username) |
| void | changeGroupTitle (uint32_t groupnumber, const QString &title) |
| void | statusMessageChanged (const QString &statusMessage) |
| void | resized () |
| void | windowStateChanged (Qt::WindowStates states) |
Public Member Functions | |
| Widget (Profile &_profile, IAudioControl &audio, QWidget *parent=nullptr) | |
| ~Widget () override | |
| void | init () |
| void | setCentralWidget (QWidget *widget, const QString &widgetName) |
| QString | getUsername () |
| Camera * | getCamera () |
| void | showUpdateDownloadProgress () |
| Switches to the About settings page. More... | |
| void | addFriendDialog (const Friend *frnd, ContentDialog *dialog) |
| void | addGroupDialog (Group *group, ContentDialog *dialog) |
| bool | newFriendMessageAlert (const ToxPk &friendId, const QString &text, bool sound=true, QString filename=QString(), size_t filesize=0) |
| bool | newGroupMessageAlert (const GroupId &groupId, const ToxPk &authorPk, const QString &message, bool notify) |
| bool | getIsWindowMinimized () |
| void | updateIcons () |
| ContentDialog * | createContentDialog () const |
| ContentLayout * | createContentDialog (DialogType type) const |
| void | clearAllReceipts () |
| bool | groupsVisible () const |
| void | resetIcon () |
| Used to reset the blinking icon. More... | |
Static Public Member Functions | |
| static Widget * | getInstance (IAudioControl *audio=nullptr) |
| static QString | fromDialogType (DialogType type) |
| static void | confirmExecutableOpen (const QFileInfo &file) |
| static QIcon | prepareIcon (QString path, int w=0, int h=0) |
Private Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *event) final |
| bool | event (QEvent *e) final |
| void | closeEvent (QCloseEvent *event) final |
| void | changeEvent (QEvent *event) final |
| void | resizeEvent (QResizeEvent *event) final |
| void | moveEvent (QMoveEvent *event) final |
| bool | newMessageAlert (QWidget *currentWindow, bool isActive, bool sound=true, bool notify=true) |
| void | setActiveToolMenuButton (ActiveToolMenuButton newActiveButton) |
| void | hideMainForms (GenericChatroomWidget *chatroomWidget) |
| Group * | createGroup (uint32_t groupnumber, const GroupId &groupId) |
| void | removeFriend (Friend *f, bool fake=false) |
| void | removeGroup (Group *g, bool fake=false) |
| void | saveWindowGeometry () |
| void | saveSplitterGeometry () |
| void | cycleContacts (bool forward) |
| void | searchContacts () |
| void | changeDisplayMode () |
| void | updateFilterText () |
| FilterCriteria | getFilterCriteria () const |
| void | retranslateUi () |
| void | focusChatInput () |
| void | openDialog (GenericChatroomWidget *widget, bool newWindow) |
| void | playNotificationSound (IAudioSink::Sound sound, bool loop=false) |
| Plays a sound via the audioNotification AudioSink. More... | |
| void | cleanupNotificationSound () |
| void | acceptFileTransfer (const ToxFile &file, const QString &path) |
| bool | notify (QObject *receiver, QEvent *event) |
Static Private Member Functions | |
| static bool | filterGroups (FilterCriteria index) |
| static bool | filterOnline (FilterCriteria index) |
| static bool | filterOffline (FilterCriteria index) |
Static Private Attributes | |
| static Widget * | instance {nullptr} |
|
strongprivate |
|
strongprivate |
|
strongprivate |
|
explicit |
Definition at line 140 of file widget.cpp.
|
override |
|
private |
|
slot |
Definition at line 1165 of file widget.cpp.


| void Widget::addFriendDialog | ( | const Friend * | frnd, |
| ContentDialog * | dialog | ||
| ) |
Definition at line 1465 of file widget.cpp.


|
slot |
| void Widget::addGroupDialog | ( | Group * | group, |
| ContentDialog * | dialog | ||
| ) |
Definition at line 1521 of file widget.cpp.


|
private |
Definition at line 2521 of file widget.cpp.


|
finalprivate |
|
signal |

|
private |
| void Widget::clearAllReceipts | ( | ) |
Definition at line 2446 of file widget.cpp.


|
finalprivate |
|
static |
Definition at line 911 of file widget.cpp.


|
privateslot |
Definition at line 2715 of file widget.cpp.


|
privateslot |
Definition at line 2720 of file widget.cpp.


|
privateslot |
Definition at line 1951 of file widget.cpp.


| ContentDialog * Widget::createContentDialog | ( | ) | const |
Definition at line 1842 of file widget.cpp.


| ContentLayout * Widget::createContentDialog | ( | DialogType | type | ) | const |
Definition at line 2107 of file widget.cpp.


|
private |
Definition at line 2408 of file widget.cpp.


|
privateslot |
Dispatches file to the appropriate chatlog and accepts the transfer if necessary.
Definition at line 1106 of file widget.cpp.


|
privateslot |
Definition at line 1146 of file widget.cpp.


|
privateslot |
Definition at line 1141 of file widget.cpp.


|
finalprivate |
Definition at line 2224 of file widget.cpp.


|
finalprivate |
Definition at line 504 of file widget.cpp.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
Definition at line 2697 of file widget.cpp.


|
slot |
|
privateslot |
Definition at line 2576 of file widget.cpp.


|
signal |

|
signal |

|
privateslot |
Definition at line 2590 of file widget.cpp.


|
static |
| Camera* Widget::getCamera | ( | ) |
|
private |
|
static |
| bool Widget::getIsWindowMinimized | ( | ) |
| QString Widget::getUsername | ( | ) |
|
privateslot |
Definition at line 2631 of file widget.cpp.


|
privateslot |
Definition at line 2613 of file widget.cpp.


| bool Widget::groupsVisible | ( | ) | const |
Definition at line 2570 of file widget.cpp.


|
private |
Definition at line 998 of file widget.cpp.


|
privateslot |
Definition at line 1075 of file widget.cpp.


| void Widget::init | ( | ) |
|
finalprivate |
Definition at line 642 of file widget.cpp.


| bool Widget::newFriendMessageAlert | ( | const ToxPk & | friendId, |
| const QString & | text, | ||
| bool | sound = true, |
||
| QString | filename = QString(), |
||
| size_t | filesize = 0 |
||
| ) |
Definition at line 1566 of file widget.cpp.


| bool Widget::newGroupMessageAlert | ( | const GroupId & | groupId, |
| const ToxPk & | authorPk, | ||
| const QString & | message, | ||
| bool | notify | ||
| ) |
Definition at line 1622 of file widget.cpp.


|
private |
Definition at line 1680 of file widget.cpp.


|
slot |
Definition at line 2473 of file widget.cpp.


|
private |

|
privateslot |
Definition at line 863 of file widget.cpp.


|
slot |
Definition at line 757 of file widget.cpp.


|
privateslot |
Definition at line 1090 of file widget.cpp.


|
privateslot |
Definition at line 1352 of file widget.cpp.


|
slot |
Definition at line 735 of file widget.cpp.


|
slot |
Definition at line 693 of file widget.cpp.


|
slot |
Definition at line 1254 of file widget.cpp.


|
privateslot |
Definition at line 1806 of file widget.cpp.


|
slot |
|
slot |
Definition at line 2193 of file widget.cpp.


|
privateslot |
Definition at line 2281 of file widget.cpp.


|
slot |
Definition at line 1442 of file widget.cpp.


|
slot |
Definition at line 1459 of file widget.cpp.


|
slot |
|
slot |
Definition at line 1729 of file widget.cpp.


|
slot |
Definition at line 1346 of file widget.cpp.


|
slot |
Definition at line 1815 of file widget.cpp.


|
slot |
Definition at line 1315 of file widget.cpp.


|
slot |
Definition at line 1453 of file widget.cpp.


|
slot |
Definition at line 1420 of file widget.cpp.


|
slot |
Definition at line 1717 of file widget.cpp.


|
slot |
Definition at line 1281 of file widget.cpp.


|
slot |
Definition at line 1299 of file widget.cpp.


|
slot |
Definition at line 2370 of file widget.cpp.


|
slot |
Definition at line 1333 of file widget.cpp.


|
privateslot |
Definition at line 879 of file widget.cpp.


|
slot |
Definition at line 1820 of file widget.cpp.


|
slot |
Definition at line 1990 of file widget.cpp.


|
slot |
Definition at line 1960 of file widget.cpp.


|
slot |
Definition at line 2209 of file widget.cpp.


|
slot |
Definition at line 1999 of file widget.cpp.


|
slot |
Definition at line 2050 of file widget.cpp.


|
slot |
Definition at line 2010 of file widget.cpp.


|
slot |
Definition at line 2018 of file widget.cpp.


|
slot |
Definition at line 2360 of file widget.cpp.


|
slot |
Definition at line 2028 of file widget.cpp.


|
privateslot |
Definition at line 942 of file widget.cpp.


|
slot |
Definition at line 1431 of file widget.cpp.


|
privateslot |
Definition at line 1159 of file widget.cpp.


|
slot |
Definition at line 688 of file widget.cpp.


|
slot |
Definition at line 782 of file widget.cpp.


|
slot |
Definition at line 777 of file widget.cpp.


|
privateslot |
|
slot |
Definition at line 966 of file widget.cpp.


|
privateslot |
Definition at line 2401 of file widget.cpp.


|
privateslot |
Definition at line 1027 of file widget.cpp.


|
slot |
Definition at line 770 of file widget.cpp.


|
privateslot |
Widget::onStopNotification Stop the notification sound.
Definition at line 1098 of file widget.cpp.

|
privateslot |
Definition at line 895 of file widget.cpp.


|
privateslot |
Definition at line 2289 of file widget.cpp.


|
slot |
|
privateslot |
Definition at line 2261 of file widget.cpp.


|
private |
Definition at line 1362 of file widget.cpp.


|
privateslot |
Definition at line 1357 of file widget.cpp.


|
privateslot |
Definition at line 1084 of file widget.cpp.


|
private |
Plays a sound via the audioNotification AudioSink.
| sound | Sound to play |
| loop | if true, loop the sound until onStopNotification() is called |
Definition at line 1046 of file widget.cpp.


|
inlinestatic |
|
slot |
Definition at line 2478 of file widget.cpp.


|
slot |
Definition at line 2708 of file widget.cpp.


|
privateslot |
Definition at line 1850 of file widget.cpp.


|
slot |
Definition at line 2454 of file widget.cpp.


|
privateslot |
Definition at line 1801 of file widget.cpp.


|
private |
|
privateslot |
Definition at line 2102 of file widget.cpp.


|
private |
| void Widget::resetIcon | ( | ) |
Used to reset the blinking icon.
Definition at line 2217 of file widget.cpp.


|
signal |
|
finalprivate |
Definition at line 677 of file widget.cpp.


|
private |
Definition at line 2649 of file widget.cpp.


|
private |
Definition at line 2394 of file widget.cpp.


|
private |
Definition at line 2388 of file widget.cpp.


|
privateslot |
Definition at line 2561 of file widget.cpp.


|
private |
Definition at line 2510 of file widget.cpp.


|
private |
| void Widget::setCentralWidget | ( | QWidget * | widget, |
| const QString & | widgetName | ||
| ) |
|
privateslot |
Definition at line 2342 of file widget.cpp.


|
privateslot |
Definition at line 2351 of file widget.cpp.


|
slot |
|
privateslot |
Definition at line 2333 of file widget.cpp.


|
slot |
|
slot |
<[^>]*> Regexp to remove HTML tags, in case someone used them in title
Definition at line 844 of file widget.cpp.

|
privateslot |
Definition at line 982 of file widget.cpp.


| void Widget::showUpdateDownloadProgress | ( | ) |
Switches to the About settings page.
Definition at line 636 of file widget.cpp.

|
signal |
|
signal |
|
signal |

|
slot |
|
slot |
|
private |
|
privateslot |
Definition at line 1735 of file widget.cpp.


| void Widget::updateIcons | ( | ) |
Definition at line 532 of file widget.cpp.


|
signal |
|
signal |

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17