| 
    qTox
    Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
    
   | 
 
Parent class for all chatforms. It's provide the minimum required UI elements and methods to work with chat messages. More...
#include <genericchatform.h>


Public Slots | |
| void | focusInput () | 
| void | onChatMessageFontChanged (const QFont &font) | 
| void | setColorizedNames (bool enable) | 
| virtual void | reloadTheme () | 
Signals | |
| void | messageInserted () | 
Public Member Functions | |
| GenericChatForm (const Core &_core, const Contact *contact, IChatLog &chatLog, IMessageDispatcher &messageDispatcher, QWidget *parent=nullptr) | |
| ~GenericChatForm () override | |
| void | setName (const QString &newName) | 
| virtual void | show (ContentLayout *contentLayout) | 
| void | addSystemInfoMessage (const QDateTime &datetime, SystemMessageType messageType, SystemMessage::Args messageArgs) | 
| QDateTime | getLatestTime () const | 
Static Public Member Functions | |
| static QString | resolveToxPk (const ToxPk &pk) | 
| Searches for name (possibly alias) of someone with specified public key among all of your friends or groups you are participated.  More... | |
Protected Slots | |
| void | onChatContextMenuRequested (QPoint pos) | 
| virtual void | onScreenshotClicked ()=0 | 
| void | onSendTriggered () | 
| virtual void | onAttachClicked ()=0 | 
| void | onEmoteButtonClicked () | 
| void | onEmoteInsertRequested (QString str) | 
| void | onCopyLogClicked () | 
| void | clearChatArea () | 
| void | clearChatArea (bool confirm, bool inform) | 
| void | onSelectAllClicked () | 
| void | showFileMenu () | 
| void | hideFileMenu () | 
| void | quoteSelectedText () | 
| void | copyLink () | 
| Callback of GenericChatForm::copyLinkAction.  More... | |
| void | onLoadHistory () | 
| void | onExportChat () | 
| void | searchFormShow () | 
| void | updateShowDateInfo (const ChatLine::Ptr &prevLine, const ChatLine::Ptr &topLine) | 
| void | goToCurrentDate () | 
Protected Member Functions | |
| ChatMessage::Ptr | createMessage (const ToxPk &author, const QString &message, const QDateTime &datetime, bool isAction, bool isSent, bool colorizeName=false) | 
| void | adjustFileMenuPosition () | 
| void | hideEvent (QHideEvent *event) override | 
| void | showEvent (QShowEvent *) override | 
| bool | event (QEvent *) final | 
| void | resizeEvent (QResizeEvent *event) final | 
| bool | eventFilter (QObject *object, QEvent *event) final | 
| bool | searchInText (const QString &phrase, const ParameterSearch ¶meter, SearchDirection direction) | 
| std::pair< int, int > | indexForSearchInLine (const QString &txt, const QString &phrase, const ParameterSearch ¶meter, SearchDirection direction) | 
Protected Attributes | |
| const Core & | core | 
| bool | audioInputFlag | 
| bool | audioOutputFlag | 
| int | curRow | 
| QAction * | clearAction | 
| QAction * | quoteAction | 
| QAction * | copyLinkAction | 
| QAction * | searchAction | 
| QAction * | goToCurrentDateAction | 
| QAction * | loadHistoryAction | 
| QAction * | exportChatAction | 
| QMenu | menu | 
| QVBoxLayout * | contentLayout | 
| QPushButton * | emoteButton | 
| QPushButton * | fileButton | 
| QPushButton * | screenshotButton | 
| QPushButton * | sendButton | 
| QSplitter * | bodySplitter | 
| ChatFormHeader * | headWidget | 
| SearchForm * | searchForm | 
| QLabel * | dateInfo | 
| ChatWidget * | chatWidget | 
| ChatTextEdit * | msgEdit | 
| FlyoutOverlayWidget * | fileFlyout | 
| Widget * | parent | 
| IChatLog & | chatLog | 
| IMessageDispatcher & | messageDispatcher | 
Private Member Functions | |
| void | retranslateUi () | 
| void | addSystemDateMessage (const QDate &date) | 
| QDateTime | getTime (const ChatLine::Ptr &chatLine) const | 
Parent class for all chatforms. It's provide the minimum required UI elements and methods to work with chat messages.
Definition at line 67 of file genericchatform.h.
| GenericChatForm::GenericChatForm | ( | const Core & | _core, | 
| const Contact * | contact, | ||
| IChatLog & | chatLog, | ||
| IMessageDispatcher & | messageDispatcher, | ||
| QWidget * | parent = nullptr  | 
        ||
| ) | 
Definition at line 137 of file genericchatform.cpp.
      
  | 
  override | 
      
  | 
  private | 
| void GenericChatForm::addSystemInfoMessage | ( | const QDateTime & | datetime, | 
| SystemMessageType | messageType, | ||
| SystemMessage::Args | messageArgs | ||
| ) | 
Definition at line 500 of file genericchatform.cpp.


      
  | 
  protected | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
Callback of GenericChatForm::copyLinkAction.
Definition at line 636 of file genericchatform.cpp.
      
  | 
  protected | 
      
  | 
  finalprotected | 
Definition at line 387 of file genericchatform.cpp.


      
  | 
  finalprotected | 
      
  | 
  slot | 
| QDateTime GenericChatForm::getLatestTime | ( | ) | const | 
      
  | 
  private | 
Definition at line 510 of file genericchatform.cpp.


      
  | 
  protectedslot | 
      
  | 
  overrideprotected | 
Definition at line 554 of file genericchatform.cpp.


      
  | 
  protectedslot | 
Definition at line 297 of file genericchatform.cpp.


      
  | 
  protected | 
      
  | 
  signal | 
      
  | 
  protectedpure virtualslot | 
      
  | 
  protectedslot | 
      
  | 
  slot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedpure virtualslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  protectedslot | 
      
  | 
  virtualslot | 
Definition at line 346 of file genericchatform.cpp.


      
  | 
  finalprotected | 
      
  | 
  static | 
Searches for name (possibly alias) of someone with specified public key among all of your friends or groups you are participated.
| pk | Searched public key | 
Definition at line 96 of file genericchatform.cpp.

      
  | 
  private | 
Definition at line 712 of file genericchatform.cpp.
      
  | 
  protectedslot | 
      
  | 
  protected | 
      
  | 
  slot | 
Definition at line 495 of file genericchatform.cpp.


| void GenericChatForm::setName | ( | const QString & | newName | ) | 
Definition at line 359 of file genericchatform.cpp.


      
  | 
  virtual | 
Reimplemented in ChatForm.
Definition at line 364 of file genericchatform.cpp.

      
  | 
  overrideprotected | 
Definition at line 381 of file genericchatform.cpp.


      
  | 
  protectedslot | 
Definition at line 288 of file genericchatform.cpp.


      
  | 
  protectedslot | 
      
  | 
  protected | 
Definition at line 132 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 133 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 152 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 166 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 158 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 136 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 146 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 138 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 131 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 134 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 157 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 147 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 142 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 148 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 163 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 140 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 154 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 141 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 144 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 167 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 159 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 164 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 137 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 149 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 139 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 156 of file genericchatform.h.
      
  | 
  protected | 
Definition at line 150 of file genericchatform.h.
 1.8.17