You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1004 B

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGlobal>
#include <QResource>
#include <QApplication>
#include <QScreen>
#include <QtWidgets/QMenu>
#include <QMainWindow>
#include <QWebChannel>
#include <QObject>
#include <QtCore>
#include <QtGui>
#include <QFileInfo>
#include <iostream>
#include "conversations.h"
#include "chatwindow.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(Conversations *ctx, QWidget *parent = nullptr);
static MainWindow *getInstance();
static Conversations *getContext();
void bla();
~MainWindow() override;
Ui::MainWindow *ui;
qreal screenDpiRef;
QRect screenGeo;
QRect screenRect;
qreal screenDpi;
qreal screenDpiPhysical;
qreal screenRatio;
private:
Conversations *m_ctx;
static MainWindow *pMainWindow;
void closeEvent(QCloseEvent *event) override;
void showDebugInfo();
ChatWindow *m_chatWindow = nullptr;
};
#endif