mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 09:26:49 +00:00 
			
		
		
		
	(cherry picked from commits5c79e7106f,57353cdfff,15723adb9a,01a5196a92,ed75563a94,3839a2dcfd,1fd16ba69c,66283943c5,ba8613a179,5b8f4f3e92,35b771b19e,043eb224e2,05fac2f67d)
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
//
 | 
						|
// Created by koncord on 06.01.17.
 | 
						|
//
 | 
						|
 | 
						|
#ifndef NEWLAUNCHER_MAIN_HPP
 | 
						|
#define NEWLAUNCHER_MAIN_HPP
 | 
						|
 | 
						|
 | 
						|
#include "ui_Main.h"
 | 
						|
#include "ServerModel.hpp"
 | 
						|
#include "MySortFilterProxyModel.hpp"
 | 
						|
#include <components/process/processinvoker.hpp>
 | 
						|
 | 
						|
class QueryHelper;
 | 
						|
 | 
						|
class MainWindow : public QMainWindow,  private Ui::MainWindow
 | 
						|
{
 | 
						|
    Q_OBJECT
 | 
						|
public:
 | 
						|
    explicit MainWindow(QWidget *parent = nullptr);
 | 
						|
    ~MainWindow() override;
 | 
						|
protected:
 | 
						|
    void closeEvent(QCloseEvent * event) Q_DECL_OVERRIDE;
 | 
						|
    void addServerAndUpdate(const QString &addr);
 | 
						|
protected slots:
 | 
						|
    void tabSwitched(int index);
 | 
						|
    void addServer();
 | 
						|
    void addServerByIP();
 | 
						|
    void deleteServer();
 | 
						|
    void play();
 | 
						|
    void serverSelected();
 | 
						|
    void notFullSwitch(bool state);
 | 
						|
    void havePlayersSwitch(bool state);
 | 
						|
    void noPasswordSwitch(bool state);
 | 
						|
    void maxLatencyChanged(int index);
 | 
						|
    void gamemodeChanged(const QString &text);
 | 
						|
private:
 | 
						|
    QueryHelper *queryHelper;
 | 
						|
    Process::ProcessInvoker *mGameInvoker;
 | 
						|
    ServerModel *browser, *favorites;
 | 
						|
    MySortFilterProxyModel *proxyModel;
 | 
						|
    void loadFavorites();
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
#endif //NEWLAUNCHER_MAIN_HPP
 |