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

#include <circlewidget.h>

Inheritance diagram for CircleWidget:
Inheritance graph
Collaboration diagram for CircleWidget:
Collaboration graph

Signals

void renameRequested (CircleWidget *circleWidget, const QString &newName)
 
void newContentDialog (ContentDialog &contentDialog)
 

Public Member Functions

 CircleWidget (const Core &_core, FriendListWidget *parent, int id)
 
 ~CircleWidget ()
 
void editName ()
 
- Public Member Functions inherited from CategoryWidget
 CategoryWidget (bool compact, QWidget *parent=nullptr)
 
bool isExpanded () const
 
void setExpanded (bool isExpanded, bool save=true)
 
void setName (const QString &name, bool save=true)
 
void addFriendWidget (FriendWidget *w, Status::Status s)
 
void removeFriendWidget (FriendWidget *w, Status::Status s)
 
void updateStatus ()
 
bool hasChatrooms () const
 
bool cycleContacts (bool forward)
 
bool cycleContacts (FriendWidget *activeChatroomWidget, bool forward)
 
void search (const QString &searchString, bool updateAll=false, bool hideOnline=false, bool hideOffline=false)
 
- 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)
 

Static Public Member Functions

static CircleWidgetgetFromID (int id)
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event) final
 
void dragEnterEvent (QDragEnterEvent *event) final
 
void dragLeaveEvent (QDragLeaveEvent *event) final
 
void dropEvent (QDropEvent *event) final
 
- Protected Member Functions inherited from CategoryWidget
void leaveEvent (QEvent *event) final
 
void mouseReleaseEvent (QMouseEvent *event) final
 
void editName ()
 
void setContainerAttribute (Qt::WidgetAttribute attribute, bool enabled)
 
QLayout * friendOnlineLayout () const
 
QLayout * friendOfflineLayout () const
 
void emitChatroomWidget (QLayout *layout, int index)
 

Private Member Functions

void onSetName () final
 
void onExpand () final
 
void onAddFriendWidget (FriendWidget *w) final
 
void updateID (int index)
 

Private Attributes

int id
 
const Corecore
 

Static Private Attributes

static QHash< int, CircleWidget * > circleList
 

Additional Inherited Members

- Public Types inherited from GenericChatItemWidget
enum  ItemType { GroupItem, FriendOfflineItem, FriendOnlineItem }
 
- Public Slots inherited from CategoryWidget
void onCompactChanged (bool compact)
 
void moveFriendWidgets (FriendListWidget *friendList)
 
- Public Slots inherited from GenericChatItemWidget
virtual void reloadTheme ()
 
- Protected Attributes inherited from GenericChatItemWidget
CroppingLabelnameLabel
 
QLabel statusPic
 
- Properties inherited from GenericChatItemWidget
bool compact
 

Detailed Description

Definition at line 27 of file circlewidget.h.

Constructor & Destructor Documentation

◆ CircleWidget()

CircleWidget::CircleWidget ( const Core _core,
FriendListWidget parent,
int  id 
)
explicit

Definition at line 43 of file circlewidget.cpp.

◆ ~CircleWidget()

CircleWidget::~CircleWidget ( )

Definition at line 65 of file circlewidget.cpp.

Member Function Documentation

◆ contextMenuEvent()

void CircleWidget::contextMenuEvent ( QContextMenuEvent *  event)
finalprotected

Definition at line 86 of file circlewidget.cpp.

Here is the call graph for this function:

◆ dragEnterEvent()

void CircleWidget::dragEnterEvent ( QDragEnterEvent *  event)
finalprotected

Definition at line 144 of file circlewidget.cpp.

Here is the call graph for this function:

◆ dragLeaveEvent()

void CircleWidget::dragLeaveEvent ( QDragLeaveEvent *  event)
finalprotected

Definition at line 157 of file circlewidget.cpp.

Here is the call graph for this function:

◆ dropEvent()

void CircleWidget::dropEvent ( QDropEvent *  event)
finalprotected

Definition at line 162 of file circlewidget.cpp.

Here is the call graph for this function:

◆ editName()

void CircleWidget::editName ( )

Definition at line 71 of file circlewidget.cpp.

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

◆ getFromID()

CircleWidget * CircleWidget::getFromID ( int  id)
static

Definition at line 76 of file circlewidget.cpp.

Here is the caller graph for this function:

◆ newContentDialog

void CircleWidget::newContentDialog ( ContentDialog contentDialog)
signal
Here is the caller graph for this function:

◆ onAddFriendWidget()

void CircleWidget::onAddFriendWidget ( FriendWidget w)
finalprivatevirtual

Reimplemented from CategoryWidget.

Definition at line 206 of file circlewidget.cpp.

Here is the call graph for this function:

◆ onExpand()

void CircleWidget::onExpand ( )
finalprivatevirtual

Reimplemented from CategoryWidget.

Definition at line 200 of file circlewidget.cpp.

Here is the call graph for this function:

◆ onSetName()

void CircleWidget::onSetName ( )
finalprivatevirtual

Reimplemented from CategoryWidget.

Definition at line 195 of file circlewidget.cpp.

Here is the call graph for this function:

◆ renameRequested

void CircleWidget::renameRequested ( CircleWidget circleWidget,
const QString &  newName 
)
signal
Here is the caller graph for this function:

◆ updateID()

void CircleWidget::updateID ( int  index)
private

Definition at line 213 of file circlewidget.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ circleList

QHash< int, CircleWidget * > CircleWidget::circleList
staticprivate

Definition at line 53 of file circlewidget.h.

◆ core

const Core& CircleWidget::core
private

Definition at line 56 of file circlewidget.h.

◆ id

int CircleWidget::id
private

Definition at line 54 of file circlewidget.h.


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