1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-02 09:02:03 +02:00
vcmi/client/windows/SystemOptionsWindow.h
2023-01-30 20:18:59 +01:00

36 lines
1.0 KiB
C++

/*
* SystemOptionsWindow.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "../lib/CConfigHandler.h"
#include "gui/InterfaceObjectConfigurable.h"
class SystemOptionsWindow : public InterfaceObjectConfigurable
{
private:
SettingsListener onFullscreenChanged;
//functions bound to buttons
void loadGameButtonCallback();
void saveGameButtonCallback();
void quitGameButtonCallback();
void backButtonCallback();
void restartGameButtonCallback();
void mainMenuButtonCallback();
void showVcmiSettingsButtonCallback();
void close(); //TODO: copypaste of WindowBase::close(), consider changing Windowbase to IWindowbase with default close() implementation and changing WindowBase inheritance to CIntObject + IWindowBase
void selectGameResolution();
void setGameResolution(int index);
void closeAndPushEvent(int eventType, int code = 0);
public:
SystemOptionsWindow();
};