1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 06:53:52 +00:00
openmw-tes3mp/apps/browser/MainWindow.hpp

38 lines
768 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:
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;
};
#endif //NEWLAUNCHER_MAIN_HPP