qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
31 template <
typename K,
typename V>
119 QLayout*
nextLayout(QLayout* layout,
bool forward)
const;
QLayout * nextLayout(QLayout *layout, bool forward) const
Find the next or previous layout in layout list.
void updateContactStatusLight(const ContactId &contactId)
void saveSplitterState()
Save state of splitter between dialog and dialog list.
void nextContact()
Enable next contact.
bool isContactActive(const ContactId &contactId) const override
void dropEvent(QDropEvent *event) final
QList< QLayout * > layouts
void onVideoShow(QSize size)
void removeGroup(const GroupId &groupId) override
void resizeEvent(QResizeEvent *event) override
int chatroomCount() const override
void changeEvent(QEvent *event) override
void updateFriendStatus(const ToxPk &friendPk, Status::Status status)
void addFriendWidget(FriendWidget *widget, Status::Status status)
void reorderLayouts(bool newGroupOnTop)
Update layouts order according to settings.
GenericChatroomWidget * activeChatroomWidget
FriendListLayout * friendLayout
void retranslateUi()
Retranslate all elements in the form.
void ensureSplitterVisible()
void friendDialogShown(const Friend *f)
bool isActiveWidget(GenericChatroomWidget *widget)
void setUsername(const QString &newName)
Update username to show in the title.
void updateTitleAndStatusIcon()
Update window title and icon.
This class represents a Tox Public Key, which is a part of Tox ID.
void reloadTheme() override
int getCurrentLayout(QLayout *&layout)
Get current layout and index of current wiget in it. Current layout – layout contains activated widge...
void moveEvent(QMoveEvent *event) override
void keyPressEvent(QKeyEvent *event) override
void addFriendDialog(Friend *frnd, ContentDialog *contentDialog)
void updateFriendWidget(const ToxPk &friendPk, QString alias)
Update friend widget name and position.
void onGroupchatPositionChanged(bool top)
Handler of groupchatPositionChanged action. Move group layout on the top or on the buttom.
void connectFriendWidget(FriendWidget &friendWidget)
void cycleContacts(bool forward, bool loop=true)
Activate next/previous contact.
void focusContact(const ContactId &friendPk)
void setStatusMessage(const ToxPk &friendPk, const QString &message)
QScrollArea * friendScroll
void dragEnterEvent(QDragEnterEvent *event) final
GenericChatItemLayout groupLayout
ContentLayout * contentLayout
This class represents a long term persistent group identifier.
GroupWidget * addGroup(std::shared_ptr< GroupChatroom > chatroom, GenericChatForm *form)
void groupDialogShown(Group *g)
QHash< const ContactId &, GenericChatroomWidget * > contactWidgets
QHash< const ContactId &, GenericChatForm * > contactChatForms
void closeEvent(QCloseEvent *event) override
void removeFriend(const ToxPk &friendPk) override
void focusCommon(const ContactId &id, QHash< const ContactId &, GenericChatroomWidget * > list)
bool event(QEvent *event) final
~ContentDialog() override
void addGroupDialog(Group *group, ContentDialog *contentDialog)
void activate(GenericChatroomWidget *widget)
Show ContentDialog, activate chatroom widget.
FriendWidget * addFriend(std::shared_ptr< FriendChatroom > chatroom, GenericChatForm *form)
void saveDialogGeometry()
Save size of dialog window.
bool hasContact(const ContactId &contactId) const override
ContentDialog(const Core &core, QWidget *parent=nullptr)