qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Types | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Widget Class Referencefinal

#include <widget.h>

Inheritance diagram for Widget:
Inheritance graph
Collaboration diagram for Widget:
Collaboration graph

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 ()
 
ContentDialogcreateContentDialog () const
 
ContentLayoutcreateContentDialog (DialogType type) const
 
void clearAllReceipts ()
 
bool groupsVisible () const
 
void resetIcon ()
 Used to reset the blinking icon. More...
 

Static Public Member Functions

static WidgetgetInstance (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 Types

enum  ActiveToolMenuButton {
  ActiveToolMenuButton::AddButton, ActiveToolMenuButton::GroupButton, ActiveToolMenuButton::TransferButton, ActiveToolMenuButton::SettingButton,
  ActiveToolMenuButton::None
}
 
enum  DialogType {
  DialogType::AddDialog, DialogType::TransferDialog, DialogType::SettingDialog, DialogType::ProfileDialog,
  DialogType::GroupDialog
}
 
enum  FilterCriteria {
  FilterCriteria::All = 0, FilterCriteria::Online, FilterCriteria::Offline, FilterCriteria::Friends,
  FilterCriteria::Groups
}
 

Private Slots

void onAddClicked ()
 
void onGroupClicked ()
 
void onTransferClicked ()
 
void showProfile ()
 
void openNewDialog (GenericChatroomWidget *widget)
 
void onChatroomWidgetClicked (GenericChatroomWidget *widget)
 
void onStatusMessageChanged (const QString &newStatusMessage)
 
void removeFriend (const ToxPk &friendId)
 
void copyFriendIdToClipboard (const ToxPk &friendId)
 
void removeGroup (const GroupId &groupId)
 
void setStatusOnline ()
 
void setStatusAway ()
 
void setStatusBusy ()
 
void onIconClick (QSystemTrayIcon::ActivationReason)
 
void onUserAwayCheck ()
 
void onEventIconTick ()
 
void onTryCreateTrayIcon ()
 
void onSetShowSystemTray (bool newValue)
 
void onSplitterMoved (int pos, int index)
 
void friendListContextMenu (const QPoint &pos)
 
void friendRequestsUpdate ()
 
void groupInvitesUpdate ()
 
void groupInvitesClear ()
 
void onDialogShown (GenericChatroomWidget *widget)
 
void outgoingNotification ()
 
void onCallEnd ()
 
void incomingNotification (uint32_t friendId)
 
void onRejectCall (uint32_t friendId)
 
void onStopNotification ()
 Widget::onStopNotification Stop the notification sound. More...
 
void dispatchFile (ToxFile file)
 Dispatches file to the appropriate chatlog and accepts the transfer if necessary. More...
 
void dispatchFileWithBool (ToxFile file, bool)
 
void dispatchFileSendFailed (uint32_t friendId, const QString &fileName)
 
void connectCircleWidget (CircleWidget &circleWidget)
 
void connectFriendWidget (FriendWidget &friendWidget)
 
void searchCircle (CircleWidget &circleWidget)
 
void updateFriendActivity (const Friend &frnd)
 
void registerContentDialog (ContentDialog &contentDialog) const
 

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)
 
GroupcreateGroup (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)
 

Private Attributes

Profileprofile
 
std::unique_ptr< QSystemTrayIcon > icon
 
QMenu * trayMenu
 
QAction * statusOnline
 
QAction * statusAway
 
QAction * statusBusy
 
QAction * actionLogout
 
QAction * actionQuit
 
QAction * actionShow
 
QMenu * filterMenu
 
QActionGroup * filterGroup
 
QAction * filterAllAction
 
QAction * filterOnlineAction
 
QAction * filterOfflineAction
 
QAction * filterFriendsAction
 
QAction * filterGroupsAction
 
QActionGroup * filterDisplayGroup
 
QAction * filterDisplayName
 
QAction * filterDisplayActivity
 
Ui::MainWindow * ui
 
QSplitter * centralLayout
 
QPoint dragPosition
 
ContentLayoutcontentLayout
 
AddFriendFormaddFriendForm
 
GroupInviteFormgroupInviteForm
 
ProfileInfoprofileInfo
 
ProfileFormprofileForm
 
QPointer< SettingsWidgetsettingsWidget
 
std::unique_ptr< UpdateCheckupdateCheck
 
FilesFormfilesForm
 
GenericChatroomWidgetactiveChatroomWidget
 
FriendListWidgetcontactListWidget
 
MaskablePixmapWidgetprofilePicture
 
bool autoAwayActive = false
 
QTimer * timer
 
bool eventFlag
 
bool eventIcon
 
bool wasMaximized = false
 
QPushButton * friendRequestsButton
 
QPushButton * groupInvitesButton
 
unsigned int unreadGroupInvites
 
int icon_size
 
IAudioControl & audio
 
std::unique_ptr< IAudioSink > audioNotification
 
Settingssettings
 
QMap< ToxPk, FriendWidget * > friendWidgets
 
QMap< ToxPk, std::shared_ptr< FriendMessageDispatcher > > friendMessageDispatchers
 
QMap< ToxPk, QMetaObject::Connection > friendAlertConnections
 
QMap< ToxPk, std::shared_ptr< ChatHistory > > friendChatLogs
 
QMap< ToxPk, std::shared_ptr< FriendChatroom > > friendChatrooms
 
QMap< ToxPk, ChatForm * > chatForms
 
std::map< ToxPk, std::unique_ptr< QTimer > > negotiateTimers
 
QMap< GroupId, GroupWidget * > groupWidgets
 
QMap< GroupId, std::shared_ptr< GroupMessageDispatcher > > groupMessageDispatchers
 
QMap< GroupId, QMetaObject::Connection > groupAlertConnections
 
QMap< GroupId, std::shared_ptr< IChatLog > > groupChatLogs
 
QMap< GroupId, std::shared_ptr< GroupChatroom > > groupChatrooms
 
QMap< GroupId, QSharedPointer< GroupChatForm > > groupChatForms
 
Corecore = nullptr
 
std::unique_ptr< MessageProcessor::SharedParamssharedMessageProcessorParams
 

Static Private Attributes

static Widgetinstance {nullptr}
 

Detailed Description

Definition at line 87 of file widget.h.

Member Enumeration Documentation

◆ ActiveToolMenuButton

enum Widget::ActiveToolMenuButton
strongprivate
Enumerator
AddButton 
GroupButton 
TransferButton 
SettingButton 
None 

Definition at line 92 of file widget.h.

◆ DialogType

enum Widget::DialogType
strongprivate
Enumerator
AddDialog 
TransferDialog 
SettingDialog 
ProfileDialog 
GroupDialog 

Definition at line 101 of file widget.h.

◆ FilterCriteria

enum Widget::FilterCriteria
strongprivate
Enumerator
All 
Online 
Offline 
Friends 
Groups 

Definition at line 110 of file widget.h.

Constructor & Destructor Documentation

◆ Widget()

Widget::Widget ( Profile _profile,
IAudioControl &  audio,
QWidget *  parent = nullptr 
)
explicit

Definition at line 140 of file widget.cpp.

◆ ~Widget()

Widget::~Widget ( )
override

Definition at line 590 of file widget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ acceptFileTransfer()

void Widget::acceptFileTransfer ( const ToxFile file,
const QString &  path 
)
private

Definition at line 112 of file widget.cpp.

Here is the caller graph for this function:

◆ addFriend

void Widget::addFriend ( uint32_t  friendId,
const ToxPk friendPk 
)
slot

Definition at line 1165 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFriendDialog()

void Widget::addFriendDialog ( const Friend frnd,
ContentDialog dialog 
)

Definition at line 1465 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFriendFailed

void Widget::addFriendFailed ( const ToxPk userId,
const QString &  errorInfo = QString() 
)
slot

Definition at line 1244 of file widget.cpp.

Here is the caller graph for this function:

◆ addGroupDialog()

void Widget::addGroupDialog ( Group group,
ContentDialog dialog 
)

Definition at line 1521 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeDisplayMode()

void Widget::changeDisplayMode ( )
private

Definition at line 2521 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeEvent()

void Widget::changeEvent ( QEvent *  event)
finalprivate

Definition at line 668 of file widget.cpp.

Here is the call graph for this function:

◆ changeGroupTitle

void Widget::changeGroupTitle ( uint32_t  groupnumber,
const QString &  title 
)
signal
Here is the caller graph for this function:

◆ cleanupNotificationSound()

void Widget::cleanupNotificationSound ( )
private

Definition at line 1070 of file widget.cpp.

Here is the caller graph for this function:

◆ clearAllReceipts()

void Widget::clearAllReceipts ( )

Definition at line 2446 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeEvent()

void Widget::closeEvent ( QCloseEvent *  event)
finalprivate

Definition at line 652 of file widget.cpp.

Here is the call graph for this function:

◆ confirmExecutableOpen()

void Widget::confirmExecutableOpen ( const QFileInfo &  file)
static

Definition at line 911 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectCircleWidget

void Widget::connectCircleWidget ( CircleWidget circleWidget)
privateslot

Definition at line 2715 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectFriendWidget

void Widget::connectFriendWidget ( FriendWidget friendWidget)
privateslot

Definition at line 2720 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyFriendIdToClipboard

void Widget::copyFriendIdToClipboard ( const ToxPk friendId)
privateslot

Definition at line 1951 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createContentDialog() [1/2]

ContentDialog * Widget::createContentDialog ( ) const

Definition at line 1842 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createContentDialog() [2/2]

ContentLayout * Widget::createContentDialog ( DialogType  type) const

Definition at line 1871 of file widget.cpp.

Here is the call graph for this function:

◆ createGroup()

Group * Widget::createGroup ( uint32_t  groupnumber,
const GroupId groupId 
)
private

Definition at line 2107 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cycleContacts()

void Widget::cycleContacts ( bool  forward)
private

Definition at line 2408 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dispatchFile

void Widget::dispatchFile ( ToxFile  file)
privateslot

Dispatches file to the appropriate chatlog and accepts the transfer if necessary.

Definition at line 1106 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dispatchFileSendFailed

void Widget::dispatchFileSendFailed ( uint32_t  friendId,
const QString &  fileName 
)
privateslot

Definition at line 1146 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dispatchFileWithBool

void Widget::dispatchFileWithBool ( ToxFile  file,
bool   
)
privateslot

Definition at line 1141 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event()

bool Widget::event ( QEvent *  e)
finalprivate

Definition at line 2224 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFilter()

bool Widget::eventFilter ( QObject *  obj,
QEvent *  event 
)
finalprivate

Definition at line 504 of file widget.cpp.

◆ filterGroups()

bool Widget::filterGroups ( FilterCriteria  index)
staticprivate

Definition at line 2413 of file widget.cpp.

Here is the caller graph for this function:

◆ filterOffline()

bool Widget::filterOffline ( FilterCriteria  index)
staticprivate

Definition at line 2424 of file widget.cpp.

Here is the caller graph for this function:

◆ filterOnline()

bool Widget::filterOnline ( FilterCriteria  index)
staticprivate

Definition at line 2435 of file widget.cpp.

Here is the caller graph for this function:

◆ focusChatInput()

void Widget::focusChatInput ( )
private

Definition at line 2697 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ forceShow

void Widget::forceShow ( )
slot

Definition at line 856 of file widget.cpp.

Here is the caller graph for this function:

◆ friendListContextMenu

void Widget::friendListContextMenu ( const QPoint &  pos)
privateslot

Definition at line 2576 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ friendRequestAccepted

void Widget::friendRequestAccepted ( const ToxPk friendPk)
signal
Here is the caller graph for this function:

◆ friendRequested

void Widget::friendRequested ( const ToxId friendAddress,
const QString &  message 
)
signal
Here is the caller graph for this function:

◆ friendRequestsUpdate

void Widget::friendRequestsUpdate ( )
privateslot

Definition at line 2590 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromDialogType()

QString Widget::fromDialogType ( DialogType  type)
static

Definition at line 1661 of file widget.cpp.

Here is the caller graph for this function:

◆ getCamera()

Camera* Widget::getCamera ( )

◆ getFilterCriteria()

Widget::FilterCriteria Widget::getFilterCriteria ( ) const
private

Definition at line 2545 of file widget.cpp.

Here is the caller graph for this function:

◆ getInstance()

static Widget* Widget::getInstance ( IAudioControl *  audio = nullptr)
static

◆ getIsWindowMinimized()

bool Widget::getIsWindowMinimized ( )

◆ getUsername()

QString Widget::getUsername ( )

Definition at line 683 of file widget.cpp.

Here is the call graph for this function:

◆ groupInvitesClear

void Widget::groupInvitesClear ( )
privateslot

Definition at line 2631 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ groupInvitesUpdate

void Widget::groupInvitesUpdate ( )
privateslot

Definition at line 2613 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ groupsVisible()

bool Widget::groupsVisible ( ) const

Definition at line 2570 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hideMainForms()

void Widget::hideMainForms ( GenericChatroomWidget chatroomWidget)
private

Definition at line 998 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ incomingNotification

void Widget::incomingNotification ( uint32_t  friendId)
privateslot

Definition at line 1075 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void Widget::init ( )

Definition at line 156 of file widget.cpp.

Here is the caller graph for this function:

◆ moveEvent()

void Widget::moveEvent ( QMoveEvent *  event)
finalprivate

Definition at line 642 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newFriendMessageAlert()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newGroupMessageAlert()

bool Widget::newGroupMessageAlert ( const GroupId groupId,
const ToxPk authorPk,
const QString &  message,
bool  notify 
)

Definition at line 1622 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newMessageAlert()

bool Widget::newMessageAlert ( QWidget *  currentWindow,
bool  isActive,
bool  sound = true,
bool  notify = true 
)
private

Definition at line 1680 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nextContact

void Widget::nextContact ( )
slot

Definition at line 2473 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ notify()

bool Widget::notify ( QObject *  receiver,
QEvent *  event 
)
private
Here is the caller graph for this function:

◆ onAddClicked

void Widget::onAddClicked ( )
privateslot

Definition at line 863 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onBadProxyCore

void Widget::onBadProxyCore ( )
slot

Definition at line 757 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCallEnd

void Widget::onCallEnd ( )
privateslot

Definition at line 1090 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onChatroomWidgetClicked

void Widget::onChatroomWidgetClicked ( GenericChatroomWidget widget)
privateslot

Definition at line 1352 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onConnected

void Widget::onConnected ( )
slot

Definition at line 735 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCoreChanged

void Widget::onCoreChanged ( Core core)
slot

Definition at line 693 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCoreFriendStatusChanged

void Widget::onCoreFriendStatusChanged ( int  friendId,
Status::Status  status 
)
slot

Definition at line 1254 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onDialogShown

void Widget::onDialogShown ( GenericChatroomWidget widget)
privateslot

Definition at line 1806 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onDisconnected

void Widget::onDisconnected ( )
slot

Definition at line 741 of file widget.cpp.

Here is the caller graph for this function:

◆ onEmptyGroupCreated

void Widget::onEmptyGroupCreated ( uint32_t  groupnumber,
const GroupId groupId,
const QString &  title 
)
slot

Definition at line 2193 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onEventIconTick

void Widget::onEventIconTick ( )
privateslot

Definition at line 2281 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onExtendedMessageSupport

void Widget::onExtendedMessageSupport ( uint32_t  friendNumber,
bool  supported 
)
slot

Definition at line 1442 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onExtReceiptReceived

void Widget::onExtReceiptReceived ( uint32_t  friendNumber,
uint64_t  receiptId 
)
slot

Definition at line 1459 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFailedToStartCore

void Widget::onFailedToStartCore ( )
slot

Definition at line 747 of file widget.cpp.

Here is the caller graph for this function:

◆ onFileReceiveRequested

void Widget::onFileReceiveRequested ( const ToxFile file)
slot

Definition at line 1729 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendAliasChanged

void Widget::onFriendAliasChanged ( const ToxPk friendId,
const QString &  alias 
)
slot

Definition at line 1346 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendDialogShown

void Widget::onFriendDialogShown ( const Friend f)
slot

Definition at line 1815 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendDisplayedNameChanged

void Widget::onFriendDisplayedNameChanged ( const QString &  displayed)
slot

Definition at line 1315 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendExtMessageReceived

void Widget::onFriendExtMessageReceived ( uint32_t  friendNumber,
const QString &  message 
)
slot

Definition at line 1453 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendMessageReceived

void Widget::onFriendMessageReceived ( uint32_t  friendnumber,
const QString &  message,
bool  isAction 
)
slot

Definition at line 1420 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendRequestReceived

void Widget::onFriendRequestReceived ( const ToxPk friendPk,
const QString &  message 
)
slot

Definition at line 1717 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendStatusChanged

void Widget::onFriendStatusChanged ( const ToxPk friendPk,
Status::Status  status 
)
slot

Definition at line 1281 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendStatusMessageChanged

void Widget::onFriendStatusMessageChanged ( int  friendId,
const QString &  message 
)
slot

Definition at line 1299 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendTypingChanged

void Widget::onFriendTypingChanged ( uint32_t  friendnumber,
bool  isTyping 
)
slot

Definition at line 2370 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onFriendUsernameChanged

void Widget::onFriendUsernameChanged ( int  friendId,
const QString &  username 
)
slot

Definition at line 1333 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupClicked

void Widget::onGroupClicked ( )
privateslot

Definition at line 879 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupDialogShown

void Widget::onGroupDialogShown ( Group g)
slot

Definition at line 1820 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupInviteAccepted

void Widget::onGroupInviteAccepted ( const GroupInvite inviteInfo)
slot

Definition at line 1990 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupInviteReceived

void Widget::onGroupInviteReceived ( const GroupInvite inviteInfo)
slot

Definition at line 1960 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupJoined

void Widget::onGroupJoined ( int  groupNum,
const GroupId groupId 
)
slot

Definition at line 2209 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupMessageReceived

void Widget::onGroupMessageReceived ( int  groupnumber,
int  peernumber,
const QString &  message,
bool  isAction 
)
slot

Definition at line 1999 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupPeerAudioPlaying

void Widget::onGroupPeerAudioPlaying ( int  groupnumber,
ToxPk  peerPk 
)
slot

Definition at line 2050 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupPeerlistChanged

void Widget::onGroupPeerlistChanged ( uint32_t  groupnumber)
slot

Definition at line 2010 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupPeerNameChanged

void Widget::onGroupPeerNameChanged ( uint32_t  groupnumber,
const ToxPk peerPk,
const QString &  newName 
)
slot

Definition at line 2018 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupSendFailed

void Widget::onGroupSendFailed ( uint32_t  groupnumber)
slot

Definition at line 2360 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onGroupTitleChanged

void Widget::onGroupTitleChanged ( uint32_t  groupnumber,
const QString &  author,
const QString &  title 
)
slot

Definition at line 2028 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onIconClick

void Widget::onIconClick ( QSystemTrayIcon::ActivationReason  reason)
privateslot

Definition at line 942 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onReceiptReceived

void Widget::onReceiptReceived ( int  friendId,
ReceiptNum  receipt 
)
slot

Definition at line 1431 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onRejectCall

void Widget::onRejectCall ( uint32_t  friendId)
privateslot

Definition at line 1159 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSelfAvatarLoaded

void Widget::onSelfAvatarLoaded ( const QPixmap &  pic)
slot

Definition at line 688 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSeparateWindowChanged

void Widget::onSeparateWindowChanged ( bool  separate,
bool  clicked 
)
slot

Definition at line 782 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSeparateWindowClicked

void Widget::onSeparateWindowClicked ( bool  separate)
slot

Definition at line 777 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSetShowSystemTray

void Widget::onSetShowSystemTray ( bool  newValue)
privateslot

Definition at line 2381 of file widget.cpp.

Here is the caller graph for this function:

◆ onShowSettings

void Widget::onShowSettings ( )
slot

Definition at line 966 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSplitterMoved

void Widget::onSplitterMoved ( int  pos,
int  index 
)
privateslot

Definition at line 2401 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onStatusMessageChanged

void Widget::onStatusMessageChanged ( const QString &  newStatusMessage)
privateslot

Definition at line 1027 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onStatusSet

void Widget::onStatusSet ( Status::Status  status)
slot

Definition at line 770 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onStopNotification

void Widget::onStopNotification ( )
privateslot

Widget::onStopNotification Stop the notification sound.

Definition at line 1098 of file widget.cpp.

Here is the caller graph for this function:

◆ onTransferClicked

void Widget::onTransferClicked ( )
privateslot

Definition at line 895 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTryCreateTrayIcon

void Widget::onTryCreateTrayIcon ( )
privateslot

Definition at line 2289 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onUpdateAvailable

void Widget::onUpdateAvailable ( )
slot

Definition at line 1835 of file widget.cpp.

Here is the caller graph for this function:

◆ onUserAwayCheck

void Widget::onUserAwayCheck ( )
privateslot

Definition at line 2261 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openDialog()

void Widget::openDialog ( GenericChatroomWidget widget,
bool  newWindow 
)
private

Definition at line 1362 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openNewDialog

void Widget::openNewDialog ( GenericChatroomWidget widget)
privateslot

Definition at line 1357 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ outgoingNotification

void Widget::outgoingNotification ( )
privateslot

Definition at line 1084 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playNotificationSound()

void Widget::playNotificationSound ( IAudioSink::Sound  sound,
bool  loop = false 
)
private

Plays a sound via the audioNotification AudioSink.

Parameters
soundSound to play
loopif true, loop the sound until onStopNotification() is called

Definition at line 1046 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepareIcon()

QIcon Widget::prepareIcon ( QString  path,
int  w = 0,
int  h = 0 
)
inlinestatic

Definition at line 2484 of file widget.cpp.

Here is the caller graph for this function:

◆ previousContact

void Widget::previousContact ( )
slot

Definition at line 2478 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshPeerListsLocal

void Widget::refreshPeerListsLocal ( const QString &  username)
slot

Definition at line 2708 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ registerContentDialog

void Widget::registerContentDialog ( ContentDialog contentDialog) const
privateslot

Definition at line 1850 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadTheme

void Widget::reloadTheme ( )
slot

Definition at line 2454 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFriend [1/2]

void Widget::removeFriend ( const ToxPk friendId)
privateslot

Definition at line 1801 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFriend() [2/2]

void Widget::removeFriend ( Friend f,
bool  fake = false 
)
private

Definition at line 1746 of file widget.cpp.

Here is the call graph for this function:

◆ removeGroup [1/2]

void Widget::removeGroup ( const GroupId groupId)
privateslot

Definition at line 2102 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeGroup() [2/2]

void Widget::removeGroup ( Group g,
bool  fake = false 
)
private

Definition at line 2059 of file widget.cpp.

Here is the call graph for this function:

◆ resetIcon()

void Widget::resetIcon ( )

Used to reset the blinking icon.

Definition at line 2217 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resized

void Widget::resized ( )
signal

◆ resizeEvent()

void Widget::resizeEvent ( QResizeEvent *  event)
finalprivate

Definition at line 677 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void Widget::retranslateUi ( )
private

Definition at line 2649 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveSplitterGeometry()

void Widget::saveSplitterGeometry ( )
private

Definition at line 2394 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveWindowGeometry()

void Widget::saveWindowGeometry ( )
private

Definition at line 2388 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ searchCircle

void Widget::searchCircle ( CircleWidget circleWidget)
privateslot

Definition at line 2561 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ searchContacts()

void Widget::searchContacts ( )
private

Definition at line 2510 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setActiveToolMenuButton()

void Widget::setActiveToolMenuButton ( ActiveToolMenuButton  newActiveButton)
private

Definition at line 2637 of file widget.cpp.

Here is the caller graph for this function:

◆ setCentralWidget()

void Widget::setCentralWidget ( QWidget *  widget,
const QString &  widgetName 
)

◆ setStatusAway

void Widget::setStatusAway ( )
privateslot

Definition at line 2342 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatusBusy

void Widget::setStatusBusy ( )
privateslot

Definition at line 2351 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatusMessage

void Widget::setStatusMessage ( const QString &  statusMessage)
slot

Definition at line 1033 of file widget.cpp.

Here is the caller graph for this function:

◆ setStatusOnline

void Widget::setStatusOnline ( )
privateslot

Definition at line 2333 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUsername

void Widget::setUsername ( const QString &  username)
slot

Definition at line 1013 of file widget.cpp.

Here is the caller graph for this function:

◆ setWindowTitle

void Widget::setWindowTitle ( const QString &  title)
slot

<[^>]*> Regexp to remove HTML tags, in case someone used them in title

Definition at line 844 of file widget.cpp.

Here is the caller graph for this function:

◆ showProfile

void Widget::showProfile ( )
privateslot

Definition at line 982 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showUpdateDownloadProgress()

void Widget::showUpdateDownloadProgress ( )

Switches to the About settings page.

Definition at line 636 of file widget.cpp.

Here is the call graph for this function:

◆ statusMessageChanged

void Widget::statusMessageChanged ( const QString &  statusMessage)
signal

◆ statusSelected

void Widget::statusSelected ( Status::Status  status)
signal

◆ statusSet

void Widget::statusSet ( Status::Status  status)
signal
Here is the caller graph for this function:

◆ titleChangedByUser

void Widget::titleChangedByUser ( const QString &  title)
slot

Definition at line 2043 of file widget.cpp.

Here is the caller graph for this function:

◆ toggleFullscreen

void Widget::toggleFullscreen ( )
slot

Definition at line 1826 of file widget.cpp.

Here is the caller graph for this function:

◆ updateFilterText()

void Widget::updateFilterText ( )
private

Definition at line 2537 of file widget.cpp.

Here is the caller graph for this function:

◆ updateFriendActivity

void Widget::updateFriendActivity ( const Friend frnd)
privateslot

Definition at line 1735 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateIcons()

void Widget::updateIcons ( )

Definition at line 532 of file widget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usernameChanged

void Widget::usernameChanged ( const QString &  username)
signal

◆ windowStateChanged

void Widget::windowStateChanged ( Qt::WindowStates  states)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ actionLogout

QAction* Widget::actionLogout
private

Definition at line 291 of file widget.h.

◆ actionQuit

QAction* Widget::actionQuit
private

Definition at line 292 of file widget.h.

◆ actionShow

QAction* Widget::actionShow
private

Definition at line 293 of file widget.h.

◆ activeChatroomWidget

GenericChatroomWidget* Widget::activeChatroomWidget
private

Definition at line 322 of file widget.h.

◆ addFriendForm

AddFriendForm* Widget::addFriendForm
private

Definition at line 312 of file widget.h.

◆ audio

IAudioControl& Widget::audio
private

Definition at line 336 of file widget.h.

◆ audioNotification

std::unique_ptr<IAudioSink> Widget::audioNotification
private

Definition at line 337 of file widget.h.

◆ autoAwayActive

bool Widget::autoAwayActive = false
private

Definition at line 326 of file widget.h.

◆ centralLayout

QSplitter* Widget::centralLayout
private

Definition at line 309 of file widget.h.

◆ chatForms

QMap<ToxPk, ChatForm*> Widget::chatForms
private

Definition at line 350 of file widget.h.

◆ contactListWidget

FriendListWidget* Widget::contactListWidget
private

Definition at line 323 of file widget.h.

◆ contentLayout

ContentLayout* Widget::contentLayout
private

Definition at line 311 of file widget.h.

◆ core

Core* Widget::core = nullptr
private

Definition at line 364 of file widget.h.

◆ dragPosition

QPoint Widget::dragPosition
private

Definition at line 310 of file widget.h.

◆ eventFlag

bool Widget::eventFlag
private

Definition at line 328 of file widget.h.

◆ eventIcon

bool Widget::eventIcon
private

Definition at line 329 of file widget.h.

◆ filesForm

FilesForm* Widget::filesForm
private

Definition at line 320 of file widget.h.

◆ filterAllAction

QAction* Widget::filterAllAction
private

Definition at line 298 of file widget.h.

◆ filterDisplayActivity

QAction* Widget::filterDisplayActivity
private

Definition at line 306 of file widget.h.

◆ filterDisplayGroup

QActionGroup* Widget::filterDisplayGroup
private

Definition at line 304 of file widget.h.

◆ filterDisplayName

QAction* Widget::filterDisplayName
private

Definition at line 305 of file widget.h.

◆ filterFriendsAction

QAction* Widget::filterFriendsAction
private

Definition at line 301 of file widget.h.

◆ filterGroup

QActionGroup* Widget::filterGroup
private

Definition at line 297 of file widget.h.

◆ filterGroupsAction

QAction* Widget::filterGroupsAction
private

Definition at line 302 of file widget.h.

◆ filterMenu

QMenu* Widget::filterMenu
private

Definition at line 295 of file widget.h.

◆ filterOfflineAction

QAction* Widget::filterOfflineAction
private

Definition at line 300 of file widget.h.

◆ filterOnlineAction

QAction* Widget::filterOnlineAction
private

Definition at line 299 of file widget.h.

◆ friendAlertConnections

QMap<ToxPk, QMetaObject::Connection> Widget::friendAlertConnections
private

Definition at line 347 of file widget.h.

◆ friendChatLogs

QMap<ToxPk, std::shared_ptr<ChatHistory> > Widget::friendChatLogs
private

Definition at line 348 of file widget.h.

◆ friendChatrooms

QMap<ToxPk, std::shared_ptr<FriendChatroom> > Widget::friendChatrooms
private

Definition at line 349 of file widget.h.

◆ friendMessageDispatchers

QMap<ToxPk, std::shared_ptr<FriendMessageDispatcher> > Widget::friendMessageDispatchers
private

Definition at line 342 of file widget.h.

◆ friendRequestsButton

QPushButton* Widget::friendRequestsButton
private

Definition at line 331 of file widget.h.

◆ friendWidgets

QMap<ToxPk, FriendWidget*> Widget::friendWidgets
private

Definition at line 340 of file widget.h.

◆ groupAlertConnections

QMap<GroupId, QMetaObject::Connection> Widget::groupAlertConnections
private

Definition at line 360 of file widget.h.

◆ groupChatForms

QMap<GroupId, QSharedPointer<GroupChatForm> > Widget::groupChatForms
private

Definition at line 363 of file widget.h.

◆ groupChatLogs

QMap<GroupId, std::shared_ptr<IChatLog> > Widget::groupChatLogs
private

Definition at line 361 of file widget.h.

◆ groupChatrooms

QMap<GroupId, std::shared_ptr<GroupChatroom> > Widget::groupChatrooms
private

Definition at line 362 of file widget.h.

◆ groupInviteForm

GroupInviteForm* Widget::groupInviteForm
private

Definition at line 313 of file widget.h.

◆ groupInvitesButton

QPushButton* Widget::groupInvitesButton
private

Definition at line 332 of file widget.h.

◆ groupMessageDispatchers

QMap<GroupId, std::shared_ptr<GroupMessageDispatcher> > Widget::groupMessageDispatchers
private

Definition at line 354 of file widget.h.

◆ groupWidgets

QMap<GroupId, GroupWidget*> Widget::groupWidgets
private

Definition at line 353 of file widget.h.

◆ icon

std::unique_ptr<QSystemTrayIcon> Widget::icon
private

Definition at line 286 of file widget.h.

◆ icon_size

int Widget::icon_size
private

Definition at line 334 of file widget.h.

◆ instance

Widget * Widget::instance {nullptr}
staticprivate

Definition at line 321 of file widget.h.

◆ negotiateTimers

std::map<ToxPk, std::unique_ptr<QTimer> > Widget::negotiateTimers
private

Definition at line 351 of file widget.h.

◆ profile

Profile& Widget::profile
private

Definition at line 285 of file widget.h.

◆ profileForm

ProfileForm* Widget::profileForm
private

Definition at line 316 of file widget.h.

◆ profileInfo

ProfileInfo* Widget::profileInfo
private

Definition at line 315 of file widget.h.

◆ profilePicture

MaskablePixmapWidget* Widget::profilePicture
private

Definition at line 324 of file widget.h.

◆ settings

Settings& Widget::settings
private

Definition at line 338 of file widget.h.

◆ settingsWidget

QPointer<SettingsWidget> Widget::settingsWidget
private

Definition at line 318 of file widget.h.

◆ sharedMessageProcessorParams

std::unique_ptr<MessageProcessor::SharedParams> Widget::sharedMessageProcessorParams
private

Definition at line 367 of file widget.h.

◆ statusAway

QAction* Widget::statusAway
private

Definition at line 289 of file widget.h.

◆ statusBusy

QAction* Widget::statusBusy
private

Definition at line 290 of file widget.h.

◆ statusOnline

QAction* Widget::statusOnline
private

Definition at line 288 of file widget.h.

◆ timer

QTimer* Widget::timer
private

Definition at line 327 of file widget.h.

◆ trayMenu

QMenu* Widget::trayMenu
private

Definition at line 287 of file widget.h.

◆ ui

Ui::MainWindow* Widget::ui
private

Definition at line 308 of file widget.h.

◆ unreadGroupInvites

unsigned int Widget::unreadGroupInvites
private

Definition at line 333 of file widget.h.

◆ updateCheck

std::unique_ptr<UpdateCheck> Widget::updateCheck
private

Definition at line 319 of file widget.h.

◆ wasMaximized

bool Widget::wasMaximized = false
private

Definition at line 330 of file widget.h.


The documentation for this class was generated from the following files: