1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 17:49:55 +00:00
openmw-tes3mp/apps/browser/MainWindow.hpp

41 lines
895 B
C++
Raw Normal View History

2017-01-11 14:04:53 +00:00
//
// Created by koncord on 06.01.17.
//
#ifndef NEWLAUNCHER_MAIN_HPP
#define NEWLAUNCHER_MAIN_HPP
#include "ui_Main.h"
#include "ServerModel.hpp"
#include <QSortFilterProxyModel>
#include <components/process/processinvoker.hpp>
2017-01-12 02:46:48 +00:00
class MainWindow : public QMainWindow, private Ui::MainWindow
2017-01-11 14:04:53 +00:00
{
Q_OBJECT
public:
2017-01-12 02:46:48 +00:00
explicit MainWindow(QWidget *parent = 0);
virtual ~MainWindow();
2017-01-11 14:04:53 +00:00
protected:
2017-01-22 07:09:17 +00:00
void closeEvent(QCloseEvent * event) Q_DECL_OVERRIDE;
void addServerAndUpdate(QString addr);
public slots:
bool refresh();
2017-01-11 14:04:53 +00:00
protected slots:
void tabSwitched(int index);
void addServer();
void addServerByIP();
void deleteServer();
void play();
void serverSelected();
private:
Process::ProcessInvoker *mGameInvoker;
ServerModel *browser, *favorites;
QSortFilterProxyModel *proxyModel;
2017-01-22 07:59:00 +00:00
void loadFavorites();
2017-01-11 14:04:53 +00:00
};
#endif //NEWLAUNCHER_MAIN_HPP