Chatterino
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
chatterino::WindowManager Class Referencefinal

#include <WindowManager.hpp>

Inheritance diagram for chatterino::WindowManager:
[legend]
Collaboration diagram for chatterino::WindowManager:
[legend]

Public Member Functions

 WindowManager ()
 
 ~WindowManager () override
 
void showSettingsDialog (QWidget *parent, SettingsDialogPreference preference=SettingsDialogPreference())
 
void showAccountSelectPopup (QPoint point)
 
void layoutChannelViews (Channel *channel=nullptr)
 
void forceLayoutChannelViews ()
 
void repaintVisibleChatWidgets (Channel *channel=nullptr)
 
void repaintGifEmotes ()
 
WindowgetMainWindow ()
 
WindowgetSelectedWindow ()
 
WindowcreateWindow (WindowType type, bool show=true, QWidget *parent=nullptr)
 
WindowopenInPopup (ChannelPtr channel)
 
void select (Split *split)
 
void select (SplitContainer *container)
 
void scrollToMessage (const MessagePtr &message)
 
QPoint emotePopupPos ()
 
void setEmotePopupPos (QPoint pos)
 
virtual void initialize (Settings &settings, Paths &paths) override
 
virtual void save () override
 
void closeAll ()
 
int getGeneration () const
 
void incGeneration ()
 
MessageElementFlags getWordFlags ()
 
void updateWordTypeMask ()
 
void sendAlert ()
 
void queueSave ()
 
- Public Member Functions inherited from chatterino::Singleton
virtual ~Singleton ()=default
 

Static Public Member Functions

static void encodeTab (SplitContainer *tab, bool isSelected, QJsonObject &obj)
 
static void encodeChannel (IndirectChannel channel, QJsonObject &obj)
 
static void encodeFilters (Split *split, QJsonArray &arr)
 
static IndirectChannel decodeChannel (const SplitDescriptor &descriptor)
 

Public Attributes

pajlada::Signals::NoArgSignal gifRepaintRequested
 Signals. More...
 
pajlada::Signals::Signal< Channel * > layoutRequested
 
pajlada::Signals::NoArgSignal wordFlagsChanged
 
pajlada::Signals::NoArgSignal miscUpdate
 
pajlada::Signals::Signal< Split * > selectSplit
 
pajlada::Signals::Signal< SplitContainer * > selectSplitContainer
 
pajlada::Signals::Signal< const MessagePtr & > scrollToMessageSignal
 

Static Public Attributes

static const QString WINDOW_LAYOUT_FILENAME
 

Constructor & Destructor Documentation

◆ WindowManager()

chatterino::WindowManager::WindowManager ( )
Here is the call graph for this function:

◆ ~WindowManager()

chatterino::WindowManager::~WindowManager ( )
overridedefault
Here is the caller graph for this function:

Member Function Documentation

◆ closeAll()

void chatterino::WindowManager::closeAll ( )

◆ createWindow()

Window & chatterino::WindowManager::createWindow ( WindowType  type,
bool  show = true,
QWidget *  parent = nullptr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ decodeChannel()

IndirectChannel chatterino::WindowManager::decodeChannel ( const SplitDescriptor descriptor)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ emotePopupPos()

QPoint chatterino::WindowManager::emotePopupPos ( )

◆ encodeChannel()

void chatterino::WindowManager::encodeChannel ( IndirectChannel  channel,
QJsonObject &  obj 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encodeFilters()

void chatterino::WindowManager::encodeFilters ( Split split,
QJsonArray &  arr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encodeTab()

void chatterino::WindowManager::encodeTab ( SplitContainer tab,
bool  isSelected,
QJsonObject &  obj 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ forceLayoutChannelViews()

void chatterino::WindowManager::forceLayoutChannelViews ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGeneration()

int chatterino::WindowManager::getGeneration ( ) const

◆ getMainWindow()

Window & chatterino::WindowManager::getMainWindow ( )
Here is the caller graph for this function:

◆ getSelectedWindow()

Window & chatterino::WindowManager::getSelectedWindow ( )

◆ getWordFlags()

MessageElementFlags chatterino::WindowManager::getWordFlags ( )

◆ incGeneration()

void chatterino::WindowManager::incGeneration ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

void chatterino::WindowManager::initialize ( Settings settings,
Paths paths 
)
overridevirtual

Reimplemented from chatterino::Singleton.

Here is the call graph for this function:

◆ layoutChannelViews()

void chatterino::WindowManager::layoutChannelViews ( Channel channel = nullptr)
Here is the caller graph for this function:

◆ openInPopup()

Window & chatterino::WindowManager::openInPopup ( ChannelPtr  channel)
Here is the call graph for this function:

◆ queueSave()

void chatterino::WindowManager::queueSave ( )
Here is the caller graph for this function:

◆ repaintGifEmotes()

void chatterino::WindowManager::repaintGifEmotes ( )
Here is the caller graph for this function:

◆ repaintVisibleChatWidgets()

void chatterino::WindowManager::repaintVisibleChatWidgets ( Channel channel = nullptr)
Here is the caller graph for this function:

◆ save()

void chatterino::WindowManager::save ( )
overridevirtual

Reimplemented from chatterino::Singleton.

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

◆ scrollToMessage()

void chatterino::WindowManager::scrollToMessage ( const MessagePtr message)

Scrolls to the message in a split that's not a mentions view and focuses the split.

Parameters
messageMessage to scroll to.
Here is the caller graph for this function:

◆ select() [1/2]

void chatterino::WindowManager::select ( Split split)
Here is the caller graph for this function:

◆ select() [2/2]

void chatterino::WindowManager::select ( SplitContainer container)

◆ sendAlert()

void chatterino::WindowManager::sendAlert ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEmotePopupPos()

void chatterino::WindowManager::setEmotePopupPos ( QPoint  pos)
Here is the caller graph for this function:

◆ showAccountSelectPopup()

void chatterino::WindowManager::showAccountSelectPopup ( QPoint  point)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showSettingsDialog()

void chatterino::WindowManager::showSettingsDialog ( QWidget *  parent,
SettingsDialogPreference  preference = SettingsDialogPreference() 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateWordTypeMask()

void chatterino::WindowManager::updateWordTypeMask ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ gifRepaintRequested

pajlada::Signals::NoArgSignal chatterino::WindowManager::gifRepaintRequested

Signals.

◆ layoutRequested

pajlada::Signals::Signal<Channel *> chatterino::WindowManager::layoutRequested

◆ miscUpdate

pajlada::Signals::NoArgSignal chatterino::WindowManager::miscUpdate

◆ scrollToMessageSignal

pajlada::Signals::Signal<const MessagePtr &> chatterino::WindowManager::scrollToMessageSignal

◆ selectSplit

pajlada::Signals::Signal<Split *> chatterino::WindowManager::selectSplit

◆ selectSplitContainer

pajlada::Signals::Signal<SplitContainer *> chatterino::WindowManager::selectSplitContainer

◆ WINDOW_LAYOUT_FILENAME

const QString chatterino::WindowManager::WINDOW_LAYOUT_FILENAME
static

◆ wordFlagsChanged

pajlada::Signals::NoArgSignal chatterino::WindowManager::wordFlagsChanged

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