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

#include <groupwidget.h>

Inheritance diagram for GroupWidget:
Inheritance graph
Collaboration diagram for GroupWidget:
Collaboration graph

Signals

void groupWidgetClicked (GroupWidget *widget)
 
void removeGroup (const GroupId &groupId)
 
- Signals inherited from GenericChatroomWidget
void chatroomWidgetClicked (GenericChatroomWidget *widget)
 
void newWindowOpened (GenericChatroomWidget *widget)
 
void middleMouseClicked ()
 

Public Member Functions

 GroupWidget (std::shared_ptr< GroupChatroom > chatroom, bool compact)
 
 ~GroupWidget ()
 
void setAsInactiveChatroom () final
 
void setAsActiveChatroom () final
 
void updateStatusLight () final
 
void resetEventFlags () final
 
QString getStatusString () const final
 
GroupgetGroup () const final
 
const ContactgetContact () const final
 
void setName (const QString &name)
 
void editName ()
 
bool isFriend () const final
 
bool isGroup () const final
 
QString getNameItem () const final
 
bool isOnline () const final
 
bool widgetIsVisible () const final
 
QDateTime getLastActivity () const final
 
QWidget * getWidget () final
 
void setWidgetVisible (bool visible) final
 
- Public Member Functions inherited from GenericChatroomWidget
 GenericChatroomWidget (bool compact, QWidget *parent=nullptr)
 
- Public Member Functions inherited from GenericChatItemWidget
 GenericChatItemWidget (bool compact, QWidget *parent=nullptr)
 
bool isCompact () const
 
void setCompact (bool compact)
 
QString getName () const
 
void searchName (const QString &searchString, bool hideAll)
 
- Public Member Functions inherited from IFriendListItem
 IFriendListItem ()=default
 
virtual ~IFriendListItem ()
 
 IFriendListItem (const IFriendListItem &)=default
 
IFriendListItemoperator= (const IFriendListItem &)=default
 
 IFriendListItem (IFriendListItem &&)=default
 
IFriendListItemoperator= (IFriendListItem &&)=default
 
virtual int getCircleId () const
 
int getNameSortedPos () const
 
void setNameSortedPos (int pos)
 

Public Attributes

GroupId groupId
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event) final
 
void mousePressEvent (QMouseEvent *event) final
 
void mouseMoveEvent (QMouseEvent *event) final
 
void dragEnterEvent (QDragEnterEvent *ev) override
 
void dragLeaveEvent (QDragLeaveEvent *ev) override
 
void dropEvent (QDropEvent *ev) override
 
- Protected Member Functions inherited from GenericChatroomWidget
void mouseReleaseEvent (QMouseEvent *event) override
 
void enterEvent (QEvent *e) override
 
void leaveEvent (QEvent *e) override
 
void setActive (bool active)
 

Private Slots

void retranslateUi ()
 
void updateTitle (const QString &author, const QString &newName)
 
void updateUserCount (int numPeers)
 

Private Attributes

std::shared_ptr< GroupChatroomchatroom
 

Additional Inherited Members

- Public Types inherited from GenericChatItemWidget
enum  ItemType { GroupItem, FriendOfflineItem, FriendOnlineItem }
 
- Public Slots inherited from GenericChatroomWidget
virtual const FriendgetFriend () const
 
bool eventFilter (QObject *, QEvent *) final
 
bool isActive ()
 
void setName (const QString &name)
 
void setStatusMsg (const QString &status)
 
QString getStatusMsg () const
 
QString getTitle () const
 
void activate ()
 
void compactChange (bool compact)
 
void reloadTheme () override
 
- Public Slots inherited from GenericChatItemWidget
virtual void reloadTheme ()
 
- Protected Attributes inherited from GenericChatroomWidget
QPoint dragStartPos
 
QColor lastColor
 
QHBoxLayout * mainLayout = nullptr
 
QVBoxLayout * textLayout = nullptr
 
MaskablePixmapWidgetavatar
 
CroppingLabelstatusMessageLabel
 
bool active
 
- Protected Attributes inherited from GenericChatItemWidget
CroppingLabelnameLabel
 
QLabel statusPic
 
- Properties inherited from GenericChatItemWidget
bool compact
 

Detailed Description

Definition at line 30 of file groupwidget.h.

Constructor & Destructor Documentation

◆ GroupWidget()

GroupWidget::GroupWidget ( std::shared_ptr< GroupChatroom chatroom,
bool  compact 
)

Definition at line 44 of file groupwidget.cpp.

◆ ~GroupWidget()

GroupWidget::~GroupWidget ( )

Definition at line 65 of file groupwidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ contextMenuEvent()

void GroupWidget::contextMenuEvent ( QContextMenuEvent *  event)
finalprotected

Definition at line 76 of file groupwidget.cpp.

Here is the call graph for this function:

◆ dragEnterEvent()

void GroupWidget::dragEnterEvent ( QDragEnterEvent *  ev)
overrideprotected

Definition at line 248 of file groupwidget.cpp.

◆ dragLeaveEvent()

void GroupWidget::dragLeaveEvent ( QDragLeaveEvent *  ev)
overrideprotected

Definition at line 263 of file groupwidget.cpp.

◆ dropEvent()

void GroupWidget::dropEvent ( QDropEvent *  ev)
overrideprotected

Definition at line 270 of file groupwidget.cpp.

◆ editName()

void GroupWidget::editName ( )

Definition at line 187 of file groupwidget.cpp.

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

◆ getContact()

const Contact * GroupWidget::getContact ( ) const
finalvirtual

Implements GenericChatroomWidget.

Definition at line 238 of file groupwidget.cpp.

Here is the call graph for this function:

◆ getGroup()

Group * GroupWidget::getGroup ( ) const
finalvirtual

Reimplemented from GenericChatroomWidget.

Definition at line 233 of file groupwidget.cpp.

Here is the caller graph for this function:

◆ getLastActivity()

QDateTime GroupWidget::getLastActivity ( ) const
finalvirtual

Implements IFriendListItem.

Definition at line 217 of file groupwidget.cpp.

◆ getNameItem()

QString GroupWidget::getNameItem ( ) const
finalvirtual

Implements IFriendListItem.

Definition at line 202 of file groupwidget.cpp.

Here is the call graph for this function:

◆ getStatusString()

QString GroupWidget::getStatusString ( ) const
finalvirtual

Implements GenericChatroomWidget.

Definition at line 178 of file groupwidget.cpp.

◆ getWidget()

QWidget * GroupWidget::getWidget ( )
finalvirtual

Implements IFriendListItem.

Definition at line 222 of file groupwidget.cpp.

◆ groupWidgetClicked

void GroupWidget::groupWidgetClicked ( GroupWidget widget)
signal

◆ isFriend()

bool GroupWidget::isFriend ( ) const
finalvirtual

Implements IFriendListItem.

Definition at line 192 of file groupwidget.cpp.

◆ isGroup()

bool GroupWidget::isGroup ( ) const
finalvirtual

Implements IFriendListItem.

Definition at line 197 of file groupwidget.cpp.

◆ isOnline()

bool GroupWidget::isOnline ( ) const
finalvirtual

Implements IFriendListItem.

Definition at line 207 of file groupwidget.cpp.

◆ mouseMoveEvent()

void GroupWidget::mouseMoveEvent ( QMouseEvent *  event)
finalprotected

Definition at line 133 of file groupwidget.cpp.

Here is the call graph for this function:

◆ mousePressEvent()

void GroupWidget::mousePressEvent ( QMouseEvent *  event)
finalprotected

Definition at line 124 of file groupwidget.cpp.

◆ removeGroup

void GroupWidget::removeGroup ( const GroupId groupId)
signal
Here is the caller graph for this function:

◆ resetEventFlags()

void GroupWidget::resetEventFlags ( )
finalvirtual

Implements GenericChatroomWidget.

Definition at line 243 of file groupwidget.cpp.

◆ retranslateUi

void GroupWidget::retranslateUi ( )
privateslot

Definition at line 292 of file groupwidget.cpp.

Here is the call graph for this function:

◆ setAsActiveChatroom()

void GroupWidget::setAsActiveChatroom ( )
finalvirtual

Implements GenericChatroomWidget.

Definition at line 157 of file groupwidget.cpp.

Here is the call graph for this function:

◆ setAsInactiveChatroom()

void GroupWidget::setAsInactiveChatroom ( )
finalvirtual

Implements GenericChatroomWidget.

Definition at line 163 of file groupwidget.cpp.

Here is the call graph for this function:

◆ setName()

void GroupWidget::setName ( const QString &  name)

Definition at line 287 of file groupwidget.cpp.

Here is the call graph for this function:

◆ setWidgetVisible()

void GroupWidget::setWidgetVisible ( bool  visible)
finalvirtual

Implements IFriendListItem.

Definition at line 227 of file groupwidget.cpp.

◆ updateStatusLight()

void GroupWidget::updateStatusLight ( )
finalvirtual

Implements GenericChatroomWidget.

Definition at line 169 of file groupwidget.cpp.

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

◆ updateTitle

void GroupWidget::updateTitle ( const QString &  author,
const QString &  newName 
)
privateslot

Definition at line 70 of file groupwidget.cpp.

Here is the call graph for this function:

◆ updateUserCount

void GroupWidget::updateUserCount ( int  numPeers)
privateslot

Definition at line 152 of file groupwidget.cpp.

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

◆ widgetIsVisible()

bool GroupWidget::widgetIsVisible ( ) const
finalvirtual

Implements IFriendListItem.

Definition at line 212 of file groupwidget.cpp.

Member Data Documentation

◆ chatroom

std::shared_ptr<GroupChatroom> GroupWidget::chatroom
private

Definition at line 76 of file groupwidget.h.

◆ groupId

GroupId GroupWidget::groupId

Definition at line 73 of file groupwidget.h.


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