#include <contentdialog.h>
Definition at line 49 of file contentdialog.h.
◆ ContentDialog()
ContentDialog::ContentDialog |
( |
const Core & |
core, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~ContentDialog()
ContentDialog::~ContentDialog |
( |
| ) |
|
|
override |
◆ activate
◆ activated
void ContentDialog::activated |
( |
| ) |
|
|
signal |
◆ addFriend()
◆ addFriendDialog
◆ addFriendWidget()
◆ addGroup()
◆ addGroupDialog
◆ changeEvent()
void ContentDialog::changeEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
◆ chatroomCount()
int ContentDialog::chatroomCount |
( |
| ) |
const |
|
overridevirtual |
◆ closeEvent()
void ContentDialog::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
overrideprivate |
◆ closeIfEmpty()
void ContentDialog::closeIfEmpty |
( |
| ) |
|
|
private |
◆ connectFriendWidget
void ContentDialog::connectFriendWidget |
( |
FriendWidget & |
friendWidget | ) |
|
|
signal |
◆ cycleContacts()
void ContentDialog::cycleContacts |
( |
bool |
forward, |
|
|
bool |
inverse = true |
|
) |
| |
Activate next/previous contact.
- Parameters
-
forward | If true, activate next contace, previous otherwise. |
inverse | ??? TODO: Add docs. |
Definition at line 304 of file contentdialog.cpp.
◆ dragEnterEvent()
void ContentDialog::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
finalprotected |
◆ dropEvent()
void ContentDialog::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
finalprotected |
◆ ensureSplitterVisible()
void ContentDialog::ensureSplitterVisible |
( |
| ) |
|
◆ event()
bool ContentDialog::event |
( |
QEvent * |
event | ) |
|
|
finalprotected |
◆ focusCommon()
◆ focusContact()
void ContentDialog::focusContact |
( |
const ContactId & |
friendPk | ) |
|
◆ friendDialogShown
void ContentDialog::friendDialogShown |
( |
const Friend * |
f | ) |
|
|
signal |
◆ getCurrentLayout()
int ContentDialog::getCurrentLayout |
( |
QLayout *& |
layout | ) |
|
|
private |
Get current layout and index of current wiget in it. Current layout – layout contains activated widget.
- Parameters
-
[out] | layout | Current layout |
- Returns
- Index of current widget in current layout.
Definition at line 275 of file contentdialog.cpp.
◆ groupDialogShown
void ContentDialog::groupDialogShown |
( |
Group * |
g | ) |
|
|
signal |
◆ hasContact()
bool ContentDialog::hasContact |
( |
const ContactId & |
contactId | ) |
const |
|
overridevirtual |
◆ isActiveWidget()
◆ isContactActive()
bool ContentDialog::isContactActive |
( |
const ContactId & |
contactId | ) |
const |
|
overridevirtual |
◆ keyPressEvent()
void ContentDialog::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ moveEvent()
void ContentDialog::moveEvent |
( |
QMoveEvent * |
event | ) |
|
|
overrideprotected |
◆ nextContact
void ContentDialog::nextContact |
( |
| ) |
|
|
slot |
◆ nextLayout()
QLayout * ContentDialog::nextLayout |
( |
QLayout * |
layout, |
|
|
bool |
forward |
|
) |
| const |
|
private |
Find the next or previous layout in layout list.
- Parameters
-
layout | Current layout. |
forward | If true, move forward, backward othwerwise. |
- Returns
- Next/previous layout.
Definition at line 699 of file contentdialog.cpp.
◆ onGroupchatPositionChanged
void ContentDialog::onGroupchatPositionChanged |
( |
bool |
top | ) |
|
|
privateslot |
Handler of groupchatPositionChanged
action. Move group layout on the top or on the buttom.
- Parameters
-
top | If true, move group layout on the top, false otherwise. |
Definition at line 658 of file contentdialog.cpp.
◆ onVideoHide()
void ContentDialog::onVideoHide |
( |
| ) |
|
◆ onVideoShow()
void ContentDialog::onVideoShow |
( |
QSize |
size | ) |
|
◆ previousContact
void ContentDialog::previousContact |
( |
| ) |
|
|
slot |
◆ reloadTheme
void ContentDialog::reloadTheme |
( |
| ) |
|
|
overrideslot |
◆ removeFriend()
void ContentDialog::removeFriend |
( |
const ToxPk & |
friendPk | ) |
|
|
overridevirtual |
◆ removeGroup()
void ContentDialog::removeGroup |
( |
const GroupId & |
groupId | ) |
|
|
overridevirtual |
◆ reorderLayouts
void ContentDialog::reorderLayouts |
( |
bool |
newGroupOnTop | ) |
|
|
slot |
Update layouts order according to settings.
- Parameters
-
groupOnTop | If true move groupchat layout on the top. Move under online otherwise. |
Definition at line 402 of file contentdialog.cpp.
◆ resizeEvent()
void ContentDialog::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ retranslateUi()
void ContentDialog::retranslateUi |
( |
| ) |
|
|
private |
◆ saveDialogGeometry()
void ContentDialog::saveDialogGeometry |
( |
| ) |
|
|
private |
◆ saveSplitterState()
void ContentDialog::saveSplitterState |
( |
| ) |
|
|
private |
Save state of splitter between dialog and dialog list.
Definition at line 683 of file contentdialog.cpp.
◆ setStatusMessage()
void ContentDialog::setStatusMessage |
( |
const ToxPk & |
friendPk, |
|
|
const QString & |
message |
|
) |
| |
◆ setUsername
void ContentDialog::setUsername |
( |
const QString & |
newName | ) |
|
|
slot |
Update username to show in the title.
- Parameters
-
newName | New name to display. |
Definition at line 432 of file contentdialog.cpp.
◆ updateContactStatusLight()
void ContentDialog::updateContactStatusLight |
( |
const ContactId & |
contactId | ) |
|
◆ updateFriendStatus()
◆ updateFriendWidget
void ContentDialog::updateFriendWidget |
( |
const ToxPk & |
friendPk, |
|
|
QString |
alias |
|
) |
| |
|
privateslot |
Update friend widget name and position.
- Parameters
-
friendId | Friend Id. |
alias | Alias to display on widget. |
Definition at line 643 of file contentdialog.cpp.
◆ updateTitleAndStatusIcon()
void ContentDialog::updateTitleAndStatusIcon |
( |
| ) |
|
◆ willClose
void ContentDialog::willClose |
( |
| ) |
|
|
signal |
◆ activeChatroomWidget
◆ contactChatForms
◆ contactWidgets
◆ contentLayout
◆ friendLayout
◆ friendScroll
QScrollArea* ContentDialog::friendScroll |
|
private |
◆ groupLayout
◆ layouts
QList<QLayout*> ContentDialog::layouts |
|
private |
◆ splitter
QSplitter* ContentDialog::splitter |
|
private |
◆ username
QString ContentDialog::username |
|
private |
◆ videoCount
int ContentDialog::videoCount |
|
private |
◆ videoSurfaceSize
QSize ContentDialog::videoSurfaceSize |
|
private |
The documentation for this class was generated from the following files: