2017-01-15 16:38:30 +01:00
|
|
|
#ifndef WINDOWS_H
|
|
|
|
#define WINDOWS_H
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
#include <QMutex>
|
|
|
|
|
|
|
|
class Windows
|
|
|
|
{
|
|
|
|
public:
|
2017-01-16 15:06:12 +01:00
|
|
|
static void layoutVisibleChatWidgets(Channel *channel = NULL);
|
|
|
|
static void repaintVisibleChatWidgets(Channel *channel = NULL);
|
2017-01-15 16:38:30 +01:00
|
|
|
|
|
|
|
static MainWindow &
|
|
|
|
mainWindow()
|
|
|
|
{
|
|
|
|
m_windowMutex.lock();
|
|
|
|
if (m_mainWindow == NULL) {
|
|
|
|
m_mainWindow = new MainWindow();
|
|
|
|
}
|
|
|
|
m_windowMutex.unlock();
|
|
|
|
|
|
|
|
return *m_mainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
Windows()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static QMutex m_windowMutex;
|
|
|
|
|
|
|
|
static MainWindow *m_mainWindow;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WINDOWS_H
|