qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GenericChatroomWidget Class Referenceabstract

#include <genericchatroomwidget.h>

Inheritance diagram for GenericChatroomWidget:
Inheritance graph
Collaboration diagram for GenericChatroomWidget:
Collaboration graph

Public Slots

virtual void setAsActiveChatroom ()=0
 
virtual void setAsInactiveChatroom ()=0
 
virtual void updateStatusLight ()=0
 
virtual void resetEventFlags ()=0
 
virtual QString getStatusString () const =0
 
virtual const ContactgetContact () const =0
 
virtual const FriendgetFriend () const
 
virtual GroupgetGroup () 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 ()
 

Signals

void chatroomWidgetClicked (GenericChatroomWidget *widget)
 
void newWindowOpened (GenericChatroomWidget *widget)
 
void middleMouseClicked ()
 

Public Member Functions

 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)
 

Protected Member Functions

void mouseReleaseEvent (QMouseEvent *event) override
 
void enterEvent (QEvent *e) override
 
void leaveEvent (QEvent *e) override
 
void setActive (bool active)
 

Protected Attributes

QPoint dragStartPos
 
QColor lastColor
 
QHBoxLayout * mainLayout = nullptr
 
QVBoxLayout * textLayout = nullptr
 
MaskablePixmapWidgetavatar
 
CroppingLabelstatusMessageLabel
 
bool active
 
- Protected Attributes inherited from GenericChatItemWidget
CroppingLabelnameLabel
 
QLabel statusPic
 

Additional Inherited Members

- Public Types inherited from GenericChatItemWidget
enum  ItemType { GroupItem, FriendOfflineItem, FriendOnlineItem }
 
- Properties inherited from GenericChatItemWidget
bool compact
 

Detailed Description

Definition at line 32 of file genericchatroomwidget.h.

Constructor & Destructor Documentation

◆ GenericChatroomWidget()

GenericChatroomWidget::GenericChatroomWidget ( bool  compact,
QWidget *  parent = nullptr 
)
explicit

Definition at line 28 of file genericchatroomwidget.cpp.

Member Function Documentation

◆ activate

void GenericChatroomWidget::activate ( )
slot

Definition at line 164 of file genericchatroomwidget.cpp.

Here is the caller graph for this function:

◆ chatroomWidgetClicked

void GenericChatroomWidget::chatroomWidgetClicked ( GenericChatroomWidget widget)
signal
Here is the caller graph for this function:

◆ compactChange

void GenericChatroomWidget::compactChange ( bool  compact)
slot

Definition at line 64 of file genericchatroomwidget.cpp.

Here is the call graph for this function:

◆ enterEvent()

void GenericChatroomWidget::enterEvent ( QEvent *  e)
overrideprotected

Definition at line 180 of file genericchatroomwidget.cpp.

◆ eventFilter

bool GenericChatroomWidget::eventFilter ( QObject *  ,
QEvent *   
)
finalslot

Definition at line 59 of file genericchatroomwidget.cpp.

◆ getContact

virtual const Contact* GenericChatroomWidget::getContact ( ) const
pure virtualslot

Implemented in FriendWidget, and GroupWidget.

Here is the caller graph for this function:

◆ getFriend

virtual const Friend* GenericChatroomWidget::getFriend ( ) const
inlinevirtualslot

Reimplemented in FriendWidget.

Definition at line 45 of file genericchatroomwidget.h.

Here is the caller graph for this function:

◆ getGroup

virtual Group* GenericChatroomWidget::getGroup ( ) const
inlinevirtualslot

Reimplemented in GroupWidget.

Definition at line 49 of file genericchatroomwidget.h.

Here is the caller graph for this function:

◆ getStatusMsg

QString GenericChatroomWidget::getStatusMsg ( ) const
slot

Definition at line 144 of file genericchatroomwidget.cpp.

Here is the caller graph for this function:

◆ getStatusString

virtual QString GenericChatroomWidget::getStatusString ( ) const
pure virtualslot

Implemented in FriendWidget, and GroupWidget.

Here is the caller graph for this function:

◆ getTitle

QString GenericChatroomWidget::getTitle ( ) const
slot

Definition at line 149 of file genericchatroomwidget.cpp.

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

◆ isActive

bool GenericChatroomWidget::isActive ( )
slot

Definition at line 119 of file genericchatroomwidget.cpp.

Here is the caller graph for this function:

◆ leaveEvent()

void GenericChatroomWidget::leaveEvent ( QEvent *  e)
overrideprotected

Definition at line 186 of file genericchatroomwidget.cpp.

◆ middleMouseClicked

void GenericChatroomWidget::middleMouseClicked ( )
signal
Here is the caller graph for this function:

◆ mouseReleaseEvent()

void GenericChatroomWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 169 of file genericchatroomwidget.cpp.

◆ newWindowOpened

void GenericChatroomWidget::newWindowOpened ( GenericChatroomWidget widget)
signal
Here is the caller graph for this function:

◆ reloadTheme

void GenericChatroomWidget::reloadTheme ( )
overrideslot

Definition at line 159 of file genericchatroomwidget.cpp.

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

◆ resetEventFlags

virtual void GenericChatroomWidget::resetEventFlags ( )
pure virtualslot

Implemented in FriendWidget, and GroupWidget.

Here is the caller graph for this function:

◆ setActive()

void GenericChatroomWidget::setActive ( bool  active)
protected

Definition at line 124 of file genericchatroomwidget.cpp.

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

◆ setAsActiveChatroom

virtual void GenericChatroomWidget::setAsActiveChatroom ( )
pure virtualslot

Implemented in FriendWidget, and GroupWidget.

Here is the caller graph for this function:

◆ setAsInactiveChatroom

virtual void GenericChatroomWidget::setAsInactiveChatroom ( )
pure virtualslot

Implemented in FriendWidget, and GroupWidget.

Here is the caller graph for this function:

◆ setName

void GenericChatroomWidget::setName ( const QString &  name)
slot

Definition at line 134 of file genericchatroomwidget.cpp.

Here is the call graph for this function:

◆ setStatusMsg

void GenericChatroomWidget::setStatusMsg ( const QString &  status)
slot

Definition at line 139 of file genericchatroomwidget.cpp.

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

◆ updateStatusLight

virtual void GenericChatroomWidget::updateStatusLight ( )
pure virtualslot

Implemented in FriendWidget, and GroupWidget.

Here is the caller graph for this function:

Member Data Documentation

◆ active

bool GenericChatroomWidget::active
protected

Definition at line 85 of file genericchatroomwidget.h.

◆ avatar

MaskablePixmapWidget* GenericChatroomWidget::avatar
protected

Definition at line 83 of file genericchatroomwidget.h.

◆ dragStartPos

QPoint GenericChatroomWidget::dragStartPos
protected

Definition at line 79 of file genericchatroomwidget.h.

◆ lastColor

QColor GenericChatroomWidget::lastColor
protected

Definition at line 80 of file genericchatroomwidget.h.

◆ mainLayout

QHBoxLayout* GenericChatroomWidget::mainLayout = nullptr
protected

Definition at line 81 of file genericchatroomwidget.h.

◆ statusMessageLabel

CroppingLabel* GenericChatroomWidget::statusMessageLabel
protected

Definition at line 84 of file genericchatroomwidget.h.

◆ textLayout

QVBoxLayout* GenericChatroomWidget::textLayout = nullptr
protected

Definition at line 82 of file genericchatroomwidget.h.


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