2017-11-21 16:10:58 +00:00
|
|
|
#ifndef CONFIGURATION_H
|
|
|
|
#define CONFIGURATION_H
|
|
|
|
|
2020-06-30 15:43:06 +01:00
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "Card.h"
|
|
|
|
#include "Common.h"
|
2017-11-21 16:10:58 +00:00
|
|
|
#include "preferences.h"
|
|
|
|
|
2019-11-24 19:30:34 +00:00
|
|
|
class GlobalOptions
|
|
|
|
{
|
|
|
|
public:
|
2019-12-01 18:40:28 +00:00
|
|
|
GlobalOptions(); // empty, uninitialised
|
|
|
|
|
|
|
|
static GlobalOptions fromQSettings();
|
2019-11-24 19:30:34 +00:00
|
|
|
|
|
|
|
QString screenshotTemplate;
|
|
|
|
QString gamepadName;
|
2020-10-17 19:19:46 +01:00
|
|
|
bool gamepadSquaring;
|
2019-11-24 19:30:34 +00:00
|
|
|
|
|
|
|
int slot0Card;
|
|
|
|
int ramWorksMemorySize;
|
|
|
|
int msGap;
|
|
|
|
int msFullSpeed;
|
|
|
|
|
|
|
|
int audioLatency;
|
2017-11-21 16:10:58 +00:00
|
|
|
|
2019-12-01 19:49:11 +00:00
|
|
|
void setData(const GlobalOptions & data);
|
2019-11-24 19:30:34 +00:00
|
|
|
};
|
2019-04-20 20:51:19 +01:00
|
|
|
|
2019-12-01 19:49:11 +00:00
|
|
|
struct PreferenceData
|
|
|
|
{
|
|
|
|
GlobalOptions options;
|
|
|
|
|
2020-06-30 15:43:06 +01:00
|
|
|
eApple2Type apple2Type;
|
|
|
|
SS_CARDTYPE cardInSlot4;
|
|
|
|
SS_CARDTYPE cardInSlot5;
|
2019-12-01 19:49:11 +00:00
|
|
|
bool hdInSlot7;
|
2019-12-02 20:50:51 +00:00
|
|
|
bool hz50;
|
2019-12-01 19:49:11 +00:00
|
|
|
|
|
|
|
bool enhancedSpeed;
|
|
|
|
|
|
|
|
int videoType;
|
|
|
|
bool scanLines;
|
|
|
|
bool verticalBlend;
|
2020-07-08 16:52:00 +01:00
|
|
|
int speakerVolume;
|
|
|
|
int mockingboardVolume;
|
2019-12-01 19:49:11 +00:00
|
|
|
|
|
|
|
std::vector<QString> disks;
|
|
|
|
std::vector<QString> hds;
|
|
|
|
|
2019-12-05 21:37:39 +00:00
|
|
|
QColor monochromeColor;
|
|
|
|
|
2019-12-01 19:49:11 +00:00
|
|
|
QString saveState;
|
2021-01-19 12:18:12 +00:00
|
|
|
QString printerFilename;
|
2019-12-01 19:49:11 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 12:18:12 +00:00
|
|
|
class QtFrame;
|
2019-12-01 19:49:11 +00:00
|
|
|
void getAppleWinPreferences(PreferenceData & data);
|
2021-01-19 12:18:12 +00:00
|
|
|
void setAppleWinPreferences(const std::shared_ptr<QtFrame> & frame, const PreferenceData & currentData, const PreferenceData & newData);
|
2017-11-21 16:10:58 +00:00
|
|
|
|
|
|
|
#endif // CONFIGURATION_H
|